/* ╔══════════════════════════════════════════════════════════════════════════════╗
   ║                         PULSE-AI STYLESHEET                                   ║
   ║                    Futuristic Cyber Design System                             ║
   ║                        Copyright © Pulse-Support 2025                         ║
   ║                          Made with 🤍 by Sineqz ツ                            ║
   ╚══════════════════════════════════════════════════════════════════════════════╝ */

/* ═══════════════════════════════════════════════════════════════════════════════
   CSS Variables - Cyber Color Palette
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
    /* Background Colors */
    --bg-primary: #030308;
    --bg-secondary: #0a0a15;
    --bg-tertiary: #12121f;
    --bg-glass: rgba(15, 15, 25, 0.7);
    --bg-glass-hover: rgba(20, 20, 35, 0.85);
    
    /* Glass Effects */
    --border-glass: rgba(138, 43, 226, 0.25);
    --border-glow: rgba(138, 43, 226, 0.5);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --text-muted: rgba(255, 255, 255, 0.35);
    
    /* Accent Colors - Neon Cyber */
    --accent-primary: #8b5cf6;
    --accent-secondary: #a78bfa;
    --accent-tertiary: #c4b5fd;
    --accent-glow: rgba(139, 92, 246, 0.6);
    
    /* Neon Colors */
    --neon-purple: #bf5af2;
    --neon-cyan: #00fff7;
    --neon-pink: #ff00ff;
    --neon-blue: #00bfff;
    --neon-green: #00ff88;
    --neon-orange: #ff8c00;
    
    /* Status Colors */
    --success: #00ff88;
    --warning: #ffa500;
    --error: #ff4757;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
    --shadow-neon: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow);
    
    /* Typography */
    --font-display: 'Orbitron', monospace;
    --font-body: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Base Styles & Reset
   ═══════════════════════════════════════════════════════════════════════════════ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Background Effects
   ═══════════════════════════════════════════════════════════════════════════════ */

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 0%, rgba(191, 90, 242, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 255, 247, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #030308 0%, #0a0a15 50%, #030308 100%);
    z-index: -3;
    animation: bgPulse 15s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.banned-bg {
    background: 
        radial-gradient(ellipse at 50% 50%, rgba(255, 71, 87, 0.2) 0%, transparent 60%),
        linear-gradient(180deg, #030308 0%, #150505 50%, #030308 100%);
}

/* Cyber Grid Effect */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* Neural Canvas */
#neuralCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

/* Floating Particles */
.particles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 15px var(--accent-glow), 0 0 30px var(--accent-glow);
    animation: floatParticle 20s infinite ease-in-out;
}

.particle:nth-child(odd) {
    background: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 247, 0.6), 0 0 30px rgba(0, 255, 247, 0.4);
}

.particle:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 22s; }
.particle:nth-child(2) { left: 15%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 25%; animation-delay: 4s; animation-duration: 24s; }
.particle:nth-child(4) { left: 35%; animation-delay: 1s; animation-duration: 20s; }
.particle:nth-child(5) { left: 45%; animation-delay: 3s; animation-duration: 19s; }
.particle:nth-child(6) { left: 55%; animation-delay: 5s; animation-duration: 21s; }
.particle:nth-child(7) { left: 65%; animation-delay: 2.5s; animation-duration: 23s; }
.particle:nth-child(8) { left: 75%; animation-delay: 4.5s; animation-duration: 17s; }
.particle:nth-child(9) { left: 85%; animation-delay: 1.5s; animation-duration: 25s; }
.particle:nth-child(10) { left: 95%; animation-delay: 3.5s; animation-duration: 18s; }
.particle:nth-child(11) { left: 10%; animation-delay: 0.5s; animation-duration: 22s; }
.particle:nth-child(12) { left: 30%; animation-delay: 2.2s; animation-duration: 19s; }
.particle:nth-child(13) { left: 50%; animation-delay: 4.2s; animation-duration: 21s; }
.particle:nth-child(14) { left: 70%; animation-delay: 1.2s; animation-duration: 23s; }
.particle:nth-child(15) { left: 90%; animation-delay: 3.2s; animation-duration: 20s; }
.particle:nth-child(16) { left: 20%; animation-delay: 5.2s; animation-duration: 24s; }

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
        transform: translateY(90vh) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(50vh) translateX(30px) scale(1.2);
    }
    95% {
        opacity: 0.8;
        transform: translateY(10vh) translateX(-30px) scale(1);
    }
    100% {
        transform: translateY(-10vh) scale(0);
        opacity: 0;
    }
}

.banned-particle {
    background: var(--error) !important;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.6) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Glass Card Component
   ═══════════════════════════════════════════════════════════════════════════════ */

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Navbar
   ═══════════════════════════════════════════════════════════════════════════════ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background: rgba(3, 3, 8, 0.85);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 2rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.logo-small {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--accent-glow);
}

.admin-badge {
    font-size: 0.6rem;
    background: linear-gradient(135deg, var(--neon-orange), var(--error));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 0.5rem;
    vertical-align: super;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.subscription-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
}

.subscription-badge.free {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.subscription-badge.premium {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(191, 90, 242, 0.2));
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.subscription-badge.unlimited {
    background: linear-gradient(135deg, rgba(0, 255, 247, 0.15), rgba(0, 255, 136, 0.15));
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 247, 0.4);
}

.usage-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
}

.usage-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.usage-value {
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-secondary);
}

.usage-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.username {
    font-weight: 500;
    color: var(--text-primary);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-glass);
    transition: all var(--transition-normal);
}

.user-avatar:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.user-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.logout-btn, .admin-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.logout-btn:hover, .admin-btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.admin-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-pink));
    border: none;
}

.admin-btn:hover {
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Cyber Buttons
   ═══════════════════════════════════════════════════════════════════════════════ */

.cyber-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-pink));
    color: white;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.cyber-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cyber-btn:hover::before {
    left: 100%;
}

.cyber-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-glow), 0 0 50px var(--accent-glow);
}

.cyber-btn:active {
    transform: translateY(-1px);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.cyber-btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.cyber-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--accent-primary);
    border-radius: 10px;
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.cyber-btn-outline:hover {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.cyber-btn-outline.red {
    border-color: var(--error);
    color: var(--error);
}

.cyber-btn-outline.red:hover {
    background: var(--error);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Login Page
   ═══════════════════════════════════════════════════════════════════════════════ */

.login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    padding: 2rem;
    padding-bottom: 120px;
}

.login-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}

.login-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

.login-card {
    width: 100%;
    max-width: 500px;
    padding: 3rem;
    text-align: center;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    margin-bottom: 2.5rem;
}

.logo-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-cyan));
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseGlow 3s ease-in-out infinite;
}

.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 30px var(--accent-glow), 0 0 60px var(--accent-glow);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 50px var(--accent-glow), 0 0 100px var(--accent-glow);
        transform: scale(1.05);
    }
}

.logo-icon svg {
    width: 56px;
    height: 56px;
    color: white;
}

.logo-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--accent-secondary);
    border-radius: 35px;
    opacity: 0.5;
    animation: ringPulse 2s ease-in-out infinite;
}

.logo-ring.ring-2 {
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 40px;
    animation-delay: 0.5s;
    opacity: 0.3;
}

@keyframes ringPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

.logo {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-cyan), var(--accent-primary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
    letter-spacing: 0.1em;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-pink);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    5% { clip: rect(70px, 9999px, 71px, 0); }
    10% { clip: rect(29px, 9999px, 24px, 0); }
    15% { clip: rect(69px, 9999px, 53px, 0); }
    20% { clip: rect(14px, 9999px, 11px, 0); }
    25% { clip: rect(2px, 9999px, 97px, 0); }
    30% { clip: rect(48px, 9999px, 38px, 0); }
    35% { clip: rect(36px, 9999px, 51px, 0); }
    40% { clip: rect(89px, 9999px, 71px, 0); }
    45% { clip: rect(57px, 9999px, 47px, 0); }
    50% { clip: rect(95px, 9999px, 65px, 0); }
    55% { clip: rect(79px, 9999px, 16px, 0); }
    60% { clip: rect(64px, 9999px, 67px, 0); }
    65% { clip: rect(8px, 9999px, 52px, 0); }
    70% { clip: rect(50px, 9999px, 33px, 0); }
    75% { clip: rect(45px, 9999px, 2px, 0); }
    80% { clip: rect(64px, 9999px, 38px, 0); }
    85% { clip: rect(91px, 9999px, 94px, 0); }
    90% { clip: rect(2px, 9999px, 5px, 0); }
    95% { clip: rect(63px, 9999px, 62px, 0); }
    100% { clip: rect(34px, 9999px, 61px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 99px, 0); }
    5% { clip: rect(4px, 9999px, 1px, 0); }
    10% { clip: rect(9px, 9999px, 28px, 0); }
    15% { clip: rect(64px, 9999px, 22px, 0); }
    20% { clip: rect(61px, 9999px, 99px, 0); }
    25% { clip: rect(6px, 9999px, 28px, 0); }
    30% { clip: rect(30px, 9999px, 38px, 0); }
    35% { clip: rect(77px, 9999px, 24px, 0); }
    40% { clip: rect(40px, 9999px, 75px, 0); }
    45% { clip: rect(30px, 9999px, 66px, 0); }
    50% { clip: rect(74px, 9999px, 70px, 0); }
    55% { clip: rect(55px, 9999px, 53px, 0); }
    60% { clip: rect(11px, 9999px, 31px, 0); }
    65% { clip: rect(52px, 9999px, 15px, 0); }
    70% { clip: rect(87px, 9999px, 39px, 0); }
    75% { clip: rect(21px, 9999px, 2px, 0); }
    80% { clip: rect(88px, 9999px, 45px, 0); }
    85% { clip: rect(35px, 9999px, 3px, 0); }
    90% { clip: rect(48px, 9999px, 37px, 0); }
    95% { clip: rect(54px, 9999px, 29px, 0); }
    100% { clip: rect(12px, 9999px, 15px, 0); }
}

.tagline {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.login-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.neon-text {
    text-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow);
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.discord-button {
    width: 100%;
    margin-bottom: 0;
}

.features-preview {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    justify-content: center;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all var(--transition-normal);
}

.feature-item:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent-secondary);
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1000px;
    margin-top: 1rem;
}

.info-card {
    padding: 2rem;
    text-align: center;
    animation: fadeIn 0.8s ease-out both;
}

.info-card:nth-child(1) { animation-delay: 0.2s; }
.info-card:nth-child(2) { animation-delay: 0.4s; }
.info-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(0, 255, 247, 0.1));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-glass);
}

.neon-box {
    box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.1);
}

.info-icon svg {
    color: var(--accent-secondary);
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.info-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Dashboard
   ═══════════════════════════════════════════════════════════════════════════════ */

.container {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    padding-bottom: 120px;
    gap: 2rem;
    min-height: calc(100vh - 180px);
    position: relative;
    z-index: 1;
}

.dashboard-container {
    gap: 1.5rem;
}

/* Sidebar */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-card {
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.sidebar-header h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.sidebar-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sidebar-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-mini {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid var(--border-glass);
}

.stat-mini-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-mini-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.action-btn-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.action-btn-sidebar:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.upgrade-btn {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(191, 90, 242, 0.2));
    border-color: var(--accent-primary);
    color: var(--accent-secondary);
}

.upgrade-btn:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-pink));
    color: white;
}

.sidebar-info {
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
}

.sidebar-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.4rem 0;
    padding-left: 1rem;
    position: relative;
}

.tips-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Chat Interface
   ═══════════════════════════════════════════════════════════════════════════════ */

.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 220px);
    min-height: 500px;
    padding: 0;
    overflow: hidden;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.2);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ai-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-cyan));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-avatar svg {
    width: 28px;
    height: 28px;
    color: white;
}

.chat-title h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--success);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.chat-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.icon-btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.message {
    display: flex;
    gap: 1rem;
    max-width: 85%;
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-avatar svg {
    width: 22px;
    height: 22px;
    color: white;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, var(--neon-pink), var(--accent-primary));
}

.message-content {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    min-width: 0;
}

.user-message .message-content {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--accent-primary);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.message-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-secondary);
}

.user-message .message-author {
    color: var(--neon-pink);
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.message-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
    word-wrap: break-word;
}

.message-text strong {
    color: var(--accent-secondary);
}

.message-text code {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85em;
}

.message-text pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 0.5rem 0;
}

.welcome-message {
    max-width: 100%;
}

/* Chat Input */
.chat-input-container {
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.2);
}

.chat-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.input-wrapper textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    padding-right: 80px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-glass);
    border-radius: 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    resize: none;
    min-height: 52px;
    max-height: 150px;
    line-height: 1.5;
    transition: all var(--transition-normal);
}

.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
}

.input-wrapper textarea::placeholder {
    color: var(--text-muted);
}

.char-counter {
    position: absolute;
    right: 1rem;
    bottom: 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.send-btn {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    flex-shrink: 0;
}

.send-btn .send-icon {
    transition: transform var(--transition-normal);
}

.send-btn:hover .send-icon {
    transform: translateX(3px);
}

.loading-spinner {
    width: 24px;
    height: 24px;
}

.spinner {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.input-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.keyboard-hint {
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Admin Panel
   ═══════════════════════════════════════════════════════════════════════════════ */

.admin-container {
    flex-direction: column;
}

.admin-card {
    padding: 2rem;
}

.admin-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    text-align: center;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.maintenance-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 2rem;
    background: rgba(255, 140, 0, 0.1);
    border-color: rgba(255, 140, 0, 0.3);
}

.maintenance-info h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.maintenance-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status-active {
    color: var(--neon-orange);
    font-weight: 600;
}

.status-inactive {
    color: var(--success);
    font-weight: 600;
}

.maintenance-btn {
    padding: 0.75rem 1.5rem;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-glass);
    padding-bottom: 0;
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-bottom: -2px;
}

.admin-tab:hover {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.1);
}

.admin-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.admin-tab-content {
    animation: fadeIn 0.3s ease-out;
}

/* Admin Search */
.admin-search {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-normal);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.search-select {
    padding: 0.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    cursor: pointer;
}

/* Users Table */
.users-table-container,
.logs-table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.2);
}

.logs-table-container {
    max-height: 500px;
    overflow-y: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
}

.users-table th {
    background: rgba(0, 0, 0, 0.3);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 10;
}

.users-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.05);
}

.loading-cell {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem !important;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.badge-free {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
}

.badge-premium {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-secondary);
    border: 1px solid var(--accent-primary);
}

.badge-unlimited {
    background: rgba(0, 255, 247, 0.15);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
}

.badge-admin {
    background: rgba(255, 140, 0, 0.2);
    color: var(--neon-orange);
    border: 1px solid var(--neon-orange);
}

.badge-banned {
    background: rgba(255, 71, 87, 0.2);
    color: var(--error);
    border: 1px solid var(--error);
}

/* Action Buttons in Table */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    font-size: 1rem;
}

.action-btn:hover {
    transform: scale(1.1);
}

.action-btn.ban:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: var(--error);
    color: var(--error);
}

.action-btn.unban:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--success);
    color: var(--success);
}

.action-btn.premium:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent-primary);
    color: var(--accent-secondary);
}

.action-btn.admin:hover {
    background: rgba(255, 140, 0, 0.2);
    border-color: var(--neon-orange);
    color: var(--neon-orange);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Subscription Page
   ═══════════════════════════════════════════════════════════════════════════════ */

.subscription-container {
    flex-direction: column;
    max-width: 1200px;
}

.subscription-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.current-subscription {
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.current-sub-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-label {
    color: var(--text-secondary);
}

.current-plan {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.current-plan.free {
    color: var(--text-secondary);
}

.current-plan.premium {
    color: var(--accent-secondary);
}

.current-plan.unlimited {
    color: var(--neon-cyan);
}

.current-usage {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.usage-bar-container {
    width: 200px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.usage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--neon-cyan));
    border-radius: 4px;
    transition: width var(--transition-slow);
}

.usage-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Subscription Plans */
.subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.plan-card {
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all var(--transition-normal);
}

.plan-card:hover {
    transform: translateY(-10px);
}

.plan-card.current {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px var(--accent-glow);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.plan-badge.popular {
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-pink));
    color: white;
}

.plan-badge.lifetime {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-green));
    color: white;
}

.plan-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.plan-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.plan-price {
    margin-bottom: 1.5rem;
}

.plan-price .price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-price .period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    text-align: left;
}

.plan-features li {
    padding: 0.6rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-glass);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-btn {
    width: 100%;
    padding: 1rem;
}

.plan-btn.current-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-glass);
    color: var(--text-muted);
    cursor: default;
}

.unlimited-btn {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-green));
}

.premium-plan {
    transform: scale(1.05);
    border-color: var(--accent-primary);
}

.subscription-note {
    padding: 1.5rem 2rem;
    text-align: center;
}

.subscription-note h3 {
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
}

.subscription-note a {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Maintenance & Banned Pages
   ═══════════════════════════════════════════════════════════════════════════════ */

.maintenance-page,
.banned-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.maintenance-container,
.banned-container {
    z-index: 1;
}

.maintenance-card,
.banned-card {
    max-width: 600px;
    padding: 3rem;
    text-align: center;
}

.maintenance-icon {
    position: relative;
    margin: 0 auto 2rem;
}

.maintenance-icon svg {
    color: var(--neon-orange);
}

.icon-ring {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 160px;
    border: 2px solid var(--neon-orange);
    border-radius: 50%;
    opacity: 0.3;
    animation: ringPulse 2s ease-in-out infinite;
}

.maintenance-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-orange), var(--warning), var(--neon-orange));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    margin-bottom: 2rem;
}

.maintenance-text {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.maintenance-subtext {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.maintenance-progress {
    margin: 2rem 0;
}

.progress-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, var(--neon-orange), var(--warning));
    border-radius: 3px;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { width: 30%; }
    50% { width: 70%; }
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.maintenance-comeback {
    line-height: 1.8;
}

.neon-orange {
    color: var(--neon-orange);
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.maintenance-links {
    margin-top: 2rem;
}

/* Banned Page Specifics */
.banned-icon {
    margin-bottom: 2rem;
}

.banned-icon svg {
    color: var(--error);
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.banned-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--error);
    text-shadow: 0 0 20px rgba(255, 71, 87, 0.5);
    margin-bottom: 1.5rem;
}

.banned-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.banned-reason {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.banned-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════════════════════ */

.footer,
.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 1.25rem 2rem;
    text-align: center;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background: rgba(3, 3, 8, 0.85);
    border-top: 1px solid var(--border-glass);
    z-index: 1000;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all var(--transition-normal);
}

.footer-link:hover {
    color: var(--accent-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Modal
   ═══════════════════════════════════════════════════════════════════════════════ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
}

.modal-content {
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.modal-close {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.modal-close:hover {
    background: var(--error);
    border-color: var(--error);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    line-height: 1.8;
    color: var(--text-secondary);
}

.modal-body h3 {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body li {
    margin: 0.4rem 0;
}

.modal-body a {
    color: var(--accent-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Responsive Design
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .sidebar-card {
        position: relative;
        top: 0;
    }
    
    .chat-container {
        height: calc(100vh - 350px);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-actions {
        gap: 0.75rem;
    }
    
    .subscription-badge,
    .usage-counter {
        display: none;
    }
    
    .container {
        padding: 1rem;
        padding-bottom: 100px;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .features-preview {
        gap: 1.5rem;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .subscription-plans {
        grid-template-columns: 1fr;
    }
    
    .premium-plan {
        transform: none;
    }
    
    .message {
        max-width: 95%;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .maintenance-title {
        font-size: 1.8rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   📱 SMARTPHONE OPTIMIERUNG (< 480px)
   Vollständig mobiles Design
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    /* Basis-Layout */
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0.5rem;
        padding-bottom: 140px; /* Platz für Quick-Actions + Input */
    }
    
    /* Navbar ultra-kompakt */
    .navbar {
        padding: 0.5rem 0.75rem;
        height: 55px;
    }
    
    .nav-content {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    
    .logo-small {
        font-size: 1rem;
    }
    
    .nav-brand {
        gap: 0.5rem;
    }
    
    .nav-actions {
        gap: 0.25rem;
    }
    
    /* Nur Icons in Navbar */
    .logout-btn span,
    .admin-btn span,
    .nav-btn span {
        display: none;
    }
    
    .logout-btn, .admin-btn, .nav-btn {
        padding: 0.5rem;
        min-width: 40px;
        min-height: 40px;
    }
    
    /* Sidebar als Fullscreen-Overlay */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding-top: 60px;
        overflow-y: auto;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-card {
        border-radius: 0;
        margin: 0;
        min-height: 100%;
    }
    
    /* Chat-Bereich */
    .chat-area {
        width: 100%;
    }
    
    .chat-container {
        height: calc(100vh - 200px);
        height: calc(100dvh - 200px);
        border-radius: 12px;
    }
    
    .chat-header {
        padding: 0.75rem;
    }
    
    .chat-header h2 {
        font-size: 1rem;
    }
    
    /* Nachrichten */
    .chat-messages {
        padding: 0.5rem;
    }
    
    .message {
        max-width: 90%;
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        border-radius: 12px;
    }
    
    .message-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .message-header {
        font-size: 0.75rem;
    }
    
    /* Code-Blöcke in Messages */
    .message pre {
        font-size: 0.75rem;
        padding: 0.5rem;
        overflow-x: auto;
    }
    
    /* Chat-Input */
    .chat-input-container {
        position: fixed;
        bottom: 60px; /* Über Quick-Actions */
        left: 0;
        right: 0;
        padding: 0.5rem;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-glass);
        z-index: 100;
    }
    
    .chat-form {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .input-wrapper {
        flex: 1;
    }
    
    .input-wrapper textarea {
        font-size: 16px !important; /* Verhindert iOS Zoom */
        padding: 0.6rem;
        min-height: 42px;
        max-height: 100px;
        border-radius: 20px;
    }
    
    .send-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 50%;
        padding: 0;
    }
    
    .send-btn span {
        display: none;
    }
    
    .send-btn i, .send-btn svg {
        margin: 0;
    }
    
    /* Action Buttons unter Input verstecken */
    .chat-actions {
        display: none;
    }
    
    /* Modals für Mobile */
    .modal-content {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        margin: 0;
    }
    
    .modal-header {
        padding: 1rem;
        position: sticky;
        top: 0;
        background: var(--bg-secondary);
        z-index: 10;
    }
    
    .modal-body {
        padding: 1rem;
        padding-bottom: 100px;
    }
    
    /* Login-Seite */
    .login-card {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
        border-radius: 16px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .discord-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .features-preview {
        gap: 1rem;
        flex-direction: column;
    }
    
    .feature-item {
        padding: 0.75rem;
    }
    
    /* Info Cards */
    .info-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Admin Panel */
    .admin-tabs {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .admin-tab {
        flex: 1 1 calc(50% - 0.25rem);
        justify-content: center;
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    .admin-tab span {
        display: none;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .admin-stat-card {
        padding: 0.75rem;
    }
    
    .admin-stat-card h3 {
        font-size: 1.25rem;
    }
    
    .admin-stat-card p {
        font-size: 0.75rem;
    }
    
    /* User-Tabelle horizontal scrollbar */
    .users-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .users-table {
        min-width: 600px;
        font-size: 0.8rem;
    }
    
    /* Subscription Plans */
    .subscription-plans {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .plan-card {
        padding: 1.25rem;
    }
    
    .plan-price {
        font-size: 1.75rem;
    }
    
    /* Bilder in Messages */
    .message-image {
        max-width: 100%;
    }
    
    .message-image img {
        max-height: 250px;
    }
    
    /* Lightbox Mobile */
    .lightbox-content {
        width: 100%;
        height: auto;
        max-height: 80vh;
    }
    
    .lightbox-actions {
        bottom: 20px;
        gap: 1rem;
    }
    
    /* Page Titles */
    .page-title {
        font-size: 1.5rem;
    }
    
    .maintenance-title {
        font-size: 1.4rem;
    }
    
    /* Toast kleiner */
    .toast-notification {
        width: 90%;
        max-width: 300px;
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
        bottom: 130px;
    }
    
    /* Changelog Tooltip */
    .changelog-tooltip {
        width: 280px;
        right: -100px;
    }
}

/* Extra kleine Phones (< 360px) */
@media (max-width: 360px) {
    body {
        font-size: 13px;
    }
    
    .navbar {
        padding: 0.4rem 0.5rem;
    }
    
    .logo-small {
        font-size: 0.9rem;
    }
    
    .message {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .quick-action-btn {
        padding: 0.4rem 0.5rem;
    }
    
    .quick-action-btn span {
        font-size: 0.6rem;
    }
}

/* Quick-Actions für Phones anpassen */
@media (max-width: 480px) {
    .quick-actions {
        display: flex;
        padding: 0.4rem 0.25rem;
        gap: 0;
    }
    
    .quick-action-btn {
        flex: 1;
        padding: 0.4rem 0.25rem;
        font-size: 0.65rem;
    }
    
    .quick-action-btn i {
        font-size: 1.1rem;
    }
    
    /* Sidebar Toggle auf Phones */
    .sidebar-toggle {
        bottom: 75px;
        left: 0.5rem;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Animated Logo
   ═══════════════════════════════════════════════════════════════════════════════ */

.pulse-logo-animated {
    position: relative;
    display: inline-block;
    min-width: 120px;
    height: 2rem;
}

.pulse-logo-animated .logo-text {
    position: absolute;
    left: 0;
    top: 0;
    animation: logoTextAnim 4s ease-in-out infinite;
}

.pulse-logo-animated .logo-icon-animated {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-cyan));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoIconAnim 4s ease-in-out infinite;
    opacity: 0;
}

.pulse-logo-animated .logo-icon-animated svg {
    width: 20px;
    height: 20px;
    color: white;
}

@keyframes logoTextAnim {
    0%, 60% { opacity: 1; transform: scale(1); }
    70% { opacity: 0.5; transform: scale(0.9); }
    80%, 100% { opacity: 0; transform: scale(0.8); }
}

@keyframes logoIconAnim {
    0%, 60% { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(0deg); }
    70% { opacity: 0.8; transform: translate(-50%, -50%) scale(0.8) rotate(180deg); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(360deg); }
    85% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(360deg); }
    90%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5) rotate(450deg); }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Utility Classes
   ═══════════════════════════════════════════════════════════════════════════════ */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-success {
    color: var(--success);
}

.text-error {
    color: var(--error);
}

.text-warning {
    color: var(--warning);
}

.text-accent {
    color: var(--accent-secondary);
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: white;
}

::-moz-selection {
    background: var(--accent-primary);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PREMIUM FEATURES STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Premium Upsell Box */
.premium-upsell {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    text-align: center;
}

.premium-upsell .premium-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--accent-primary), #ec4899);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    animation: premiumGlow 2s ease-in-out infinite;
}

@keyframes premiumGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(139, 92, 246, 0.5); }
    50% { box-shadow: 0 0 25px rgba(236, 72, 153, 0.7); }
}

.premium-upsell h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.premium-upsell ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    text-align: left;
}

.premium-upsell ul li {
    padding: 0.35rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.premium-upsell .upgrade-link {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--accent-primary), #ec4899);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.premium-upsell .upgrade-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

/* Sidebar Premium Actions */
.action-btn-sidebar.premium-btn {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.action-btn-sidebar.premium-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
    border-color: var(--accent-primary);
}

.action-btn-sidebar.danger-btn {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff6b7a;
}

.action-btn-sidebar.danger-btn:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: var(--error);
}

/* Folders Section */
.sidebar-folders {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1.25rem;
}

.folders-header, .history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.folders-header h3, .history-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.add-folder-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 6px;
    color: var(--accent-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.add-folder-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

.folders-list, .history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.folders-list::-webkit-scrollbar,
.history-list::-webkit-scrollbar {
    width: 4px;
}

.folders-list::-webkit-scrollbar-thumb,
.history-list::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.folder-item, .history-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.folder-item:hover, .history-item:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.folder-item.active {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent-primary);
}

.folder-icon, .history-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.folder-name, .history-title {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-info {
    flex: 1;
    min-width: 0;
}

.history-date {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.folder-delete-btn, .history-delete-btn {
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0;
    transition: all var(--transition-fast);
}

.folder-item:hover .folder-delete-btn,
.history-item:hover .history-delete-btn {
    opacity: 1;
}

.folder-delete-btn:hover, .history-delete-btn:hover {
    background: rgba(255, 71, 87, 0.2);
    color: var(--error);
}

.no-folders, .no-history {
    padding: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* History Section */
.history-header {
    margin-top: 1.25rem;
}

/* Image Upload Button */
.icon-btn.premium-feature {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.icon-btn.premium-feature:hover {
    background: linear-gradient(135deg, var(--accent-primary), #ec4899);
    border-color: transparent;
    transform: scale(1.1);
}

/* Image Preview */
.image-preview-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border-top: 1px solid rgba(139, 92, 246, 0.3);
}

.image-preview-content {
    position: relative;
}

.image-preview-content img {
    max-width: 80px;
    max-height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
}

.remove-image-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border: none;
    background: var(--error);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.remove-image-btn:hover {
    transform: scale(1.15);
}

.image-preview-label {
    font-size: 0.8rem;
    color: var(--accent-secondary);
    flex: 1;
}

/* Code Block Styling */
.code-block-wrapper {
    margin: 0.75rem 0;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.code-language {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.code-actions {
    display: flex;
    gap: 0.5rem;
}

.code-copy-btn, .code-download-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border: none;
    border-radius: 6px;
    font-size: 0.7rem;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.code-copy-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.code-download-btn {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
    color: var(--accent-secondary);
}

.code-download-btn:hover {
    background: linear-gradient(135deg, var(--accent-primary), #ec4899);
    color: white;
}

.code-block-wrapper pre {
    margin: 0;
    padding: 1rem;
    overflow-x: auto;
}

.code-block-wrapper code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.inline-code {
    padding: 0.15rem 0.4rem;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    color: var(--accent-secondary);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    width: 90%;
    max-width: 420px;
    padding: 0;
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-glass);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 71, 87, 0.2);
    color: var(--error);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-glass);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-group select {
    cursor: pointer;
}

/* Color Picker */
.color-picker {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.color-option {
    width: 36px;
    height: 36px;
    border: 3px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.color-option:hover {
    transform: scale(1.15);
}

.color-option.active {
    border-color: white;
    box-shadow: 0 0 15px currentColor;
}

/* Modal Buttons */
.btn-primary, .btn-secondary {
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #ec4899);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Message Animation */
@keyframes messageSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Alte Button Styles wurden entfernt - siehe CHAT INPUT AREA Sektion */

/* Premium Modal Mini Features */
.premium-features-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.premium-features-mini span {
    padding: 0.4rem 0.8rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   USER INFO TOOLTIP - Hover über Username zeigt Abo
   ═══════════════════════════════════════════════════════════════════════════════ */

.user-info {
    position: relative;
    cursor: pointer;
}

.user-info-tooltip {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 10000;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.user-info:hover .user-info-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.user-info-tooltip .tooltip-content {
    background: rgba(15, 15, 25, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(139, 92, 246, 0.2);
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.tooltip-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
}

.tooltip-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.tooltip-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
    margin: 0.75rem 0;
}

.tooltip-badge {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.tooltip-badge.unlimited {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(139, 92, 246, 0.3));
    border: 1px solid rgba(6, 182, 212, 0.5);
    color: var(--neon-cyan);
}

.tooltip-badge.premium {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(139, 92, 246, 0.3));
    border: 1px solid rgba(236, 72, 153, 0.5);
    color: #ec4899;
}

.tooltip-badge.free {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 0.85rem;
}

.tooltip-row span:first-child {
    color: var(--text-muted);
}

.tooltip-row span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.tooltip-upgrade {
    display: block;
    text-align: center;
    padding: 0.6rem;
    margin-top: 0.75rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-cyan));
    border-radius: 10px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.tooltip-upgrade:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

.tooltip-admin {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--warning);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PROMPTS BADGE - Schönes Badge für verbleibende Prompts
   ═══════════════════════════════════════════════════════════════════════════════ */

.prompts-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.prompts-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.prompts-badge.free {
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.2), rgba(150, 150, 150, 0.15));
    border-color: rgba(150, 150, 150, 0.3);
}

.prompts-badge.premium {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.15));
    border-color: rgba(236, 72, 153, 0.4);
}

.prompts-badge.unlimited {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.15));
    border-color: rgba(6, 182, 212, 0.4);
}

.prompts-icon {
    font-size: 1rem;
}

.prompts-value {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prompts-badge.unlimited .prompts-value {
    background: linear-gradient(135deg, var(--neon-cyan), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.prompts-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CHAT INPUT AREA - Komplett überarbeitet
   ═══════════════════════════════════════════════════════════════════════════════ */

.chat-input-container {
    padding: 1rem 1.5rem;
    background: rgba(15, 15, 25, 0.95);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.chat-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(20, 20, 35, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 0.5rem;
    transition: all 0.3s;
}

.chat-form:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.input-buttons-left {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.input-buttons-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.input-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-secondary);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.input-action-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    transform: scale(1.05);
}

.input-action-btn.locked {
    opacity: 0.6;
}

.input-action-btn .lock-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 0.65rem;
}

.input-action-btn.generate-btn {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(254, 202, 87, 0.2));
    color: #feca57;
}

.input-action-btn.generate-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.35), rgba(254, 202, 87, 0.35));
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
}

/* Video-Generierung Button */
.input-action-btn.video-btn {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    color: #667eea;
    position: relative;
}

.input-action-btn.video-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.35), rgba(118, 75, 162, 0.35));
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

.input-action-btn.video-btn .lock-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    padding: 2px;
}

/* Duration Selector */
.duration-selector {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.duration-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.duration-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.duration-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
}

/* Info Box */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    margin-top: 1rem;
}

.info-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.info-text strong {
    color: var(--text-primary);
}

/* Premium Required Box */
.premium-required-box {
    text-align: center;
    padding: 2rem;
}

.premium-required-box .premium-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.premium-required-box h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.premium-required-box p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Generated Video Container */
.generated-video-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.generated-video {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Video in Chat */
.message-video {
    position: relative;
    display: inline-block;
    margin-top: 0.5rem;
    max-width: 400px;
}

.message-video video {
    display: block;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.message-video:hover .video-play-overlay {
    opacity: 1;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.input-wrapper textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.75rem 0.5rem;
    resize: none;
    max-height: 150px;
    outline: none;
    line-height: 1.5;
}

.input-wrapper textarea::placeholder {
    color: var(--text-muted);
}

/* Custom Scrollbar für Textarea */
.input-wrapper textarea::-webkit-scrollbar {
    width: 6px;
}

.input-wrapper textarea::-webkit-scrollbar-track {
    background: transparent;
}

.input-wrapper textarea::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 3px;
}

.input-wrapper textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

.char-counter-inline {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* SENDEN BUTTON - Neu designed */
.send-btn-pulse {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-cyan));
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.send-btn-pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--neon-cyan), var(--accent-primary));
    opacity: 0;
    transition: opacity 0.3s;
}

.send-btn-pulse:hover::before {
    opacity: 1;
}

.send-btn-pulse:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
}

.send-btn-pulse svg {
    position: relative;
    z-index: 1;
}

.send-btn-pulse:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.send-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.5rem 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.model-info {
    opacity: 0.7;
}

.keyboard-hint {
    opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BILD-GENERIERUNG MODAL - Komplett neu designed
   ═══════════════════════════════════════════════════════════════════════════════ */

.modal-generate {
    max-width: 500px;
}

.prompt-textarea {
    width: 100%;
    min-height: 100px;
    background: rgba(20, 20, 35, 0.8) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 12px !important;
    color: var(--text-primary) !important;
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 1rem !important;
    resize: vertical;
    transition: all 0.3s;
}

.prompt-textarea:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
    outline: none;
}

.prompt-textarea::placeholder {
    color: var(--text-muted);
}

/* Custom Scrollbar */
.prompt-textarea::-webkit-scrollbar {
    width: 6px;
}

.prompt-textarea::-webkit-scrollbar-track {
    background: transparent;
}

.prompt-textarea::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 3px;
}

.input-hint {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
}

/* NSFW Toggle - Komplett neu! */
.nsfw-toggle-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 0, 100, 0.1), rgba(255, 69, 0, 0.1));
    border: 1px solid rgba(255, 0, 100, 0.25);
    border-radius: 14px;
    margin-top: 1rem;
}

.nsfw-switch {
    position: relative;
    width: 56px;
    height: 30px;
    flex-shrink: 0;
}

.nsfw-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.nsfw-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(80, 80, 80, 0.4);
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nsfw-slider::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nsfw-switch input:checked + .nsfw-slider {
    background: linear-gradient(135deg, #ff0066, #ff4500);
    box-shadow: 0 0 20px rgba(255, 0, 100, 0.4);
}

.nsfw-switch input:checked + .nsfw-slider::before {
    transform: translateX(26px);
}

.nsfw-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.nsfw-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.nsfw-desc {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* Blur Info Box */
.blur-info-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.25);
    border-radius: 14px;
    margin-top: 1rem;
}

.blur-info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.blur-info-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.blur-info-text strong {
    color: var(--warning);
    font-size: 0.9rem;
}

.blur-info-text span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Modal Buttons */
.btn-cancel {
    padding: 0.75rem 1.5rem;
    background: rgba(100, 100, 100, 0.2);
    border: 1px solid rgba(100, 100, 100, 0.3);
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: rgba(100, 100, 100, 0.3);
    color: var(--text-primary);
}

.btn-generate {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 140px;
}

.btn-generate:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(255, 107, 107, 0.4);
}

.btn-generate:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.mini-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 0.3rem;
}

/* Generated Image Container */
.generated-image-container {
    position: relative;
    max-width: 100%;
    border-radius: 15px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.generated-image-container img {
    max-width: 100%;
    max-height: 60vh;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

.image-prompt-text {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-style: italic;
    font-size: 0.9rem;
}

/* Image Actions */
.image-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.img-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: var(--accent-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.img-action-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    transform: translateY(-2px);
}

/* Blur Overlay für Free User */
.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.blur-content {
    text-align: center;
    padding: 2rem;
}

.blur-icon-large {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.blur-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.blur-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-upgrade-small {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-cyan));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-upgrade-small:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CHANGELOG SYSTEM - Update-Übersicht
   ═══════════════════════════════════════════════════════════════════════════════ */

.changelog-info {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.changelog-info:hover {
    background: rgba(147, 51, 234, 0.2);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.changelog-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1000;
    min-width: 380px;
    max-width: 500px;
    max-height: 450px;
    overflow: visible;
    background: rgba(15, 15, 25, 0.98);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(147, 51, 234, 0.2);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.changelog-tooltip.changelog-full {
    max-height: 70vh;
    min-height: 400px;
}

.changelog-tooltip .tooltip-content {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.changelog-tooltip.changelog-full .tooltip-content {
    max-height: 70vh;
}

.changelog-tooltip .tooltip-content::-webkit-scrollbar {
    width: 6px;
}

.changelog-tooltip .tooltip-content::-webkit-scrollbar-track {
    background: transparent;
}

.changelog-tooltip .tooltip-content::-webkit-scrollbar-thumb {
    background: rgba(147, 51, 234, 0.4);
    border-radius: 3px;
}

.changelog-tooltip .tooltip-content::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 51, 234, 0.6);
}

/* Changelog Entry Styles */
.changelog-entry {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.changelog-entry:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.changelog-version {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.changelog-date {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
}

.changelog-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.changelog-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.changelog-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

/* Changelog Modal */
.changelog-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.changelog-modal-content {
    background: rgba(15, 15, 25, 0.98);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7), 0 0 50px rgba(147, 51, 234, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.changelog-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.changelog-modal-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--text);
    margin: 0;
}

.changelog-modal-body {
    padding: 1.5rem;
    max-height: calc(80vh - 140px);
    overflow-y: auto;
}

.changelog-modal-body::-webkit-scrollbar {
    width: 8px;
}

.changelog-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.changelog-modal-body::-webkit-scrollbar-thumb {
    background: rgba(147, 51, 234, 0.4);
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BESTÄTIGUNGS-MODAL - Schönes Confirm-Dialog
   ═══════════════════════════════════════════════════════════════════════════════ */

.confirm-modal {
    z-index: 10001;
}

.confirm-modal-content {
    max-width: 420px;
    padding: 2rem;
    text-align: center;
    animation: confirmModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes confirmModalIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.confirm-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(6, 182, 212, 0.2));
    border: 2px solid rgba(147, 51, 234, 0.3);
    animation: iconPulse 2s ease-in-out infinite;
}

.confirm-modal-icon svg {
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(147, 51, 234, 0.5));
}

.confirm-modal-icon.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 127, 0.2));
    border-color: rgba(239, 68, 68, 0.3);
}

.confirm-modal-icon.danger svg {
    color: #ef4444;
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.5));
}

.confirm-modal-icon.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 179, 8, 0.2));
    border-color: rgba(245, 158, 11, 0.3);
}

.confirm-modal-icon.warning svg {
    color: #f59e0b;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
}

@keyframes iconPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(147, 51, 234, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(147, 51, 234, 0.4);
    }
}

.confirm-modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    text-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
}

.confirm-modal-message {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.confirm-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-btn-cancel,
.confirm-btn-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 140px;
}

.confirm-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.confirm-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
    transform: translateY(-2px);
}

.confirm-btn-confirm {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
}

.confirm-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(147, 51, 234, 0.6);
    filter: brightness(1.1);
}

.confirm-btn-confirm.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.confirm-btn-confirm.danger:hover {
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.6);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LIGHTBOX - Bild/Video Vollbild-Ansicht
   ═══════════════════════════════════════════════════════════════════════════════ */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.lightbox-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    color: var(--accent-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.lightbox-btn:hover {
    background: rgba(139, 92, 246, 0.4);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CUSTOM VIDEO PLAYER
   ═══════════════════════════════════════════════════════════════════════════════ */

.pulse-video-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.pulse-video-container video {
    width: 100%;
    display: block;
}

.pulse-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.pulse-video-container:hover .pulse-video-controls {
    opacity: 1;
}

.video-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(139, 92, 246, 0.3);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.video-btn:hover {
    background: rgba(139, 92, 246, 0.5);
    transform: scale(1.1);
}

.video-progress {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.video-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--neon-cyan));
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s;
}

.video-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    min-width: 80px;
    text-align: center;
}

.video-volume {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
}

.video-volume-bar {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 2px;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CHAT IMAGE ACTIONS
   ═══════════════════════════════════════════════════════════════════════════════ */

.chat-image-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.chat-img-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 8px;
    color: var(--accent-secondary);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.chat-img-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    transform: scale(1.08);
}

/* Message Image Click to Enlarge */
.message-image {
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 0.75rem;
}

.message-image:not(.blurred):hover {
    transform: scale(1.01);
    box-shadow: 0 5px 25px rgba(139, 92, 246, 0.3);
}

.message-image img {
    max-width: 100%;
    max-height: 400px;
    display: block;
    border-radius: 10px;
}

.message-image.blurred img {
    filter: blur(25px);
}

.message-image .image-blur-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TOAST NOTIFICATION
   ═══════════════════════════════════════════════════════════════════════════════ */

.toast-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-cyan));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    z-index: 100000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   GLOBAL SCROLLBAR STYLING
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Allgemeine Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 15, 25, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-primary), var(--neon-cyan));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-secondary), var(--neon-cyan));
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) rgba(15, 15, 25, 0.5);
}

/* Chat Messages Scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.4);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.6);
}

/* Modal Large */
.modal-large {
    max-width: 800px;
    width: 95%;
}

/* Generated Image in Chat */
.message-image {
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.message-image img {
    max-width: 100%;
    max-height: 400px;
    display: block;
    border-radius: 10px;
}

.message-image.blurred img {
    filter: blur(25px);
}

.message-image .image-blur-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.image-blur-badge .lock-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.image-blur-badge .upgrade-link {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-cyan));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Blur Badge OHNE Bezahlschranke (für NSFW deaktiviert) */
.image-blur-badge.no-paywall {
    background: rgba(30, 30, 40, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.image-blur-badge.no-paywall .blur-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

/* Blur Badge MIT Bezahlschranke (für Free User) */
.image-blur-badge.paywall {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(255, 193, 7, 0.5);
}

.image-blur-badge.paywall .lock-emoji {
    color: #ffc107;
}

/* Loading Spinner für Bildgenerierung */
.image-generating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    margin: 1rem 0;
}

.image-generating .spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(139, 92, 246, 0.2);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.image-generating span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   📱 TABLET OPTIMIERUNG (iOS / Android)
   Kompaktes Design für Tablets und PWA
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Tablet Portrait (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Kompaktere Abstände */
    .container {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    /* Sidebar als ausklappbares Menü */
    .sidebar {
        position: fixed;
        left: -280px;
        top: 60px;
        width: 280px;
        height: calc(100vh - 60px);
        z-index: 100;
        transition: left 0.3s ease;
        background: var(--bg-secondary);
        border-right: 1px solid var(--border-glass);
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .sidebar-toggle {
        display: flex !important;
    }
    
    /* Chat nimmt volle Breite */
    .chat-area {
        width: 100%;
        max-width: 100%;
    }
    
    .chat-container {
        height: calc(100vh - 180px);
    }
    
    /* Kompaktere Navbar */
    .navbar {
        padding: 0.5rem 1rem;
        height: 60px;
    }
    
    .nav-content {
        gap: 0.5rem;
    }
    
    /* Kleinere Buttons für Touch */
    .nav-btn, .logout-btn, .admin-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.5rem 0.75rem;
    }
    
    /* Chat-Nachrichten kompakter */
    .message {
        padding: 0.75rem;
        max-width: 85%;
    }
    
    .message-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    /* Chat-Input optimiert */
    .chat-input-container {
        padding: 0.75rem;
    }
    
    .input-wrapper textarea {
        font-size: 16px; /* Verhindert Zoom auf iOS */
        min-height: 44px;
    }
    
    .send-btn {
        min-width: 50px;
        min-height: 44px;
    }
}

/* Tablet Landscape (1024px - 1366px) */
@media (min-width: 1024px) and (max-width: 1366px) {
    .sidebar {
        width: 260px;
    }
    
    .chat-area {
        flex: 1;
    }
    
    .container {
        padding: 0.75rem;
    }
}

/* Touch-Optimierungen für alle Tablets */
@media (hover: none) and (pointer: coarse) {
    /* Größere Touch-Targets (min 44px für iOS) */
    button, .btn, a.btn, .nav-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Keine Hover-Effekte auf Touch */
    .message:hover,
    .nav-btn:hover,
    .chat-history-item:hover {
        transform: none;
    }
    
    /* Aktiver Zustand für Touch-Feedback */
    button:active, .btn:active, .nav-btn:active {
        transform: scale(0.95);
        opacity: 0.8;
    }
    
    /* Scrollbare Bereiche mit Touch-Scrolling */
    .chat-messages, .sidebar-content, .chat-history-list {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Größere Checkboxen/Toggles */
    input[type="checkbox"], .toggle-switch {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Dropdown-Menüs größer */
    select {
        min-height: 44px;
        font-size: 16px;
    }
}

/* PWA / Fullscreen App-Modus */
@media (display-mode: standalone), (display-mode: fullscreen) {
    /* Kein Browser-Chrome sichtbar */
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .navbar {
        padding-top: calc(0.75rem + env(safe-area-inset-top));
    }
    
    .chat-input-container {
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    }
}

/* iOS-spezifische Fixes */
@supports (-webkit-touch-callout: none) {
    /* Fix für iOS Safari 100vh Problem */
    .chat-container {
        height: calc(100vh - 200px);
        height: calc(100dvh - 200px);
    }
    
    /* Verhindert Zoom bei Input-Fokus */
    input, textarea, select {
        font-size: 16px !important;
    }
    
    /* Sticky Footer für iOS */
    .chat-input-container {
        position: sticky;
        bottom: 0;
        background: var(--bg-secondary);
    }
}

/* Sidebar Toggle Button (für Tablets) */
.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 90px;
    left: 1rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--neon-cyan));
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    transition: transform 0.2s;
}

.sidebar-toggle:active {
    transform: scale(0.9);
}

/* Sidebar Close Button (Mobile) */
.sidebar-close-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-close-btn:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.9);
}

@media (max-width: 1024px) {
    .sidebar-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.sidebar-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.sidebar-toggle i {
    transition: transform 0.3s;
}

.sidebar.open + .sidebar-toggle i,
.sidebar-toggle.active i {
    transform: rotate(180deg);
}

/* Overlay für Sidebar (Tablet) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Kompakte Action-Buttons für Tablet */
@media (max-width: 1024px) {
    .action-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .action-btn {
        flex: 1 1 calc(50% - 0.5rem);
        min-height: 44px;
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    
    .action-btn span {
        display: none;
    }
    
    .action-btn i {
        margin: 0;
        font-size: 1.2rem;
    }
    
    /* Modal für Tablets */
    .modal-content {
        width: 95%;
        max-width: 500px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    /* Admin Panel kompakter */
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .admin-stat-card {
        padding: 1rem;
    }
    
    .admin-stat-card h3 {
        font-size: 1.5rem;
    }
}

/* Swipe-Gesten Hinweis */
.swipe-hint {
    display: none;
    position: fixed;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-glass);
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    z-index: 50;
    animation: fadeInOut 3s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    20% { opacity: 1; transform: translateX(-50%) translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

@media (max-width: 1024px) {
    .swipe-hint {
        display: block;
    }
}

/* Schnellzugriff-Leiste für Tablet */
.quick-actions {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    padding: 0.5rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    z-index: 98;
    justify-content: space-around;
}

@media (max-width: 1024px) {
    .quick-actions {
        display: flex;
    }
    
    /* Platz für Quick-Actions */
    .chat-input-container {
        margin-bottom: 60px;
    }
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.7rem;
    cursor: pointer;
    transition: color 0.2s;
}

.quick-action-btn i {
    font-size: 1.25rem;
}

.quick-action-btn:active,
.quick-action-btn.active {
    color: var(--accent-primary);
}


