#!/usr/bin/env python3
import sys
import os
import platform
import webbrowser
import socket
import time
import math
import threading
import subprocess
import re
import locale
from PyQt6.QtWidgets import (QApplication, QWidget, QVBoxLayout, QHBoxLayout, 
                             QLabel, QPushButton, QFrame, QStackedWidget, QGraphicsDropShadowEffect, QScrollArea, QComboBox, QMenu, QWidgetAction, QMessageBox, QGridLayout, QDialog, QProgressBar)
from PyQt6.QtGui import QPixmap, QFont, QIcon, QColor, QAction, QPainter, QPen, QBrush, QPolygonF
from PyQt6.QtCore import Qt, QSize, QTimer, QPointF

TRANSLATIONS = {
    "es": {
        "// ARCHITECTURAL FOUNDATIONS & MANIFESTO": "// FUNDAMENTOS Y MANIFIESTO ARQUITECTÓNICO",
        "3D Graphics & FPS Benchmark": "Benchmark Gráfico 3D y FPS",
        "3D Graphics & FPS Test": "Test Gráfico 3D y FPS",
        "8 Desktops to Choose": "8 Escritorios a Elegir",
        "Absolute Privacy:": "Privacidad Absoluta:",
        "Adjust monitor refresh rate (Hz), screen resolution, and desktop scaling.": "Ajusta la tasa de refresco (Hz), resolución y escalado de tus monitores.",
        "An active internet connection is required to launch the X64 LIOS Installer.\n\nPlease connect to Wi-Fi or plug in an Ethernet cable using the network tray icon before proceeding.": "Se requiere una conexión activa a Internet para iniciar el instalador de X64 LIOS.\n\nPor favor, conéctate a una red Wi-Fi o conecta un cable Ethernet mediante el icono de red en la bandeja antes de continuar.",
        "Architecture:": "Arquitectura:",
        "Audit and contribute to the system's source code.": "Audita y contribuye al código fuente del sistema.",
        "Audit real-time CPU, RAM, and process usage with btop.": "Audita el uso real de CPU, memoria RAM y procesos con btop.",
        "Automated Snapper snapshots taken before each system update. If anything fails or breaks, restore your system in seconds directly from the bootloader menu.": "Instantáneas automáticas con Snapper antes de cada actualización. Si algo falla o se desconfigura, restaura tu sistema en segundos directamente desde el menú de arranque.",
        "Automatic processor audit: modern CPUs receive high-performance optimized packages (v3/v4) for maximum speed; if unsupported, it uses standard versions for total compatibility without issues.": "El instalador analiza tu procesador: si es moderno activa paquetes de alto rendimiento (v3/v4) para máxima velocidad; si no lo soporta, usa versiones estándar con compatibilidad total sin fallos.",
        "Automatically detects your processor and installs the exact version adapted for it (whether old or next-generation).": "Detecta automáticamente tu procesador e instala la versión exacta adaptada para él (ya sea antigua o de última generación).",
        "Avant-garde Aesthetics:": "Estética Vanguardista:",
        "Btrfs Snapshots & Rollback": "Snapshots y Rollback Btrfs",
        "CPU": "CPU",
        "CPU & Architecture": "CPU y Arquitectura",
        "CPU Arch": "CPU Arch",
        "CachyOS Kernel + FalconD": "Kernel CachyOS + FalconD",
        "Check deep CPU and RAM usage with btop.": "Revisa el uso profundo de CPU y RAM con btop.",
        "Check the Official Wiki to learn about modules and shortcuts.": "Revisa la Wiki Oficial para aprender sobre módulos y atajos.",
        "Clean & Surgical System": "Sistema Limpio y Quirúrgico",
        "Close Test": "Cerrar Prueba",
        "Continuous evolution based on Arch Linux. Your system seamlessly incorporates the latest hardware optimizations, kernel advances, and upstream software without reinstallations.": "Evolución continua basada en Arch Linux. Tu sistema incorpora fluidamente las últimas optimizaciones de hardware, avances de kernel y software upstream sin demoras artificiales ni reinstalaciones.",
        "Continuous evolution based on Arch Linux. Your system seamlessly incorporates the latest hardware optimizations, libraries, and ecosystem tools as they release.": "Evolución constante sobre la base de Arch Linux. Tu sistema incorpora continuamente las últimas optimizaciones de hardware, librerías y herramientas del ecosistema.",
        "Cutting-Edge Rolling Release": "Rolling Release de Vanguardia",
        "Design is not an afterthought. Widescreen panoramic UI, Crimson & Charcoal color direction (#b31b1b / #0b0b0d), and vector iconography engineered for focus and control.": "El diseño no es una ocurrencia tardía. UI panorámica Widescreen, paleta Carmesí & Carbón (#b31b1b / #0b0b0d) e iconografía vectorial diseñada para concentración y control.",
        "Discord Server": "Servidor de Discord",
        "Display": "Pantalla",
        "Display Configuration": "Configuración de Pantalla",
        "Documentation and Notes": "Documentación y Notas",
        "During installation, the system audits your CPU: modern processors get AVX2/AVX512 (v3/v4) repositories injected below [x64-lios]. chwd autodetects NVIDIA, AMD, and Intel GPUs.": "Durante la instalación el sistema audita tu CPU: procesadores modernos reciben repositorios AVX2/AVX512 (v3/v4) bajo [x64-lios]. chwd autodetecta GPUs NVIDIA, AMD e Intel.",
        "Ethernet Active": "Ethernet Activo",
        "Explore Live Environment": "Explorar Entorno Live",
        "Frame Latency:": "Latencia de Cuadro:",
        "GPU": "GPU",
        "GUI-First philosophy for effortless everyday use, paired with an elite hacker terminal experience in Kitty, Fish shell, and Starship pills for power users.": "Filosofía GUI-First para uso diario intuitivo, unida a una experiencia de terminal hacker de élite en Kitty, Fish shell y Starship pills para usuarios avanzados.",
        "GitHub Repository": "Repositorio GitHub",
        "Graphics & Display": "Gráficos y Pantalla",
        "HARDWARE DIAGNOSTICS & CONTROL": "DIAGNÓSTICO Y CONTROL DE HARDWARE",
        "HARDWARE OK": "HARDWARE DETECTADO",
        "HIGH-PERFORMANCE ARCHITECTURE": "ARQUITECTURA DE ALTO RENDIMIENTO",
        "Hacker Terminal": "Terminal Hacker",
        "Hacker Terminal (Kitty)": "Terminal Hacker (Kitty)",
        "Hardware Mutation (v3/v4)": "Mutación de Hardware (v3/v4)",
        "Hardware acceleration ready": "Aceleración por hardware activa",
        "Hardware:": "Hardware:",
        "Home": "Inicio",
        "Hybrid Rolling Release:": "Rolling Release Híbrido:",
        "I. Absolute Freedom": "I. La Libertad Absoluta",
        "II. Surgical Optimization": "II. Optimización Quirúrgica",
        "III. Multi-Environment Ecosystem": "III. Ecosistema Multi-Entorno",
        "IV. Sovereign Repositories": "IV. Repositorios Soberanos",
        "IX. Cutting-Edge Rolling Release": "IX. Rolling Release de Vanguardia",
        "Install X64 LIOS": "Instalar X64 LIOS",
        "Install the System": "Instalar el Sistema",
        "Internet Connection Required": "Conexión a Internet Requerida",
        "LIVE AUDIT": "Auditoría en Vivo",
        "LIVE VERIFICATIONS": "VERIFICACIONES EN VIVO",
        "Launch Kitty with your transparent profile and ASCII logo.": "Lanza Kitty con tu perfil transparente y logotipo ASCII.",
        "Launch an interactive 3D benchmark to measure GPU fluidity and frame rates.": "Lanza una prueba 3D interactiva para medir la fluidez y FPS de tu GPU.",
        "Launch the Calamares installer to install X64 LIOS on your hard drive.": "Lanza el instalador Calamares para instalar X64 LIOS en tu disco duro.",
        "Lightweight installer with zero bloat. Heavy gaming platforms and emulators are cleanly delegated to post-installation setup in X64 Hello after first boot.": "Instalador ligero sin bloatware. Las plataformas pesadas de juegos y emuladores se delegan limpiamente al asistente post-instalación en X64 Hello tras el primer arranque.",
        "Linux-CachyOS kernel with scx dynamic schedulers, FalconD gaming CPU affinity, ananicy-cpp priority tuning, and pure ZRAM in RAM for zero disk swap latency.": "Kernel Linux-CachyOS con schedulers dinámicos scx, afinidad de CPU gaming con FalconD, optimización ananicy-cpp y ZRAM puro en RAM sin latencia de swap en disco.",
        "Live environment in KDE Plasma 6 Wayland, plus 8 official installation options (KDE, GNOME, COSMIC, Niri, Cinnamon, Xfce, Hyprland, and Server) with 16:9 previews.": "Entorno Live en KDE Plasma 6 Wayland, más 8 opciones oficiales de instalación (KDE, GNOME, COSMIC, Niri, Cinnamon, Xfce, Hyprland y Servidor) con capturas 16:9.",
        "Live session (~200MB ISO layers in RAM)": "Sesión Live (~200MB de capas en RAM)",
        "Low-level utilities for advanced system configuration.": "Utilidades de bajo nivel para la configuración avanzada del sistema.",
        "MASTER UTILITIES": "HERRAMIENTAS MAESTRAS",
        "Memoria": "Memoria",
        "Memory": "Memoria",
        "Memory (RAM & ZRAM)": "Memoria (RAM y ZRAM)",
        "Minimize this window and test the extreme performance of the live system.": "Minimiza esta ventana y prueba el rendimiento extremo del sistema en vivo.",
        "Native utilities to audit and manage your hardware during Live mode.": "Utilidades nativas para auditar y gestionar tu hardware en modo Live.",
        "Network": "Red",
        "No Connection": "Sin Conexión",
        "Official Website": "Sitio Web Oficial",
        "Open GParted to partition, format, or prepare disks.": "Abre GParted para particionar, formatear o preparar discos.",
        "Open Source synergy. We inherit and polish battle-tested foundations, writing custom code and maintaining our own repositories only where we add sovereign value.": "Sinergia Open Source. Heredamos y pulimos cimientos probados en batalla, programando código propio y manteniendo repositorios propios solo donde aportamos valor soberano.",
        "Optimized execution pipeline": "Pipeline optimizado",
        "Panel": "Panel",
        "Pantalla": "Pantalla",
        "Partition Manager": "Gestor de Particiones",
        "Partition Manager (GParted)": "Gestor de Particiones (GParted)",
        "Philosophy": "Filosofía",
        "Pristine System:": "Sistema Impoluto:",
        "Privacy by Design": "Privacidad por Diseño",
        "RAM": "RAM",
        "Ready Network": "Red Preparada",
        "Real-time hardware audit, idle memory telemetry, and express verification tools to tune your machine.": "Auditoría en tiempo real de tu hardware, telemetría de memoria en reposo y herramientas de verificación express.",
        "Real-time support channels and discussions.": "Canales de soporte en tiempo real y discusiones.",
        "Resource Monitor": "Monitor de Recursos",
        "Resource Monitor (btop)": "Monitor de Recursos (btop)",
        "Session:": "Sesión:",
        "Smart Package System:": "Sistema de Paquetes Inteligente:",
        "Sovereign cascading repository hierarchy. [x64-lios] holds priority #1 above Arch and CachyOS, delivering custom packages and optimizations directly without bottlenecks.": "Jerarquía soberana de repositorios en cascada. [x64-lios] tiene prioridad #1 absoluta sobre Arch y CachyOS, entregando paquetes propios y optimizaciones de alto rendimiento sin cuellos de botella.",
        "Standard GPU": "GPU Estándar",
        "Stereo Audio Test": "Test de Audio Estéreo",
        "System": "Sistema",
        "System Cockpit & Tools": "Panel de Control y Sistema",
        "System Tools": "Herramientas del Sistema",
        "Temporal immutability with Btrfs & automated Snapper snapshots. Multi-bootloader support choosing Limine, GRUB, systemd-boot, or rEFInd for effortless rollback.": "Inmutabilidad temporal con Btrfs y snapshots automáticos de Snapper. Soporte multi-bootloader eligiendo Limine, GRUB, systemd-boot o rEFInd para rollback sin esfuerzo.",
        "The freshness of Arch Linux combined with armored stability.": "La frescura de Arch Linux combinada con una estabilidad blindada.",
        "The purist operating system designed for maximum performance, minimal latency, and absolute control.": "El sistema operativo purista diseñado para el máximo rendimiento, latencia mínima y control absoluto.",
        "Top Gaming Performance": "Rendimiento Top Gaming",
        "Top Gaming Performance:": "Rendimiento Top Gaming:",
        "UEFI x86_64 Boot": "Arranque UEFI x86_64",
        "Ultra-fluid, minimalist environments ready to choose.": "Entornos ultra-fluidos, minimalistas y listos para elegir.",
        "Ultra-low idle footprint": "Consumo mínimo en reposo",
        "Ultra-low latency CachyOS kernel base boosted with the X64 performance stack: FalconD gaming CPU affinity, dynamic scx schedulers, and real-time process tuning.": "Base de kernel CachyOS de ultra-baja latencia, potenciada con la capa de rendimiento X64: afinidad de CPU para gaming con FalconD, schedulers dinámicos scx y optimización en tiempo real.",
        "Ultra-low latency and kernel optimizations to squeeze out every FPS.": "Latencia ultra-baja y optimizaciones de kernel para exprimir cada FPS.",
        "Unknown": "Desconocido",
        "Upstream purity of Arch Linux with zero PPAs, zero corporate ties, and 99% of system packages intact. Combined with the AUR and modern GUI tools for complete freedom.": "Pureza Upstream de Arch Linux con cero PPAs, cero ataduras corporativas y el 99% de los paquetes del sistema intactos. Combinado con el AUR y herramientas gráficas modernas para una libertad total.",
        "V. Hardware Mutation": "V. Mutación de Hardware",
        "VI. Modular Architecture": "VI. Arquitectura Modular",
        "VII. Shield of Resilience": "VII. Escudo de Resiliencia",
        "VIII. The Death of the Terminal": "VIII. La Muerte de la Terminal",
        "Verify left and right channels to ensure speakers and headphones work properly.": "Prueba los canales izquierdo y derecho para confirmar que tus altavoces o auriculares funcionan.",
        "Welcome to X64 LIOS": "Bienvenido a X64 LIOS",
        "Wi-Fi Active": "Wi-Fi Activo",
        "X. Architectural Pragmatism": "X. Pragmatismo Arquitectónico",
        "X64 Architectural Manifesto": "Manifiesto Arquitectónico X64",
        "X64 Community": "Comunidad X64",
        "X64 LIOS is an open community of enthusiasts and developers. Join to receive support, share scripts, and discuss.": "X64 LIOS es una comunidad abierta de entusiastas y desarrolladores. Únete para recibir soporte, compartir scripts y debatir.",
        "X64 LIOS is meticulously designed for performance purists. Our architecture guarantees you:": "X64 LIOS está diseñado meticulosamente para puristas del rendimiento. Nuestra arquitectura te garantiza:",
        "X64 LIOS was born as the ultimate answer to Linux fragmentation. We extract the raw power of high-performance kernels, the precision of the gaming ecosystem, and the purity of Arch to forge the definitive operating system.": "X64 LIOS nace como la respuesta definitiva a la fragmentación de Linux. Extraemos la fuerza bruta de los kernels de alto rendimiento, la precisión del ecosistema gaming y la pureza de Arch para forjar el sistema operativo definitivo.",
        "XI. Aesthetics as Function": "XI. La Estética como Función",
        "XII. Privacy by Design": "XII. Privacidad por Diseño",
        "You have started the Live session. Safely explore the environment without altering your hard drive, or proceed with the permanent system installation.": "Has iniciado la sesión Live. Explora el entorno de forma segura sin alterar tu disco duro, o procede con la instalación permanente del sistema.",
        "ZRAM Active": "ZRAM Activo",
        "ZRAM Inactive": "ZRAM Inactivo",
        "Zero bloatware and zero background idle services. An ultra-lean footprint consuming merely 600–800 MB of idle RAM, dedicating your hardware fully to gaming and maximum performance.": "Cero bloatware y sin servicios residuales en segundo plano. Un consumo mínimo de apenas 600–800 MB de RAM en reposo, liberando toda tu memoria para jugar y rendir al máximo.",
        "Zero bloatware, returning total control of your machine back to you.": "Cero bloatware, devolviéndote el control total de tu máquina.",
        "Zero metrics collection, diagnostics, or background tracking. Unlike other operating systems, X64 LIOS never monitors your activity or sends your data anywhere.": "Cero recopilación de métricas, diagnósticos o rastreo en segundo plano. A diferencia de otros sistemas, X64 LIOS jamás monitorea lo que haces ni envía tus datos a nadie.",
        "Zero metrics collection, diagnostics, or covert background tracking. Unlike commercial operating systems, X64 LIOS never monitors your activity or phones home. Your hardware belongs to you.": "Cero recopilación de métricas, diagnósticos o rastreo encubierto en segundo plano. A diferencia de otros sistemas operativos, X64 LIOS jamás monitoriza tu actividad ni envía datos. Tu hardware te pertenece solo a ti.",
        "Zero telemetry by design. Your data is exclusively yours.": "Cero telemetría por diseño. Tus datos son exclusivamente tuyos.",
        "Zero-Latency ZRAM": "ZRAM Latencia Cero",
    },
    "fr": {
        "// ARCHITECTURAL FOUNDATIONS & MANIFESTO": "// FONDEMENTS ET MANIFESTE ARCHITECTURAL",
        "3D Graphics & FPS Benchmark": "Benchmark Graphique 3D et FPS",
        "3D Graphics & FPS Test": "Test Graphique 3D et FPS",
        "8 Desktops to Choose": "8 Environnements au Choix",
        "A la carte profiles (Gaming, Hacker, Minimalist). Zero Bloatware. The ISO is a blank canvas; the resulting system is an exact forge of your identity.": "Profils à la carte (Gaming, Hacker, Minimaliste). Zéro Bloatware. L'ISO est une toile vierge ; le système qui en résulte est la forge exacte de votre identité.",
        "Absolute Privacy:": "Confidentialité Absolue :",
        "Adjust monitor refresh rate (Hz), screen resolution, and desktop scaling.": "Ajustez le taux de rafraîchissement (Hz), la résolution et la mise à l'échelle.",
        "An active internet connection is required to launch the X64 LIOS Installer.\n\nPlease connect to Wi-Fi or plug in an Ethernet cable using the network tray icon before proceeding.": "Une connexion Internet active est requise pour lancer l'installateur X64 LIOS.\n\nVeuillez vous connecter au Wi-Fi ou brancher un câble Ethernet avant de continuer.",
        "Architecture:": "Architecture:",
        "Audit and contribute to the system's source code.": "Auditez et contribuez au code source du système.",
        "Audit real-time CPU, RAM, and process usage with btop.": "Auditez l'utilisation du processeur, de la RAM et des processus en temps réel avec btop.",
        "Automated Snapper snapshots taken before each system update. If anything fails or breaks, restore your system in seconds directly from the bootloader menu.": "Instantanés automatiques Snapper avant chaque mise à jour. En cas de panne, restaurez votre système en quelques secondes depuis le menu de démarrage.",
        "Automatic processor audit: modern CPUs receive high-performance optimized packages (v3/v4) for maximum speed; if unsupported, it uses standard versions for total compatibility without issues.": "Audit automatique du processeur : les processeurs modernes reçoivent des paquets optimisés (v3/v4) ; sinon, des versions standard garantissent une compatibilité totale.",
        "Automatically detects your processor and installs the exact version adapted for it (whether old or next-generation).": "Détecte automatiquement votre processeur et installe la version exacte adaptée (qu'il soit ancien ou de nouvelle génération).",
        "Avant-garde Aesthetics:": "Esthétique Avant-gardiste :",
        "Btrfs Snapshots & Rollback": "Instantanés Btrfs et Restauration",
        "CPU": "CPU",
        "CPU & Architecture": "Processeur et Architecture",
        "CachyOS Kernel + FalconD": "Noyau CachyOS + FalconD",
        "Check deep CPU and RAM usage with btop.": "Vérifiez l'utilisation approfondie du CPU et de la RAM avec btop.",
        "Check the Official Wiki to learn about modules and shortcuts.": "Consultez le Wiki officiel pour en savoir plus sur les modules et les raccourcis.",
        "Clean & Surgical System": "Système Épuré et Chirurgical",
        "Close Test": "Fermer le Test",
        "Continuous evolution based on Arch Linux. Your system seamlessly incorporates the latest hardware optimizations, kernel advances, and upstream software without reinstallations.": "Évolution continue basée sur Arch Linux. Votre système intègre harmonieusement les dernières optimisations matérielles, avancées du noyau et logiciels amont sans réinstallations.",
        "Continuous evolution based on Arch Linux. Your system seamlessly incorporates the latest hardware optimizations, libraries, and ecosystem tools as they release.": "Évolution continue basée sur Arch Linux. Intègre en toute fluidité les dernières optimisations matérielles, bibliothèques et outils dès leur sortie.",
        "Custom-compiled high-performance kernels, advanced BORE/EEVDF schedulers, controlled mitigations, and strict pre-configurations for ultra-low latency gaming.": "Noyaux haute performance compilés sur mesure, planificateurs BORE/EEVDF avancés, atténuations contrôlées et pré-configurations strictes pour un jeu à latence ultra-faible.",
        "Cutting-Edge Rolling Release": "Rolling Release d'Avant-Garde",
        "Design is not a whim. A beautiful and coherent environment inspires focus and control. Every pixel of the system obeys our strict Hacker-Minimalist art direction.": "Le design n'est pas un caprice. Un environnement beau et cohérent inspire la concentration et le contrôle. Chaque pixel du système obéit à notre stricte direction artistique Hacker-Minimaliste.",
        "Design is not an afterthought. Widescreen panoramic UI, Crimson & Charcoal color direction (#b31b1b / #0b0b0d), and vector iconography engineered for focus and control.": "Le design n'est pas un détail secondaire. Interface panoramique, charte carmin et anthracite (#b31b1b / #0b0b0d) et iconographie vectorielle conçues pour la maîtrise.",
        "Discord Server": "Serveur Discord",
        "Display Configuration": "Configuration de l'Affichage",
        "Documentation and Notes": "Documentation et Notes",
        "During installation, the system audits your CPU: if it's old, it uses bulletproof generic packages; if it's modern, it activates Turbo Mode by injecting AVX2/AVX512 (v3/v4) repositories.": "Lors de l'installation, le système audite votre processeur : s'il est ancien, il utilise des paquets génériques infaillibles ; s'il est moderne, il active le mode Turbo en injectant des dépôts AVX2/AVX512 (v3/v4).",
        "During installation, the system audits your CPU: modern processors get AVX2/AVX512 (v3/v4) repositories injected below [x64-lios]. chwd autodetects NVIDIA, AMD, and Intel GPUs.": "Pendant l'installation, le système audite votre CPU : les processeurs modernes reçoivent les dépôts AVX2/AVX512 (v3/v4). chwd détecte automatiquement les GPU NVIDIA, AMD et Intel.",
        "Ethernet Active": "Ethernet Actif",
        "Explore Live Environment": "Explorer l'Environnement Live",
        "Frame Latency:": "Latence d'image :",
        "GPU": "GPU",
        "GUI-First philosophy for effortless everyday use, paired with an elite hacker terminal experience in Kitty, Fish shell, and Starship pills for power users.": "Philosophie GUI-First pour un usage quotidien fluide, couplée à un terminal d'élite Kitty avec Fish et Starship pour les utilisateurs avancés.",
        "GUI-First philosophy. The average user should never need to open a terminal. All the absolute power of Arch manageable entirely through graphical interfaces.": "Philosophie GUI-First. L'utilisateur moyen ne devrait jamais avoir besoin d'ouvrir un terminal. Toute la puissance absolue d'Arch gérable entièrement via des interfaces graphiques.",
        "GitHub Repository": "Dépôt GitHub",
        "Graphics & Display": "Graphismes et Écran",
        "HARDWARE DIAGNOSTICS & CONTROL": "DIAGNOSTIC ET CONTRÔLE MATÉRIEL",
        "HIGH-PERFORMANCE ARCHITECTURE": "ARCHITECTURE HAUTE PERFORMANCE",
        "Hacker Terminal": "Terminal Hacker",
        "Hacker Terminal (Kitty)": "Terminal Hacker (Kitty)",
        "Hardware Mutation (v3/v4)": "Mutation Matérielle (v3/v4)",
        "Hardware acceleration ready": "Accélération matérielle prête",
        "Hardware:": "Matériel :",
        "Home": "Accueil",
        "Hybrid Rolling Release:": "Rolling Release Hybride :",
        "I. Absolute Freedom": "I. Liberté Absolue",
        "II. Surgical Optimization": "II. Optimisation Chirurgicale",
        "III. Multi-Environment Ecosystem": "III. Écosystème Multi-Environnements",
        "IV. Sovereign Repositories": "IV. Dépôts Souverains",
        "IX. Cutting-Edge Rolling Release": "IX. Rolling Release d'Avant-Garde",
        "Install X64 LIOS": "Installer X64 LIOS",
        "Install the System": "Installer le Système",
        "Internet Connection Required": "Connexion Internet Requise",
        "LIVE AUDIT": "Audit en Direct",
        "LIVE VERIFICATIONS": "VÉRIFICATIONS EN DIRECT",
        "Launch Kitty with your transparent profile and ASCII logo.": "Lancez Kitty avec votre profil transparent et votre logo ASCII.",
        "Launch an interactive 3D benchmark to measure GPU fluidity and frame rates.": "Lancez un benchmark 3D interactif pour mesurer la fluidité du GPU et le framerate.",
        "Launch the Calamares installer to install X64 LIOS on your hard drive.": "Lancez l'installateur Calamares pour installer X64 LIOS sur votre disque dur.",
        "Lightweight installer with zero bloat. Heavy gaming platforms and emulators are cleanly delegated to post-installation setup in X64 Hello after first boot.": "Installateur ultra-léger sans bloatware. Les plateformes de jeu lourdes sont déléguées à X64 Hello après le premier démarrage.",
        "Linux-CachyOS kernel with scx dynamic schedulers, FalconD gaming CPU affinity, ananicy-cpp priority tuning, and pure ZRAM in RAM for zero disk swap latency.": "Noyau Linux-CachyOS avec ordonnanceurs dynamiques scx, affinité CPU FalconD, ananicy-cpp et ZRAM pure pour une latence de swap nulle.",
        "Live environment in KDE Plasma 6 Wayland, plus 8 official installation options (KDE, GNOME, COSMIC, Niri, Cinnamon, Xfce, Hyprland, and Server) with 16:9 previews.": "Environnement Live sous KDE Plasma 6 Wayland, plus 8 options officielles d'installation (KDE, GNOME, COSMIC, Niri, Cinnamon, Xfce, Hyprland, Serveur) avec aperçus 16:9.",
        "Live session (~200MB ISO layers in RAM)": "Session Live (~200 Mo de couches ISO en RAM)",
        "Low-level utilities for advanced system configuration.": "Utilitaires de bas niveau pour la configuration avancée du système.",
        "MASTER UTILITIES": "UTILITAIRES MAÎTRES",
        "Memory (RAM & ZRAM)": "Mémoire (RAM et ZRAM)",
        "Minimize this window and test the extreme performance of the live system.": "Minimisez cette fenêtre et testez les performances extrêmes du système en direct.",
        "Native utilities to audit and manage your hardware during Live mode.": "Utilitaires natifs pour auditer et gérer votre matériel en mode Live.",
        "Network": "Réseau",
        "No Connection": "Pas de Connexion",
        "Official Website": "Site Officiel",
        "Open GParted to partition, format, or prepare disks.": "Ouvrez GParted pour partitionner, formater ou préparer les disques.",
        "Open Source synergy. We inherit and polish battle-tested foundations, writing custom code and maintaining our own repositories only where we add sovereign value.": "Synergie Open Source. Nous reprenons et perfectionnons des bases éprouvées, en écrivant du code personnalisé uniquement là où nous apportons une réelle valeur souveraine.",
        "Open Source synergy. We inherit and polish foundations proven by the Arch Linux purist elite, writing code and injecting custom repositories only where we truly add unique value.": "Synergie Open Source. Nous héritons et peaufinons les fondations prouvées par l'élite puriste d'Arch Linux, en écrivant du code et en injectant des dépôts personnalisés uniquement là où nous ajoutons vraiment une valeur unique.",
        "Optimized execution pipeline": "Pipeline d'exécution optimisé",
        "Panel": "Panneau",
        "Partition Manager": "Gestionnaire de Partitions",
        "Partition Manager (GParted)": "Gestionnaire de Partitions (GParted)",
        "Philosophy": "Philosophie",
        "Pristine System:": "Système Immaculé :",
        "Privacy by Design": "Confidentialité Dès la Conception",
        "RAM": "RAM",
        "Ready Network": "Réseau Prêt",
        "Real-time hardware audit, idle memory telemetry, and express verification tools to tune your machine.": "Audit matériel en temps réel, télémétrie de mémoire et outils de vérification rapide pour calibrer votre machine.",
        "Real-time support channels and discussions.": "Canaux d'assistance en temps réel et discussions.",
        "Resource Monitor": "Moniteur de Ressources",
        "Resource Monitor (btop)": "Moniteur de Ressources (btop)",
        "Session:": "Session:",
        "Smart Package System:": "Système de Paquets Intelligent :",
        "Sovereign cascading repository hierarchy. [x64-lios] holds priority #1 above Arch and CachyOS, delivering custom packages and optimizations directly without bottlenecks.": "Hiérarchie souveraine de dépôts en cascade. [x64-lios] détient la priorité #1 sur Arch et CachyOS, fournissant des paquets sur mesure et des optimisations directement sans goulets d'étranglement.",
        "Standard GPU": "GPU Standard",
        "Stereo Audio Test": "Test Audio Stéréo",
        "System": "Système",
        "System Cockpit & Tools": "Cockpit Système et Outils",
        "System Tools": "Outils Système",
        "Temporal immutability with Btrfs & automated Snapper snapshots. Multi-bootloader support choosing Limine, GRUB, systemd-boot, or rEFInd for effortless rollback.": "Immutabilité temporelle avec Btrfs et instantanés Snapper automatiques. Prise en charge multi-chargeur : Limine, GRUB, systemd-boot ou rEFInd.",
        "Temporal immutability with Btrfs and Snapper. rEFInd graphical boot manager to roll back in time after critical errors, eliminating the fear of Rolling Releases.": "Immutabilité temporelle avec Btrfs et Snapper. Gestionnaire de démarrage graphique rEFInd pour remonter le temps après des erreurs critiques, éliminant la peur des Rolling Releases.",
        "The freshness of Arch Linux combined with armored stability.": "La fraîcheur d'Arch Linux combinée à une stabilité blindée.",
        "The purist operating system designed for maximum performance, minimal latency, and absolute control.": "Le système d'exploitation puriste conçu pour des performances maximales, une latence minimale et un contrôle absolu.",
        "The user forges their destiny: KDE Plasma for comfort, GNOME for fluidity, or Hyprland X64 for purist minimalism with microscopic RAM usage.": "L'utilisateur forge son destin : KDE Plasma pour le confort, GNOME pour la fluidité, ou Hyprland X64 pour le minimalisme puriste avec une utilisation microscopique de la RAM.",
        "Top Gaming Performance": "Performances Gaming Supérieures",
        "Top Gaming Performance:": "Performances de Jeu Supérieures :",
        "UEFI x86_64 Boot": "Démarrage UEFI x86_64",
        "Ultra-fluid, minimalist environments ready to choose.": "Des environnements ultra-fluides, minimalistes et prêts à choisir.",
        "Ultra-low idle footprint": "Empreinte mémoire minimale au repos",
        "Ultra-low latency CachyOS kernel base boosted with the X64 performance stack: FalconD gaming CPU affinity, dynamic scx schedulers, and real-time process tuning.": "Base de noyau CachyOS à ultra-faible latence optimisée par la suite X64 : affinité FalconD, ordonnanceurs dynamiques scx et réglage en temps réel.",
        "Ultra-low latency and kernel optimizations to squeeze out every FPS.": "Latence ultra-faible et optimisations du noyau pour extraire chaque FPS.",
        "Unknown": "Inconnu",
        "Upstream purity of Arch Linux combined with the Shelly universal store. Zero PPAs, zero corporate ties, and 99% of the system software intact to ensure maximum stability.": "Pureté en amont d'Arch Linux combinée au magasin universel Shelly. Zéro PPA, zéro lien d'entreprise, et 99% des logiciels système intacts pour assurer une stabilité maximale.",
        "Upstream purity of Arch Linux with zero PPAs, zero corporate ties, and 99% of system packages intact. Combined with the AUR and modern GUI tools for complete freedom.": "Pureté d'Arch Linux sans aucun PPA ni lien d'entreprise, avec 99% des paquets système intacts. Combiné à l'AUR et à des outils graphiques pour une liberté totale.",
        "V. Hardware Mutation": "V. Mutation Matérielle",
        "VI. Modular Architecture": "VI. Architecture Modulaire",
        "VII. Shield of Resilience": "VII. Bouclier de Résilience",
        "VIII. The Death of the Terminal": "VIII. La Mort du Terminal",
        "Verify left and right channels to ensure speakers and headphones work properly.": "Vérifiez les canaux gauche et droit pour vous assurer que les haut-parleurs ou écouteurs fonctionnent correctement.",
        "Welcome to X64 LIOS": "Bienvenue sur X64 LIOS",
        "Wi-Fi Active": "Wi-Fi Actif",
        "X. Architectural Pragmatism": "X. Pragmatisme Architectural",
        "X64 Architectural Manifesto": "Manifeste Architectural X64",
        "X64 Community": "Communauté X64",
        "X64 LIOS is an open community of enthusiasts and developers. Join to receive support, share scripts, and discuss.": "X64 LIOS est une communauté ouverte d'amateurs et de développeurs. Rejoignez-nous pour recevoir du soutien, partager des scripts et discuter.",
        "X64 LIOS is meticulously designed for performance purists. Our architecture guarantees you:": "X64 LIOS est méticuleusement conçu pour les puristes de la performance. Notre architecture vous garantit :",
        "X64 LIOS was born as the ultimate answer to Linux fragmentation. We extract the raw power of high-performance kernels, the precision of the gaming ecosystem, and the purity of Arch to forge the definitive operating system.": "X64 LIOS est né comme la réponse ultime à la fragmentation de Linux. Nous extrayons la puissance brute des noyaux haute performance, la précision de l'écosystème du jeu et la pureté d'Arch pour forger le système d'exploitation définitif.",
        "XI. Aesthetics as Function": "XI. L'Esthétique comme Fonction",
        "XII. Privacy by Design": "XII. Confidentialité Dès la Conception",
        "You have started the Live session. Safely explore the environment without altering your hard drive, or proceed with the permanent system installation.": "Vous avez démarré la session Live. Explorez l'environnement en toute sécurité sans modifier votre disque dur, ou procédez à l'installation permanente du système.",
        "ZRAM Active": "ZRAM Actif",
        "ZRAM Inactive": "ZRAM Inactif",
        "Zero bloatware and zero background idle services. An ultra-lean footprint consuming merely 600–800 MB of idle RAM, dedicating your hardware fully to gaming and maximum performance.": "Zéro bloatware et aucun service résiduel. Une empreinte ultra-réduite consommant seulement 600–800 Mo de RAM au repos, dédiée entièrement au jeu.",
        "Zero bloatware, returning total control of your machine back to you.": "Zéro bloatware, vous redonnant le contrôle total de votre machine.",
        "Zero metrics collection, diagnostics, or background tracking. Unlike other operating systems, X64 LIOS never monitors your activity or sends your data anywhere.": "Zéro télémétrie, diagnostic ou suivi caché. Contrairement à d'autres systèmes, X64 LIOS ne surveille jamais vos actions ni n'envoie vos données.",
        "Zero metrics collection, diagnostics, or covert background tracking. Unlike commercial operating systems, X64 LIOS never monitors your activity or phones home. Your hardware belongs to you.": "Zéro collecte de métriques, diagnostics ou suivi secret en arrière-plan. Contrairement aux systèmes commerciaux, X64 LIOS ne surveille jamais votre activité. Votre matériel vous appartient.",
        "Zero telemetry by design. Your data is exclusively yours.": "Zéro télémétrie par conception. Vos données vous appartiennent exclusivement.",
        "Zero-Latency ZRAM": "ZRAM à Latence Zéro",
    },
    "de": {
        "// ARCHITECTURAL FOUNDATIONS & MANIFESTO": "// ARCHITEKTUR-FUNDAMENTE & MANIFEST",
        "3D Graphics & FPS Benchmark": "3D-Grafik- & FPS-Benchmark",
        "3D Graphics & FPS Test": "3D-Grafik- & FPS-Test",
        "8 Desktops to Choose": "8 Desktops zur Auswahl",
        "A la carte profiles (Gaming, Hacker, Minimalist). Zero Bloatware. The ISO is a blank canvas; the resulting system is an exact forge of your identity.": "À-la-carte-Profile (Gaming, Hacker, Minimalistisch). Zero Bloatware. Die ISO ist eine leere Leinwand; das resultierende System ist eine genaue Schmiede Ihrer Identität.",
        "Absolute Privacy:": "Absolute Privatsphäre:",
        "Adjust monitor refresh rate (Hz), screen resolution, and desktop scaling.": "Passen Sie Bildwiederholfrequenz (Hz), Bildschirmauflösung und Skalierung an.",
        "An active internet connection is required to launch the X64 LIOS Installer.\n\nPlease connect to Wi-Fi or plug in an Ethernet cable using the network tray icon before proceeding.": "Eine aktive Internetverbindung ist erforderlich, um den X64 LIOS Installer zu starten.\n\nBitte verbinden Sie sich mit dem WLAN oder stecken Sie ein Ethernet-Kabel ein.",
        "Architecture:": "Architektur:",
        "Audit and contribute to the system's source code.": "Überprüfen Sie den Quellcode des Systems und tragen Sie dazu bei.",
        "Audit real-time CPU, RAM, and process usage with btop.": "Prüfen Sie CPU-, RAM- und Prozessauslastung in Echtzeit mit btop.",
        "Automated Snapper snapshots taken before each system update. If anything fails or breaks, restore your system in seconds directly from the bootloader menu.": "Automatische Snapper-Snapshots vor jedem Systemupdate. Bei Fehlern stellen Sie Ihr System sekundenschnell direkt aus dem Bootmenü wieder her.",
        "Automatic processor audit: modern CPUs receive high-performance optimized packages (v3/v4) for maximum speed; if unsupported, it uses standard versions for total compatibility without issues.": "Automatische Prozessorprüfung: Moderne CPUs erhalten optimierte Pakete (v3/v4); ältere Modelle nutzen Standardpakete für maximale Stabilität.",
        "Automatically detects your processor and installs the exact version adapted for it (whether old or next-generation).": "Erkennt automatisch Ihren Prozessor und installiert die genau dafür angepasste Version (egal ob alt oder Next-Generation).",
        "Avant-garde Aesthetics:": "Avantgardistische Ästhetik:",
        "Btrfs Snapshots & Rollback": "Btrfs-Snapshots & Rollback",
        "CPU": "CPU",
        "CPU & Architecture": "CPU & Architektur",
        "CachyOS Kernel + FalconD": "CachyOS-Kernel + FalconD",
        "Check deep CPU and RAM usage with btop.": "Überprüfen Sie die tiefgehende CPU- und RAM-Auslastung mit btop.",
        "Check the Official Wiki to learn about modules and shortcuts.": "Überprüfen Sie das offizielle Wiki, um mehr über Module und Verknüpfungen zu erfahren.",
        "Clean & Surgical System": "Sauberes & Chirurgisches System",
        "Close Test": "Test Schließen",
        "Continuous evolution based on Arch Linux. Your system seamlessly incorporates the latest hardware optimizations, kernel advances, and upstream software without reinstallations.": "Kontinuierliche Evolution auf Basis von Arch Linux. Ihr System integriert stets die neuesten Hardware-Optimierungen, Kernel-Fortschritte und Upstream-Software ohne Neuinstallationen.",
        "Continuous evolution based on Arch Linux. Your system seamlessly incorporates the latest hardware optimizations, libraries, and ecosystem tools as they release.": "Kontinuierliche Evolution auf Basis von Arch Linux. Integriert nahtlos die neuesten Hardware-Optimierungen, Bibliotheken und Werkzeuge.",
        "Custom-compiled high-performance kernels, advanced BORE/EEVDF schedulers, controlled mitigations, and strict pre-configurations for ultra-low latency gaming.": "Benutzerdefiniert kompilierte Hochleistungs-Kernel, fortschrittliche BORE/EEVDF-Scheduler, kontrollierte Mitigations und strenge Vorkonfigurationen für Spiele mit extrem niedriger Latenz.",
        "Cutting-Edge Rolling Release": "Spitzenklasse Rolling Release",
        "Design is not a whim. A beautiful and coherent environment inspires focus and control. Every pixel of the system obeys our strict Hacker-Minimalist art direction.": "Design ist keine Laune. Eine schöne und kohärente Umgebung inspiriert Konzentration und Kontrolle. Jeder Pixel des Systems gehorcht unserer strengen Hacker-Minimalismus Art Direction.",
        "Design is not an afterthought. Widescreen panoramic UI, Crimson & Charcoal color direction (#b31b1b / #0b0b0d), and vector iconography engineered for focus and control.": "Design ist kein Zufall. Breitbild-Panorama-UI, Farbgebung in Karminrot & Anthrazit (#b31b1b / #0b0b0d) und Vektor-Ikonographie für absolute Kontrolle.",
        "Discord Server": "Discord-Server",
        "Display Configuration": "Bildschirm-Konfiguration",
        "Documentation and Notes": "Dokumentation und Notizen",
        "During installation, the system audits your CPU: if it's old, it uses bulletproof generic packages; if it's modern, it activates Turbo Mode by injecting AVX2/AVX512 (v3/v4) repositories.": "Während der Installation prüft das System Ihre CPU: Wenn sie alt ist, verwendet sie kugelsichere generische Pakete; wenn sie modern ist, aktiviert sie den Turbo-Modus, indem sie AVX2/AVX512 (v3/v4) Repositories injiziert.",
        "During installation, the system audits your CPU: modern processors get AVX2/AVX512 (v3/v4) repositories injected below [x64-lios]. chwd autodetects NVIDIA, AMD, and Intel GPUs.": "Während der Installation prüft das System Ihre CPU: Moderne Prozessoren erhalten AVX2/AVX512-Repositories (v3/v4). chwd erkennt NVIDIA-, AMD- und Intel-GPUs.",
        "Ethernet Active": "Ethernet Aktiv",
        "Explore Live Environment": "Live-Umgebung Erkunden",
        "Frame Latency:": "Frame-Latenz:",
        "GPU": "GPU",
        "GUI-First philosophy for effortless everyday use, paired with an elite hacker terminal experience in Kitty, Fish shell, and Starship pills for power users.": "GUI-First-Philosophie für den Alltag, kombiniert mit einem erstklassigen Hacker-Terminal in Kitty, Fish und Starship für Power-User.",
        "GUI-First philosophy. The average user should never need to open a terminal. All the absolute power of Arch manageable entirely through graphical interfaces.": "GUI-First-Philosophie. Der durchschnittliche Benutzer sollte niemals ein Terminal öffnen müssen. Die gesamte absolute Macht von Arch, die vollständig über grafische Benutzeroberflächen verwaltet werden kann.",
        "GitHub Repository": "GitHub-Repository",
        "Graphics & Display": "Grafik & Anzeige",
        "HARDWARE DIAGNOSTICS & CONTROL": "HARDWARE-DIAGNOSE & STEUERUNG",
        "HIGH-PERFORMANCE ARCHITECTURE": "HOCHLEISTUNGS-ARCHITEKTUR",
        "Hacker Terminal": "Hacker-Terminal",
        "Hacker Terminal (Kitty)": "Hacker-Terminal (Kitty)",
        "Hardware Mutation (v3/v4)": "Hardware-Mutation (v3/v4)",
        "Hardware acceleration ready": "Hardwarebeschleunigung bereit",
        "Hardware:": "Hardware:",
        "Home": "Startseite",
        "Hybrid Rolling Release:": "Hybrid Rolling Release:",
        "Hybrid cascading repository model. We inject our patches on top of Arch Linux to ensure performance, without the colossal cost of recompiling everything.": "Hybrides kaskadierendes Repository-Modell. Wir injizieren unsere Patches auf Arch Linux, um die Leistung zu gewährleisten, ohne die kolossalen Kosten, alles neu kompilieren zu müssen.",
        "I. Absolute Freedom": "I. Absolute Freiheit",
        "II. Surgical Optimization": "II. Chirurgische Optimierung",
        "III. Multi-Environment Ecosystem": "III. Multi-Environment-Ökosystem",
        "IV. Sovereign Repositories": "IV. Souveräne Repositories",
        "IX. Cutting-Edge Rolling Release": "IX. Spitzenklasse Rolling Release",
        "In the era of covert corporate telemetry, your PC is your glass fortress. Zero telemetry, zero hidden trackers, zero reporting. What you do on your machine, dies on your machine.": "In der Ära der verdeckten Unternehmens-Telemetrie ist Ihr PC Ihre Glasfestung. Keine Telemetrie, keine versteckten Tracker, keine Berichte. Was Sie auf Ihrer Maschine tun, stirbt auf Ihrer Maschine.",
        "Install X64 LIOS": "X64 LIOS Installieren",
        "Install the System": "System Installieren",
        "Internet Connection Required": "Internetverbindung Erforderlich",
        "LIVE AUDIT": "Live-Audit",
        "LIVE VERIFICATIONS": "LIVE-VERIFIZIERUNGEN",
        "Launch Kitty with your transparent profile and ASCII logo.": "Starten Sie Kitty mit Ihrem transparenten Profil und ASCII-Logo.",
        "Launch an interactive 3D benchmark to measure GPU fluidity and frame rates.": "Starten Sie einen interaktiven 3D-Benchmark, um GPU-Leistung und Bildraten zu messen.",
        "Launch the Calamares installer to install X64 LIOS on your hard drive.": "Starten Sie das Calamares-Installationsprogramm, um X64 LIOS auf Ihrer Festplatte zu installieren.",
        "Lightweight installer with zero bloat. Heavy gaming platforms and emulators are cleanly delegated to post-installation setup in X64 Hello after first boot.": "Schlanker Installer ohne Ballast. Große Gaming-Plattformen werden sauber an X64 Hello nach dem ersten Start delegiert.",
        "Linux-CachyOS kernel with scx dynamic schedulers, FalconD gaming CPU affinity, ananicy-cpp priority tuning, and pure ZRAM in RAM for zero disk swap latency.": "Linux-CachyOS-Kernel mit scx-Schedulern, FalconD CPU-Affinität, ananicy-cpp und reinem ZRAM im Speicher für null Swap-Latenz.",
        "Live environment in KDE Plasma 6 Wayland, plus 8 official installation options (KDE, GNOME, COSMIC, Niri, Cinnamon, Xfce, Hyprland, and Server) with 16:9 previews.": "Live-Umgebung unter KDE Plasma 6 Wayland, plus 8 offizielle Installationsoptionen (KDE, GNOME, COSMIC, Niri, Cinnamon, Xfce, Hyprland, Server) mit 16:9-Vorschauen.",
        "Live session (~200MB ISO layers in RAM)": "Live-Sitzung (~200 MB ISO-Schichten im RAM)",
        "Low-level utilities for advanced system configuration.": "Low-Level-Dienstprogramme für erweiterte Systemkonfiguration.",
        "MASTER UTILITIES": "MASTER-WERKZEUGE",
        "Memory (RAM & ZRAM)": "Speicher (RAM & ZRAM)",
        "Minimize this window and test the extreme performance of the live system.": "Minimieren Sie dieses Fenster und testen Sie die extreme Leistung des Live-Systems.",
        "Native utilities to audit and manage your hardware during Live mode.": "Native Dienstprogramme zum Überprüfen und Verwalten Ihrer Hardware während des Live-Modus.",
        "Network": "Netzwerk",
        "No Connection": "Keine Verbindung",
        "Official Website": "Offizielle Website",
        "Open GParted to partition, format, or prepare disks.": "Öffnen Sie GParted, um Festplatten zu partitionieren, zu formatieren oder vorzubereiten.",
        "Open Source synergy. We inherit and polish battle-tested foundations, writing custom code and maintaining our own repositories only where we add sovereign value.": "Open-Source-Synergie. Wir übernehmen und veredeln bewährte Fundamente und pflegen eigene Repositories nur dort, wo wir echten Mehrwert bieten.",
        "Open Source synergy. We inherit and polish foundations proven by the Arch Linux purist elite, writing code and injecting custom repositories only where we truly add unique value.": "Open Source Synergie. Wir erben und polieren Grundlagen, die sich bei der puristischen Elite von Arch Linux bewährt haben, schreiben Code und injizieren benutzerdefinierte Repositories nur dort, wo wir wirklich einen einzigartigen Wert schaffen.",
        "Optimized execution pipeline": "Optimierte Ausführungs-Pipeline",
        "Panel": "Panel",
        "Partition Manager": "Partitionsmanager",
        "Partition Manager (GParted)": "Partitions-Manager (GParted)",
        "Philosophy": "Philosophie",
        "Pristine System:": "Makelloses System:",
        "Privacy by Design": "Datenschutz durch Design",
        "RAM": "RAM",
        "Ready Network": "Bereites Netzwerk",
        "Real-time hardware audit, idle memory telemetry, and express verification tools to tune your machine.": "Echtzeit-Hardware-Audit, Speicher-Telemetrie und Express-Werkzeuge zur Optimierung Ihres Systems.",
        "Real-time support channels and discussions.": "Echtzeit-Supportkanäle und Diskussionen.",
        "Resource Monitor": "Ressourcenmonitor",
        "Resource Monitor (btop)": "Ressourcen-Monitor (btop)",
        "Session:": "Sitzung:",
        "Smart Package System:": "Intelligentes Paketsystem:",
        "Sovereign cascading repository hierarchy. [x64-lios] holds priority #1 above Arch and CachyOS, delivering custom packages and optimizations directly without bottlenecks.": "Souveräne kaskadierende Repository-Hierarchie. [x64-lios] hat Priorität #1 über Arch und CachyOS und liefert eigene Pakete und Optimierungen ohne Engpässe.",
        "Standard GPU": "Standard-Grafikkarte",
        "Stereo Audio Test": "Stereo-Audiotest",
        "System": "System",
        "System Cockpit & Tools": "System-Cockpit & Werkzeuge",
        "System Tools": "Systemwerkzeuge",
        "Temporal immutability with Btrfs & automated Snapper snapshots. Multi-bootloader support choosing Limine, GRUB, systemd-boot, or rEFInd for effortless rollback.": "Zeitliche Unveränderlichkeit mit Btrfs und Snapper. Unterstützung für Limine, GRUB, systemd-boot oder rEFInd für mühelose Rollbacks.",
        "Temporal immutability with Btrfs and Snapper. rEFInd graphical boot manager to roll back in time after critical errors, eliminating the fear of Rolling Releases.": "Zeitliche Unveränderlichkeit mit Btrfs und Snapper. Der grafische Bootmanager rEFInd, um nach kritischen Fehlern in der Zeit zurückzuspringen und die Angst vor Rolling Releases zu beseitigen.",
        "The core of the system flies at Arch speed, but critical applications can be frozen using Flatpak or Distrobox to guarantee Debian-level stability on demand.": "Der Kern des Systems fliegt in Arch-Geschwindigkeit, aber kritische Anwendungen können mit Flatpak oder Distrobox eingefroren werden, um bei Bedarf Debian-Level-Stabilität zu gewährleisten.",
        "The freshness of Arch Linux combined with armored stability.": "Die Frische von Arch Linux kombiniert mit gepanzerter Stabilität.",
        "The purist operating system designed for maximum performance, minimal latency, and absolute control.": "Das puristische Betriebssystem für maximale Leistung, minimale Latenz und absolute Kontrolle.",
        "The user forges their destiny: KDE Plasma for comfort, GNOME for fluidity, or Hyprland X64 for purist minimalism with microscopic RAM usage.": "Der Benutzer schmiedet sein Schicksal: KDE Plasma für Komfort, GNOME für Flüssigkeit oder Hyprland X64 für puristischen Minimalismus mit mikroskopischem RAM-Verbrauch.",
        "Top Gaming Performance": "Spitzenklasse Gaming-Leistung",
        "Top Gaming Performance:": "Top Gaming-Leistung:",
        "UEFI x86_64 Boot": "UEFI x86_64 Boot",
        "Ultra-fluid, minimalist environments ready to choose.": "Ultra-flüssige, minimalistische Umgebungen stehen zur Auswahl.",
        "Ultra-low idle footprint": "Extrem geringer Leerlauf-Verbrauch",
        "Ultra-low latency CachyOS kernel base boosted with the X64 performance stack: FalconD gaming CPU affinity, dynamic scx schedulers, and real-time process tuning.": "CachyOS-Kernelbasis für extrem niedrige Latenz, verstärkt durch FalconD, dynamische scx-Scheduler und Echtzeit-Prozesstuning.",
        "Ultra-low latency and kernel optimizations to squeeze out every FPS.": "Extrem niedrige Latenz- und Kerneloptimierungen, um jeden FPS herauszupressen.",
        "Unknown": "Unbekannt",
        "Upstream purity of Arch Linux combined with the Shelly universal store. Zero PPAs, zero corporate ties, and 99% of the system software intact to ensure maximum stability.": "Upstream-Reinheit von Arch Linux kombiniert mit dem universellen Shelly-Store. Null PPAs, null Unternehmensbindungen und 99 % der Systemsoftware intakt, um maximale Stabilität zu gewährleisten.",
        "Upstream purity of Arch Linux with zero PPAs, zero corporate ties, and 99% of system packages intact. Combined with the AUR and modern GUI tools for complete freedom.": "Upstream-Reinheit von Arch Linux ohne PPAs und ohne Bindungen, mit 99% intakter Systemsoftware. Kombiniert mit dem AUR für absolute Freiheit.",
        "V. Hardware Mutation": "V. Hardware-Mutation",
        "VI. Modular Architecture": "VI. Modulare Architektur",
        "VII. Shield of Resilience": "VII. Schild der Resilienz",
        "VIII. The Death of the Terminal": "VIII. Der Tod des Terminals",
        "Verify left and right channels to ensure speakers and headphones work properly.": "Überprüfen Sie den linken und rechten Kanal, um sicherzustellen, dass Lautsprecher oder Kopfhörer einwandfrei funktionieren.",
        "Welcome to X64 LIOS": "Willkommen bei X64 LIOS",
        "Wi-Fi Active": "WLAN Aktiv",
        "X. Architectural Pragmatism": "X. Architektonischer Pragmatismus",
        "X64 Architectural Manifesto": "X64 Architektur-Manifest",
        "X64 Community": "X64-Community",
        "X64 LIOS is an open community of enthusiasts and developers. Join to receive support, share scripts, and discuss.": "X64 LIOS ist eine offene Gemeinschaft von Enthusiasten und Entwicklern. Treten Sie bei, um Unterstützung zu erhalten, Skripte auszutauschen und zu diskutieren.",
        "X64 LIOS is meticulously designed for performance purists. Our architecture guarantees you:": "X64 LIOS wurde akribisch für Leistungs-Puristen entwickelt. Unsere Architektur garantiert Ihnen:",
        "X64 LIOS was born as the ultimate answer to Linux fragmentation. We extract the raw power of high-performance kernels, the precision of the gaming ecosystem, and the purity of Arch to forge the definitive operating system.": "X64 LIOS wurde als ultimative Antwort auf die Linux-Fragmentierung geboren. Wir extrahieren die rohe Kraft von Hochleistungs-Kerneln, die Präzision des Gaming-Ökosystems und die Reinheit von Arch, um das definitive Betriebssystem zu schmieden.",
        "XI. Aesthetics as Function": "XI. Ästhetik als Funktion",
        "XII. Privacy by Design": "XII. Datenschutz durch Design",
        "You have started the Live session. Safely explore the environment without altering your hard drive, or proceed with the permanent system installation.": "Sie haben die Live-Sitzung gestartet. Erkunden Sie die Umgebung sicher, ohne Ihre Festplatte zu verändern, oder fahren Sie mit der dauerhaften Systeminstallation fort.",
        "ZRAM Active": "ZRAM Aktiv",
        "ZRAM Inactive": "ZRAM Inaktiv",
        "Zero bloatware and zero background idle services. An ultra-lean footprint consuming merely 600–800 MB of idle RAM, dedicating your hardware fully to gaming and maximum performance.": "Null Bloatware und keine Hintergrunddienste. Ein schlanker Speicherverbrauch von nur 600–800 MB im Leerlauf für maximale Gaming-Leistung.",
        "Zero bloatware, returning total control of your machine back to you.": "Kein Bloatware, gibt Ihnen die volle Kontrolle über Ihre Maschine zurück.",
        "Zero metrics collection, diagnostics, or background tracking. Unlike other operating systems, X64 LIOS never monitors your activity or sends your data anywhere.": "Keine Telemetrie, Diagnose oder Hintergrundüberwachung. X64 LIOS überwacht niemals Ihre Aktivitäten und sendet keinerlei Daten.",
        "Zero metrics collection, diagnostics, or covert background tracking. Unlike commercial operating systems, X64 LIOS never monitors your activity or phones home. Your hardware belongs to you.": "Keine Erfassung von Telemetrie, Diagnosen oder verdecktem Tracking. Im Gegensatz zu kommerziellen Systemen überwacht X64 LIOS Ihre Aktivitäten nie. Ihre Hardware gehört Ihnen.",
        "Zero telemetry by design. Your data is exclusively yours.": "Keine Telemetrie durch Design. Ihre Daten gehören ausschließlich Ihnen.",
        "Zero-Latency ZRAM": "Null-Latenz ZRAM",
    },
    "it": {
        "// ARCHITECTURAL FOUNDATIONS & MANIFESTO": "// FONDAMENTI E MANIFESTO ARCHITETTONICO",
        "3D Graphics & FPS Benchmark": "Benchmark Grafico 3D e FPS",
        "3D Graphics & FPS Test": "Test Grafico 3D e FPS",
        "8 Desktops to Choose": "8 Ambienti Desktop tra cui Scegliere",
        "A la carte profiles (Gaming, Hacker, Minimalist). Zero Bloatware. The ISO is a blank canvas; the resulting system is an exact forge of your identity.": "Profili à la carte (Gaming, Hacker, Minimalista). Zero Bloatware. L'ISO è una tela bianca; il sistema risultante è un'esatta forgia della tua identità.",
        "Absolute Privacy:": "Privacy Assoluta:",
        "Adjust monitor refresh rate (Hz), screen resolution, and desktop scaling.": "Regola la frequenza di aggiornamento (Hz), la risoluzione e il ridimensionamento.",
        "An active internet connection is required to launch the X64 LIOS Installer.\n\nPlease connect to Wi-Fi or plug in an Ethernet cable using the network tray icon before proceeding.": "È richiesta una connessione Internet attiva per avviare l'installer di X64 LIOS.\n\nConnettiti al Wi-Fi o inserisci un cavo Ethernet prima di procedere.",
        "Architecture:": "Architettura:",
        "Audit and contribute to the system's source code.": "Verifica e contribuisci al codice sorgente del sistema.",
        "Audit real-time CPU, RAM, and process usage with btop.": "Controlla l'utilizzo in tempo reale di CPU, RAM e processi con btop.",
        "Automated Snapper snapshots taken before each system update. If anything fails or breaks, restore your system in seconds directly from the bootloader menu.": "Istantanee automatiche Snapper prima di ogni aggiornamento. In caso di errori, ripristina il sistema in pochi secondi dal menu di avvio.",
        "Automatic processor audit: modern CPUs receive high-performance optimized packages (v3/v4) for maximum speed; if unsupported, it uses standard versions for total compatibility without issues.": "Audit automatico della CPU: i processori moderni ricevono pacchetti ottimizzati (v3/v4); i processori datati usano versioni standard stabili.",
        "Automatically detects your processor and installs the exact version adapted for it (whether old or next-generation).": "Rileva automaticamente il tuo processore e installa la versione esatta adattata ad esso (che sia vecchio o di ultima generazione).",
        "Avant-garde Aesthetics:": "Estetica All'avanguardia:",
        "Btrfs Snapshots & Rollback": "Istantanee Btrfs e Ripristino",
        "CPU": "CPU",
        "CPU & Architecture": "CPU e Architettura",
        "CachyOS Kernel + FalconD": "Kernel CachyOS + FalconD",
        "Check deep CPU and RAM usage with btop.": "Controlla l'uso profondo di CPU e RAM con btop.",
        "Check the Official Wiki to learn about modules and shortcuts.": "Controlla il Wiki ufficiale per saperne di più su moduli e scorciatoie.",
        "Clean & Surgical System": "Sistema Pulito e Chirurgico",
        "Close Test": "Chiudi Test",
        "Continuous evolution based on Arch Linux. Your system seamlessly incorporates the latest hardware optimizations, kernel advances, and upstream software without reinstallations.": "Evoluzione continua basata su Arch Linux. Il tuo sistema integra perfettamente le ultime ottimizzazioni hardware, progressi del kernel e software upstream senza reinstallazioni.",
        "Continuous evolution based on Arch Linux. Your system seamlessly incorporates the latest hardware optimizations, libraries, and ecosystem tools as they release.": "Evoluzione continua basata su Arch Linux. Integra perfettamente le più recenti ottimizzazioni hardware, librerie e strumenti.",
        "Custom-compiled high-performance kernels, advanced BORE/EEVDF schedulers, controlled mitigations, and strict pre-configurations for ultra-low latency gaming.": "Kernel ad alte prestazioni compilati su misura, scheduler BORE/EEVDF avanzati, mitigazioni controllate e rigide pre-configurazioni per giochi a latenza ultra-bassa.",
        "Cutting-Edge Rolling Release": "Rolling Release d'Avanguardia",
        "Design is not a whim. A beautiful and coherent environment inspires focus and control. Every pixel of the system obeys our strict Hacker-Minimalist art direction.": "Il design non è un capriccio. Un ambiente bello e coerente ispira concentrazione e controllo. Ogni pixel del sistema obbedisce alla nostra rigorosa direzione artistica Hacker-Minimalista.",
        "Design is not an afterthought. Widescreen panoramic UI, Crimson & Charcoal color direction (#b31b1b / #0b0b0d), and vector iconography engineered for focus and control.": "Il design non è casuale. Interfaccia panoramica, direzione cromatica cremisi e antracite (#b31b1b / #0b0b0d) e iconografia vettoriale.",
        "Discord Server": "Server Discord",
        "Display Configuration": "Configurazione Display",
        "Documentation and Notes": "Documentazione e Note",
        "During installation, the system audits your CPU: if it's old, it uses bulletproof generic packages; if it's modern, it activates Turbo Mode by injecting AVX2/AVX512 (v3/v4) repositories.": "Durante l'installazione, il sistema controlla la tua CPU: se è vecchia, usa pacchetti generici a prova di proiettile; se è moderna, attiva la modalità Turbo iniettando repository AVX2/AVX512 (v3/v4).",
        "During installation, the system audits your CPU: modern processors get AVX2/AVX512 (v3/v4) repositories injected below [x64-lios]. chwd autodetects NVIDIA, AMD, and Intel GPUs.": "Durante l'installazione il sistema rileva la tua CPU: i processori moderni attivano i repository AVX2/AVX512 (v3/v4). chwd rileva automaticamente le GPU.",
        "Ethernet Active": "Ethernet Attivo",
        "Explore Live Environment": "Esplora l'Ambiente Live",
        "Frame Latency:": "Latenza Frame:",
        "GPU": "GPU",
        "GUI-First philosophy for effortless everyday use, paired with an elite hacker terminal experience in Kitty, Fish shell, and Starship pills for power users.": "Filosofia GUI-First per l'uso quotidiano, unita a un terminale d'élite in Kitty, Fish e Starship per utenti avanzati.",
        "GUI-First philosophy. The average user should never need to open a terminal. All the absolute power of Arch manageable entirely through graphical interfaces.": "Filosofia GUI-First. L'utente medio non dovrebbe mai aver bisogno di aprire un terminale. Tutto il potere assoluto di Arch gestibile interamente attraverso interfacce grafiche.",
        "GitHub Repository": "Repository GitHub",
        "Graphics & Display": "Grafica e Display",
        "HARDWARE DIAGNOSTICS & CONTROL": "DIAGNOSTICA E CONTROLLO HARDWARE",
        "HIGH-PERFORMANCE ARCHITECTURE": "ARCHITETTURA AD ALTE PRESTAZIONI",
        "Hacker Terminal": "Terminale Hacker",
        "Hacker Terminal (Kitty)": "Terminale Hacker (Kitty)",
        "Hardware Mutation (v3/v4)": "Mutazione Hardware (v3/v4)",
        "Hardware acceleration ready": "Accelerazione hardware pronta",
        "Hardware:": "Hardware:",
        "Home": "Home",
        "Hybrid Rolling Release:": "Rolling Release Ibrido:",
        "Hybrid cascading repository model. We inject our patches on top of Arch Linux to ensure performance, without the colossal cost of recompiling everything.": "Modello ibrido di repository a cascata. Iniettiamo le nostre patch sopra Arch Linux per garantire prestazioni, senza il costo colossale di ricompilare tutto.",
        "I. Absolute Freedom": "I. Libertà Assoluta",
        "II. Surgical Optimization": "II. Ottimizzazione Chirurgica",
        "III. Multi-Environment Ecosystem": "III. Ecosistema Multi-Ambiente",
        "IV. Sovereign Repositories": "IV. Repository Sovrani",
        "IX. Cutting-Edge Rolling Release": "IX. Rolling Release d'Avanguardia",
        "In the era of covert corporate telemetry, your PC is your glass fortress. Zero telemetry, zero hidden trackers, zero reporting. What you do on your machine, dies on your machine.": "Nell'era della telemetria aziendale occulta, il tuo PC è la tua fortezza di vetro. Zero telemetria, zero tracker nascosti, zero rapporti. Quello che fai sulla tua macchina, muore sulla tua macchina.",
        "Install X64 LIOS": "Installa X64 LIOS",
        "Install the System": "Installa il Sistema",
        "Internet Connection Required": "Connessione Internet Richiesta",
        "LIVE AUDIT": "Audit dal Vivo",
        "LIVE VERIFICATIONS": "VERIFICHE DAL VIVO",
        "Launch Kitty with your transparent profile and ASCII logo.": "Avvia Kitty con il tuo profilo trasparente e logo ASCII.",
        "Launch an interactive 3D benchmark to measure GPU fluidity and frame rates.": "Avvia un benchmark 3D interattivo per misurare fluidità e frame rate della GPU.",
        "Launch the Calamares installer to install X64 LIOS on your hard drive.": "Avvia l'installatore Calamares per installare X64 LIOS sul tuo disco rigido.",
        "Lightweight installer with zero bloat. Heavy gaming platforms and emulators are cleanly delegated to post-installation setup in X64 Hello after first boot.": "Installer leggero senza bloatware. Le piattaforme di gioco pesanti sono delegate a X64 Hello dopo il primo avvio.",
        "Linux-CachyOS kernel with scx dynamic schedulers, FalconD gaming CPU affinity, ananicy-cpp priority tuning, and pure ZRAM in RAM for zero disk swap latency.": "Kernel Linux-CachyOS con scheduler dinamici scx, affinità FalconD per il gaming, ananicy-cpp e pura ZRAM per latenza swap zero.",
        "Live environment in KDE Plasma 6 Wayland, plus 8 official installation options (KDE, GNOME, COSMIC, Niri, Cinnamon, Xfce, Hyprland, and Server) with 16:9 previews.": "Ambiente Live in KDE Plasma 6 Wayland, più 8 opzioni di installazione (KDE, GNOME, COSMIC, Niri, Cinnamon, Xfce, Hyprland, Server) con anteprime 16:9.",
        "Live session (~200MB ISO layers in RAM)": "Sessione Live (~200MB di livelli ISO in RAM)",
        "Low-level utilities for advanced system configuration.": "Utilità di basso livello per la configurazione avanzata del sistema.",
        "MASTER UTILITIES": "STRUMENTI PRINCIPALI",
        "Memory (RAM & ZRAM)": "Memoria (RAM e ZRAM)",
        "Minimize this window and test the extreme performance of the live system.": "Minimizza questa finestra e prova le prestazioni estreme del sistema live.",
        "Native utilities to audit and manage your hardware during Live mode.": "Utilità native per controllare e gestire l'hardware durante la modalità Live.",
        "Network": "Rete",
        "No Connection": "Nessuna Connessione",
        "Official Website": "Sito Web Ufficiale",
        "Open GParted to partition, format, or prepare disks.": "Apri GParted per partizionare, formattare o preparare i dischi.",
        "Open Source synergy. We inherit and polish battle-tested foundations, writing custom code and maintaining our own repositories only where we add sovereign value.": "Sinergia Open Source. Perfezioniamo solide fondamenta collaudate, sviluppando codice proprietario solo dove creiamo reale valore sovrano.",
        "Open Source synergy. We inherit and polish foundations proven by the Arch Linux purist elite, writing code and injecting custom repositories only where we truly add unique value.": "Sinergia Open Source. Ereditiamo e perfezioniamo fondamenta provate dall'élite purista di Arch Linux, scrivendo codice e iniettando repository personalizzati solo dove aggiungiamo davvero un valore unico.",
        "Optimized execution pipeline": "Pipeline di esecuzione ottimizzata",
        "Panel": "Pannello",
        "Partition Manager": "Gestore Partizioni",
        "Partition Manager (GParted)": "Gestore Partizioni (GParted)",
        "Philosophy": "Filosofia",
        "Pristine System:": "Sistema Incontaminato:",
        "Privacy by Design": "Privacy Fin dalla Progettazione",
        "RAM": "RAM",
        "Ready Network": "Rete Pronta",
        "Real-time hardware audit, idle memory telemetry, and express verification tools to tune your machine.": "Audit hardware in tempo reale, telemetria della memoria e strumenti rapidi per ottimizzare la macchina.",
        "Real-time support channels and discussions.": "Canali di supporto in tempo reale e discussioni.",
        "Resource Monitor": "Monitor di Risorse",
        "Resource Monitor (btop)": "Monitor delle Risorse (btop)",
        "Session:": "Sessione:",
        "Smart Package System:": "Sistema di Pacchetti Intelligente:",
        "Sovereign cascading repository hierarchy. [x64-lios] holds priority #1 above Arch and CachyOS, delivering custom packages and optimizations directly without bottlenecks.": "Gerarchia sovrana di repository a cascata. [x64-lios] ha priorità #1 su Arch e CachyOS, fornendo pacchetti personalizzati e ottimizzazioni direttamente senza colli di bottiglia.",
        "Standard GPU": "GPU Standard",
        "Stereo Audio Test": "Test Audio Stereo",
        "System": "Sistema",
        "System Cockpit & Tools": "Cockpit di Sistema e Strumenti",
        "System Tools": "Strumenti di Sistema",
        "Temporal immutability with Btrfs & automated Snapper snapshots. Multi-bootloader support choosing Limine, GRUB, systemd-boot, or rEFInd for effortless rollback.": "Immutabilità temporale con Btrfs e snapshot automatici Snapper. Supporto multi-bootloader con Limine, GRUB, systemd-boot o rEFInd.",
        "Temporal immutability with Btrfs and Snapper. rEFInd graphical boot manager to roll back in time after critical errors, eliminating the fear of Rolling Releases.": "Immutabilità temporale con Btrfs e Snapper. Gestore di avvio grafico rEFInd per tornare indietro nel tempo dopo errori critici, eliminando la paura delle Rolling Release.",
        "The core of the system flies at Arch speed, but critical applications can be frozen using Flatpak or Distrobox to guarantee Debian-level stability on demand.": "Il nucleo del sistema vola a velocità Arch, ma le applicazioni critiche possono essere congelate usando Flatpak o Distrobox per garantire la stabilità a livello Debian su richiesta.",
        "The freshness of Arch Linux combined with armored stability.": "La freschezza di Arch Linux combinata con una stabilità blindata.",
        "The purist operating system designed for maximum performance, minimal latency, and absolute control.": "Il sistema operativo purista progettato per le massime prestazioni, minima latenza e controllo assoluto.",
        "The user forges their destiny: KDE Plasma for comfort, GNOME for fluidity, or Hyprland X64 for purist minimalism with microscopic RAM usage.": "L'utente forgia il proprio destino: KDE Plasma per il comfort, GNOME per la fluidità o Hyprland X64 per un minimalismo purista con uso microscopico della RAM.",
        "Top Gaming Performance": "Massime Prestazioni di Gioco",
        "Top Gaming Performance:": "Prestazioni di Gioco Top:",
        "UEFI x86_64 Boot": "Avvio UEFI x86_64",
        "Ultra-fluid, minimalist environments ready to choose.": "Ambienti ultra-fluidi e minimalisti pronti per essere scelti.",
        "Ultra-low idle footprint": "Consumo di memoria minimo a riposo",
        "Ultra-low latency CachyOS kernel base boosted with the X64 performance stack: FalconD gaming CPU affinity, dynamic scx schedulers, and real-time process tuning.": "Base kernel CachyOS a bassissima latenza potenziata con lo stack X64: affinità FalconD, scheduler dinamici scx e tuning in tempo reale.",
        "Ultra-low latency and kernel optimizations to squeeze out every FPS.": "Latenza ultra-bassa e ottimizzazioni del kernel per spremere ogni FPS.",
        "Unknown": "Sconosciuto",
        "Upstream purity of Arch Linux combined with the Shelly universal store. Zero PPAs, zero corporate ties, and 99% of the system software intact to ensure maximum stability.": "Purezza upstream di Arch Linux combinata con lo store universale Shelly. Zero PPA, zero legami aziendali e 99% del software di sistema intatto per garantire la massima stabilità.",
        "Upstream purity of Arch Linux with zero PPAs, zero corporate ties, and 99% of system packages intact. Combined with the AUR and modern GUI tools for complete freedom.": "Purezza di Arch Linux con zero PPA, zero vincoli aziendali e 99% dei pacchetti intatti. Con AUR e strumenti grafici moderni per una libertà totale.",
        "V. Hardware Mutation": "V. Mutazione Hardware",
        "VI. Modular Architecture": "VI. Architettura Modulare",
        "VII. Shield of Resilience": "VII. Scudo di Resilienza",
        "VIII. The Death of the Terminal": "VIII. La Morte del Terminale",
        "Verify left and right channels to ensure speakers and headphones work properly.": "Verifica i canali sinistro e destro per accertarti del corretto funzionamento di altoparlanti e cuffie.",
        "Welcome to X64 LIOS": "Benvenuti in X64 LIOS",
        "Wi-Fi Active": "Wi-Fi Attivo",
        "X. Architectural Pragmatism": "X. Pragmatismo Architettonico",
        "X64 Architectural Manifesto": "Manifesto Architettonico X64",
        "X64 Community": "Comunità X64",
        "X64 LIOS is an open community of enthusiasts and developers. Join to receive support, share scripts, and discuss.": "X64 LIOS è una comunità aperta di appassionati e sviluppatori. Unisciti per ricevere supporto, condividere script e discutere.",
        "X64 LIOS is meticulously designed for performance purists. Our architecture guarantees you:": "X64 LIOS è meticolosamente progettato per i puristi delle prestazioni. La nostra architettura ti garantisce:",
        "X64 LIOS was born as the ultimate answer to Linux fragmentation. We extract the raw power of high-performance kernels, the precision of the gaming ecosystem, and the purity of Arch to forge the definitive operating system.": "X64 LIOS è nato come la risposta definitiva alla frammentazione di Linux. Estraiamo la potenza bruta dei kernel ad alte prestazioni, la precisione dell'ecosistema di gioco e la purezza di Arch per forgiare il sistema operativo definitivo.",
        "XI. Aesthetics as Function": "XI. L'Estetica come Funzione",
        "XII. Privacy by Design": "XII. Privacy fin dalla Progettazione",
        "You have started the Live session. Safely explore the environment without altering your hard drive, or proceed with the permanent system installation.": "Hai avviato la sessione Live. Esplora l'ambiente in sicurezza senza alterare il tuo disco rigido, o procedi con l'installazione permanente del sistema.",
        "ZRAM Active": "ZRAM Attivo",
        "ZRAM Inactive": "ZRAM Inattivo",
        "Zero bloatware and zero background idle services. An ultra-lean footprint consuming merely 600–800 MB of idle RAM, dedicating your hardware fully to gaming and maximum performance.": "Zero bloatware e nessun servizio residuo in background. Consumo minimo di soli 600–800 MB di RAM a riposo, dedicando tutto l'hardware al gioco.",
        "Zero bloatware, returning total control of your machine back to you.": "Zero bloatware, restituendoti il controllo totale della tua macchina.",
        "Zero metrics collection, diagnostics, or background tracking. Unlike other operating systems, X64 LIOS never monitors your activity or sends your data anywhere.": "Zero telemetria, diagnostica o tracciamento nascosto. X64 LIOS non controlla mai la tua attività né invia dati all'esterno.",
        "Zero metrics collection, diagnostics, or covert background tracking. Unlike commercial operating systems, X64 LIOS never monitors your activity or phones home. Your hardware belongs to you.": "Nessuna raccolta di metriche, diagnostica o tracciamento nascosto in background. A differenza dei sistemi commerciali, X64 LIOS non monitora mai le tue attività. Il tuo hardware appartiene a te.",
        "Zero telemetry by design. Your data is exclusively yours.": "Zero telemetria di progettazione. I tuoi dati sono esclusivamente tuoi.",
        "Zero-Latency ZRAM": "ZRAM a Latenza Zero",
    },
    "pt": {
        "// ARCHITECTURAL FOUNDATIONS & MANIFESTO": "// FUNDAMENTOS E MANIFESTO ARQUITETÔNICO",
        "3D Graphics & FPS Benchmark": "Benchmark Gráfico 3D e FPS",
        "3D Graphics & FPS Test": "Teste Gráfico 3D e FPS",
        "8 Desktops to Choose": "8 Ambientes para Escolher",
        "A la carte profiles (Gaming, Hacker, Minimalist). Zero Bloatware. The ISO is a blank canvas; the resulting system is an exact forge of your identity.": "Perfis à la carte (Gaming, Hacker, Minimalista). Zero Bloatware. A ISO é uma tela em branco; o sistema resultante é uma forja exata da sua identidade.",
        "Absolute Privacy:": "Privacidade Absoluta:",
        "Adjust monitor refresh rate (Hz), screen resolution, and desktop scaling.": "Ajuste a taxa de atualização (Hz), resolução e escala do monitor.",
        "An active internet connection is required to launch the X64 LIOS Installer.\n\nPlease connect to Wi-Fi or plug in an Ethernet cable using the network tray icon before proceeding.": "É necessária uma conexão de internet ativa para iniciar o instalador do X64 LIOS.\n\nConecte-se ao Wi-Fi ou insira um cabo Ethernet antes de continuar.",
        "Architecture:": "Arquitetura:",
        "Audit and contribute to the system's source code.": "Audite e contribua para o código-fonte do sistema.",
        "Audit real-time CPU, RAM, and process usage with btop.": "Audite o uso em tempo real de CPU, RAM e processos com o btop.",
        "Automated Snapper snapshots taken before each system update. If anything fails or breaks, restore your system in seconds directly from the bootloader menu.": "Instantâneos automáticos do Snapper antes de cada atualização. Se algo falhar, restaure seu sistema em segundos diretamente pelo menu de boot.",
        "Automatic processor audit: modern CPUs receive high-performance optimized packages (v3/v4) for maximum speed; if unsupported, it uses standard versions for total compatibility without issues.": "Auditoria automática de processador: CPUs modernas recebem pacotes otimizados (v3/v4); CPUs mais antigas usam versões padrão estáveis.",
        "Automatically detects your processor and installs the exact version adapted for it (whether old or next-generation).": "Detecta automaticamente seu processador e instala a versão exata adaptada para ele (seja antigo ou de nova geração).",
        "Avant-garde Aesthetics:": "Estética Vanguarda:",
        "Btrfs Snapshots & Rollback": "Snapshots Btrfs e Restauração",
        "CPU": "CPU",
        "CPU & Architecture": "CPU e Arquitetura",
        "CachyOS Kernel + FalconD": "Kernel CachyOS + FalconD",
        "Check deep CPU and RAM usage with btop.": "Verifique o uso profundo de CPU e RAM com o btop.",
        "Check the Official Wiki to learn about modules and shortcuts.": "Consulte a Wiki oficial para aprender sobre módulos e atalhos.",
        "Clean & Surgical System": "Sistema Limpo e Cirúrgico",
        "Close Test": "Fechar Teste",
        "Continuous evolution based on Arch Linux. Your system seamlessly incorporates the latest hardware optimizations, kernel advances, and upstream software without reinstallations.": "Evolução contínua baseada no Arch Linux. Seu sistema incorpora perfeitamente as últimas otimizações de hardware, avanços de kernel e software upstream sem reinstalações.",
        "Continuous evolution based on Arch Linux. Your system seamlessly incorporates the latest hardware optimizations, libraries, and ecosystem tools as they release.": "Evolução contínua baseada no Arch Linux. Incorpora as mais recentes otimizações de hardware, bibliotecas e ferramentas.",
        "Custom-compiled high-performance kernels, advanced BORE/EEVDF schedulers, controlled mitigations, and strict pre-configurations for ultra-low latency gaming.": "Kernels de alto desempenho compilados sob medida, agendadores BORE/EEVDF avançados, mitigações controladas e pré-configurações rigorosas para jogos de latência ultrabaixa.",
        "Cutting-Edge Rolling Release": "Rolling Release de Vanguarda",
        "Design is not a whim. A beautiful and coherent environment inspires focus and control. Every pixel of the system obeys our strict Hacker-Minimalist art direction.": "O design não é um capricho. Um ambiente bonito e coerente inspira foco e controle. Cada pixel do sistema obedece à nossa rígida direção de arte Hacker-Minimalista.",
        "Design is not an afterthought. Widescreen panoramic UI, Crimson & Charcoal color direction (#b31b1b / #0b0b0d), and vector iconography engineered for focus and control.": "O design não é mero detalhe. Interface panorâmica, paleta Carmim e Carvão (#b31b1b / #0b0b0d) e iconografia vetorial refinada.",
        "Discord Server": "Servidor do Discord",
        "Display Configuration": "Configuração de Vídeo",
        "Documentation and Notes": "Documentação e Notas",
        "During installation, the system audits your CPU: if it's old, it uses bulletproof generic packages; if it's modern, it activates Turbo Mode by injecting AVX2/AVX512 (v3/v4) repositories.": "Durante a instalação, o sistema audita sua CPU: se for antiga, usa pacotes genéricos à prova de balas; se for moderna, ativa o Modo Turbo injetando repositórios AVX2/AVX512 (v3/v4).",
        "During installation, the system audits your CPU: modern processors get AVX2/AVX512 (v3/v4) repositories injected below [x64-lios]. chwd autodetects NVIDIA, AMD, and Intel GPUs.": "Durante a instalação, o sistema analisa sua CPU: processadores modernos ativam repositórios AVX2/AVX512 (v3/v4). O chwd detecta GPUs automaticamente.",
        "Ethernet Active": "Ethernet Ativa",
        "Explore Live Environment": "Explorar o Ambiente Live",
        "Frame Latency:": "Latência de Quadro:",
        "GPU": "GPU",
        "GUI-First philosophy for effortless everyday use, paired with an elite hacker terminal experience in Kitty, Fish shell, and Starship pills for power users.": "Filosofia GUI-First para facilidade diária, combinada com terminal hacker no Kitty com Fish e Starship para usuários avançados.",
        "GUI-First philosophy. The average user should never need to open a terminal. All the absolute power of Arch manageable entirely through graphical interfaces.": "Filosofia GUI-First. O usuário médio nunca precisará abrir um terminal. Todo o poder absoluto do Arch gerenciável inteiramente através de interfaces gráficas.",
        "GitHub Repository": "Repositório do GitHub",
        "Graphics & Display": "Gráficos e Monitor",
        "HARDWARE DIAGNOSTICS & CONTROL": "DIAGNÓSTICO E CONTROLE DE HARDWARE",
        "HIGH-PERFORMANCE ARCHITECTURE": "ARQUITETURA DE ALTO DESEMPENHO",
        "Hacker Terminal": "Terminal Hacker",
        "Hacker Terminal (Kitty)": "Terminal Hacker (Kitty)",
        "Hardware Mutation (v3/v4)": "Mutação de Hardware (v3/v4)",
        "Hardware acceleration ready": "Aceleração por hardware pronta",
        "Hardware:": "Hardware:",
        "Home": "Início",
        "Hybrid Rolling Release:": "Rolling Release Híbrido:",
        "Hybrid cascading repository model. We inject our patches on top of Arch Linux to ensure performance, without the colossal cost of recompiling everything.": "Modelo híbrido de repositórios em cascata. Injetamos nossos patches em cima do Arch Linux para garantir desempenho, sem o custo colossal de recompilar tudo.",
        "I. Absolute Freedom": "I. Liberdade Absoluta",
        "II. Surgical Optimization": "II. Otimização Cirúrgica",
        "III. Multi-Environment Ecosystem": "III. Ecossistema Multi-Ambiente",
        "IV. Sovereign Repositories": "IV. Repositórios Soberanos",
        "IX. Cutting-Edge Rolling Release": "IX. Rolling Release de Vanguarda",
        "In the era of covert corporate telemetry, your PC is your glass fortress. Zero telemetry, zero hidden trackers, zero reporting. What you do on your machine, dies on your machine.": "Na era da telemetria corporativa encoberta, seu PC é sua fortaleza de vidro. Zero telemetria, zero rastreadores ocultos, zero relatórios. O que você faz na sua máquina, morre na sua máquina.",
        "Install X64 LIOS": "Instalar X64 LIOS",
        "Install the System": "Instalar o Sistema",
        "Internet Connection Required": "Conexão com a Internet Necessária",
        "LIVE AUDIT": "Auditoria ao Vivo",
        "LIVE VERIFICATIONS": "VERIFICAÇÕES AO VIVO",
        "Launch Kitty with your transparent profile and ASCII logo.": "Inicie o Kitty com seu perfil transparente e logotipo ASCII.",
        "Launch an interactive 3D benchmark to measure GPU fluidity and frame rates.": "Execute um benchmark 3D interativo para medir a fluidez e taxas de quadro da GPU.",
        "Launch the Calamares installer to install X64 LIOS on your hard drive.": "Inicie o instalador Calamares para instalar o X64 LIOS no seu disco rígido.",
        "Lightweight installer with zero bloat. Heavy gaming platforms and emulators are cleanly delegated to post-installation setup in X64 Hello after first boot.": "Instalador superleve sem bloatware. Plataformas de jogos pesadas são delegadas ao X64 Hello após a primeira inicialização.",
        "Linux-CachyOS kernel with scx dynamic schedulers, FalconD gaming CPU affinity, ananicy-cpp priority tuning, and pure ZRAM in RAM for zero disk swap latency.": "Kernel Linux-CachyOS com schedulers dinâmicos scx, afinidade FalconD para jogos, ananicy-cpp e ZRAM pura para latência zero de swap.",
        "Live environment in KDE Plasma 6 Wayland, plus 8 official installation options (KDE, GNOME, COSMIC, Niri, Cinnamon, Xfce, Hyprland, and Server) with 16:9 previews.": "Ambiente Live em KDE Plasma 6 Wayland, com 8 opções oficiais de instalação (KDE, GNOME, COSMIC, Niri, Cinnamon, Xfce, Hyprland, Servidor) e prévias 16:9.",
        "Live session (~200MB ISO layers in RAM)": "Sessão Live (~200MB de camadas ISO na RAM)",
        "Low-level utilities for advanced system configuration.": "Utilitários de baixo nível para configuração avançada do sistema.",
        "MASTER UTILITIES": "UTILITÁRIOS MESTRES",
        "Memory (RAM & ZRAM)": "Memória (RAM e ZRAM)",
        "Minimize this window and test the extreme performance of the live system.": "Minimize esta janela e teste o desempenho extremo do sistema ao vivo.",
        "Native utilities to audit and manage your hardware during Live mode.": "Utilitários nativos para auditar e gerenciar seu hardware no modo Live.",
        "Network": "Rede",
        "No Connection": "Sem Conexão",
        "Official Website": "Site Oficial",
        "Open GParted to partition, format, or prepare disks.": "Abra o GParted para particionar, formatar ou preparar discos.",
        "Open Source synergy. We inherit and polish battle-tested foundations, writing custom code and maintaining our own repositories only where we add sovereign value.": "Sinergia Open Source. Herdamos bases sólidas e criamos código próprio somente onde agregamos valor soberano e exclusivo.",
        "Open Source synergy. We inherit and polish foundations proven by the Arch Linux purist elite, writing code and injecting custom repositories only where we truly add unique value.": "Sinergia Open Source. Herdamos e lapidamos alicerces comprovados pela elite purista do Arch Linux, escrevendo código e injetando repositórios customizados apenas onde realmente agregamos valor único.",
        "Optimized execution pipeline": "Pipeline de execução otimizado",
        "Panel": "Painel",
        "Partition Manager": "Gerenciador de Partições",
        "Partition Manager (GParted)": "Gerenciador de Partições (GParted)",
        "Philosophy": "Filosofia",
        "Pristine System:": "Sistema Impecável:",
        "Privacy by Design": "Privacidade por Concepção",
        "RAM": "RAM",
        "Ready Network": "Rede Pronta",
        "Real-time hardware audit, idle memory telemetry, and express verification tools to tune your machine.": "Auditoria de hardware em tempo real, telemetria de memória e ferramentas de verificação para ajustar sua máquina.",
        "Real-time support channels and discussions.": "Canais de suporte em tempo real e discussões.",
        "Resource Monitor": "Monitor de Recursos",
        "Resource Monitor (btop)": "Monitor de Recursos (btop)",
        "Session:": "Sessão:",
        "Smart Package System:": "Sistema de Pacotes Inteligente:",
        "Sovereign cascading repository hierarchy. [x64-lios] holds priority #1 above Arch and CachyOS, delivering custom packages and optimizations directly without bottlenecks.": "Hierarquia soberana de repositórios em cascata. [x64-lios] tem prioridade #1 sobre Arch e CachyOS, fornecendo pacotes personalizados e otimizações diretamente sem gargalos.",
        "Standard GPU": "GPU Padrão",
        "Stereo Audio Test": "Teste de Áudio Estéreo",
        "System": "Sistema",
        "System Cockpit & Tools": "Cockpit do Sistema e Ferramentas",
        "System Tools": "Ferramentas do Sistema",
        "Temporal immutability with Btrfs & automated Snapper snapshots. Multi-bootloader support choosing Limine, GRUB, systemd-boot, or rEFInd for effortless rollback.": "Imutabilidade temporal com Btrfs e snapshots automáticos do Snapper. Suporte para Limine, GRUB, systemd-boot ou rEFInd.",
        "Temporal immutability with Btrfs and Snapper. rEFInd graphical boot manager to roll back in time after critical errors, eliminating the fear of Rolling Releases.": "Imutabilidade temporal com Btrfs e Snapper. Gerenciador de inicialização gráfico rEFInd para voltar no tempo após erros críticos, eliminando o medo de Rolling Releases.",
        "The core of the system flies at Arch speed, but critical applications can be frozen using Flatpak or Distrobox to guarantee Debian-level stability on demand.": "O núcleo do sistema voa na velocidade do Arch, mas os aplicativos críticos podem ser congelados usando Flatpak ou Distrobox para garantir estabilidade no nível do Debian sob demanda.",
        "The freshness of Arch Linux combined with armored stability.": "O frescor do Arch Linux combinado com uma estabilidade blindada.",
        "The purist operating system designed for maximum performance, minimal latency, and absolute control.": "O sistema operacional purista projetado para máximo desempenho, latência mínima e controle absoluto.",
        "The user forges their destiny: KDE Plasma for comfort, GNOME for fluidity, or Hyprland X64 for purist minimalism with microscopic RAM usage.": "O usuário forja o seu destino: KDE Plasma para conforto, GNOME para fluidez, ou Hyprland X64 para minimalismo purista com uso microscópico de RAM.",
        "Top Gaming Performance": "Desempenho Gamer de Alto Nível",
        "Top Gaming Performance:": "Desempenho Top em Jogos:",
        "UEFI x86_64 Boot": "Inicialização UEFI x86_64",
        "Ultra-fluid, minimalist environments ready to choose.": "Ambientes ultra-fluidos, minimalistas e prontos para escolher.",
        "Ultra-low idle footprint": "Consumo mínimo de memória em repouso",
        "Ultra-low latency CachyOS kernel base boosted with the X64 performance stack: FalconD gaming CPU affinity, dynamic scx schedulers, and real-time process tuning.": "Base de kernel CachyOS de ultrabaixa latência turbinada com FalconD, schedulers scx dinâmicos e ajustes em tempo real.",
        "Ultra-low latency and kernel optimizations to squeeze out every FPS.": "Latência ultrabaixa e otimizações do kernel para espremer cada FPS.",
        "Unknown": "Desconhecido",
        "Upstream purity of Arch Linux combined with the Shelly universal store. Zero PPAs, zero corporate ties, and 99% of the system software intact to ensure maximum stability.": "Pureza upstream do Arch Linux combinada com a loja universal Shelly. Zero PPAs, zero laços corporativos e 99% do software de sistema intacto para garantir estabilidade máxima.",
        "Upstream purity of Arch Linux with zero PPAs, zero corporate ties, and 99% of system packages intact. Combined with the AUR and modern GUI tools for complete freedom.": "Pureza do Arch Linux upstream sem PPAs e sem vínculos corporativos, com 99% dos pacotes intactos. Aliado ao AUR para liberdade total.",
        "V. Hardware Mutation": "V. Mutação de Hardware",
        "VI. Modular Architecture": "VI. Arquitetura Modular",
        "VII. Shield of Resilience": "VII. Escudo de Resiliência",
        "VIII. The Death of the Terminal": "VIII. A Morte do Terminal",
        "Verify left and right channels to ensure speakers and headphones work properly.": "Verifique os canais esquerdo e direito para assegurar o funcionamento de alto-falantes e fones.",
        "Welcome to X64 LIOS": "Bem-vindo ao X64 LIOS",
        "Wi-Fi Active": "Wi-Fi Ativo",
        "X. Architectural Pragmatism": "X. Pragmatismo Arquitetônico",
        "X64 Architectural Manifesto": "Manifesto Arquitetônico X64",
        "X64 Community": "Comunidade X64",
        "X64 LIOS is an open community of enthusiasts and developers. Join to receive support, share scripts, and discuss.": "O X64 LIOS é uma comunidade aberta de entusiastas e desenvolvedores. Junte-se para receber suporte, compartilhar scripts e discutir.",
        "X64 LIOS is meticulously designed for performance purists. Our architecture guarantees you:": "O X64 LIOS foi meticulosamente projetado para os puristas do desempenho. Nossa arquitetura garante:",
        "X64 LIOS was born as the ultimate answer to Linux fragmentation. We extract the raw power of high-performance kernels, the precision of the gaming ecosystem, and the purity of Arch to forge the definitive operating system.": "O X64 LIOS nasceu como a resposta definitiva para a fragmentação do Linux. Extraímos a potência bruta dos kernels de alto desempenho, a precisão do ecossistema de jogos e a pureza do Arch para forjar o sistema operacional definitivo.",
        "XI. Aesthetics as Function": "XI. A Estética como Função",
        "XII. Privacy by Design": "XII. Privacidade por Design",
        "You have started the Live session. Safely explore the environment without altering your hard drive, or proceed with the permanent system installation.": "Você iniciou a sessão Live. Explore o ambiente com segurança sem alterar seu disco rígido ou prossiga com a instalação permanente do sistema.",
        "ZRAM Active": "ZRAM Ativo",
        "ZRAM Inactive": "ZRAM Inativo",
        "Zero bloatware and zero background idle services. An ultra-lean footprint consuming merely 600–800 MB of idle RAM, dedicating your hardware fully to gaming and maximum performance.": "Zero bloatware e sem serviços residuais em segundo plano. Consumo leve de apenas 600–800 MB de RAM em repouso, dedicando tudo aos jogos.",
        "Zero bloatware, returning total control of your machine back to you.": "Zero bloatware, devolvendo a você o controle total de sua máquina.",
        "Zero metrics collection, diagnostics, or background tracking. Unlike other operating systems, X64 LIOS never monitors your activity or sends your data anywhere.": "Zero coleta de métricas, diagnósticos ou rastreamento. O X64 LIOS nunca monitora suas ações nem transmite dados.",
        "Zero metrics collection, diagnostics, or covert background tracking. Unlike commercial operating systems, X64 LIOS never monitors your activity or phones home. Your hardware belongs to you.": "Zero coleta de métricas, diagnósticos ou rastreamento oculto em segundo plano. Ao contrário de sistemas comerciais, o X64 LIOS nunca monitora sua atividade. Seu hardware pertence a você.",
        "Zero telemetry by design. Your data is exclusively yours.": "Zero telemetria por design. Seus dados são exclusivamente seus.",
        "Zero-Latency ZRAM": "ZRAM Latência Zero",
    },
    "ru": {
        "// ARCHITECTURAL FOUNDATIONS & MANIFESTO": "// АРХИТЕКТУРНЫЕ ОСНОВЫ И МАНИФЕСТ",
        "3D Graphics & FPS Benchmark": "3D-Графический Бенчмарк и FPS",
        "3D Graphics & FPS Test": "Тест 3D-Графики и FPS",
        "8 Desktops to Choose": "8 Рабочих Столов на Выбор",
        "A la carte profiles (Gaming, Hacker, Minimalist). Zero Bloatware. The ISO is a blank canvas; the resulting system is an exact forge of your identity.": "Профили на выбор (Игровой, Хакерский, Минималистичный). Ноль Bloatware. ISO — чистый холст; полученная система — точная кузница вашей личности.",
        "Absolute Privacy:": "Абсолютная конфиденциальность:",
        "Adjust monitor refresh rate (Hz), screen resolution, and desktop scaling.": "Настройка частоты обновления (Гц), разрешения экрана и масштабирования.",
        "An active internet connection is required to launch the X64 LIOS Installer.\n\nPlease connect to Wi-Fi or plug in an Ethernet cable using the network tray icon before proceeding.": "Для запуска установщика X64 LIOS требуется активное подключение к Интернету.\n\nПодключитесь к Wi-Fi или подключите кабель Ethernet.",
        "Architecture:": "Архитектура:",
        "Audit and contribute to the system's source code.": "Проверяйте исходный код системы и вносите свой вклад.",
        "Audit real-time CPU, RAM, and process usage with btop.": "Аудит использования процессора, памяти и процессов в реальном времени с btop.",
        "Automated Snapper snapshots taken before each system update. If anything fails or breaks, restore your system in seconds directly from the bootloader menu.": "Автоматические снимки Snapper перед каждым обновлением. Быстрое восстановление системы прямо из меню загрузчика.",
        "Automatic processor audit: modern CPUs receive high-performance optimized packages (v3/v4) for maximum speed; if unsupported, it uses standard versions for total compatibility without issues.": "Автоматический аудит процессора: современные процессоры получают оптимизированные пакеты (v3/v4); старые используют надежные стандартные пакеты.",
        "Automatically detects your processor and installs the exact version adapted for it (whether old or next-generation).": "Автоматически определяет ваш процессор и устанавливает точную версию, адаптированную для него (старую или нового поколения).",
        "Avant-garde Aesthetics:": "Авангардная эстетика:",
        "Btrfs Snapshots & Rollback": "Снимки Btrfs и Откат",
        "CPU": "CPU",
        "CPU & Architecture": "Процессор и Архитектура",
        "CachyOS Kernel + FalconD": "Ядро CachyOS + FalconD",
        "Check deep CPU and RAM usage with btop.": "Проверьте глубокое использование процессора и оперативной памяти с помощью btop.",
        "Check the Official Wiki to learn about modules and shortcuts.": "Проверьте официальную вики, чтобы узнать о модулях и сочетаниях клавиш.",
        "Clean & Surgical System": "Чистая и Хирургическая Система",
        "Close Test": "Закрыть Тест",
        "Continuous evolution based on Arch Linux. Your system seamlessly incorporates the latest hardware optimizations, kernel advances, and upstream software without reinstallations.": "Непрерывная эволюция на базе Arch Linux. Ваша система безупречно интегрирует новейшие оптимизации оборудования, ядра и апстрим-пакетов без переустановок.",
        "Continuous evolution based on Arch Linux. Your system seamlessly incorporates the latest hardware optimizations, libraries, and ecosystem tools as they release.": "Непрерывная эволюция на базе Arch Linux. Бесшовная интеграция свежих оптимизаций оборудования, библиотек и инструментов.",
        "Custom-compiled high-performance kernels, advanced BORE/EEVDF schedulers, controlled mitigations, and strict pre-configurations for ultra-low latency gaming.": "Настраиваемые высокопроизводительные ядра, продвинутые планировщики BORE/EEVDF, контролируемые смягчения и строгие предварительные конфигурации для игр со сверхнизкой задержкой.",
        "Cutting-Edge Rolling Release": "Передовой Rolling Release",
        "Design is not a whim. A beautiful and coherent environment inspires focus and control. Every pixel of the system obeys our strict Hacker-Minimalist art direction.": "Дизайн — это не прихоть. Красивая и согласованная среда вдохновляет на концентрацию и контроль. Каждый пиксель системы подчиняется нашему строгому хакерско-минималистическому художественному направлению.",
        "Design is not an afterthought. Widescreen panoramic UI, Crimson & Charcoal color direction (#b31b1b / #0b0b0d), and vector iconography engineered for focus and control.": "Дизайн — это основа. Панорамный интерфейс, палитра в багровых и угольных тонах (#b31b1b / #0b0b0d) и векторные иконки.",
        "Discord Server": "Сервер Discord",
        "Display Configuration": "Настройка Экрана",
        "Documentation and Notes": "Документация и примечания",
        "During installation, the system audits your CPU: if it's old, it uses bulletproof generic packages; if it's modern, it activates Turbo Mode by injecting AVX2/AVX512 (v3/v4) repositories.": "При установке система проверяет процессор: если он старый, используются надежные стандартные пакеты; если современный — включает турбо-режим (AVX2/AVX512).",
        "During installation, the system audits your CPU: modern processors get AVX2/AVX512 (v3/v4) repositories injected below [x64-lios]. chwd autodetects NVIDIA, AMD, and Intel GPUs.": "При установке система проверяет процессор: современные CPU получают репозитории AVX2/AVX512 (v3/v4). chwd определяет видеокарты.",
        "Ethernet Active": "Ethernet Активен",
        "Explore Live Environment": "Исследуйте Live-среду",
        "Frame Latency:": "Задержка кадра:",
        "GPU": "GPU",
        "GUI-First philosophy for effortless everyday use, paired with an elite hacker terminal experience in Kitty, Fish shell, and Starship pills for power users.": "Принцип GUI-First для удобства каждый день вместе с первоклассным терминалом Kitty, Fish и Starship для опытных пользователей.",
        "GUI-First philosophy. The average user should never need to open a terminal. All the absolute power of Arch manageable entirely through graphical interfaces.": "Философия GUI-First. Обычному пользователю никогда не понадобится открывать терминал. Вся абсолютная мощь Arch управляется исключительно через графические интерфейсы.",
        "GitHub Repository": "Репозиторий GitHub",
        "Graphics & Display": "Графика и Дисплей",
        "HARDWARE DIAGNOSTICS & CONTROL": "ДИАГНОСТИКА И УПРАВЛЕНИЕ ОБОРУДОВАНИЕМ",
        "HIGH-PERFORMANCE ARCHITECTURE": "ВЫСОКОПРОИЗВОДИТЕЛЬНАЯ АРХИТЕКТУРА",
        "Hacker Terminal": "Хакерский терминал",
        "Hacker Terminal (Kitty)": "Терминал Хакера (Kitty)",
        "Hardware Mutation (v3/v4)": "Адаптация Оборудования (v3/v4)",
        "Hardware acceleration ready": "Аппаратное ускорение готово",
        "Hardware:": "Оборудование:",
        "Home": "Главная",
        "Hybrid Rolling Release:": "Гибридный Rolling Release:",
        "Hybrid cascading repository model. We inject our patches on top of Arch Linux to ensure performance, without the colossal cost of recompiling everything.": "Гибридная каскадная модель репозитория. Мы внедряем наши патчи поверх Arch Linux для обеспечения производительности без колоссальных затрат на перекомпиляцию всего.",
        "I. Absolute Freedom": "I. Абсолютная свобода",
        "II. Surgical Optimization": "II. Хирургическая оптимизация",
        "III. Multi-Environment Ecosystem": "III. Многосредовая экосистема",
        "IV. Sovereign Repositories": "IV. Суверенные репозитории",
        "IX. Cutting-Edge Rolling Release": "IX. Передовой Rolling Release",
        "In the era of covert corporate telemetry, your PC is your glass fortress. Zero telemetry, zero hidden trackers, zero reporting. What you do on your machine, dies on your machine.": "В эпоху скрытой корпоративной телеметрии ваш компьютер — это ваша стеклянная крепость. Никакой телеметрии, никаких скрытых трекеров, никаких отчетов. То, что вы делаете на своей машине, остается на ней.",
        "Install X64 LIOS": "Установить X64 LIOS",
        "Install the System": "Установить систему",
        "Internet Connection Required": "Требуется Подключение к Интернету",
        "LIVE AUDIT": "Живой Аудит",
        "LIVE VERIFICATIONS": "ПРОВЕРКИ В РЕАЛЬНОМ ВРЕМЕНИ",
        "Launch Kitty with your transparent profile and ASCII logo.": "Запустите Kitty с вашим прозрачным профилем и логотипом ASCII.",
        "Launch an interactive 3D benchmark to measure GPU fluidity and frame rates.": "Запустите интерактивный 3D-бенчмарк для измерения плавности и частоты кадров GPU.",
        "Launch the Calamares installer to install X64 LIOS on your hard drive.": "Запустите установщик Calamares, чтобы установить X64 LIOS на жесткий диск.",
        "Lightweight installer with zero bloat. Heavy gaming platforms and emulators are cleanly delegated to post-installation setup in X64 Hello after first boot.": "Легкий установщик без мусора. Тяжелые игровые платформы перенесены в X64 Hello после первой загрузки.",
        "Linux-CachyOS kernel with scx dynamic schedulers, FalconD gaming CPU affinity, ananicy-cpp priority tuning, and pure ZRAM in RAM for zero disk swap latency.": "Ядро Linux-CachyOS с планировщиками scx, привязкой FalconD для игр, ananicy-cpp и чистым ZRAM без задержек подкачки.",
        "Live environment in KDE Plasma 6 Wayland, plus 8 official installation options (KDE, GNOME, COSMIC, Niri, Cinnamon, Xfce, Hyprland, and Server) with 16:9 previews.": "Live-окружение на KDE Plasma 6 Wayland и 8 официальных вариантов установки (KDE, GNOME, COSMIC, Niri, Cinnamon, Xfce, Hyprland, Server) с превью 16:9.",
        "Live session (~200MB ISO layers in RAM)": "Live-сессия (~200 МБ слоев ISO в RAM)",
        "Low-level utilities for advanced system configuration.": "Низкоуровневые утилиты для расширенной настройки системы.",
        "MASTER UTILITIES": "ОСНОВНЫЕ УТИЛИТЫ",
        "Memory (RAM & ZRAM)": "Память (RAM и ZRAM)",
        "Minimize this window and test the extreme performance of the live system.": "Сверните это окно и проверьте экстремальную производительность Live-системы.",
        "Native utilities to audit and manage your hardware during Live mode.": "Собственные утилиты для проверки и управления вашим оборудованием в режиме Live.",
        "Network": "Сеть",
        "No Connection": "Нет Подключения",
        "Official Website": "Официальный сайт",
        "Open GParted to partition, format, or prepare disks.": "Откройте GParted для разделения, форматирования или подготовки дисков.",
        "Open Source synergy. We inherit and polish battle-tested foundations, writing custom code and maintaining our own repositories only where we add sovereign value.": "Синергия Open Source. Мы берем проверенную базу и развиваем собственный код только там, где создаем уникальную ценность.",
        "Open Source synergy. We inherit and polish foundations proven by the Arch Linux purist elite, writing code and injecting custom repositories only where we truly add unique value.": "Синергия Open Source. Мы наследуем и совершенствуем основы, доказанные элитой пуристов Arch Linux, пишем код и внедряем собственные репозитории только там, где мы действительно приносим уникальную пользу.",
        "Optimized execution pipeline": "Оптимизированный конвейер выполнения",
        "Panel": "Панель",
        "Partition Manager": "Менеджер разделов",
        "Partition Manager (GParted)": "Менеджер Разделов (GParted)",
        "Philosophy": "Философия",
        "Pristine System:": "Безупречная система:",
        "Privacy by Design": "Приватность по Умолчанию",
        "RAM": "RAM",
        "Ready Network": "Сеть Готова",
        "Real-time hardware audit, idle memory telemetry, and express verification tools to tune your machine.": "Аудит оборудования в реальном времени, телеметрия памяти и экспресс-инструменты для настройки ПК.",
        "Real-time support channels and discussions.": "Каналы поддержки в реальном времени и обсуждения.",
        "Resource Monitor": "Монитор ресурсов",
        "Resource Monitor (btop)": "Монитор Ресурсов (btop)",
        "Session:": "Сессия:",
        "Smart Package System:": "Умная система пакетов:",
        "Sovereign cascading repository hierarchy. [x64-lios] holds priority #1 above Arch and CachyOS, delivering custom packages and optimizations directly without bottlenecks.": "Суверенная каскадная иерархия репозиториев. [x64-lios] имеет абсолютный приоритет #1 над Arch и CachyOS, доставляя оптимизации напрямую без задержек.",
        "Standard GPU": "Стандартный GPU",
        "Stereo Audio Test": "Тест Стереозвука",
        "System": "Система",
        "System Cockpit & Tools": "Кокпит Системы и Инструменты",
        "System Tools": "Системные инструменты",
        "Temporal immutability with Btrfs & automated Snapper snapshots. Multi-bootloader support choosing Limine, GRUB, systemd-boot, or rEFInd for effortless rollback.": "Неизменяемость с Btrfs и снимками Snapper. Поддержка мультизагрузчиков Limine, GRUB, systemd-boot или rEFInd.",
        "Temporal immutability with Btrfs and Snapper. rEFInd graphical boot manager to roll back in time after critical errors, eliminating the fear of Rolling Releases.": "Временная неизменность с помощью Btrfs и Snapper. Графический менеджер загрузки rEFInd для отката во времени после критических ошибок, устраняющий страх перед Rolling Releases.",
        "The core of the system flies at Arch speed, but critical applications can be frozen using Flatpak or Distrobox to guarantee Debian-level stability on demand.": "Ядро системы летает на скорости Arch, но критические приложения можно заморозить с помощью Flatpak или Distrobox, чтобы гарантировать стабильность уровня Debian по запросу.",
        "The freshness of Arch Linux combined with armored stability.": "Свежесть Arch Linux в сочетании с бронированной стабильностью.",
        "The purist operating system designed for maximum performance, minimal latency, and absolute control.": "Операционная система для пуристов, разработанная для максимальной производительности, минимальной задержки и абсолютного контроля.",
        "The user forges their destiny: KDE Plasma for comfort, GNOME for fluidity, or Hyprland X64 for purist minimalism with microscopic RAM usage.": "Пользователь кует свою судьбу: KDE Plasma для комфорта, GNOME для плавности или Hyprland X64 для пуристского минимализма с микроскопическим использованием оперативной памяти.",
        "Top Gaming Performance": "Максимальная Игровая Производительность",
        "Top Gaming Performance:": "Лучшая игровая производительность:",
        "UEFI x86_64 Boot": "Загрузка UEFI x86_64",
        "Ultra-fluid, minimalist environments ready to choose.": "Ультра-плавные, минималистичные среды готовы к выбору.",
        "Ultra-low idle footprint": "Минимальное потребление памяти в простое",
        "Ultra-low latency CachyOS kernel base boosted with the X64 performance stack: FalconD gaming CPU affinity, dynamic scx schedulers, and real-time process tuning.": "Ядро CachyOS со сверхнизкой задержкой, дополненное стеком X64: FalconD, планировщики scx и оптимизация процессов.",
        "Ultra-low latency and kernel optimizations to squeeze out every FPS.": "Сверхнизкая задержка и оптимизация ядра, чтобы выжать каждый FPS.",
        "Unknown": "Неизвестно",
        "Upstream purity of Arch Linux combined with the Shelly universal store. Zero PPAs, zero corporate ties, and 99% of the system software intact to ensure maximum stability.": "Апстрим-чистота Arch Linux в сочетании с универсальным магазином Shelly. Никаких PPA, корпоративных связей и 99% системного программного обеспечения, обеспечивающего максимальную стабильность.",
        "Upstream purity of Arch Linux with zero PPAs, zero corporate ties, and 99% of system packages intact. Combined with the AUR and modern GUI tools for complete freedom.": "Чистота Arch Linux без PPA и корпоративных ограничений, с 99% исходных пакетов. Включает AUR для полной свободы.",
        "V. Hardware Mutation": "V. Аппаратная мутация",
        "VI. Modular Architecture": "VI. Модульная архитектура",
        "VII. Shield of Resilience": "VII. Щит устойчивости",
        "VIII. The Death of the Terminal": "VIII. Смерть терминала",
        "Verify left and right channels to ensure speakers and headphones work properly.": "Проверьте левый и правый каналы, чтобы убедиться в правильной работе колонок и наушников.",
        "Welcome to X64 LIOS": "Добро пожаловать в X64 LIOS",
        "Wi-Fi Active": "Wi-Fi Активен",
        "X. Architectural Pragmatism": "X. Архитектурный прагматизм",
        "X64 Architectural Manifesto": "Архитектурный Манифест X64",
        "X64 Community": "Сообщество X64",
        "X64 LIOS is an open community of enthusiasts and developers. Join to receive support, share scripts, and discuss.": "X64 LIOS — открытое сообщество энтузиастов и разработчиков. Присоединяйтесь, чтобы получить поддержку, поделиться скриптами и пообщаться.",
        "X64 LIOS is meticulously designed for performance purists. Our architecture guarantees you:": "X64 LIOS тщательно разработан для пуристов производительности. Наша архитектура гарантирует вам:",
        "X64 LIOS was born as the ultimate answer to Linux fragmentation. We extract the raw power of high-performance kernels, the precision of the gaming ecosystem, and the purity of Arch to forge the definitive operating system.": "X64 LIOS родился как окончательный ответ на фрагментацию Linux. Мы извлекаем необузданную мощь высокопроизводительных ядер, точность игровой экосистемы и чистоту Arch, чтобы создать идеальную операционную систему.",
        "XI. Aesthetics as Function": "XI. Эстетика как функция",
        "XII. Privacy by Design": "XII. Конфиденциальность по умолчанию",
        "You have started the Live session. Safely explore the environment without altering your hard drive, or proceed with the permanent system installation.": "Вы запустили Live-сессию. Безопасно изучайте среду без изменения жесткого диска или перейдите к постоянной установке системы.",
        "ZRAM Active": "ZRAM Активен",
        "ZRAM Inactive": "ZRAM Неактивен",
        "Zero bloatware and zero background idle services. An ultra-lean footprint consuming merely 600–800 MB of idle RAM, dedicating your hardware fully to gaming and maximum performance.": "Никакого лишнего ПО и фоновых служб. Минимальное потребление всего 600–800 МБ в простое, отдавая ресурсы играм.",
        "Zero bloatware, returning total control of your machine back to you.": "Никакого bloatware, возвращая вам полный контроль над вашей машиной.",
        "Zero metrics collection, diagnostics, or background tracking. Unlike other operating systems, X64 LIOS never monitors your activity or sends your data anywhere.": "Ноль телеметрии, скрытых логов и трекинга. X64 LIOS никогда не следит за вами и не отправляет данные вовне.",
        "Zero metrics collection, diagnostics, or covert background tracking. Unlike commercial operating systems, X64 LIOS never monitors your activity or phones home. Your hardware belongs to you.": "Ноль сбора метрик, диагностики или скрытого фонового слежения. В отличие от коммерческих ОС, X64 LIOS никогда не следит за вашей активностью. Ваше железо принадлежит только вам.",
        "Zero telemetry by design. Your data is exclusively yours.": "Нулевая телеметрия по дизайну. Ваши данные принадлежат исключительно вам.",
        "Zero-Latency ZRAM": "ZRAM с Нулевой Задержкой",
    },
}

try:
    if "X64_LANG" in os.environ:
        _lang_code = os.environ["X64_LANG"]
    else:
        _locale_tup = locale.getdefaultlocale()
        _lang_code = _locale_tup[0].split('_')[0] if _locale_tup and _locale_tup[0] else 'en'
except:
    _lang_code = 'en'

def tr(text):
    if _lang_code in TRANSLATIONS and text in TRANSLATIONS[_lang_code]:
        return TRANSLATIONS[_lang_code][text]
    return text

LOGO_PATH = "/usr/share/pixmaps/x64-cube.png"
if not os.path.exists(LOGO_PATH):
    for candidate in [
        "/etc/calamares/branding/x64lios/cube.png",
        "/usr/share/calamares/branding/x64lios/cube.png",
        os.path.join(os.path.dirname(__file__), "x64-cube.png"),
        "/usr/share/pixmaps/x64-logo.png"
    ]:
        if os.path.exists(candidate):
            LOGO_PATH = candidate
            break

class PillarCard(QFrame):
    def __init__(self, icon_str, title, desc):
        super().__init__()
        self.setStyleSheet("""
            PillarCard {
                background-color: rgba(255, 255, 255, 0.025);
                border: 1px solid rgba(255, 255, 255, 0.06);
                border-left: 3px solid #cc0000;
                border-radius: 8px;
            }
            PillarCard:hover {
                background-color: rgba(204, 0, 0, 0.07);
                border-color: rgba(204, 0, 0, 0.45);
            }
        """)
        layout = QVBoxLayout()
        layout.setContentsMargins(16, 12, 16, 12)
        layout.setSpacing(4)
        lbl_t = QLabel(f"{icon_str}  {title}")
        lbl_t.setStyleSheet("color: #ffffff; font-weight: bold; font-size: 13.5px; background: transparent; border: none;")
        lbl_d = QLabel(desc)
        lbl_d.setStyleSheet("color: #9e9ea7; font-size: 11.5px; line-height: 1.4; background: transparent; border: none;")
        lbl_d.setWordWrap(True)
        layout.addWidget(lbl_t)
        layout.addWidget(lbl_d)
        self.setLayout(layout)

class PremiumButton(QPushButton):
    def __init__(self, title, desc, icon_name, url=None, cmd=None, callback=None, height=85):
        super().__init__()
        self.url = url
        self.cmd = cmd
        self.callback = callback
        self.setFixedHeight(height)
        self.setCursor(Qt.CursorShape.PointingHandCursor)
        
        self.setStyleSheet("""
            PremiumButton {
                background-color: rgba(255, 255, 255, 0.03);
                border-radius: 12px;
                border: 1px solid rgba(255, 255, 255, 0.05);
                text-align: left;
            }
            PremiumButton:hover {
                background-color: rgba(255, 255, 255, 0.08);
                border: 1px solid rgba(204, 0, 0, 0.5);
            }
        """)
        
        hbox = QHBoxLayout()
        pad_v = 8 if height < 80 else 13
        pad_h = 16 if height < 80 else 18
        hbox.setContentsMargins(pad_h, pad_v, pad_h, pad_v)
        hbox.setSpacing(14 if height < 80 else 18)
        
        icon_label = QLabel()
        icon = QIcon.fromTheme(icon_name)
        icon_px = 32 if height < 80 else 38
        if not icon.isNull():
            pixmap = icon.pixmap(icon_px, icon_px)
            icon_label.setPixmap(pixmap)
        else:
            icon_label.setText("💠")
            icon_label.setStyleSheet(f"font-size: {icon_px - 8}px; background: transparent; border: none;")
        
        icon_label.setFixedSize(icon_px, icon_px)
        icon_label.setStyleSheet("background: transparent; border: none;")
        hbox.addWidget(icon_label)
        
        vbox = QVBoxLayout()
        vbox.setContentsMargins(0, 0, 0, 0)
        vbox.setSpacing(3)
        
        lbl_title = QLabel(title)
        title_size = 14 if height < 80 else 15
        lbl_title.setStyleSheet(f"color: #ffffff; font-weight: bold; font-size: {title_size}px; border: none; background: transparent;")
        vbox.addWidget(lbl_title)
        
        lbl_desc = QLabel(desc)
        desc_size = 11 if height < 80 else 12
        lbl_desc.setStyleSheet(f"color: #9e9ea7; font-size: {desc_size}px; line-height: 1.35; border: none; background: transparent;")
        lbl_desc.setWordWrap(True)
        vbox.addWidget(lbl_desc)
        
        hbox.addLayout(vbox)
        self.setLayout(hbox)
        self.clicked.connect(self.action)

    def action(self):
        if self.callback:
            self.callback()
        elif self.url:
            webbrowser.open(self.url)
        elif self.cmd:
            if self.cmd == "close":
                self.window().close()
            elif self.cmd == "minimize":
                self.window().showMinimized()
            else:
                os.system(f"QT_QPA_PLATFORMTHEME=kde GTK_THEME=Breeze-Dark {self.cmd} &")

class NavButton(QPushButton):
    def __init__(self, title, icon_name, index, parent_app):
        super().__init__()
        self.index = index
        self.parent_app = parent_app
        self.setFixedHeight(50)
        self.setCursor(Qt.CursorShape.PointingHandCursor)
        
        hbox = QHBoxLayout()
        hbox.setContentsMargins(15, 0, 15, 0)
        hbox.setSpacing(15)
        
        icon_lbl = QLabel()
        icon = QIcon.fromTheme(icon_name)
        if not icon.isNull():
            icon_lbl.setPixmap(icon.pixmap(22, 22))
        icon_lbl.setStyleSheet("background: transparent; border: none;")
        hbox.addWidget(icon_lbl)
        
        text_lbl = QLabel(title)
        text_lbl.setStyleSheet("color: #888888; font-weight: bold; font-size: 15px; background: transparent; border: none;")
        self.text_lbl = text_lbl 
        hbox.addWidget(text_lbl)
        hbox.addStretch(1)
        
        self.setLayout(hbox)
        self.clicked.connect(self.activate)
        self.set_inactive_style()

    def set_active_style(self):
        self.setStyleSheet("""
            NavButton {
                background-color: rgba(204, 0, 0, 0.15);
                border-radius: 8px;
                border: none;
                border-left: 4px solid #cc0000;
                border-top-left-radius: 4px;
                border-bottom-left-radius: 4px;
            }
        """)
        self.text_lbl.setStyleSheet("color: #ffffff; font-weight: bold; font-size: 15px; background: transparent; border: none;")

    def set_inactive_style(self):
        self.setStyleSheet("""
            NavButton {
                background-color: transparent;
                border-radius: 8px;
                border: none;
            }
            NavButton:hover {
                background-color: rgba(255, 255, 255, 0.05);
            }
        """)
        self.text_lbl.setStyleSheet("color: #888888; font-weight: bold; font-size: 15px; background: transparent; border: none;")

    def activate(self):
        self.parent_app.change_page(self.index)


class TelemetryCard(QFrame):
    def __init__(self, icon_str, title, value_str, badge_str=None, sub_str=None):
        super().__init__()
        self.setStyleSheet("""
            TelemetryCard {
                background-color: rgba(255, 255, 255, 0.025);
                border: 1px solid rgba(255, 255, 255, 0.06);
                border-radius: 10px;
            }
            TelemetryCard:hover {
                background-color: rgba(255, 255, 255, 0.045);
                border-color: rgba(204, 0, 0, 0.4);
            }
        """)
        layout = QVBoxLayout()
        layout.setContentsMargins(16, 12, 16, 12)
        layout.setSpacing(4)
        
        top_hbox = QHBoxLayout()
        top_hbox.setContentsMargins(0, 0, 0, 0)
        lbl_title = QLabel(f"{icon_str}  {title}")
        lbl_title.setStyleSheet("color: #8e8e93; font-size: 11px; font-weight: bold; background: transparent; border: none;")
        top_hbox.addWidget(lbl_title)
        top_hbox.addStretch(1)
        
        if badge_str:
            lbl_badge = QLabel(f" {badge_str} ")
            lbl_badge.setStyleSheet("""
                background-color: rgba(0, 229, 255, 0.1);
                color: #00e5ff;
                border: 1px solid rgba(0, 229, 255, 0.3);
                border-radius: 4px;
                font-size: 10px;
                font-weight: bold;
                padding: 1px 5px;
            """)
            top_hbox.addWidget(lbl_badge)
        layout.addLayout(top_hbox)
        
        self.lbl_val = QLabel(value_str)
        self.lbl_val.setStyleSheet("color: #ffffff; font-weight: bold; font-size: 14.5px; background: transparent; border: none;")
        layout.addWidget(self.lbl_val)
        
        if sub_str:
            self.lbl_sub = QLabel(sub_str)
            self.lbl_sub.setStyleSheet("color: #71717a; font-size: 11.5px; background: transparent; border: none;")
            layout.addWidget(self.lbl_sub)
        else:
            self.lbl_sub = None
            
        self.setLayout(layout)

    def update_value(self, new_val):
        self.lbl_val.setText(new_val)

class CubeCanvas(QWidget):
    def __init__(self):
        super().__init__()
        self.setMinimumSize(480, 260)
        self.angle_x = 0.0
        self.angle_y = 0.0
        self.angle_z = 0.0
        self.frames = []
        self.fps = 60.0
        self.frame_time_ms = 16.6
        self.timer = QTimer(self)
        self.timer.timeout.connect(self.update_animation)
        self.timer.start(16)

    def update_animation(self):
        now = time.perf_counter()
        self.frames.append(now)
        if len(self.frames) > 30:
            self.frames.pop(0)
            dt = self.frames[-1] - self.frames[0]
            if dt > 0:
                self.fps = len(self.frames) / dt
                self.frame_time_ms = (self.frames[-1] - self.frames[-2]) * 1000
        self.angle_x += 0.025
        self.angle_y += 0.035
        self.angle_z += 0.015
        self.update()

    def paintEvent(self, event):
        p = QPainter(self)
        p.setRenderHint(QPainter.RenderHint.Antialiasing)
        p.fillRect(self.rect(), QColor("#0d0d11"))
        
        p.setPen(QPen(QColor(255, 255, 255, 12), 1))
        w, h = self.width(), self.height()
        for x in range(0, w, 40):
            p.drawLine(x, 0, x, h)
        for y in range(0, h, 40):
            p.drawLine(0, y, w, y)
            
        cx, cy = w / 2, h / 2
        
        vertices = [
            [-1, -1, -1], [1, -1, -1], [1, 1, -1], [-1, 1, -1],
            [-1, -1, 1],  [1, -1, 1],  [1, 1, 1],  [-1, 1, 1]
        ]
        
        rad_x, rad_y, rad_z = self.angle_x, self.angle_y, self.angle_z
        rot_v = []
        scale = min(w, h) * 0.22
        
        for vx, vy, vz in vertices:
            x1 = vx * math.cos(rad_y) + vz * math.sin(rad_y)
            y1 = vy
            z1 = -vx * math.sin(rad_y) + vz * math.cos(rad_y)
            x2 = x1
            y2 = y1 * math.cos(rad_x) - z1 * math.sin(rad_x)
            z2 = y1 * math.sin(rad_x) + z1 * math.cos(rad_x)
            x3 = x2 * math.cos(rad_z) - y2 * math.sin(rad_z)
            y3 = x2 * math.sin(rad_z) + y2 * math.cos(rad_z)
            z3 = z2
            
            dist = 3.5
            factor = dist / (dist + z3)
            px = cx + x3 * scale * factor
            py = cy + y3 * scale * factor
            rot_v.append((px, py, z3))
            
        edges = [
            (0,1), (1,2), (2,3), (3,0),
            (4,5), (5,6), (6,7), (7,4),
            (0,4), (1,5), (2,6), (3,7)
        ]
        
        for i, (e1, e2) in enumerate(edges):
            depth = (rot_v[e1][2] + rot_v[e2][2]) / 2.0
            alpha = int(120 + (depth + 1.5) * 45)
            alpha = max(60, min(255, alpha))
            color = QColor(204, 0, 0, alpha) if i % 2 == 0 else QColor(0, 229, 255, alpha)
            p.setPen(QPen(color, 2.5))
            p.drawLine(int(rot_v[e1][0]), int(rot_v[e1][1]), int(rot_v[e2][0]), int(rot_v[e2][1]))

        for px, py, z in rot_v:
            p.setPen(Qt.PenStyle.NoPen)
            p.setBrush(QBrush(QColor("#ffffff")))
            p.drawEllipse(QPointF(px, py), 3.5, 3.5)

        p.setPen(QPen(QColor("#00e5ff"), 1))
        p.setFont(QFont("Monospace", 14, QFont.Weight.Bold))
        p.drawText(20, 35, f"{self.fps:.1f} FPS")
        p.setPen(QPen(QColor("#888888"), 1))
        p.setFont(QFont("Sans", 10))
        p.drawText(20, 55, f"{tr("Frame Latency:")} {self.frame_time_ms:.1f} ms")


class GpuBenchmarkDialog(QDialog):
    def __init__(self, parent=None, gpu_info=tr("Standard GPU"), screen_info="Display"):
        super().__init__(parent)
        self.setWindowTitle(tr("3D Graphics & FPS Test"))
        self.setFixedSize(540, 420)
        self.setStyleSheet("""
            QDialog {
                background-color: #0b0b0e;
                border: 1px solid #cc0000;
                border-radius: 8px;
            }
        """)
        vbox = QVBoxLayout()
        vbox.setContentsMargins(20, 20, 20, 20)
        vbox.setSpacing(14)
        
        title = QLabel(f"🎮  {tr('3D Graphics & FPS Benchmark').upper()}")
        title.setStyleSheet("color: #ffffff; font-weight: 900; font-size: 16px; background: transparent;")
        vbox.addWidget(title)
        
        self.canvas = CubeCanvas()
        vbox.addWidget(self.canvas)
        
        info_hbox = QHBoxLayout()
        lbl_gpu = QLabel(f"<b>{tr('Hardware:')}</b> {gpu_info} | {screen_info}")
        lbl_gpu.setStyleSheet("color: #aaaaaa; font-size: 11.5px; background: transparent;")
        info_hbox.addWidget(lbl_gpu)
        info_hbox.addStretch(1)
        
        btn_close = QPushButton(tr("Close Test"))
        btn_close.setFixedHeight(32)
        btn_close.setCursor(Qt.CursorShape.PointingHandCursor)
        btn_close.setStyleSheet("""
            QPushButton {
                background-color: #1a1a1e;
                color: #ffffff;
                border: 1px solid #333333;
                border-radius: 6px;
                padding: 0 16px;
                font-weight: bold;
                font-size: 12px;
            }
            QPushButton:hover {
                background-color: #cc0000;
                border-color: #ff1a1a;
            }
        """)
        btn_close.clicked.connect(self.accept)
        info_hbox.addWidget(btn_close)
        vbox.addLayout(info_hbox)
        
        self.setLayout(vbox)


class SystemPassport(QFrame):
    def __init__(self, tele):
        super().__init__()
        self.setObjectName("SystemPassport")
        self.setStyleSheet("""
            QFrame#SystemPassport {
                background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(255, 255, 255, 0.035), stop:1 rgba(255, 255, 255, 0.015));
                border: 1px solid rgba(255, 255, 255, 0.07);
                border-radius: 9px;
            }
            QFrame#SystemPassport:hover {
                border-color: rgba(204, 0, 0, 0.45);
                background-color: rgba(255, 255, 255, 0.045);
            }
        """)
        layout = QVBoxLayout()
        layout.setContentsMargins(12, 9, 12, 9)
        layout.setSpacing(4)
        
        top_hbox = QHBoxLayout()
        top_hbox.setContentsMargins(0, 0, 0, 0)
        
        lbl_status = QLabel(f"● {tr('LIVE AUDIT')}")
        lbl_status.setStyleSheet("""
            color: #00e676;
            font-size: 8.5px;
            font-weight: 800;
            letter-spacing: 0.8px;
            background: rgba(0, 230, 118, 0.12);
            border: 1px solid rgba(0, 230, 118, 0.3);
            border-radius: 4px;
            padding: 1px 5px;
        """)
        top_hbox.addWidget(lbl_status)
        top_hbox.addStretch(1)
        
        is_uefi = os.path.exists("/sys/firmware/efi")
        boot_tag = "UEFI · LIVE" if is_uefi else "BIOS · LIVE"
        lbl_live = QLabel(boot_tag)
        lbl_live.setStyleSheet("color: #71717a; font-size: 8.5px; font-weight: bold; background: transparent; letter-spacing: 0.5px;")
        top_hbox.addWidget(lbl_live)
        layout.addLayout(top_hbox)
        layout.addSpacing(2)

        def make_row(icon, label_text, value_text, badge_color=None):
            hbox = QHBoxLayout()
            hbox.setContentsMargins(0, 0, 0, 0)
            hbox.setSpacing(4)
            
            lbl_key = QLabel(f"{icon} {label_text}")
            lbl_key.setStyleSheet("color: #8e8e93; font-size: 9.5px; font-weight: 700; background: transparent;")
            hbox.addWidget(lbl_key)
            hbox.addStretch(1)
            
            lbl_val = QLabel(value_text)
            color_style = f"color: {badge_color};" if badge_color else "color: #ffffff;"
            lbl_val.setStyleSheet(f"{color_style} font-size: 10px; font-weight: 600; background: transparent;")
            hbox.addWidget(lbl_val)
            return hbox, lbl_val

        # Clean CPU
        raw_cpu = tele.get("cpu", "x86_64")
        raw_cpu = re.sub(r"\(R\)|\(TM\)", "", raw_cpu)
        raw_cpu = re.sub(r"^\d+th Gen\s*", "", raw_cpu)
        raw_cpu = re.sub(r"@.*", "", raw_cpu)
        raw_cpu = re.sub(r"CPU|Processor", "", raw_cpu)
        raw_cpu = re.sub(r"\d+-Core", "", raw_cpu)
        raw_cpu = re.sub(r"\s+", " ", raw_cpu).strip()
        arch_short = "v4" if "v4" in tele.get("arch", "") else ("v3" if "v3" in tele.get("arch", "") else ("v2" if "v2" in tele.get("arch", "") else "64"))
        cpu_display = f"{raw_cpu} ({arch_short})"
        if len(cpu_display) > 28:
            cpu_display = raw_cpu[:22] + f"… ({arch_short})"

        # Clean GPU
        gpu_clean = tele.get("gpu", "N/A")
        gpu_clean = re.sub(r"Corporation\s*", "", gpu_clean)
        gpu_clean = re.sub(r"Advanced Micro Devices, Inc\.\s*\[AMD/ATI\]", "AMD ", gpu_clean)
        gpu_clean = re.sub(r"Intel Corporation\s*", "Intel ", gpu_clean)
        gpu_clean = re.sub(r"Red Hat, Inc\.\s*", "", gpu_clean)
        gpu_clean = re.sub(r"\(Acelerada\)", "", gpu_clean)
        gpu_clean = re.sub(r"\(rev ..\)", "", gpu_clean)
        gpu_clean = re.sub(r"1\.0\s*", "", gpu_clean)
        m_geforce = re.search(r"\[(GeForce [^\]]+)\]", gpu_clean)
        if m_geforce:
            name = re.sub(r"\s+(Lite Hash Rate|LHR)", "", m_geforce.group(1))
            gpu_clean = f"NVIDIA {name}"
        m_radeon = re.search(r"\[(Radeon [^\]]+)\]", gpu_clean)
        if m_radeon:
            name = m_radeon.group(1).split("/")[0]
            gpu_clean = f"AMD {name}"
        m_intel = re.search(r"\[(Iris [^\]]+|UHD [^\]]+|HD Graphics [^\]]+)\]", gpu_clean)
        if m_intel:
            gpu_clean = f"Intel {m_intel.group(1)}"
        gpu_clean = re.sub(r"\s+", " ", gpu_clean).strip()
        if len(gpu_clean) > 28:
            gpu_clean = gpu_clean[:26] + "…"

        screen_clean = tele.get("screen", "Wayland")

        # Network
        net_text, net_color = self.get_net_status()

        # Rows
        r_cpu, _ = make_row("🧠", tr("CPU"), cpu_display, "#ffffff")
        r_gpu, _ = make_row("🎮", tr("GPU"), gpu_clean, "#ffffff")
        r_screen, _ = make_row("🖥️", tr("Panel"), screen_clean, "#00e5ff")
        r_net, self.lbl_net = make_row("🌐", tr("Network"), net_text, net_color)
        r_ram, self.lbl_mem = make_row("💾", tr("RAM"), tele.get("ram", "N/A"), "#00e676")

        layout.addLayout(r_cpu)
        layout.addLayout(r_gpu)
        layout.addLayout(r_screen)
        layout.addLayout(r_net)
        layout.addLayout(r_ram)

        # Mini Progress Bar
        self.ram_bar = QProgressBar()
        self.ram_bar.setFixedHeight(3)
        self.ram_bar.setTextVisible(False)
        self.ram_bar.setRange(0, 100)
        self.ram_bar.setValue(25)
        self.ram_bar.setStyleSheet("""
            QProgressBar {
                background-color: rgba(255, 255, 255, 0.08);
                border-radius: 1px;
                border: none;
            }
            QProgressBar::chunk {
                background: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #cc0000, stop:1 #00e5ff);
                border-radius: 1px;
            }
        """)
        layout.addWidget(self.ram_bar)

        self.setLayout(layout)

    def get_net_status(self):
        try:
            with open("/proc/net/route") as f:
                for line in f:
                    fields = line.strip().split()
                    if len(fields) >= 2 and fields[1] == '00000000':
                        iface = fields[0]
                        if iface.startswith("wl") or "wifi" in iface:
                            return tr("Wi-Fi Active"), "#00e676"
                        else:
                            return tr("Ethernet Active"), "#00e676"
        except Exception:
            pass
        return tr("No Connection"), "#ff5252"

    def update_telemetry(self, used_mb, total_mb):
        if total_mb > 0:
            pct = int((used_mb / total_mb) * 100)
            self.ram_bar.setValue(min(100, max(0, pct)))
            self.lbl_mem.setText(f"{used_mb} / {total_mb} MB")


class X64Welcome(QWidget):
    def __init__(self):
        super().__init__()
        self.nav_buttons = []
        self.initUI()

    def initUI(self):
        self.setWindowTitle('X64 LIOS - Welcome')
        self.setFixedSize(1220, 660)
        self.setStyleSheet("background-color: #080808;")
        
        main_layout = QHBoxLayout()
        main_layout.setContentsMargins(0, 0, 0, 0)
        main_layout.setSpacing(0)
        self.setLayout(main_layout)

        sidebar = QFrame()
        sidebar.setFixedWidth(290)
        sidebar.setStyleSheet("""
            QFrame {
                background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #050505, stop:1 #110000);
                border-right: 1px solid #1a1a1a;
            }
        """)
        sidebar_layout = QVBoxLayout()
        sidebar_layout.setContentsMargins(22, 28, 22, 24)
        sidebar.setLayout(sidebar_layout)

        logo_label = QLabel()
        pixmap = QPixmap(LOGO_PATH)
        if not pixmap.isNull():
            logo_label.setPixmap(pixmap.scaled(125, 125, Qt.AspectRatioMode.KeepAspectRatio, Qt.TransformationMode.SmoothTransformation))
        logo_label.setAlignment(Qt.AlignmentFlag.AlignCenter)
        logo_label.setStyleSheet("background: transparent; border: none;")
        sidebar_layout.addWidget(logo_label)
        sidebar_layout.addSpacing(16)

        nav_vbox = QVBoxLayout()
        nav_vbox.setSpacing(10)
        
        tabs = [(tr("Home"), "go-home"), (tr("System"), "preferences-system")]
        
        for i, (text, icon) in enumerate(tabs):
            btn = NavButton(text, icon, i, self)
            btn.setFixedHeight(52)
            self.nav_buttons.append(btn)
            nav_vbox.addWidget(btn)
            
        sidebar_layout.addLayout(nav_vbox)
        sidebar_layout.addStretch(1)

        tele = self.get_system_telemetry()
        self.cached_tele = tele
        self.passport = SystemPassport(tele)
        sidebar_layout.addWidget(self.passport)
        sidebar_layout.addSpacing(14)

        self.btn_install = QPushButton(tr("Install X64 LIOS"))
        self.btn_install.setFixedHeight(54)
        self.btn_install.setStyleSheet("""
            QPushButton {
                background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #cc0000, stop:1 #800000);
                color: white; font-weight: bold; font-size: 15px; border-radius: 8px; border: 1px solid #ff1a1a;
                text-align: center;
            }
            QPushButton:hover { background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #ff1a1a, stop:1 #a30000); }
        """)
        self.btn_install.setCursor(Qt.CursorShape.PointingHandCursor)
        shadow = QGraphicsDropShadowEffect()
        shadow.setBlurRadius(15)
        shadow.setColor(QColor(204, 0, 0, 100))
        shadow.setOffset(0, 4)
        self.btn_install.setGraphicsEffect(shadow)
        self.btn_install.clicked.connect(self.launch_calamares)
        sidebar_layout.addWidget(self.btn_install)
        sidebar_layout.addSpacing(12)

        lang_hbox = QHBoxLayout()
        lang_hbox.addStretch(1)
        
        current_lang_str = {
            'en': 'English', 'es': 'Español', 'fr': 'Français', 'de': 'Deutsch', 
            'it': 'Italiano', 'pt': 'Português', 'ru': 'Русский'
        }.get(_lang_code, 'English')
        
        self.lang_btn = QPushButton(" 🌎  " + current_lang_str + " ")
        self.lang_btn.setCursor(Qt.CursorShape.PointingHandCursor)
        self.lang_btn.setFixedHeight(28)
        self.lang_btn.setStyleSheet("""
            QPushButton {
                background-color: transparent;
                color: #777777;
                border: 1px solid transparent;
                border-radius: 14px;
                padding: 0px 10px;
                font-size: 11px;
            }
            QPushButton:hover {
                background-color: rgba(255, 255, 255, 0.05);
                border: 1px solid rgba(255, 255, 255, 0.1);
                color: #aaaaaa;
            }
            QPushButton::menu-indicator { image: none; }
        """)
        
        lang_menu = QMenu(self)
        lang_menu.setCursor(Qt.CursorShape.PointingHandCursor)
        lang_menu.setStyleSheet("""
            QMenu {
                background-color: #0a0a0a;
                color: #bbbbbb;
                border: 1px solid #222222;
                border-radius: 6px;
                padding: 5px;
            }
            QMenu::item {
                padding: 5px 20px 5px 15px;
                border-radius: 4px;
                font-size: 12px;
            }
            QMenu::item:selected {
                background-color: #cc0000;
                color: #ffffff;
            }
        """)
        
        langs = [
            ("en", "English"), ("es", "Español"), ("fr", "Français"),
            ("de", "Deutsch"), ("it", "Italiano"), ("pt", "Português"),
            ("ru", "Русский")
        ]
        
        for code, name in langs:
            action = QAction(name, self)
            # Capture the current value of code inside the lambda using a default argument!
            action.triggered.connect(lambda checked=False, c=code: self.change_language(c))
            lang_menu.addAction(action)
            
        self.lang_btn.setMenu(lang_menu)
        lang_hbox.addWidget(self.lang_btn)
        lang_hbox.addStretch(1)
        sidebar_layout.addLayout(lang_hbox)

        main_layout.addWidget(sidebar)

        self.stacked_widget = QStackedWidget()
        self.stacked_widget.setStyleSheet("QStackedWidget { background-color: #0f0f0f; }")
        main_layout.addWidget(self.stacked_widget)

        self.stacked_widget.addWidget(self.create_page_inicio())
        self.stacked_widget.addWidget(self.create_page_sistema())
        # self.stacked_widget.addWidget(self.create_page_comunidad())
        # self.stacked_widget.addWidget(self.create_page_filosofia())

        self.change_page(0)

        self.ram_timer = QTimer(self)
        self.ram_timer.timeout.connect(self.update_live_ram)
        self.ram_timer.start(2000)

    def update_live_ram(self):
        try:
            with open("/proc/meminfo") as f:
                mem = {}
                for l in f:
                    p = l.split(":")
                    if len(p) == 2:
                        mem[p[0].strip()] = int(p[1].strip().split()[0])
                tot = mem.get("MemTotal", 0) // 1024
                avail = mem.get("MemAvailable", 0) // 1024
                used = tot - avail
                if hasattr(self, 'card_ram') and self.card_ram:
                    self.card_ram.update_value(f"{used} MB / {tot} MB")
                if hasattr(self, 'passport') and self.passport:
                    self.passport.update_telemetry(used, tot)
        except Exception:
            pass

    def create_page_inicio(self):
        page = QWidget()
        layout = QVBoxLayout()
        layout.setContentsMargins(48, 28, 48, 28)
        layout.setSpacing(14)
        layout.setAlignment(Qt.AlignmentFlag.AlignTop)
        page.setLayout(layout)

        # Header section
        header_vbox = QVBoxLayout()
        header_vbox.setSpacing(3)
        
        sub_tag = QLabel(f"// {tr('HIGH-PERFORMANCE ARCHITECTURE')}")
        sub_tag.setStyleSheet("color: #cc0000; font-size: 11px; font-weight: 800; letter-spacing: 2px; background: transparent;")
        header_vbox.addWidget(sub_tag)

        title = QLabel(tr("Welcome to X64 LIOS").upper())
        title.setStyleSheet("color: #ffffff; font-size: 26px; font-weight: 900; letter-spacing: 1px; background: transparent;")
        header_vbox.addWidget(title)

        desc = QLabel(
            f"{tr('You have started the Live session. Safely explore the environment without altering your hard drive, or proceed with the permanent system installation.')} "
            f"{tr('X64 LIOS is meticulously designed for performance purists. Our architecture guarantees you:')}"
        )
        desc.setStyleSheet("color: #9e9ea7; font-size: 12.5px; line-height: 1.45; background: transparent;")
        desc.setWordWrap(True)
        header_vbox.addWidget(desc)
        layout.addLayout(header_vbox)

        # 2x3 Grid of Pillars - Spacious and rich
        grid = QGridLayout()
        grid.setHorizontalSpacing(14)
        grid.setVerticalSpacing(10)

        pillars = [
            ("🚀", tr("Top Gaming Performance"), tr("Ultra-low latency CachyOS kernel base boosted with the X64 performance stack: FalconD gaming CPU affinity, dynamic scx schedulers, and real-time process tuning.")),
            ("🔄", tr("Cutting-Edge Rolling Release"), tr("Continuous evolution based on Arch Linux. Your system seamlessly incorporates the latest hardware optimizations, libraries, and ecosystem tools as they release.")),
            ("⚡", tr("Hardware Mutation (v3/v4)"), tr("Automatic processor audit: modern CPUs receive high-performance optimized packages (v3/v4) for maximum speed; if unsupported, it uses standard versions for total compatibility without issues.")),
            ("🛡️", tr("Btrfs Snapshots & Rollback"), tr("Automated Snapper snapshots taken before each system update. If anything fails or breaks, restore your system in seconds directly from the bootloader menu.")),
            ("🔒", tr("Privacy by Design"), tr("Zero metrics collection, diagnostics, or background tracking. Unlike other operating systems, X64 LIOS never monitors your activity or sends your data anywhere.")),
            ("✨", tr("Clean & Surgical System"), tr("Zero bloatware and zero background idle services. An ultra-lean footprint consuming merely 600–800 MB of idle RAM, dedicating your hardware fully to gaming and maximum performance."))
        ]

        for i, (icon_s, p_title, p_desc) in enumerate(pillars):
            row = i // 2
            col = i % 2
            card = PillarCard(icon_s, p_title, p_desc)
            grid.addWidget(card, row, col)

        layout.addLayout(grid)

        # Centered Quick Status Ribbon
        ribbon = QFrame()
        ribbon.setStyleSheet("""
            QFrame {
                background-color: rgba(255, 255, 255, 0.02);
                border: 1px solid rgba(255, 255, 255, 0.05);
                border-radius: 8px;
            }
        """)
        r_layout = QHBoxLayout()
        r_layout.setContentsMargins(14, 8, 14, 8)
        r_layout.setSpacing(24)
        r_layout.addStretch(1)

        status_items = [
            ("●", tr("UEFI x86_64 Boot")),
            ("●", tr("CachyOS Kernel + FalconD")),
            ("●", tr("Ready Network")),
            ("●", tr("Zero-Latency ZRAM")),
            ("●", tr("8 Desktops to Choose"))
        ]
        for dot, label_text in status_items:
            lbl = QLabel(f"<span style='color: #00e676;'>{dot}</span> <span style='color: #cccccc; font-weight: 500; font-size: 11.5px;'>{label_text}</span>")
            lbl.setTextFormat(Qt.TextFormat.RichText)
            lbl.setStyleSheet("background: transparent; border: none;")
            r_layout.addWidget(lbl)
        r_layout.addStretch(1)
        ribbon.setLayout(r_layout)
        layout.addWidget(ribbon)

        # Quick Actions Row (2 columns: Live exploration & btop)
        actions_hbox = QHBoxLayout()
        actions_hbox.setSpacing(14)
        btn_live = PremiumButton(
            tr("Explore Live Environment"),
            tr("Minimize this window and test the extreme performance of the live system."),
            "view-fullscreen",
            cmd="minimize",
            height=76
        )
        btn_btop = PremiumButton(
            tr("Resource Monitor (btop)"),
            tr("Audit real-time CPU, RAM, and process usage with btop."),
            "utilities-system-monitor",
            cmd="kitty -o remember_window_size=no -o initial_window_width=100c -o initial_window_height=30c -e btop",
            height=76
        )
        actions_hbox.addWidget(btn_live)
        actions_hbox.addWidget(btn_btop)
        layout.addLayout(actions_hbox)

        return page

    def get_system_telemetry(self):
        cpu_model = tr("Unknown")
        try:
            with open("/proc/cpuinfo") as f:
                for line in f:
                    if "model name" in line:
                        cpu_model = line.split(":")[1].strip()
                        cpu_model = re.sub(r"\(R\)|\(TM\)", "", cpu_model)
                        cpu_model = re.sub(r"\s+", " ", cpu_model).strip()
                        break
        except Exception:
            cpu_model = platform.processor()

        arch_level = "x86-64"
        try:
            res = subprocess.run(["/lib64/ld-linux-x86-64.so.2", "--help"], capture_output=True, text=True)
            if "x86-64-v4 (supported" in res.stdout:
                arch_level = "x86-64-v4 (AVX-512)"
            elif "x86-64-v3 (supported" in res.stdout:
                arch_level = "x86-64-v3 (AVX2)"
            elif "x86-64-v2 (supported" in res.stdout:
                arch_level = "x86-64-v2 (SSE4.2)"
        except Exception:
            pass

        ram_text = "N/A"
        zram_text = tr("ZRAM Inactive")
        try:
            with open("/proc/meminfo") as f:
                mem = {}
                for l in f:
                    p = l.split(":")
                    if len(p) == 2:
                        mem[p[0].strip()] = int(p[1].strip().split()[0])
                tot = mem.get("MemTotal", 0) // 1024
                avail = mem.get("MemAvailable", 0) // 1024
                used = tot - avail
                ram_text = f"{used} MB / {tot} MB"
            if os.path.exists("/dev/zram0"):
                zram_text = tr("ZRAM Active")
        except Exception:
            pass

        gpu_text = tr("Standard GPU")
        try:
            res = subprocess.run(["lspci"], capture_output=True, text=True)
            for line in res.stdout.splitlines():
                if any(k in line.lower() for k in ["vga", "3d", "display"]):
                    p = line.split(": ")[-1]
                    gpu_text = re.sub(r"\(rev ..\)", "", p).strip()
                    if "Virtio" in gpu_text:
                        gpu_text = "Virtio GPU (Acelerada)"
                    break
        except Exception:
            pass

        screen_text = "Wayland Display"
        try:
            env = os.environ.copy()
            if "WAYLAND_DISPLAY" not in env:
                env["WAYLAND_DISPLAY"] = "wayland-1"
            if "XDG_RUNTIME_DIR" not in env:
                env["XDG_RUNTIME_DIR"] = "/run/user/1000"
            res = subprocess.run(["kscreen-doctor", "-o"], capture_output=True, text=True, timeout=1.5, env=env)
            clean = re.sub(r"\x1b\[[0-9;]*m", "", res.stdout)
            for token in clean.split():
                if "*!" in token:
                    clean_tok = token.replace("*!", "").split(":")[-1]
                    p = clean_tok.split("@")
                    if len(p) == 2:
                        screen_text = f"{p[0]} @ {float(p[1]):.0f}Hz"
                        break
        except Exception:
            pass

        return {
            "cpu": cpu_model,
            "arch": arch_level,
            "ram": ram_text,
            "zram": zram_text,
            "gpu": gpu_text,
            "screen": screen_text
        }

    def run_audio_test(self):
        def _play():
            sounds_left = ["/usr/share/sounds/alsa/Front_Left.wav", "/usr/share/sounds/freedesktop/stereo/audio-channel-front-left.oga"]
            sounds_right = ["/usr/share/sounds/alsa/Front_Right.wav", "/usr/share/sounds/freedesktop/stereo/audio-channel-front-right.oga"]
            l_file = next((f for f in sounds_left if os.path.exists(f)), None)
            r_file = next((f for f in sounds_right if os.path.exists(f)), None)
            player = "pw-play" if os.path.exists("/usr/bin/pw-play") else "paplay"
            if l_file and r_file:
                subprocess.run([player, l_file])
                time.sleep(0.12)
                subprocess.run([player, r_file])
            else:
                subprocess.run(["speaker-test", "-t", "wav", "-c", "2", "-l", "1"])
        threading.Thread(target=_play, daemon=True).start()

    def run_gpu_test(self):
        tele = getattr(self, "cached_tele", {"gpu": "GPU Estándar", "screen": "Display"})
        dlg = GpuBenchmarkDialog(self, tele.get("gpu", "GPU"), tele.get("screen", "Display"))
        dlg.exec()

    def create_page_sistema(self):
        page = QWidget()
        layout = QVBoxLayout()
        layout.setContentsMargins(48, 30, 48, 30)
        layout.setSpacing(14)
        layout.setAlignment(Qt.AlignmentFlag.AlignTop)
        page.setLayout(layout)

        header_vbox = QVBoxLayout()
        header_vbox.setSpacing(4)
        sub_tag = QLabel(f"// {tr('HARDWARE DIAGNOSTICS & CONTROL')}")
        sub_tag.setStyleSheet("color: #cc0000; font-size: 11px; font-weight: 800; letter-spacing: 2px; background: transparent;")
        header_vbox.addWidget(sub_tag)

        title = QLabel(tr("System Cockpit & Tools").upper())
        title.setStyleSheet("color: #ffffff; font-size: 26px; font-weight: 900; letter-spacing: 1px; background: transparent;")
        header_vbox.addWidget(title)

        desc = QLabel(tr("Real-time hardware audit, idle memory telemetry, and express verification tools to tune your machine."))
        desc.setStyleSheet("color: #9e9ea7; font-size: 13px; line-height: 1.45; background: transparent;")
        desc.setWordWrap(True)
        header_vbox.addWidget(desc)
        layout.addLayout(header_vbox)

        tele = self.get_system_telemetry()
        self.cached_tele = tele
        
        telem_hbox = QHBoxLayout()
        telem_hbox.setSpacing(14)
        
        is_live = os.path.exists("/run/archiso")
        sub_ram = tr("Live session (~200MB ISO layers in RAM)") if is_live else tr("Ultra-low idle footprint")
        
        c_cpu = TelemetryCard("⚡", tr("CPU & Architecture"), tele["cpu"], tele["arch"], tr("Optimized execution pipeline"))
        self.card_ram = TelemetryCard("💾", tr("Memory (RAM & ZRAM)"), tele["ram"], tele["zram"], sub_ram)
        c_gpu = TelemetryCard("🎮", tr("Graphics & Display"), tele["gpu"], tele["screen"], tr("Hardware acceleration ready"))
        
        telem_hbox.addWidget(c_cpu)
        telem_hbox.addWidget(self.card_ram)
        telem_hbox.addWidget(c_gpu)
        layout.addLayout(telem_hbox)
        layout.addSpacing(10)

        cols_hbox = QHBoxLayout()
        cols_hbox.setSpacing(16)

        left_vbox = QVBoxLayout()
        left_vbox.setSpacing(14)
        lbl_left = QLabel(f"// {tr('LIVE VERIFICATIONS')}")
        lbl_left.setStyleSheet("color: #888888; font-size: 11.5px; font-weight: 800; letter-spacing: 1.5px; background: transparent; padding-bottom: 2px;")
        left_vbox.addWidget(lbl_left)

        btn_sound = PremiumButton(
            tr("Stereo Audio Test"),
            tr("Verify left and right channels to ensure speakers and headphones work properly."),
            "audio-speakers",
            callback=self.run_audio_test,
            height=96
        )
        btn_gpu = PremiumButton(
            tr("3D Graphics & FPS Test"),
            tr("Launch an interactive 3D benchmark to measure GPU fluidity and frame rates."),
            "video-display",
            callback=self.run_gpu_test,
            height=96
        )
        btn_display = PremiumButton(
            tr("Display Configuration"),
            tr("Adjust monitor refresh rate (Hz), screen resolution, and desktop scaling."),
            "preferences-desktop-display",
            cmd="systemsettings kcm_kscreen",
            height=96
        )
        left_vbox.addWidget(btn_sound)
        left_vbox.addWidget(btn_gpu)
        left_vbox.addWidget(btn_display)
        cols_hbox.addLayout(left_vbox)

        right_vbox = QVBoxLayout()
        right_vbox.setSpacing(14)
        lbl_right = QLabel(f"// {tr('MASTER UTILITIES')}")
        lbl_right.setStyleSheet("color: #888888; font-size: 11.5px; font-weight: 800; letter-spacing: 1.5px; background: transparent; padding-bottom: 2px;")
        right_vbox.addWidget(lbl_right)

        btn_btop = PremiumButton(
            tr("Resource Monitor (btop)"),
            tr("Audit real-time CPU, RAM, and process usage with btop."),
            "utilities-system-monitor",
            cmd="kitty -o remember_window_size=no -o initial_window_width=100c -o initial_window_height=30c -e btop",
            height=96
        )
        btn_gparted = PremiumButton(
            tr("Partition Manager (GParted)"),
            tr("Open GParted to partition, format, or prepare disks."),
            "drive-harddisk",
            cmd="pkexec gparted",
            height=96
        )
        btn_kitty = PremiumButton(
            tr("Hacker Terminal (Kitty)"),
            tr("Launch Kitty with your transparent profile and ASCII logo."),
            "utilities-terminal",
            cmd="kitty -o remember_window_size=no -o initial_window_width=110c -o initial_window_height=30c",
            height=96
        )
        right_vbox.addWidget(btn_btop)
        right_vbox.addWidget(btn_gparted)
        right_vbox.addWidget(btn_kitty)
        cols_hbox.addLayout(right_vbox)

        layout.addLayout(cols_hbox)
        return page

    def create_page_comunidad(self):
        page = QWidget()
        layout = QVBoxLayout()
        layout.setContentsMargins(70, 40, 70, 40)
        layout.setAlignment(Qt.AlignmentFlag.AlignTop)
        page.setLayout(layout)

        title = QLabel(tr("X64 Community"))
        title.setStyleSheet("color: #ffffff; font-size: 38px; font-weight: bold; background: transparent;")
        layout.addWidget(title)

        desc = QLabel(tr("X64 LIOS is an open community of enthusiasts and developers. Join to receive support, share scripts, and discuss."))
        desc.setStyleSheet("color: #a0a0a0; font-size: 15px; background: transparent;")
        desc.setWordWrap(True)
        layout.addWidget(desc)
        layout.addSpacing(40)

        vlayout = QVBoxLayout()
        vlayout.setSpacing(20)
        vlayout.addWidget(PremiumButton(tr("Discord Server"), tr("Real-time support channels and discussions."), "applications-internet", url="https://discord.gg/x64studios"))
        vlayout.addWidget(PremiumButton(tr("GitHub Repository"), tr("Audit and contribute to the system's source code."), "text-x-script", url="https://github.com/x64studios"))
        layout.addLayout(vlayout)
        return page

    def create_page_filosofia(self):
        page = QWidget()
        layout = QVBoxLayout()
        layout.setContentsMargins(40, 25, 40, 20)
        layout.setSpacing(6)
        page.setLayout(layout)

        category = QLabel(tr("// ARCHITECTURAL FOUNDATIONS & MANIFESTO"))
        category.setStyleSheet("color: #ff3333; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; background: transparent;")
        layout.addWidget(category)

        title = QLabel(tr("X64 Architectural Manifesto"))
        title.setStyleSheet("color: #ffffff; font-size: 26px; font-weight: 800; background: transparent;")
        layout.addWidget(title)

        intro = QLabel(tr("X64 LIOS was born as the ultimate answer to Linux fragmentation. We extract the raw power of high-performance kernels, the precision of the gaming ecosystem, and the purity of Arch to forge the definitive operating system."))
        intro.setStyleSheet("color: #a0a0a0; font-size: 13px; font-style: italic; background: transparent;")
        intro.setWordWrap(True)
        layout.addWidget(intro)
        layout.addSpacing(10)

        scroll_area = QScrollArea()
        scroll_area.setWidgetResizable(True)
        # Beautiful custom dark red scrollbar
        scroll_area.setStyleSheet("""
            QScrollArea { border: none; background: transparent; }
            QScrollBar:vertical { background: #121212; width: 6px; margin: 0px; border-radius: 3px; }
            QScrollBar::handle:vertical { background: #333333; min-height: 25px; border-radius: 3px; }
            QScrollBar::handle:vertical:hover { background: #cc0000; }
            QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical { height: 0px; }
            QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical { background: none; }
        """)

        content_widget = QWidget()
        content_widget.setStyleSheet("background: transparent;")
        grid = QGridLayout()
        grid.setContentsMargins(0, 0, 10, 15)
        grid.setHorizontalSpacing(14)
        grid.setVerticalSpacing(10)

        filosofia = [
            (tr("I. Absolute Freedom"), tr("Upstream purity of Arch Linux with zero PPAs, zero corporate ties, and 99% of system packages intact. Combined with the AUR and modern GUI tools for complete freedom.")),
            (tr("II. Surgical Optimization"), tr("Linux-CachyOS kernel with scx dynamic schedulers, FalconD gaming CPU affinity, ananicy-cpp priority tuning, and pure ZRAM in RAM for zero disk swap latency.")),
            (tr("III. Multi-Environment Ecosystem"), tr("Live environment in KDE Plasma 6 Wayland, plus 8 official installation options (KDE, GNOME, COSMIC, Niri, Cinnamon, Xfce, Hyprland, and Server) with 16:9 previews.")),
            (tr("IV. Sovereign Repositories"), tr("Sovereign cascading repository hierarchy. [x64-lios] holds priority #1 above Arch and CachyOS, delivering custom packages and optimizations directly without bottlenecks.")),
            (tr("V. Hardware Mutation"), tr("During installation, the system audits your CPU: modern processors get AVX2/AVX512 (v3/v4) repositories injected below [x64-lios]. chwd autodetects NVIDIA, AMD, and Intel GPUs.")),
            (tr("VI. Modular Architecture"), tr("Lightweight installer with zero bloat. Heavy gaming platforms and emulators are cleanly delegated to post-installation setup in X64 Hello after first boot.")),
            (tr("VII. Shield of Resilience"), tr("Temporal immutability with Btrfs & automated Snapper snapshots. Multi-bootloader support choosing Limine, GRUB, systemd-boot, or rEFInd for effortless rollback.")),
            (tr("VIII. The Death of the Terminal"), tr("GUI-First philosophy for effortless everyday use, paired with an elite hacker terminal experience in Kitty, Fish shell, and Starship pills for power users.")),
            (tr("IX. Cutting-Edge Rolling Release"), tr("Continuous evolution based on Arch Linux. Your system seamlessly incorporates the latest hardware optimizations, kernel advances, and upstream software without reinstallations.")),
            (tr("X. Architectural Pragmatism"), tr("Open Source synergy. We inherit and polish battle-tested foundations, writing custom code and maintaining our own repositories only where we add sovereign value.")),
            (tr("XI. Aesthetics as Function"), tr("Design is not an afterthought. Widescreen panoramic UI, Crimson & Charcoal color direction (#b31b1b / #0b0b0d), and vector iconography engineered for focus and control.")),
            (tr("XII. Privacy by Design"), tr("Zero metrics collection, diagnostics, or covert background tracking. Unlike commercial operating systems, X64 LIOS never monitors your activity or phones home. Your hardware belongs to you."))
        ]

        for idx, (p_title, p_desc) in enumerate(filosofia):
            row = idx // 2
            col = idx % 2

            frame = QFrame()
            frame.setObjectName("FiloCard")
            frame.setStyleSheet("""
                QFrame#FiloCard {
                    background-color: rgba(255, 255, 255, 0.025);
                    border: 1px solid rgba(255, 255, 255, 0.05);
                    border-radius: 8px;
                    border-left: 3px solid #cc0000;
                }
                QFrame#FiloCard:hover {
                    background-color: rgba(204, 0, 0, 0.08);
                    border: 1px solid rgba(204, 0, 0, 0.25);
                    border-left: 3px solid #ff3333;
                }
            """)
            flayout = QVBoxLayout()
            flayout.setContentsMargins(18, 14, 18, 14)
            flayout.setSpacing(5)

            lbl_t = QLabel(p_title)
            lbl_t.setStyleSheet("color: #ffffff; font-weight: 700; font-size: 13px; border: none; background: transparent;")

            lbl_d = QLabel(p_desc)
            lbl_d.setStyleSheet("color: #999999; font-size: 11px; line-height: 1.4; border: none; background: transparent;")
            lbl_d.setWordWrap(True)

            flayout.addWidget(lbl_t)
            flayout.addWidget(lbl_d)
            frame.setLayout(flayout)
            grid.addWidget(frame, row, col)

        content_widget.setLayout(grid)
        scroll_area.setWidget(content_widget)

        layout.addWidget(scroll_area)
        return page

    def change_language(self, lang_id):
        if lang_id != _lang_code:
            os.environ["X64_LANG"] = lang_id
            os.execl(sys.executable, sys.executable, *sys.argv)

    def change_page(self, index):
        for i, btn in enumerate(self.nav_buttons):
            if i == index:
                btn.set_active_style()
            else:
                btn.set_inactive_style()
        self.stacked_widget.setCurrentIndex(index)

    def check_internet(self):
        try:
            sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
            sock.settimeout(2.5)
            sock.connect(("1.1.1.1", 53))
            sock.close()
            return True
        except Exception:
            return False

    def launch_calamares(self):
        if not self.check_internet():
            msg = QMessageBox(self)
            msg.setWindowTitle(tr("Internet Connection Required"))
            msg.setText(tr("An active internet connection is required to launch the X64 LIOS Installer.\n\nPlease connect to Wi-Fi or plug in an Ethernet cable using the network tray icon before proceeding."))
            msg.setIcon(QMessageBox.Icon.Warning)
            msg.setStyleSheet("""
                QMessageBox {
                    background-color: #121214;
                    border: 1px solid #cc0000;
                    border-radius: 12px;
                }
                QMessageBox QLabel {
                    background: transparent;
                    background-color: transparent;
                    color: #ffffff;
                    font-size: 14px;
                    line-height: 1.5;
                }
                QMessageBox QDialogButtonBox {
                    background: transparent;
                    background-color: transparent;
                }
                QPushButton {
                    background-color: #cc0000;
                    color: #ffffff;
                    font-weight: bold;
                    border-radius: 6px;
                    padding: 8px 24px;
                    min-width: 90px;
                }
                QPushButton:hover {
                    background-color: #ff1a1a;
                }
            """)
            msg.exec()
            return

        os.system(
            "kitty --title 'X64 LIOS Installer Log' bash -c '"
            "echo \":: Sincronizando X64-LIOS-Installer desde GitHub...\"; "
            "if curl -sL https://github.com/XzForz3-Dev/X64-LIOS-Installer/archive/refs/heads/main.tar.gz | tar -xz -C /tmp/; then "
            "sudo cp -rf /tmp/X64-LIOS-Installer-main/. /etc/calamares/ && rm -rf /tmp/X64-LIOS-Installer-main; "
            "fi; "
            "sudo calamares -d' &"
        )
        self.close()

if __name__ == '__main__':
    app = QApplication(sys.argv)
    app.setDesktopFileName("x64-welcome")
    icon = QIcon("/usr/share/pixmaps/x64-welcome-icon.png")
    app.setWindowIcon(icon)
    QIcon.setThemeName("breeze-dark")
    app.setStyle("Fusion")
    welcome = X64Welcome()
    welcome.setWindowIcon(icon)
    if len(sys.argv) > 1 and sys.argv[1].isdigit():
        welcome.change_page(int(sys.argv[1]))
    welcome.show()
    sys.exit(app.exec())
