/* --- BASE STYLES --- */
:root { 
    --bg-color: #0f1115; 
    --card-bg: #181b21; 
    --text-main: #ffffff; 
    --text-muted: #9ca3af; 
    --primary: #6366f1; 
    --primary-hover: #4f46e5; 
    --border: #2d3342; 
    /* Viral Colors */
    --insta-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

body { font-family: 'Inter', sans-serif; background-color: var(--bg-color); color: var(--text-main); margin: 0; min-height: 100vh; overflow-x: hidden; overflow-y: auto; }

/* NAVBAR */
.navbar { 
    position: fixed; /* Αλλάζουμε το absolute σε fixed για να μένει πάντα πάνω όταν ρολάρεις */
    top: 0; 
    left: 0; /* Το "καρφώνουμε" τέρμα αριστερά */
    width: 100%; 
    padding: 15px 40px; /* Το έκανα 15px (από 20px) για να μην πιάνει πολύ χώρο στο laptop */
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-sizing: border-box; 
    z-index: 1000; /* Το αυξήσαμε στο 1000 για να μην το κρύβει τίποτα από κάτω */
    background-color: var(--bg-color); /* Προσθέτει το σκούρο φόντο για να μη φαίνονται τα γράμματα από κάτω του */
    border-bottom: 1px solid var(--border); /* Τραβάει την διακριτική γραμμή που ήθελες από κάτω */
    transition: opacity 0.3s ease; 
}
.navbar.hidden { display: none !important; opacity: 0; pointer-events: none; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; }
.logo span { color: var(--primary); }
.nav-links a { color: var(--text-muted); text-decoration: none; margin-left: 30px; font-weight: 500; transition: 0.2s; }
.nav-links a:hover { color: var(--text-main); }
.login-btn { border: 1px solid var(--border); padding: 8px 20px; border-radius: 8px; }

/* LANDING */
#landing-screen { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; background: radial-gradient(circle at top right, #1e2330 0%, transparent 40%), radial-gradient(circle at bottom left, #1a1a2e 0%, transparent 40%); text-align: center; padding: 100px 20px 40px 20px; box-sizing: border-box; }
.hero-content h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; max-width: 900px; }
.gradient-text { background: linear-gradient(90deg, #818cf8, #c084fc); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.subtitle { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin-bottom: 60px; line-height: 1.6; }
.subtitle strong { color: var(--text-main); font-weight: 600; }

/* CARDS */
.cards-container { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.feature-card { background-color: var(--card-bg); border: 1px solid var(--border); padding: 40px; border-radius: 20px; width: 300px; text-align: left; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; }
.feature-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.icon-circle { width: 50px; height: 50px; background-color: rgba(99, 102, 241, 0.1); border-radius: 12px; display: flex; justify-content: center; align-items: center; color: var(--primary); font-size: 1.5rem; margin-bottom: 20px; }
.feature-card h3 { margin: 0 0 10px 0; font-size: 1.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; margin-bottom: 30px; }
.arrow-link { font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.landing-footer { 
    position: relative; 
    margin-top: auto; 
    padding: 20px 0; 
    width: 100%;
    color: #4b5563; 
    font-size: 0.8rem; 
    text-align: center;
}

/* CHAT INTERFACE */
#chat-interface { display: flex; height: 100vh; width: 100vw; background-color: var(--bg-color); }
.hidden { display: none !important; }

/* SIDEBAR */
.chat-sidebar { width: 260px; background-color: #13161a; border-right: 1px solid var(--border); padding: 20px; display: flex; flex-direction: column; z-index: 100; position: relative; }
#back-btn { background: transparent; color: var(--text-muted); border: 1px solid var(--border); padding: 10px; border-radius: 8px; cursor: pointer; text-align: left; transition: 0.2s; }
#back-btn:hover { background-color: var(--border); color: white; }
.new-project-btn { background: linear-gradient(90deg, #6366f1, #818cf8); border: none; color: white; padding: 12px; border-radius: 8px; cursor: pointer; font-weight: 600; margin-top: 15px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform 0.2s; }
.new-project-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }
.new-project-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; filter: grayscale(1); }
.history-list { flex-grow: 1; margin-top: 10px; overflow-y: auto; }
.history-item { padding: 12px; border-radius: 8px; color: var(--text-muted); font-size: 0.9rem; cursor: pointer; transition: 0.2s; margin-bottom: 5px; border: 1px solid transparent; display: flex; align-items: center; gap: 10px; position: relative; padding-right: 30px; justify-content: space-between; }
.history-item:hover { background-color: #1f2937; color: white; }
.history-item.active { background-color: #2d3342; color: white; border-color: #6366f1; }
.history-item.disabled-link { pointer-events: none; opacity: 0.5; filter: grayscale(1); cursor: not-allowed; }
.sidebar-footer { color: #4b5563; font-size: 0.8rem; margin-top: 20px; }

/* CHAT AREA */
.chat-main { flex-grow: 1; display: flex; flex-direction: column; position: relative; }
.chat-header { padding: 20px 40px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.status-dot { width: 10px; height: 10px; background-color: #22c55e; border-radius: 50%; }
#chat-box { flex-grow: 1; padding: 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; max-width: 900px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.message { display: flex; gap: 15px; line-height: 1.6; max-width: 85%; }

/* AVATAR & SPINNER */
.avatar { width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; background-color: var(--primary); color: white; z-index: 10; }
.user-message .avatar { background-color: #4b5563; }
.avatar.thinking::after { content: ''; position: absolute; top: -4px; left: -4px; right: -4px; bottom: -4px; border-radius: 50%; border: 2px solid transparent; border-top-color: #6366f1; border-right-color: #a5b4fc; animation: avatar-spin 1s linear infinite; z-index: -1; }
@keyframes avatar-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.user-message { align-self: flex-end; flex-direction: row-reverse; }
.user-message .content { background-color: #2d3342; padding: 12px 20px; border-radius: 15px 15px 0 15px; }
.bot-message .content { background-color: transparent; padding: 10px 0; width: 100%; }

/* INPUT & UPLOAD */
.input-wrapper { padding: 30px; background-color: var(--bg-color); max-width: 900px; margin: 0 auto; width: 100%; box-sizing: border-box; }
#input-area { background-color: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: flex; align-items: center; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
#user-input { flex-grow: 1; background: transparent; border: none; color: white; font-size: 1rem; padding: 10px; outline: none; }
#send-btn { background-color: var(--primary); color: white; border: none; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; transition: 0.2s; }
#send-btn:hover { background-color: var(--primary-hover); }
.input-disclaimer { text-align: center; font-size: 0.75rem; color: #4b5563; margin-top: 10px; }

#upload-area { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: var(--card-bg); border: 1px dashed var(--border); padding: 40px; border-radius: 20px; text-align: center; width: 500px; z-index: 50; transition: all 0.2s ease; }
.upload-box.highlight { border-color: var(--primary); background-color: rgba(99, 102, 241, 0.1); }
.upload-box i { font-size: 3rem; color: var(--text-muted); margin-bottom: 10px; }
#video-input { margin: 20px 0; }
.upload-options { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
#video-prompt-input { background: #0f1115; border: 1px solid var(--border); padding: 12px; border-radius: 8px; color: white; }
#upload-confirm-btn { background: var(--primary); color: white; border: none; padding: 12px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.ai-actions { margin: 20px 0; text-align: center; }
.ai-actions p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }
.action-buttons { display: flex; gap: 10px; justify-content: center; }
.action-btn { background-color: #2d3342; border: 1px solid var(--border); color: white; padding: 10px 15px; border-radius: 8px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.action-btn:hover { background-color: var(--primary); border-color: var(--primary); }
.action-btn i { font-size: 1rem; color: #fff; margin: 0; }

#chat-upload-btn { background: transparent; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; padding: 0 10px; transition: 0.2s; }
#chat-upload-btn:hover { color: var(--primary); }
#image-preview-container { padding: 10px; background-color: var(--card-bg); border-top-left-radius: 10px; border-top-right-radius: 10px; border: 1px solid var(--border); border-bottom: none; display: flex; align-items: center; }
.preview-box { position: relative; display: inline-block; }
#image-preview { height: 60px; border-radius: 6px; border: 1px solid var(--border); }
#remove-image-btn { position: absolute; top: -8px; right: -8px; background-color: #ef4444; color: white; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 0.8rem; cursor: pointer; display: flex; justify-content: center; align-items: center; }
.chat-image { max-width: 100%; border-radius: 8px; margin-bottom: 8px; border: 1px solid rgba(255,255,255,0.1); }

/* Download Button (Standard) */
.download-btn { display: inline-block; margin-top: 10px; background-color: #10b981; color: white; padding: 8px 12px; border-radius: 6px; text-decoration: none; font-size: 0.9rem; font-weight: 600; border: none; cursor: pointer; }
.download-btn:hover { background-color: #059669; }

/* Progress Bar */
#upload-progress-container { width: 100%; background-color: #2d3342; border-radius: 10px; margin-top: 15px; height: 8px; overflow: hidden; }
#upload-progress-bar { width: 0%; height: 100%; background: linear-gradient(90deg, #6366f1, #818cf8); transition: width 0.2s ease; border-radius: 10px; }
#upload-percentage { font-size: 0.8rem; color: var(--text-muted); margin-top: 5px; text-align: right; display: block; }

/* Typing Cursor */
.typing-cursor::after { content: '▋'; display: inline-block; vertical-align: bottom; animation: blink 1s infinite; color: var(--primary); font-size: 0.8em; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Modal */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.modal-content { 
    background-color: #1e1e1e; 
    border: 1px solid var(--border); 
    border-radius: 16px; 
    width: 90%; 
    max-width: 500px; 
    padding: 0; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); 
    overflow: hidden; 
    animation: slideUp 0.3s ease-out; 
    /* --- ΝΕΕΣ ΠΡΟΣΘΗΚΕΣ ΓΙΑ ΤΟ SCROLL --- */
    max-height: 90vh; /* Να μην πιάνει πάνω από το 90% του ύψους της οθόνης */
    display: flex; 
    flex-direction: column; 
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { background-color: #2d3342; padding: 20px; font-size: 1.2rem; font-weight: bold; color: #fbbf24; display: flex; align-items: center; gap: 10px; }
.modal-body { 
    padding: 25px; 
    color: #e5e7eb; 
    line-height: 1.6; 
    font-size: 0.95rem; 
    /* --- ΝΕΑ ΠΡΟΣΘΗΚΗ --- */
    overflow-y: auto; /* Αν τα πακέτα πέσουν το ένα κάτω από το άλλο, βγάλε scroll! */
}
.modal-body ol { padding-left: 20px; margin: 0; }
.modal-body li { margin-bottom: 15px; }
.modal-body ul { margin-top: 5px; color: #9ca3af; font-size: 0.9rem; }
.modal-footer { padding: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
#btn-download-confirm { background-color: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 8px; cursor: pointer; font-weight: 600; }
#btn-download-confirm:hover { background-color: var(--primary-hover); }
.text-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; text-decoration: underline; }

/* History Menu */
.menu-trigger { opacity: 0; background: none; border: none; color: #a0a0b0; cursor: pointer; padding: 5px; font-size: 1.1rem; transition: all 0.2s; position: absolute; right: 10px; }
.history-item:hover .menu-trigger, .menu-trigger:focus, .history-item.menu-active .menu-trigger { opacity: 1; }
.menu-trigger:hover { color: #fff; }
.context-menu { position: absolute; top: 35px; right: 10px; background: #2a2a35; border: 1px solid #3a3a45; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); z-index: 1000; min-width: 120px; display: none; flex-direction: column; overflow: hidden; }
.context-menu.show { display: flex; }
.context-menu button { background: none; border: none; color: #ccc; padding: 10px 15px; text-align: left; cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; transition: background 0.2s; width: 100%; }
.context-menu button:hover { background: #3a3a45; color: #fff; }
.context-menu button.delete-btn:hover { background: #4a2a2a; color: #ff6b6b; }
.pinned-icon { font-size: 0.7rem; color: #ffd700; margin-right: 5px; transform: rotate(45deg); }

/* --- NEW VIRAL SHORTS STYLES --- */
/* Αυτό είναι το νέο κομμάτι για τις κάρτες */
.clips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.clip-card {
    background: #1f2937;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    width: calc(50% - 15px); /* Δύο κάρτες ανά σειρά */
    min-width: 280px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
}

.clip-card:hover {
    transform: translateY(-4px);
    border-color: #e1306c; /* Instagram Color on hover */
    box-shadow: 0 10px 25px rgba(225, 48, 108, 0.1);
}

.clip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.clip-time {
    background: #374151;
    color: #e5e7eb;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.clip-title {
    font-weight: 700;
    color: white;
    font-size: 1rem;
    line-height: 1.3;
}

.clip-caption {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    background: rgba(0,0,0,0.2);
    padding: 8px;
    border-radius: 6px;
    border-left: 2px solid var(--primary);
}

.clip-hashtags {
    color: #e1306c; /* Pinkish color for tags */
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-viral-dl {
    background: var(--insta-gradient);
    color: white !important;
    text-decoration: none;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto; /* Σπρώχνει το κουμπί κάτω */
    transition: opacity 0.2s, transform 0.2s;
    border: none;
    display: block;
    box-shadow: 0 4px 10px rgba(220, 39, 67, 0.3);
}

.btn-viral-dl:hover {
    opacity: 0.95;
    transform: scale(1.02);
}

.btn-viral-dl i {
    margin-right: 8px;
}
/* Προσθήκη στο τέλος του style.css */
.message-content {
    white-space: pre-wrap; /* Αυτό είναι το ΜΥΣΤΙΚΟ: Σέβεται τα Enter και τα κενά */
    line-height: 1.6;      /* Λίγο "αέρα" ανάμεσα στις γραμμές για να διαβάζεται άνετα */
}

/* Αν χρησιμοποιείς λίστες, να φαίνονται σωστά */
.message-content ul, .message-content ol {
    margin-left: 20px;
    margin-bottom: 10px;
}
/* --- Feature List μέσα στις κάρτες --- */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: left;
}

.feature-list li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-list li i {
    color: var(--primary); /* Μωβ χρώμα στα εικονίδια */
    font-size: 0.8rem;
    width: 20px;
    text-align: center;
}

.feature-list li strong {
    color: var(--text-main); /* Λευκό για τα σημαντικά */
}
.auth-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background-color: #2d3342; /* Σκούρο γκρι, ταιριάζει με το theme */
    border: 1px solid #4b5563;
    color: white;
    border-radius: 8px;
    box-sizing: border-box; /* Για να μην βγαίνει έξω από το κουτί */
    outline: none;
    font-size: 1rem;
}

.auth-input:focus {
    border-color: #6366f1; /* Μωβ περίγραμμα όταν γράφεις */
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background-color: #6366f1; /* Το βασικό μωβ χρώμα */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 10px;
    transition: background-color 0.2s;
    font-size: 1rem;
}

.auth-btn:hover {
    background-color: #4f46e5;
}

/* Το κουμπί "Create Account" που είναι διάφανο */
.auth-btn.secondary {
    background-color: transparent;
    border: 1px solid #6366f1;
    color: #6366f1;
}

.auth-btn.secondary:hover {
    background-color: rgba(99, 102, 241, 0.1);
}
/* Προσθήκη για Κινητά */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Τα βάζει κάθετα αντί για οριζόντια */
    }
    
    .sidebar {
        width: 100%; /* Τέρμα φάρδος */
        height: auto;
        max-height: 200px; /* Μικρό ύψος, με scroll */
        order: 2; /* Το βάζουμε κάτω από το chat */
    }

    .main-content {
        width: 100%;
        height: 70vh; /* Το chat πιάνει το 70% της οθόνης */
        order: 1;
    }

    .navbar {
        flex-direction: column;
        gap: 10px;
        height: auto;
        padding: 15px;
    }
}
@media (max-width: 768px) {
    /* Navbar: Κάθετη διάταξη */
    .navbar { position: relative; flex-direction: column; padding: 15px; gap: 15px; background: var(--bg-color); }
    .nav-links { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
    .nav-links a { margin-left: 0; }

    /* Landing Page */
    .hero-content h1 { font-size: 2.5rem; }
    #landing-screen { padding-top: 20px; height: auto; display: block; }
    .cards-container { flex-direction: column; align-items: center; }
    .feature-card { width: 100%; max-width: 320px; }

    /* Chat Interface */
    #chat-interface { flex-direction: column; height: 100vh; overflow: hidden; }
    
    /* Sidebar: Γίνεται μπάρα πάνω αντί για πλάι */
    .chat-sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--border); padding: 10px; flex-direction: row; align-items: center; justify-content: space-between; order: -1; }
    .chat-sidebar button#back-btn { font-size: 0.8rem; padding: 5px 10px; }
    .chat-sidebar .new-project-btn { width: auto; margin: 0; padding: 8px 15px; font-size: 0.8rem; }
    .history-list, .sidebar-footer { display: none; } /* Κρύβουμε το ιστορικό στο κινητό */

    /* Upload & Input Area */
    #upload-area { width: 90%; padding: 20px; }
    .upload-box i { font-size: 2rem; }
    .input-wrapper { padding: 10px; position: fixed; bottom: 0; left: 0; z-index: 50; }
    #chat-box { padding-bottom: 80px; }
}
/* 📱 MOBILE FIXES (FINAL & STABLE) 📱 */
@media (max-width: 768px) {
    
    /* 1. ΣΤΑΘΕΡΟΠΟΙΗΣΗ ΟΘΟΝΗΣ (Να μην κουνιέται δεξιά-αριστερά) */
    html, body {
        overflow-x: hidden !important;
        width: 100%;
        position: relative;
    }

    /* 2. HAMBURGER MENU BUTTON */
    .mobile-menu-btn {
        display: flex !important; /* 👈 ΤΟ ΞΑΝΑΚΑΝΟΥΜΕ FLEX */
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
        color: white;
        background-color: #6366f1;
        border-radius: 50%;
        z-index: 9999;
        font-size: 1.2rem;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0,0,0,0.5);
        border: 2px solid rgba(255,255,255,0.2);
    }

    /* 3. ΚΡΥΒΟΥΜΕ ΤΑ ΠΕΡΙΤΤΑ */
    .chat-header { display: none !important; } /* Τίτλος Expert */
    .nav-links { display: none; } /* Links login κτλ */
    .navbar { padding: 0; height: 0; pointer-events: none; } 

    /* 4. SIDEBAR (ΣΥΡΤΑΡΙ) */
    .chat-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 85%; /* Πιάνει το 85% της οθόνης */
        max-width: 300px;
        background: #13161a;
        z-index: 1500;
        transform: translateX(-100%); /* Κρυμμένο */
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        border-right: 1px solid #333;
        display: flex;
        flex-direction: column;
        padding-top: 60px; /* Χώρος για να μην πέφτει πάνω στο Χ κλεισίματος */
    }

    .chat-sidebar.open { transform: translateX(0); } /* Άνοιγμα */

    /* Λίστα Ιστορικού */
    .history-list { display: block !important; overflow-y: auto; height: 100%; }
    .sidebar-footer { display: block; }

    /* 5. FIX ΓΙΑ ΤΙΣ 3 ΤΕΛΙΤΣΕΣ (Context Menu) */
    .history-item {
        padding-right: 50px !important; /* Χώρος για το κουμπί */
        position: relative;
    }

    .menu-trigger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        opacity: 1 !important; /* ΠΑΝΤΑ ΟΡΑΤΟ */
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px; /* Μεγάλη περιοχή αφής */
        height: 100%;
        color: white !important; /* Λευκό χρώμα */
        background: rgba(255, 255, 255, 0.05); /* Ελαφρύ φόντο για να ξέρεις πού να πατήσεις */
        border-left: 1px solid #333;
        z-index: 20;
    }

    /* Το μενού επιλογών (Pin/Delete) */
    .context-menu {
        position: fixed !important; /* Fixed για να μην κόβεται */
        right: 50px; /* Εμφάνιση δίπλα από το δάχτυλο */
        width: 160px;
        background: #2a2a35;
        border: 1px solid #555;
        z-index: 2500;
    }
    
    .context-menu button { padding: 15px; font-size: 1rem; }

    /* 6. CHAT INTERFACE */
    #chat-interface { flex-direction: column; height: 100vh; width: 100%; overflow: hidden; }
    .chat-main { width: 100%; height: 100%; position: relative; }
    
    #chat-box {
        padding: 15px;
        padding-top: 80px; /* Χώρος για το Hamburger κουμπί */
        padding-bottom: 140px; /* Χώρος για το Input */
        width: 100%;
        box-sizing: border-box;
    }

    /* 7. INPUT AREA (Κολλημένο κάτω) */
    .input-wrapper {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #0f1115;
        padding: 10px;
        border-top: 1px solid #333;
        z-index: 100;
        box-sizing: border-box;
    }
}

/* Default για PC: Κρύψε το κουμπί μενού */
@media (min-width: 769px) {
    .mobile-menu-btn { display: none; }
}
/* --- FIX ΓΙΑ ΤΑ ΓΡΑΜΜΑΤΑ ΣΤΟ ΚΙΝΗΤΟ (COPYRIGHT) --- */
@media (max-width: 768px) {
    .landing-footer {
        position: relative !important; /* Σταματάει να επιπλέει πάνω στα κουμπιά */
        bottom: auto !important;       /* Το ξεκολλάμε από τον πάτο της οθόνης */
        margin-top: 60px;              /* Του δίνουμε αέρα 60px από τα κουμπιά */
        padding-bottom: 40px;          /* Χώρος κάτω-κάτω για να μην κόβεται */
        width: 100%;
        text-align: center;
        display: block !important;     /* Σιγουρεύουμε ότι φαίνεται */
        color: #6b7280;                /* Χρώμα γκρι για να φαίνεται στο μαύρο */
    }
}

/* --- ULTIMATE ELASTIC LAYOUT (NO GAPS) --- */
@media (max-width: 768px) {

    /* 1. CONTAINER: Πιάνει πάντα το 100% της οθόνης */
    #landing-screen {
        width: 100vw !important; /* Viewport Width */
        max-width: 100% !important;
        padding: 10px !important;
        box-sizing: border-box;
        overflow-x: hidden; /* Κόβουμε οτιδήποτε εξέχει */
    }

    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 2. ΚΑΡΤΕΣ: Ελαστικές (Stretch) */
    .cards-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important; /* Ποτέ να μην πέφτει από κάτω */
        width: 100% !important;
        margin: 20px 0 !important;
        gap: 10px !important;
        justify-content: space-between !important;
    }

    .feature-card {
        flex: 1 1 0px !important; /* Το '0px' είναι το μυστικό για να μοιράζονται ακριβώς */
        width: 0 !important;      /* Αγνοούμε το αρχικό πλάτος των 300px */
        min-width: 0 !important;  /* Επιτρέπουμε να συρρικνωθεί όσο χρειαστεί */
        max-width: 50% !important;/* Ποτέ πάνω από τη μισή οθόνη */
        
        padding: 15px 5px !important; /* Πολύ μικρό padding πλάγια */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        height: auto; 
        min-height: 240px; /* Σταθερό ύψος */
    }

    /* 3. ΠΕΡΙΕΧΟΜΕΝΟ ΚΑΡΤΑΣ: Προσαρμογή */
    .icon-circle {
        margin-bottom: 5px;
        width: 40px; height: 40px; font-size: 1.2rem;
    }

    .feature-card h3 {
        font-size: 0.85rem !important; /* Μικρά γράμματα για να χωράνε */
        line-height: 1.2;
        margin-bottom: 5px;
        height: 35px; /* Σταθερό ύψος για τίτλο 2 γραμμών */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .feature-card p { display: none !important; } /* Κρύβουμε περιγραφή */

    .feature-list {
        width: 100%;
        padding: 0 2px;
    }

    .feature-list li {
        font-size: 0.6rem !important; /* Micro-text */
        white-space: nowrap;          /* Μία γραμμή ανά feature */
        overflow: hidden;             /* Αν είναι τεράστιο, κόψτο */
        text-overflow: ellipsis;      /* ... στο τέλος */
        justify-content: center;
    }

    .arrow-link {
        font-size: 0.75rem;
        margin-top: auto;
    }

    /* 4. NAVBAR & FOOTER FIXES */
    .navbar {
        width: 100% !important;
        flex-direction: row !important;
        padding: 10px 15px !important;
        box-sizing: border-box;
    }
    
    .nav-links { display: flex !important; gap: 8px; }
    .nav-links a { margin: 0 !important; font-size: 0.8rem; }
    
    .landing-footer {
        position: relative !important;
        bottom: auto !important;
        margin-top: 40px;
        width: 100%;
        display: block !important;
    }
}
/* --- FIX ΓΙΑ ΝΑ ΛΕΙΤΟΥΡΓΕΙ ΤΟ LOGIN ΣΤΟ ΚΙΝΗΤΟ --- */
@media (max-width: 768px) {
    
    /* 1. Ενεργοποιούμε τα κλικ στην μπάρα */
    .navbar {
        pointer-events: auto !important; /* ΕΠΙΤΡΕΠΕΙ ΤΑ ΚΛΙΚ */
        z-index: 5000 !important;        /* ΦΕΡΝΕΙ ΤΗΝ ΜΠΑΡΑ ΜΠΡΟΣΤΑ ΑΠΟ ΟΛΑ */
        position: relative !important;
    }

    /* 2. Ενεργοποιούμε τα κλικ στα κουμπιά */
    .nav-links, .login-btn {
        pointer-events: auto !important; /* Σιγουριά για τα κουμπιά */
        cursor: pointer !important;      /* Να δείχνει ότι πατιέται */
        position: relative !important;
        z-index: 5001 !important;        /* Ακόμα πιο μπροστά */
    }
}
