/* ============================================
   CODEFORGE AI - ULTRA ADVANCED STYLES
   Design System: Acid Neon + Cyberpunk
   ============================================ */

/* CSS Variables - Acid Neon Palette */
:root {
    /* Primary Colors */
    --neon-green: #CCFF00;
    --neon-pink: #FF3CAC;
    --neon-cyan: #00F0FF;
    --neon-purple: #B829DD;
    
    /* Dark Theme */
    --bg-primary: #0D0D0D;
    --bg-secondary: #1A1A2E;
    --bg-tertiary: #16213E;
    --bg-card: rgba(26, 26, 46, 0.8);
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0B0;
    --text-muted: #6B6B7B;
    
    /* Accents */
    --accent-primary: var(--neon-green);
    --accent-secondary: var(--neon-pink);
    --accent-tertiary: var(--neon-cyan);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--neon-green) 0%, var(--neon-cyan) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--neon-pink) 0%, var(--neon-purple) 100%);
    --gradient-glow: radial-gradient(circle, var(--neon-green) 0%, transparent 70%);
    
    /* Typography */
    --font-display: 'Clash Display', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(204, 255, 0, 0.3);
    --shadow-glow-pink: 0 0 30px rgba(255, 60, 172, 0.3);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--neon-green);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--neon-pink);
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--neon-cyan);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(204, 255, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(204, 255, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

/* ============================================
   NAVIGATION - GLASSMORPHISM
   ============================================ */
.nav-glass {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(204, 255, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-xl);
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-primary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        filter: drop-shadow(0 0 5px var(--accent-primary));
    }
    50% {
        filter: drop-shadow(0 0 20px var(--accent-primary));
    }
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-badge {
    background: var(--gradient-secondary);
    color: var(--text-primary);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: var(--space-xs);
}

.nav-links {
    display: flex;
    gap: var(--space-xs);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: var(--radius-full);
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.nav-btn.active {
    color: var(--bg-primary);
    background: var(--accent-primary);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.model-selector {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.model-select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
}

.model-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.model-status {
    font-size: 0.6rem;
    animation: blink 2s ease-in-out infinite;
}

.model-status.online {
    color: var(--neon-green);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.btn-upgrade {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--gradient-secondary);
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-glow-pink);
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(255, 60, 172, 0.5);
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.main-container {
    display: flex;
    height: calc(100vh - 70px);
    margin-top: 70px;
    padding: var(--space-md);
    gap: var(--space-md);
}

/* ============================================
   EDITOR PANEL
   ============================================ */
.editor-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    min-width: 400px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.file-tabs {
    display: flex;
    gap: var(--space-xs);
}

.tab {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.tab.active {
    background: rgba(204, 255, 0, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(204, 255, 0, 0.3);
}

.tab-icon {
    font-size: 0.9rem;
}

.tab-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: var(--space-xs);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.tab-close:hover {
    background: rgba(255, 60, 172, 0.3);
    color: var(--neon-pink);
}

.panel-actions {
    display: flex;
    gap: var(--space-sm);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.action-btn.primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border-color: transparent;
    font-weight: 600;
    padding: var(--space-sm) var(--space-md);
}

.action-btn.primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

/* Editor Container */
.editor-container {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
}

.line-numbers {
    width: 50px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    padding: var(--space-md) var(--space-sm);
    text-align: right;
    user-select: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.code-editor {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    padding: var(--space-md);
    resize: none;
    outline: none;
    white-space: pre;
    overflow: auto;
    tab-size: 2;
}

.code-editor::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.editor-overlay {
    position: absolute;
    top: 0;
    left: 50px;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Editor Footer */
.editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
}

.status-info {
    display: flex;
    gap: var(--space-lg);
}

.status-item {
    color: var(--text-muted);
}

.ai-suggestions {
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.suggestion-text {
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ============================================
   RESIZER
   ============================================ */
.resizer {
    width: 6px;
    background: rgba(255, 255, 255, 0.05);
    cursor: col-resize;
    transition: background var(--transition-fast);
    border-radius: var(--radius-full);
}

.resizer:hover {
    background: var(--accent-primary);
}

/* ============================================
   PREVIEW PANEL
   ============================================ */
.preview-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    min-width: 400px;
}

.tab-content {
    display: none;
    flex: 1;
    flex-direction: column;
    height: 100%;
}

.tab-content.active {
    display: flex;
}

/* Preview Tab */
.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-url {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.3);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
}

.url-protocol {
    color: var(--neon-cyan);
}

.url-domain {
    color: var(--text-primary);
}

.url-path {
    color: var(--text-muted);
}

.preview-actions {
    display: flex;
    gap: var(--space-sm);
}

.preview-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.preview-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.preview-frame-container {
    flex: 1;
    position: relative;
    background: var(--bg-primary);
}

.preview-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.preview-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    display: none;
}

.preview-loading.active {
    display: flex;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(204, 255, 0, 0.2);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============================================
   CHAT TAB
   ============================================ */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.chat-title svg {
    color: var(--accent-primary);
}

.chat-clear {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.chat-clear:hover {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.message {
    display: flex;
    gap: var(--space-md);
    max-width: 90%;
}

.ai-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(204, 255, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-primary);
}

.user-message .message-avatar {
    background: var(--gradient-secondary);
    color: var(--text-primary);
}

.message-content {
    background: var(--bg-tertiary);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-message .message-content {
    background: var(--gradient-secondary);
    border: none;
}

.message-content p {
    margin-bottom: var(--space-sm);
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin-left: var(--space-lg);
    color: var(--text-secondary);
}

.message-content li {
    margin-bottom: var(--space-xs);
}

/* Chat Input */
.chat-input-container {
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input-wrapper {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: var(--space-sm);
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    resize: none;
    outline: none;
    max-height: 120px;
    min-height: 24px;
    padding: var(--space-sm);
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-send {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.chat-send:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.chat-shortcuts {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-sm);
    padding-left: var(--space-sm);
}

.shortcut {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   DEPLOY TAB
   ============================================ */
.deploy-header {
    padding: var(--space-xl);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.deploy-header h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.deploy-header p {
    color: var(--text-secondary);
}

.deploy-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    padding: var(--space-xl);
}

.deploy-card {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
}

.deploy-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.deploy-card.pro {
    border-color: rgba(255, 60, 172, 0.3);
}

.deploy-card.pro::before {
    content: 'PRO';
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--gradient-secondary);
    color: var(--text-primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.deploy-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.deploy-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
}

.deploy-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
}

.deploy-btn {
    width: 100%;
    padding: var(--space-md);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--bg-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.deploy-btn:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.02);
}

.deploy-card.pro .deploy-btn {
    background: var(--gradient-secondary);
    box-shadow: var(--shadow-glow-pink);
}

.deploy-history {
    padding: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.deploy-history h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.history-item.empty {
    justify-content: center;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* AI Processing Modal */
.ai-processing {
    text-align: center;
    min-width: 400px;
}

.processing-animation {
    width: 150px;
    height: 150px;
    margin: 0 auto var(--space-xl);
    position: relative;
}

.processing-core {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-core 1.5s ease-in-out infinite;
    box-shadow: var(--shadow-glow);
}

@keyframes pulse-core {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.code-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    animation: rotate 3s linear infinite;
}

.code-particles::before,
.code-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--neon-cyan);
}

.code-particles::before {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    animation: rotate 2s linear infinite reverse;
}

.code-particles::after {
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border-color: var(--neon-pink);
    animation: rotate 4s linear infinite;
}

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

.ai-processing h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.ai-processing p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.processing-steps {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0.4;
    transition: opacity var(--transition-normal);
}

.step.active {
    opacity: 1;
}

.step-icon {
    font-size: 1.5rem;
}

.step-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.step.active .step-text {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Upgrade Modal */
.upgrade-modal {
    min-width: 900px;
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 60, 172, 0.2);
    color: var(--neon-pink);
}

.upgrade-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.upgrade-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.upgrade-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.pricing-card {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.popular {
    border-color: var(--neon-pink);
    box-shadow: var(--shadow-glow-pink);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-secondary);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    text-align: center;
}

.price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.pricing-card li {
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.pricing-card li::before {
    content: '✓';
    color: var(--accent-primary);
    font-weight: bold;
}

.pricing-btn {
    width: 100%;
    padding: var(--space-md);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pricing-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.pricing-btn.primary {
    background: var(--gradient-secondary);
    border-color: transparent;
    box-shadow: var(--shadow-glow-pink);
}

.pricing-btn.primary:hover {
    box-shadow: 0 0 40px rgba(255, 60, 172, 0.5);
}

.pricing-btn.current {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    min-width: 300px;
}

.toast.success {
    border-left: 4px solid var(--neon-green);
}

.toast.error {
    border-left: 4px solid var(--neon-pink);
}

.toast.info {
    border-left: 4px solid var(--neon-cyan);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-message {
    flex: 1;
    color: var(--text-primary);
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.toast-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .deploy-options {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: none;
    }
}

@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
    }
    
    .editor-panel,
    .preview-panel {
        min-width: auto;
        height: 50%;
    }
    
    .resizer {
        width: 100%;
        height: 6px;
        cursor: row-resize;
    }
    
    .nav-links {
        display: none;
    }
    
    .upgrade-modal {
        min-width: auto;
        width: 95%;
    }
}

@media (max-width: 600px) {
    .nav-glass {
        padding: 0 var(--space-md);
    }
    
    .model-selector {
        display: none;
    }
    
    .btn-upgrade span {
        display: none;
    }
    
    .panel-header {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    .file-tabs {
        order: 2;
        width: 100%;
    }
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Selection */
::selection {
    background: rgba(204, 255, 0, 0.3);
    color: var(--text-primary);
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Code syntax highlighting simulation */
.code-keyword { color: var(--neon-pink); }
.code-string { color: var(--neon-green); }
.code-comment { color: var(--text-muted); font-style: italic; }
.code-function { color: var(--neon-cyan); }
.code-number { color: var(--neon-purple); }