/* ============================================
   NEURAL AI PLAYGROUND - STYLESHEET
   Version: 1.0.0
   Author: mehdi hamidi
   Theme: neon Matrix
   ============================================ */

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
    /* Primary Colors */
    --primary-cyan: #0fffff;
    --primary-magenta: #ff00ff;
    --primary-purple: #8b5cf6;
    --primary-green: #00ff88;
    --primary-blue: #3b82f6;
    --primary-orange: #f97316;
    --primary-red: #ef4444;
    --neon-glow:#00D138;
    --glow-neon-green: #00ff00;  
      
    
    /* Background Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: rgba(20, 20, 30, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b7280;
    --text-accent: var(--primary-cyan);
    
    /* Border Colors */
    --border-primary: rgba(0, 255, 255, 0.2);
    --border-secondary: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(0, 255, 255, 0.5);
    --border-active: var(--primary-cyan);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta));
    --gradient-secondary: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    --gradient-dark: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    --gradient-glow: radial-gradient(circle, var(--primary-cyan) 0%, transparent 70%);
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 255, 255, 0.3);
    --shadow-glow-magenta: 0 0 30px rgba(255, 0, 255, 0.3);
    --shadow-glow-purple: 0 0 30px rgba(139, 92, 246, 0.3);
    
    /* Blur */
    --blur-sm: blur(5px);
    --blur-md: blur(10px);
    --blur-lg: blur(20px);
    --blur-xl: blur(40px);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Font Sizes */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 2rem;
    --font-4xl: 2.5rem;
    --font-5xl: 3rem;
    --font-6xl: 4rem;
    
    /* Font Family */
    --font-primary: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Z-Index */
    --z-background: -10;
    --z-default: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-popover: 500;
    --z-tooltip: 600;
    --z-preloader: 9999;
    
    /* Container */
    --container-max: 1400px;
    --container-padding: 1.5rem;
    
    /* Navbar */
    --navbar-height: 80px;
    --navbar-height-scrolled: 75px;
}

.logo-text {
    display: inline-block;
    transition: opacity 0.3s ease; 
}


@media (max-width: 991px) {
    .logo-text {
        display: none;
    }
}


#matrixCanvas.disabled { display: none; }
#matrixCanvas.disabled {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.nav-btn#matrixToggle i.fa-eye-slash {
    opacity: 0.6;
}

/*============================================
// CHAT SIDEBAR - تاریخچه چت‌ها
// ============================================
*/
/* دکمه شناور تاریخچه چت */
.floating-sidebar-toggle {
    position: fixed;
    top: 90px;
    left: 0px;
    width: 56px;
    height: 56px;
    background: rgba(0, 255, 255, 0.15);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    color: #00ffff;
    font-size: 1.4em;
    cursor: pointer;
    z-index: 999; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}

.floating-sidebar-toggle:hover {
    background: rgba(0, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
}

.floating-sidebar-toggle:active {
    transform: scale(0.95);
}

.floating-glow {
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.floating-sidebar-toggle:hover .floating-glow {
    opacity: 1;
}


.chat-sidebar.open ~ .floating-sidebar-toggle,
.chat-sidebar.open + .floating-sidebar-toggle {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.custom-tooltip {
    position: fixed;
    background: rgba(10, 10, 15, 0.95);
    color: #00ffff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9em;
    pointer-events: none;
    z-index: 2000;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    white-space: nowrap;
    max-width: 280px;
    text-align: center;
}

.custom-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

/* tooltip */
.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border: 6px solid transparent;
    border-top-color: rgba(0, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .floating-sidebar-toggle {
        top: 85px;
        left: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.3em;
    }
}


@media (min-width: 992px) {
    .floating-sidebar-toggle {
        left: 80px; /* فاصله بیشتر از لوگو */
    }
}

.chat-sidebar {
    position: fixed;
    left: 0; top: 75px;
    width: 320px; height: 100vh;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(6px);
    border-right: 1px solid rgba(0, 255, 255, 0.2);
    border-top-right-radius: 35px;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}
.chat-sidebar.open { transform: translateX(0); }

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #00ffff;
}
.sidebar-content { flex: 1; overflow-y: auto; padding: 10px; }
.sidebar-item {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: rgba(0, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s;
}
.sidebar-item:hover { 
    background: rgba(0, 255, 255, 0.2);
    transform: translateX(4px);
}
.sidebar-item-title { 
    font-weight: bold; 
    color: #fff;
    margin-bottom: 6px;
}
.sidebar-item-preview { 
    opacity: 0.7; 
    font-size: 0.9em; 
    color: #aaa;
}
.sidebar-item-time { 
    font-size: 0.8em; 
    opacity: 0.6; 
    margin-top: 8px; 
    color: #00ffff;
}
.sidebar-empty { 
    text-align: center; 
    opacity: 0.6; 
    padding: 60px 20px; 
    color: #888;
}
@media (max-width: 992px) {
    .chat-sidebar { width: 100%; }
}
.sidebar-close {
    background: none;
    border: none;
    color: #aaa; 
    font-size: 1.6em; 
    cursor: pointer;
    padding: 8px;
    border-radius: 50%; 
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.sidebar-close:hover {
    color: #00ffff; 
    background: rgba(0, 255, 255, 0.15); 
    transform: scale(1.1); 
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3); 
}

.sidebar-close:active {
    transform: scale(0.95);
}


.sidebar-close {
    color: #00ffff !important;
    opacity: 0.8;
}

.sidebar-close:hover {
    opacity: 1;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 6px 8px;
    background: rgba(20, 20, 40, 0.6);
    transition: all 0.18s ease;
    cursor: pointer;
    user-select: none;
}

.sidebar-item:hover {
    background: rgba(0, 255, 255, 0.12);
    transform: translateX(-2px);
}

.sidebar-item-main {
    flex: 1;
    min-width: 0; /* جلوگیری از سرریز متن */
}

.sidebar-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-item-preview {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-item-time {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
}

.sidebar-delete-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 6px;
    opacity: 0.65;
    transition: all 0.2s;
}

.sidebar-delete-btn:hover {
    opacity: 1;
    background: rgba(255, 107, 107, 0.15);
    transform: scale(1.15);
}
/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-base);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

::selection {
    background: var(--primary-cyan);
    color: var(--bg-primary);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-cyan), var(--primary-magenta));
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-cyan);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-normal);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

ul,
ol {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-5xl); }
h2 { font-size: var(--font-4xl); }
h3 { font-size: var(--font-3xl); }
h4 { font-size: var(--font-2xl); }
h5 { font-size: var(--font-xl); }
h6 { font-size: var(--font-lg); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--primary-cyan);
}

code {
    font-family: var(--font-mono);
    background: var(--bg-glass);
    padding: 0.2em 0.5em;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    color: var(--primary-cyan);
}

/* ============================================
   4. PRELOADER
   ============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-preloader);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    position: relative;
}

.preloader-matrix {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: bold;
}

.preloader-matrix span {
    color: var(--primary-cyan);
    animation: matrixFall 1.5s ease-in-out infinite;
    text-shadow: 0 0 20px var(--primary-cyan);
}

.preloader-matrix span:nth-child(1) { animation-delay: 0s; }
.preloader-matrix span:nth-child(2) { animation-delay: 0.1s; }
.preloader-matrix span:nth-child(3) { animation-delay: 0.2s; }
.preloader-matrix span:nth-child(4) { animation-delay: 0.3s; }
.preloader-matrix span:nth-child(5) { animation-delay: 0.4s; }
.preloader-matrix span:nth-child(6) { animation-delay: 0.5s; }

@keyframes matrixFall {
    0%, 100% { 
        opacity: 0.3; 
        transform: translateY(-10px); 
    }
    50% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.preloader-icon {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-icon i {
    font-size: 3.5rem;
    color: var(--primary-cyan);
    animation: pulse 2s ease-in-out infinite;
    text-shadow: 0 0 30px var(--primary-cyan);
}

.preloader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--primary-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.preloader-ring.ring-2 {
    width: 85%;
    height: 85%;
    border-top-color: var(--primary-magenta);
    animation-direction: reverse;
    animation-duration: 1.5s;
}

.preloader-ring.ring-3 {
    width: 70%;
    height: 70%;
    border-top-color: var(--primary-purple);
    animation-duration: 2s;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.preloader-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.preloader-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.preloader-progress {
    width: 250px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto 1rem;
}

.preloader-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-cyan);
}

.preloader-percent {
    color: var(--primary-cyan);
    font-size: 1.2rem;
    font-weight: 600;
}

/* ============================================
   5. MATRIX BACKGROUND & PARTICLES
   ============================================ */
.matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    opacity: 0.4;
    pointer-events: none;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.glow-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-cyan);
    top: 10%;
    left: 10%;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--primary-magenta);
    top: 50%;
    right: 10%;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--primary-purple);
    bottom: 10%;
    left: 30%;
}

/* ============================================
   6. NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    padding-top: 11px;
    z-index: var(--z-sticky);
    transition: var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    height: var(--navbar-height-scrolled);
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border-bottom: 1px solid var(--border-primary);
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--spacing-xl);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-size: 1.3rem;
    color: var(--bg-primary);
}

.logo-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    animation: logoPulse 2s ease-out infinite;
    opacity: 0;
}

@keyframes logoPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}


.logo-text .highlight {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1rem;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding-top: 12px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    font-size: var(--font-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.nav-link i:first-child {
    font-size: 1rem;
    opacity: 0.7;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-cyan);
    background: var(--bg-glass);
}

.nav-link.active {
    background: rgba(0, 255, 255, 0.1);
}

.submenu-arrow {
    font-size: 0.7rem;
    transition: transform var(--transition-normal);
    margin-right: var(--spacing-xs);
}

.has-submenu:hover .submenu-arrow,
.has-submenu.submenu-open .submenu-arrow {
    transform: rotate(180deg);
}

/* Submenu */
.submenu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: rgba(20, 20, 30, 0.98);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.has-submenu:hover .submenu,
.has-submenu.submenu-open .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    font-size: var(--font-sm);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.submenu-item i {
    width: 20px;
    color: var(--primary-cyan);
    opacity: 0.7;
}

.submenu-item:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.submenu-item.highlight {
    background: rgba(0, 255, 255, 0.1);
    color: var(--primary-cyan);
    margin-top: var(--spacing-sm);
}

.submenu-divider {
    height: 1px;
    background: var(--border-secondary);
    margin: var(--spacing-sm) 0;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition-normal);
}

.theme-toggle:hover {
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
    box-shadow: var(--shadow-glow);
}

.theme-toggle .fa-sun {
    display: none;
}

.light-mode .theme-toggle .fa-moon {
    display: none;
}

.light-mode .theme-toggle .fa-sun {
    display: block;
}

.nav-notification {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition-normal);
}

.nav-notification:hover {
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: var(--primary-magenta);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    padding: 6px;
    padding-top: 6px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   7. HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--navbar-height) + 2rem) 0 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    color: var(--primary-cyan);
    margin-bottom: var(--spacing-xl);
}

.hero-badge i {
    animation: flash 2s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
}

.title-line {
    display: block;
}

.title-line:first-child {
    color: var(--text-primary);
}

/* Glitch Effect */
.glitch {
    position: relative;
    animation: glitch 5s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--primary-magenta);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary-cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch {
    0%, 90%, 100% { transform: none; }
    91% { transform: skew(-0.5deg, -0.5deg); }
    92% { transform: none; }
    93% { transform: skew(0.5deg, 0.5deg); }
    94% { transform: none; }
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 31px, 0); }
    20% { clip: rect(85px, 9999px, 93px, 0); }
    40% { clip: rect(23px, 9999px, 55px, 0); }
    60% { clip: rect(62px, 9999px, 79px, 0); }
    80% { clip: rect(15px, 9999px, 48px, 0); }
    100% { clip: rect(71px, 9999px, 89px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 82px, 0); }
    20% { clip: rect(17px, 9999px, 39px, 0); }
    40% { clip: rect(49px, 9999px, 68px, 0); }
    60% { clip: rect(28px, 9999px, 47px, 0); }
    80% { clip: rect(73px, 9999px, 91px, 0); }
    100% { clip: rect(8px, 9999px, 26px, 0); }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.hero-subtitle strong {
    color: var(--text-primary);
}

/* Typing Effect */
.typing-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-2xl);
    font-size: var(--font-lg);
    min-height: 40px;
}

.typing-label {
    color: var(--text-dim);
}

.typing-effect {
    color: var(--primary-cyan);
    font-weight: 500;
}

.typing-cursor {
    color: var(--primary-cyan);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-2xl);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2xl);
    flex-wrap: wrap;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-secondary);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.hero-stat i {
    color: var(--primary-cyan);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
}

.hero-stat .stat-value {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.hero-stat .stat-label {
    font-size: var(--font-sm);
    color: var(--text-muted);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   8. STATS SECTION
   ============================================ */
.stats-section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.stat-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    transition: var(--transition-normal);
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    color: var(--primary-cyan);
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: var(--font-sm);
    color: var(--text-muted);
}

.stat-graph {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100px;
    opacity: 0.3;
}

.stat-graph svg {
    width: 100%;
    height: 100%;
}

.stat-line {
    fill: none;
    stroke: var(--primary-cyan);
    stroke-width: 1;
    stroke-linecap: round;
}

/* ============================================
   9. PLAYGROUND MAIN
   ============================================ */
.playground-main {
    padding: var(--spacing-xl) 0;
    position: relative;
  
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.section-title i {
    color: var(--primary-cyan);
}

.section-subtitle {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   10. TAB CARDS
   ============================================ */
.playground-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 14px;
    margin-bottom: 30px;
    justify-content: center; /* کارت‌ها همیشه وسط چین بشن */
    padding: 0 12px;
}

.tab-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 15px;
    min-height: 125px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    overflow: hidden;
}

.tab-glow {
    position: absolute;
    top: 10%;
    left: 10%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-normal);
    pointer-events: none;
}

.tab-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}
.tab-card:hover .tab-title{
    color: var(--primary-cyan);
    transform: scale(1.1) ;
    animation: bounce 2s ;    
}
.tab-card:hover .tab-glow {
    opacity: 1;
}

.tab-card.active {
    border-color: var(--primary-cyan);
    background: rgba(0, 255, 255, 0.05);
    box-shadow: var(--shadow-glow);
}

.tab-card.active .tab-glow {
    opacity: 1;
}

.tab-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.tab-title {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.tab-desc {
    font-size: var(--font-sm);
    color: var(--text-muted);
    margin: 0;
}

.tab-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    padding: 2px 10px;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    font-size: var(--font-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.tab-badge.new {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
}

.tab-badge.beta {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

/* ============================================
   11. INTERFACE PANELS
   ============================================ */
.playground-panels {
    position: relative;
}

.interface-panel {
    display: none;
    background: var(--bg-card);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    animation: fadeInUp 0.5s ease forwards;
}

.interface-panel.active {
    display: block;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-secondary);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.panel-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.panel-info h3 {
    font-size: var(--font-lg);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.panel-info h3 i {
    color: var(--primary-cyan);
}

.model-badge {
    padding: 4px 12px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 500;
    color: var(--neon-glow);
}

.badge-beta {
    padding: 4px 10px;
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
    font-size: var(--font-xs);
    border-radius: var(--radius-full);
    margin-right: var(--spacing-sm);
}

.panel-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}
/* حالت تمام‌عرض پیشرفته: فقط هدر + پنل چت */
body.fullwidth-active {
    overflow: hidden;
}

.fullwidth-active .playground-panels {
    position: fixed;
    inset: 0;
    top: var(--navbar-height, 70px); 
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    height: calc(100vh - var(--navbar-height, 70px)) !important;
    max-width: none !important;
    background: var(--bg-dark, #0f0f1a);
    overflow-y: auto !important;         
    -webkit-overflow-scrolling: touch;  
    overscroll-behavior: contain;
}

body:not(.fullwidth-active) {
    scroll-behavior: smooth;
}
.fullwidth-active .playground-panels .container {
    max-width: 100% !important;
    padding: 0 15px !important;
    height: 100%;
}

/* مخفی کردن تمام المان‌های غیرضروری */
.fullwidth-active .section-header,
.fullwidth-active .typing-wrapper,
.fullwidth-active .playground-tabs,
.fullwidth-active .hero,
.fullwidth-active .cta-section,
.fullwidth-active footer,
.fullwidth-active .floating-sidebar-toggle,
.fullwidth-active .glow-orbs,
.fullwidth-active #particles,
.fullwidth-active #matrixCanvas:not(.fullwidth-visible),
.fullwidth-active .preloader {
    display: none !important;
}


.fullwidth-active #matrixCanvas {
    z-index: -1;
}

/* دکمه تغییر حالت */
.fullwidth-toggle.active i::before {
    content: "\f31e"; /* fa-compress-alt */
}

.fullwidth-toggle {
    transition: all 0.2s;
}

.fullwidth-toggle:hover {
    transform: scale(1.15);
    color: var(--primary-cyan);
}


.panel-actions .mode-btn {
    font-size: 1.1rem;
    padding: 8px 12px;
    margin-left: 4px;
    border-radius: 8px;
    transition: all 0.2s ease;
    opacity: 0.85;
}

.panel-actions .mode-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}


.mode-btn.chat-mode {
    color: var(--primary-blue);           
    background: rgba(0, 212, 255, 0.12);
}

.mode-btn.chat-mode.active {
    background: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
    border: #0fffff solid 1px;    
}

.mode-btn.image-mode {
    color: #ff6bcb;          
    background: rgba(255, 107, 203, 0.12);
}

.mode-btn.image-mode.active {
    background: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
    border: #0fffff solid 1px;    
}

.mode-btn.image-mode:hover {
    background: rgba(255, 107, 203, 0.25);
}

.mode-btn.code-mode {
    color: green;       
    background: rgba(0, 255, 157, 0.12);
}

.mode-btn.code-mode.active {
    background: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
    border: #0fffff solid 1px;
}

.mode-btn.voice-mode {
    color: var(--primary-orange);          
    background: rgba(255, 170, 0, 0.12);
}

.mode-btn.voice-mode.active {
    background: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
    border: #0fffff solid 1px;    
}

.mode-btn.analyze-mode {
    color: #c084fc;          
    background: rgba(192, 132, 252, 0.12);
}

.mode-btn.analyze-mode.active {
    background: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
    border: #0fffff solid 1px;    
}

.mode-btn.active {
    opacity: 1;
    transform: scale(1.08);
}
/* دکمه Outline — */
.btn-outline {
    position: relative;
    background: rgba(15, 20, 50, 0.3);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(0, 255, 255, 0.4);
    border-radius: 16px;
    padding: 14px 16px;
    color: #0fffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s ease;
}
/* دکمه Outline — Liquid Morph  */
.btn-outline {
    position: relative;
    background: rgba(10, 15, 40, 0.4);
    backdrop-filter: blur(12px);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 14px 16px;
    color: #00ffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}


.btn-outline::before {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    background: linear-gradient(45deg,
        #0fffff, #ff00ff, #8a00ff, #00ffea, #ff0066, #00ffff, #00ffff
    );
    background-size: 600% 600%;
    border-radius: 30px;
    z-index: -2;
    animation: energyFlow 10s linear infinite;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
}


.btn-outline::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg,
        rgba(140, 0, 255, 0.25),
        rgba(255, 0, 255, 0.35),
        rgba(247, 0, 255, 0.418)
    );
    background-size: 200% 200%;
    border-radius: 16px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


.btn-outline:hover::after {
    opacity: 1;
    transform: translateY(0);
    animation: softFlow 4s ease-in-out infinite;
}

.btn-outline:hover {
    color: #ffffff;
    border-color: #00ffff;
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 255, 255, 0.5);
}

.btn-primary {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 16px;
    padding:14px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #c1f2ff;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.6);
}


.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        #00ffff,
        #ff00ff 60deg,
        #8a00ff 120deg,
        #00ffff 180deg,
        #00ff88 240deg,
        #ff0066 300deg,
        #00ffff 360deg
    );
    animation: cyberSpin 12s linear infinite;
    filter: blur(12px);
    opacity: 0.7;
    z-index: -2;
}
/*Arasaka/Militech */
@keyframes cyberSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: rgba(10, 12, 35, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 255, 0.5);
    z-index: -1;

}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;    
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow-cyan);
}

.btn-primary2:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.4);
}
.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.4);
}

.btn-generate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;    
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow-cyan);    

}
.panel-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.panel-btn:hover {
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
    background: rgba(0, 255, 255, 0.1);
}

.language-select {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--font-sm);
    cursor: pointer;
    transition: var(--transition-normal);
}

.language-select:hover,
.language-select:focus {
    border-color: var(--primary-cyan);
}

.language-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ============================================
   12. CHAT PANEL
   ============================================ */
.chat-container {
    height: 400px;
    overflow-y: auto;
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.message {
    display: flex;
    gap: var(--spacing-md);
    max-width: 96%;
    animation: messageSlideIn 0.3s ease forwards;
}

.message.user {
    margin-right: auto;
    flex-direction: row-reverse;
}

.message.system {
    margin-left: auto;
}

.message-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--bg-primary);
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-secondary);
}

.message-content {
    background: var(--bg-glass);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    flex: 1;
}

.message.system .message-content {
    background: rgba(0, 255, 255, 0.05);
    border-color: rgba(0, 255, 255, 0.2);
}

.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}

.message-name {
    font-weight: 600;
    font-size: var(--font-sm);
    color: var(--primary-cyan);
}

.message-time {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.message-text {
    font-size: var(--font-sm);
    line-height: 1.7;
    color: var(--text-secondary);
}

.message-text p {
    margin-bottom: var(--spacing-sm);
}

.message-text p:last-child {
    margin-bottom: 0;
}

.message-text ul {
    padding-right: var(--spacing-lg);
    margin: var(--spacing-sm) 0;
}

.message-text li {
    margin-bottom: var(--spacing-xs);
}

.message-text strong {
    color: var(--text-primary);
}

.message-text code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

.message-actions {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-secondary);
}

.msg-action {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: var(--font-sm);
    transition: var(--transition-normal);
}

.msg-action:hover {
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
    background: rgba(0, 255, 255, 0.1);
}

/* Quick Prompts */
.quick-prompts {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-secondary);
    overflow-x: auto;
    flex-wrap: nowrap;
}

.quick-prompts::-webkit-scrollbar {
    height: 4px;
}

.quick-label {
    color: var(--text-muted);
    font-size: var(--font-sm);
    white-space: nowrap;
}

.quick-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: var(--font-xs);
    white-space: nowrap;
    transition: var(--transition-normal);
}

.quick-btn:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    background: rgba(0, 255, 255, 0.1);
}

.quick-btn i {
    font-size: 0.9rem;
}

/* Chat Input */
.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: var(--spacing-md);
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);    
    padding: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-secondary);
}

.input-container {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: var(--spacing-sm);
    background: var(--bg-glass);
    border: 2px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm);
    transition: var(--transition-normal);
}

.input-container:focus-within {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.input-action {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.input-action:hover {
    color: var(--primary-cyan);
    background: rgba(0, 255, 255, 0.1);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: var(--font-base);
    padding: var(--spacing-sm);
    resize: none;
    min-height: 44px;
    max-height: 150px;
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.btn-send {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--gradient-primary);
    color: var(--bg-primary);
    font-weight: 600;
    font-size: var(--font-sm);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-send:active {
    transform: translateY(0);
}

/* ============================================
   12. MODEL SELECTOR
   ============================================ */
.model-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-top-left-radius: var(--radius-sm);
    border-top-right-radius: var(--radius-sm);    
    direction: rtl;
}

.model-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    cursor: default;
}

.model-label i {
    color: var(--primary-cyan);
    font-size: 18px;
}

.model-select {
    flex: 1;
    padding: 8px 12px;
    background: var(--bg-glass);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    max-width: 300px;
}

.model-select:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
}

.model-select:focus {
    outline: none;
    border-color: var(--primary-magenta);
    box-shadow: 0 0 16px rgba(255, 0, 255, 0.3);
    background: var(--bg-primary);
}

.model-select optgroup {
    color: var(--primary-cyan);
    background: rgba(0, 255, 255, 0.1);
}

.model-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px;
}

/* ============================================
   13. IMAGE GENERATOR PANEL
   ============================================ */
.image-generator {
    padding: var(--spacing-xl);
}

.image-prompt-section {
    margin-bottom: var(--spacing-xl);
}

.input-label {
    display: block;
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.image-prompt-input {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-glass);
    border: 2px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: var(--font-base);
    resize: vertical;
    min-height: 100px;
    transition: var(--transition-normal);
}

.image-prompt-input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.image-prompt-input::placeholder {
    color: var(--text-muted);
}

.image-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.option-group {
    background: var(--bg-glass);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

/* Style Grid */
.style-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.style-btn {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--border-secondary);
    transition: var(--transition-normal);
}

.style-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: var(--transition-normal);
}

.style-btn span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-xs);
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-secondary);
    font-size: var(--font-xs);
    text-align: center;
}

.style-btn:hover {
    border-color: var(--border-hover);
}

.style-btn:hover img {
    opacity: 1;
}

.style-btn.active {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.style-btn.active img {
    opacity: 1;
}

.style-btn.active span {
    background: var(--primary-cyan);
    color: var(--bg-primary);
}

/* Size Options */
.size-options {
    display: flex;
    gap: 6px;
    overflow: hidden;
}

.size-btn {
    flex: 1;
    padding: var(--spacing-sm);
    background: var(--bg-glass);
    border: 2px solid var(--border-secondary);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-normal);
}

.size-btn:hover {
    border-color: var(--border-hover);
}

.size-btn.active {
    border-color: var(--primary-cyan);
    background: rgba(0, 255, 255, 0.1);
}

.size-preview {
    width: 30px;
    height: 30px;
    margin: 0 auto var(--spacing-sm);
    border: 2px solid var(--text-muted);
    border-radius: 4px;
}

.size-preview.square {
    width: 30px;
    height: 30px;
}

.size-preview.wide {
    width: 40px;
    height: 22px;
}

.size-preview.tall {
    width: 22px;
    height: 40px;
}

.size-preview.standard {
    width: 36px;
    height: 27px;
}

.size-btn.active .size-preview {
    border-color: var(--primary-cyan);
}

.size-btn span {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

.size-btn.active span {
    color: var(--primary-cyan);
}

/* Count Selector */
.count-selector {
    display: flex;
    gap: var(--spacing-sm);
}

.count-btn {
    flex: 1;
    padding: var(--spacing-md);
    background: var(--bg-glass);
    border: 2px solid var(--border-secondary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: var(--font-lg);
    font-weight: 600;
    transition: var(--transition-normal);
}

.count-btn:hover {
    border-color: var(--border-hover);
}

.count-btn.active {
    border-color: var(--primary-cyan);
    background: rgba(0, 255, 255, 0.1);
    color: var(--primary-cyan);
}

/* Image Output */
.image-output {
    margin-top: var(--spacing-xl);
    min-height: 200px;
}

.output-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3xl);
    background: var(--bg-glass);
    border: 2px dashed var(--border-secondary);
    border-radius: var(--radius-xl);
    text-align: center;
}

.output-placeholder i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.output-placeholder p {
    color: var(--text-muted);
    margin: 0;
}

/* Generated Images Grid */
.generated-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.generated-image-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 2px solid var(--border-primary);
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.generated-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--spacing-lg);
    opacity: 0;
    transition: var(--transition-normal);
}

.generated-image-card:hover .image-overlay {
    opacity: 1;
}

.generated-image-card:hover img {
    transform: scale(1.05);
}

.image-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.img-action-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--blur-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.img-action-btn:hover {
    background: var(--primary-cyan);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

/* Generating State */
.generating-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3xl);
    text-align: center;
}

.generating-animation {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.generating-circle {
    width: 20px;
    height: 20px;
    background: var(--primary-cyan);
    border-radius: 50%;
    animation: generatingPulse 1.5s ease-in-out infinite;
}

.generating-circle:nth-child(2) {
    animation-delay: 0.2s;
    background: var(--primary-magenta);
}

.generating-circle:nth-child(3) {
    animation-delay: 0.4s;
    background: var(--primary-purple);
}

@keyframes generatingPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
}

.generating-state p {
    color: var(--text-primary);
    font-size: var(--font-lg);
    margin-bottom: var(--spacing-sm);
}

.generating-info {
    color: var(--text-muted);
    font-size: var(--font-sm);
}

/* ============================================
   14. CODE GENERATOR PANEL
   ============================================ */
.code-generator {
    padding: var(--spacing-xl);
}

.code-input-section {
    margin-bottom: var(--spacing-lg);
}

.code-prompt-input {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-glass);
    border: 2px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: var(--font-base);
    resize: vertical;
    min-height: 100px;
    transition: var(--transition-normal);
}

.code-prompt-input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.code-prompt-input::placeholder {
    color: var(--text-muted);
}

/* Code Templates */
.code-templates {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
}

.templates-label {
    color: var(--text-muted);
    font-size: var(--font-sm);
}

.template-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: var(--font-sm);
    transition: var(--transition-normal);
}

.template-btn:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.1);
}

.template-btn i {
    font-size: 0.9rem;
}

/* Code Output */
.code-output {
    margin-top: var(--spacing-xl);
    background: #1a1a2e;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.code-output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-secondary);
}

.code-tabs {
    display: flex;
    gap: var(--spacing-sm);
}

.code-tab {
    padding: var(--spacing-xs) var(--spacing-md);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: var(--font-sm);
    font-family: var(--font-mono);
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.code-tab.active {
    background: var(--bg-glass);
    color: var(--primary-cyan);
}

.code-actions {
    display: flex;
    gap: var(--spacing-xs);
}

.code-action-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: var(--font-sm);
    transition: var(--transition-normal);
}

.code-action-btn:hover {
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
    background: rgba(0, 255, 255, 0.1);
}

.code-block {
    margin: 0;
    padding: var(--spacing-lg);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: var(--font-sm);
    line-height: 1.6;
    color: #e0e0e0;
    max-height: 400px;
}

.code-block code {
    background: transparent;
    padding: 0;
    font-size: inherit;
    color: inherit;
}

/* Syntax Highlighting */
.code-block .keyword {
    color: var(--primary-magenta);
}

.code-block .string {
    color: #a6e22e;
}

.code-block .comment {
    color: #6a737d;
    font-style: italic;
}

.code-generating {
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   15. VOICE GENERATOR PANEL
   ============================================ */

.voice-generator {
    display: flex;
    padding: 13px;    
    flex-direction: column;
    gap: 2rem;
}

.voice-input-section {
    position: relative;
}

.voice-text-input {
    width: 100%;
    min-height: 120px;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: inherit;
    line-height: 1.8;
    resize: vertical;
    transition: all 0.3s ease;
}

.voice-text-input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.voice-text-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.char-count {
    position: absolute;
    bottom: -25px;
    left: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.char-count.error {
    color: #ff4444;
}

.voice-options {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.voice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.voice-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.voice-btn:hover {
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateY(-3px);
}

.voice-btn.active {
    border-color: var(--primary-cyan);
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
}

.voice-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.voice-avatar.male {
    background: linear-gradient(135deg, #00ffff, #0088ff);
}

.voice-avatar.female {
    background: linear-gradient(135deg, #ff00ff, #ff0088);
}

.voice-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.voice-type {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.voice-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-cyan);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.8);
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-cyan);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.range-value {
    text-align: center;
    font-size: 0.9rem;
    color: var(--primary-cyan);
    font-weight: 600;
}

/* Audio Output */
.audio-output {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
}

.audio-player {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.audio-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 80px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.wave-bar {
    width: 4px;
    height: 20%;
    background: linear-gradient(to top, var(--primary-cyan), var(--primary-magenta));
    border-radius: 2px;
    transition: height 0.1s ease;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta));
    border: none;
    border-radius: 50%;
    color: black;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.audio-progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.audio-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.audio-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-magenta));
    border-radius: 3px;
    transition: width 0.1s ease;
}

.audio-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.audio-generating {
    text-align: center;
    padding: 3rem;
}

.audio-wave-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.audio-wave-animation span {
    width: 4px;
    height: 100%;
    background: var(--primary-cyan);
    border-radius: 2px;
    animation: audioWave 1s ease-in-out infinite;
}

.audio-wave-animation span:nth-child(odd) {
    animation-delay: 0.2s;
}

.audio-wave-animation span:nth-child(3n) {
    animation-delay: 0.4s;
    background: var(--primary-magenta);
}

@keyframes audioWave {
    0%, 100% {
        transform: scaleY(0.3);
    }
    50% {
        transform: scaleY(1);
    }
}

/* ============================================
   SECTION 26: DATA ANALYZER STYLES
   ============================================ */

.analyzer {
    display: flex;
    padding: 13px;    
    flex-direction: column;
    gap: 2rem;
}

.upload-section {
    position: relative;
}

.upload-area {
    padding: 3rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 3px dashed rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary-cyan);
    background: rgba(0, 255, 255, 0.05);
}

.upload-area.dragover {
    border-color: var(--primary-cyan);
    background: rgba(0, 255, 255, 0.1);
    transform: scale(1.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-content i {
    font-size: 4rem;
    color: var(--primary-cyan);
    animation: floatUpDown 3s ease-in-out infinite;
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.upload-content h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0;
}

.upload-content p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.upload-formats {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-cyan);
}

.uploaded-file {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid var(--primary-cyan);
    border-radius: 12px;
}

.uploaded-file i {
    font-size: 2rem;
    color: var(--primary-cyan);
}

.uploaded-file .file-name {
    flex: 1;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.remove-file {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 0, 0.2);
    border: none;
    border-radius: 50%;
    color: #ff4444;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-file:hover {
    background: rgba(255, 0, 0, 0.4);
    transform: scale(1.1);
}

.analysis-options {
    display: flex;
    padding: 23px;
    flex-direction: column;
    gap: 1rem;
}

.analysis-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.analysis-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.analysis-type-btn i {
    font-size: 1.5rem;
    color: var(--primary-cyan);
}

.analysis-type-btn span {
    font-size: 0.9rem;
}

.analysis-type-btn:hover {
    border-color: rgba(0, 255, 255, 0.5);
    transform: translateY(-3px);
}

.analysis-type-btn.active {
    border-color: var(--primary-cyan);
    background: rgba(0, 255, 255, 0.1);
}

.analysis-question {
    margin-top: 1rem;
}

.analysis-input {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
}

.analysis-input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.analysis-results {
    margin-top: 1rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    min-height: 200px;
}

.results-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    height: 200px;
    color: rgba(255, 255, 255, 0.4);
}

.results-placeholder i {
    font-size: 4rem;
    opacity: 0.5;
}

.analyzing-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.analyzing-animation i {
    font-size: 4rem;
    color: var(--primary-cyan);
}

.analysis-result-card {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.analysis-result-card h4 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-cyan);
    font-size: 1.2rem;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 10px;
    text-align: center;
}

.summary-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-cyan);
}

.trend-chart {
    text-align: center;
}

.chart-placeholder {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.chart-placeholder svg {
    width: 100%;
    height: auto;
}

.trend-insight {
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* ============================================
   SECTION 27: FEATURES SECTION
   ============================================ */

.features-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    position: relative;
    padding: 2.5rem 2rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    border: 2px solid rgba(0, 255, 255, 0.15);
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s ease;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-magenta));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 255, 255, 0.15);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.2));
    border-radius: 20px;
    font-size: 2rem;
    color: var(--primary-cyan);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   SECTION 28: CTA SECTION
   ============================================ */

.cta-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.1), 
        rgba(139, 92, 246, 0.1), 
        rgba(255, 0, 255, 0.1)
    );
    z-index: -1;
}

.cta-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,0,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.cta-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.cta-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-muted), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-subtitle strong {
    color: var(--primary-cyan);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-xl {
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
}

.cta-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.cta-note i {
    color: #00ff88;
}

/* ============================================
   SECTION 29: FOOTER STYLES
   ============================================ */

.footer {
    position: relative;
    padding: 80px 0 30px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(10, 10, 30, 0.95));
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), var(--primary-magenta), transparent);
    box-shadow: 0 0 30px var(--primary-cyan);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-about {
    padding-right: 2rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--primary-cyan);
}

.footer-logo .highlight {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    color: var(--primary-cyan);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-cyan);
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.3);
}

.footer-col {
    min-width: 0;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-cyan);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-cyan);
    padding-right: 5px;
}

.badge-soon {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 0, 255, 0.2);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--primary-magenta);
}

.footer-trust {
    text-align: center;
}

.trust-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.trust-badge {
    max-width: 80px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.trust-badge:hover {
    opacity: 1;
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-cyan);
    margin-bottom: 1.5rem;
}

.footer-newsletter h5 {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-cyan);
}

.newsletter-form button {
    padding: 0.8rem 1rem;
    margin: 15px;
    background: var(--primary-cyan);
    border: none;
    border-radius: 8px;
    color: black;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #00ffee;
    transform: scale(1.05);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    margin: 2rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-cyan);
}

/* ============================================
   SECTION 30: BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta));
    border: none;
    border-radius: 50%;
    color: black;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 999;
    box-shadow: 0 5px 25px rgba(0, 255, 255, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 255, 255, 0.5);
}

.back-to-top:active {
    transform: scale(0.95);
}

/* ============================================
   SECTION 31: MODAL STYLES
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.95), rgba(10, 10, 30, 0.98));
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 24px;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(0, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0;
    font-size: 1.3rem;
    color: var(--primary-cyan);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.shortcut-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.shortcut-item kbd {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--primary-cyan);
    margin: 0 0.2rem;
}

.shortcut-item span {
    color: rgba(255, 255, 255, 0.8);
}

/* Fullscreen Image Modal */
.image-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.fullscreen-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.fullscreen-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
}

.fullscreen-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fullscreen-close:hover {
    background: rgba(255, 0, 0, 0.5);
}

/* ============================================
   SECTION 32: TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 10002;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(20, 20, 40, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast i {
    font-size: 1.3rem;
}

.toast span {
    color: var(--primary-cyan);
    font-size: 0.95rem;
}

.toast-close {
    margin-right: -0.5rem;
    padding: 0.3rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.3s ease;
}

.toast-close:hover {
    color: white;
}

/* Toast Types */
.toast-success {
    border-color: #00ff88;
}

.toast-success i {
    color: #00ff88;
}

.toast-error {
    border-color: #ff4444;
}

.toast-error i {
    color: #ff4444;
}

.toast-warning {
    border-color: #ffaa00;
}

.toast-warning i {
    color: #ffaa00;
}

.toast-info {
    border-color: var(--primary-cyan);
}

.toast-info i {
    color: var(--primary-cyan);
}

/* ============================================
   SECTION 33: TOOLTIPS
   ============================================ */

.custom-tooltip {
    position: fixed;
    padding: 0.6rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--primary-cyan);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10003;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-tooltip.visible {
    opacity: 1;
}


.custom-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: var(--primary-cyan) transparent transparent;
}

/* ============================================
   SECTION 34: UTILITY CLASSES
   ============================================ */

/* Text Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-primary { color: var(--primary-cyan); }
.text-secondary { color: var(--primary-magenta); }
.text-muted { color: rgba(255, 255, 255, 0.6); }

/* Spacing Utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.my-1 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-2 { margin-top: 1rem; margin-bottom: 1rem; }
.my-3 { margin-top: 1.5rem; margin-bottom: 1.5rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }

/* Display Utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Width Utilities */
.w-100 { width: 100%; }
.w-auto { width: auto; }
.max-w-sm { max-width: 400px; }
.max-w-md { max-width: 600px; }
.max-w-lg { max-width: 800px; }
.max-w-xl { max-width: 1000px; }

/* Visibility */
.visible { visibility: visible; }
.invisible { visibility: hidden; }
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Border Radius */
.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 16px; }
.rounded-xl { border-radius: 24px; }
.rounded-full { border-radius: 50%; }

/* Shadows */
.shadow-sm { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }
.shadow-md { box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3); }
.shadow-lg { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); }
.shadow-glow { box-shadow: 0 0 30px rgba(0, 255, 255, 0.3); }

/* Transitions */
.transition { transition: all 0.3s ease; }
.transition-fast { transition: all 0.15s ease; }
.transition-slow { transition: all 0.5s ease; }

/* ============================================
   SECTION 35: RESPONSIVE DESIGN
   ============================================ */
.nav-item .btn-primary2 {
    display: none;
} 
/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
}

/* Large Screens (1200px - 1399px) */
@media (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
    
    .footer-top {
        grid-template-columns: 2fr repeat(3, 1fr);
    }
    
    .footer-trust {
        grid-column: span 2;
    }
}

/* Medium-Large Screens (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
   
    .hero-title {
        font-size: 3.5rem;
    }
    
    .playground-tabs {
        grid-template-columns: repeat(3, 1fr);
    }
    .option-group {
        padding: var(--spacing-sm);
    }    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    .navbar {
        padding-top: 12px;
    }    
    /* Navbar Mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--bg-primary);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 2rem 2rem;
        transition: right 0.4s ease;
        z-index: 998;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu .nav-item {
        width: 100%;
    }
    
    .nav-menu .nav-link {
        display: flex;
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-actions .btn span {
        display: none;
    }
    .nav-actions .btn-primary2 {
        display: none;
    }
    .nav-item .btn-primary2 {
        display: flex;
    }         
    /* Hero */
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Playground */
    .playground-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tab-card {
        padding: 1.5rem 1rem;
    }
    
    .panel-header {
        flex-direction: column;
        padding: var(--spacing-sm);        
        gap: 1rem;
    }
    .size-btn {
        padding: 8px;         
    }
         
    /* Footer */
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-about {
        grid-column: span 2;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 20px;
    }
    
    /* Hero */
    .hero {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Playground */
    .playground-tabs {
        grid-template-columns: repeat(2, 2fr);
    }
    
    .tab-content-area,
    .interface-panel {
        padding: 0.5rem;
        border-radius: 16px;
    }
    
    /* Chat */
    .chat-container {
        max-height: 380px;
        padding: 10px;
        gap: var(--spacing-md);
    }    
    .chat-input-wrapper {
        flex-direction: column;
        padding: var(--spacing-md);        
        align-items: center;
       
    }

    .chat-input {
        max-width: 380px;
        min-height: 100px;

    }    

    .btn-send {
        width: 100%;
    }
    
    .quick-prompts {
        flex-wrap: wrap;
    }
    .option-group {
        padding: var(--spacing-md);
    }    
    /* Image Generator */
    .style-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .image-options {
        gap: 1.5rem;
    }
    .size-btn {
        padding: 6px;         
    }    
    .size-options {
        display: flex;
        gap: 4px;
        overflow: hidden;
    }    
    /* Voice */
    .voice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .voice-controls {
        grid-template-columns: 1fr;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA */
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-about {
        padding-right: 0;
    }
    
    .footer-title::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    /* Modals */
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    /* Toast */
    .toast-container {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }
    
    .toast {
        width: 100%;
    }
}

/* Mobile Small (< 576px) */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .tab-card {
        padding: 1.2rem;
    }
    
    .tab-icon {
        font-size: 2rem;
    }
    
    .tab-title {
        font-size: 1rem;
    }
    
    .style-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analysis-types {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .message {
        padding: 0.8rem;
    }
    
    .message-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 20px;
    }
}

/* ============================================
   SECTION 36: PRINT STYLES
   ============================================ */

@media print {
    .preloader,
    .matrix-canvas,
    .particles-container,
    .glow-orbs,
    .navbar,
    .back-to-top,
    .toast-container,
    .modal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero,
    .cta-section {
        background: none !important;
        padding: 2rem 0 !important;
    }
    
    .hero-title,
    .section-title,
    .cta-title {
        color: black !important;
        -webkit-text-fill-color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    .btn {
        border: 1px solid black !important;
        background: none !important;
        color: black !important;
    }
}

/* ============================================
   SECTION 37: ANIMATIONS & KEYFRAMES
   ============================================ */

/* Fade Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale Animations */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes pulseShadow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 255, 0.8);
    }
}

/* Spin Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Glow Animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 255, 0.8), 0 0 60px rgba(255, 0, 255, 0.4);
    }
}

/* Glitch Animation */
@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitchText {
    0%, 100% {
        text-shadow: 
            2px 0 var(--primary-cyan),
            -2px 0 var(--primary-magenta);
    }
    25% {
        text-shadow: 
            -2px 0 var(--primary-cyan),
            2px 0 var(--primary-magenta);
    }
    50% {
        text-shadow: 
            2px 2px var(--primary-cyan),
            -2px -2px var(--primary-magenta);
    }
    75% {
        text-shadow: 
            -2px 2px var(--primary-cyan),
            2px -2px var(--primary-magenta);
    }
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Typing Cursor Animation */
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Loading Dots Animation */
@keyframes loadingDots {
    0%, 20% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
    100% {
        transform: scale(1);
    }
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Border Animation */
@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(0, 255, 255, 0.3);
    }
    50% {
        border-color: rgba(0, 255, 255, 0.8);
    }
}

/* AOS Animation Classes */
.aos-init {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.aos-init[data-aos="fade-up"] {
    transform: translateY(30px);
}

.aos-init[data-aos="fade-down"] {
    transform: translateY(-30px);
}

.aos-init[data-aos="fade-left"] {
    transform: translateX(30px);
}

.aos-init[data-aos="fade-right"] {
    transform: translateX(-30px);
}

.aos-init[data-aos="zoom-in"] {
    transform: scale(0.9);
}

.aos-animate {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Animation Utilities */
.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-glitch {
    animation: glitch 0.5s infinite;
}

/* Delay Classes */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ============================================
   SECTION 38: DARK/LIGHT MODE
   ============================================ */

/* Light Mode Variables */
body.light-mode {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --border-color: rgba(0, 150, 150, 0.2);
    --primary-cyan: #0fb3ff;
    --primary-magenta: #b800b8; 
    --neon-glow:#00a5a8;
    --glow-neon-green: #00ff00;   
}

body.light-mode .matrix-canvas {
    opacity: 0.1;
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

body.light-mode .navbar .nav-link {
    color: var(--text-primary);
}

body.light-mode .hero {
    background: linear-gradient(135deg, #f5f7fa, #e4e8f0);
}

body.light-mode .hero-title {
    color: var(--text-primary);
}

body.light-mode .tab-card,
body.light-mode .interface-panel,
body.light-mode .stat-card,
body.light-mode .feature-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 150, 150, 0.2);
}

body.light-mode .chat-container {
    background: rgba(240, 245, 250, 0.8);
}

body.light-mode .message.system .message-content {
    background: white;
}

body.light-mode .message.user .message-content {
    background: linear-gradient(135deg, #00d4d4, #0099cc);
}

body.light-mode .chat-input,
body.light-mode .playground-input,
body.light-mode .code-prompt-input,
body.light-mode .image-prompt-input,
body.light-mode .voice-text-input,
body.light-mode .analysis-input {
    background: white;
    border-color: rgba(0, 150, 150, 0.3);
    color: var(--text-primary);
}

body.light-mode .footer {
    background: linear-gradient(180deg, #e4e8f0, #d0d8e8);
}

body.light-mode .footer-desc,
body.light-mode .footer-links a,
body.light-mode .copyright,
body.light-mode .footer-legal a {
    color: var(--text-secondary);
}

/* Theme Toggle Animation */
.theme-toggle i {
    position: absolute;
    transition: all 0.3s ease;
}

.theme-toggle .fa-moon {
    opacity: 1;
    transform: rotate(0);
}

.theme-toggle .fa-sun {
    opacity: 0;
    transform: rotate(-90deg);
}

body.light-mode .theme-toggle .fa-moon {
    opacity: 0;
    transform: rotate(90deg);
}

body.light-mode .theme-toggle .fa-sun {
    opacity: 1;
    transform: rotate(0);
}

/* ============================================
   SECTION 39: ACCESSIBILITY
   ============================================ */

/* Focus Styles */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 3px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    padding: 1rem 2rem;
    background: var(--primary-cyan);
    color: black;
    text-decoration: none;
    font-weight: 600;
    z-index: 10001;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.option-group-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .matrix-canvas,
    .particles-container {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-cyan: #00ffff;
        --primary-magenta: #ff00ff;
    }
    
    .tab-card,
    .interface-panel,
    .stat-card,
    .feature-card {
        border-width: 3px;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* ============================================
   SECTION 40: BROWSER FIXES & HACKS
   ============================================ */

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-cyan) rgba(0, 0, 0, 0.3);
}

/* Webkit Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00ffee;
}

/* Selection Color */
::selection {
    background: var(--primary-cyan);
    color: black;
}

::-moz-selection {
    background: var(--primary-cyan);
    color: black;
}

/* Input Autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary);
    -webkit-box-shadow: 0 0 0px 1000px rgba(0, 0, 0, 0.5) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Placeholder Color */
::placeholder {
    color: rgba(255, 255, 255, 0.4);
    opacity: 1;
}

:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.4);
}

::-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* IE/Edge Fixes */
@supports (-ms-ime-align: auto) {
    .tab-card,
    .interface-panel {
        backdrop-filter: none;
        background: rgba(20, 20, 40, 0.95);
    }
}

/* Safari Fixes */
@supports (-webkit-touch-callout: none) {
    .btn-glow {
        transform: translateZ(0);
    }
    
    .modal-content {
        transform: translateZ(0);
    }
}

/* Prevent iOS zoom on input focus */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select,
    textarea,
    input {
        font-size: 16px;
    }
}

/* Fix for 100vh on mobile */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
}

/* Tap Highlight Color */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Smooth Font Rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* GPU Acceleration for animations */
.tab-card,
.feature-card,
.stat-card,
.btn,
.message {
    transform: translateZ(0);
    will-change: transform;
}

/* Prevent Text Selection on Buttons */
button,
.btn,
.tab-card,
.nav-link {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Fix for RTL Languages */
[dir="rtl"] .footer-title::after {
    right: 0;
    left: auto;
}

[dir="rtl"] .nav-menu {
    right: -100%;
    left: auto;
}

[dir="rtl"] .nav-menu.active {
    right: 0;
}

[dir="rtl"] .toast-container {
    right: auto;
    left: 30px;
}

[dir="rtl"] .toast {
    transform: translateX(-100%);
}

[dir="rtl"] .toast.show {
    transform: translateX(0);
}

[dir="rtl"] .back-to-top {
    left: auto;
    right: 30px;
}

/* ============================================
   END OF STYLESHEET
   Neural AI Playground v2.0.0
   ============================================ */