/* NON-CRITICAL CSS - styles.css - Remember to minify this file */

/* --- START: STYLES FOR SIDEBAR & TOGGLE BUTTON (NON-CRITICAL PARTS) --- */
.sidebar-toggle-btn {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 255, 255, 0.2);
}
.sidebar-toggle-btn:hover {
    background-color: rgba(0, 255, 255, 0.2);
    box-shadow: 0 5px 18px rgba(0, 255, 255, 0.35);
}

.sidebar {
    transition: transform 0.3s ease-in-out; /* For transform-based animation */
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
    border-right: 1px solid rgba(0, 255, 255, 0.1);
}
/* .sidebar.open is handled by critical CSS via transform */

.sidebar-header {
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    margin-bottom: 20px;
}
.sidebar-close-btn:hover {
    color: #00ffff;
}
.sidebar-nav li a {
    /* Basic structure in critical, enhanced here */
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    border-left: 3px solid transparent;
}
.sidebar-nav li a:hover, .sidebar-nav li a.active {
    background-color: rgba(0, 255, 255, 0.1);
    color: #ffffff;
    border-left-color: #00ffff;
    padding-left: 25px;
}

/* Mobile adjustments for sidebar (non-critical enhancements) */
@media (max-width: 768px) {
    /* .sidebar width and initial transform in critical */
    .sidebar-nav li a:hover, .sidebar-nav li a.active {
        padding-left: 20px;
    }
}
/* --- END: STYLES FOR SIDEBAR & TOGGLE BUTTON --- */


/* --- Splash Screen Styles (NON-CRITICAL parts) --- */
/* Animations are in critical. Non-critical can add more subtle details if needed, but often not necessary for splash */

/* --- Flame Animation Background (Actual flame styling) --- */
.flame {
    position: absolute; bottom: -100px; width: 100px; height: 200px;
    background: radial-gradient(circle at 50% 100%, rgba(0, 255, 255, 0.7) 0%, rgba(0, 200, 200, 0.5) 30%, rgba(0, 150, 150, 0.2) 60%, transparent 80%);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform-origin: 50% 100%;
    animation: flame-rise 8s infinite ease-in-out, flame-sway 3s infinite ease-in-out;
    opacity: 0;
}
.flame.flame2 {
    width: 80px; height: 180px; animation-delay: -2s, -1.5s; /* Delays can be in non-critical */
    background: radial-gradient(circle at 50% 100%, rgba(0, 220, 255, 0.6) 0%, rgba(0, 180, 220, 0.4) 30%, rgba(0, 130, 180, 0.1) 60%, transparent 80%);
}
.flame.flame3 {
    width: 120px; height: 220px; animation-delay: -4s, -2.5s;
    background: radial-gradient(circle at 50% 100%, rgba(20, 200, 255, 0.8) 0%, rgba(20, 160, 200, 0.5) 30%, rgba(0, 120, 150, 0.2) 60%, transparent 80%);
}
@keyframes flame-rise {
    0% { transform: translateY(0) scaleY(1); opacity: 0.3; }
    50% { transform: translateY(-300px) scaleY(1.5); opacity: 0.7; }
    100% { transform: translateY(-600px) scaleY(0.5); opacity: 0; }
}
@keyframes flame-sway {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(10px) rotate(5deg); }
}

/* --- Landing Section (NON-CRITICAL enhancements) --- */
body { /* Full body background if it was simplified in critical */
   background-color: #0a0f18; /* Ensure this is set */
}
.landing-section {
    /* Full background gradient if simplified in critical */
    background: radial-gradient(ellipse at center, rgba(10, 15, 24, 0.7) 0%, rgba(10, 15, 24, 0.95) 70%, #0a0f18 100%);
}
.landing-logo {
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4), 0 0 60px rgba(0, 255, 255, 0.2);
}
.landing-section h1 {
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00b8b8;
}
.cta-button {
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.3); border: 2px solid transparent;
}
.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 255, 255, 0.5);
    background: linear-gradient(45deg, #00e0e0, #00ffff); border: 2px solid #00ffff;
}
.cta-button .fas, .cta-button .fab { transition: transform 0.3s ease; }
.cta-button:hover .fas, .cta-button:hover .fab { transform: rotate(15deg); }
#discordAdBanner .cta-button:hover .fab { transform: rotate(0); } /* Specific override */

/* Styles for Popular Style Links/Chips (NON-CRITICAL enhancements) */
.popular-style-chip {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 200, 200, 0.1);
}
.popular-style-chip:hover {
    background-color: rgba(0, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
    border-color: #00ffff;
    box-shadow: 0 4px 12px rgba(0, 220, 220, 0.2);
}
/* Scroll indicator animation is in critical */

/* --- Showcase Section --- */
.showcase-section { padding: 4rem 2rem; background-color: #0c121f; text-align: center; }
.showcase-section h2 { /* SEO: This should be H2 */
    font-family: 'Orbitron', sans-serif; font-size: 2.5rem; color: #00ffff;
    margin-bottom: 1rem; text-shadow: 0 0 10px #00ffff;
}
.showcase-section .tagline { font-size: 1.1rem; color: #a0d8ef; margin-bottom: 3rem; }
.showcase-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; max-width: 1200px; margin: 0 auto;
}
.showcase-item img { /* CSS handles responsive sizing */
    width: 100%; height: auto; border-radius: 15px; object-fit: cover; aspect-ratio: 1 / 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.showcase-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 255, 255, 0.3);
}

/* --- Dashboard Section --- */
.dashboard-container {
    position: relative; z-index: 1; padding: 4rem 2rem; max-width: 1400px;
    margin: 0 auto; background: #0a0f18; min-height: 100vh;
}
.header {
    text-align: center; margin-bottom: 3rem; padding: 2rem 0;
    background: rgba(0, 255, 255, 0.05); backdrop-filter: blur(10px);
    border-radius: 20px; border: 1px solid rgba(0, 255, 255, 0.1);
}
.logo { /* from .header .logo in critical */
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.4));
}
.header h2 { /* from .header h2 in critical */
    background: linear-gradient(45deg, #00ffff, #00a1a1);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.input-section, .output-section {
    background: rgba(0, 50, 70, 0.3); backdrop-filter: blur(20px); border-radius: 20px;
    padding: 2rem; border: 1px solid rgba(0, 255, 255, 0.15); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.user-info {
    display: none; align-items: center; gap: 1rem; margin-bottom: 2rem; padding: 1rem;
    background: rgba(0, 255, 255, 0.08); border-radius: 12px; border: 1px solid rgba(0, 255, 255, 0.2);
}
.user-avatar { width: 50px; height: 50px; border-radius: 50%; border: 2px solid #00ffff; }
.user-name { font-weight: 600; color: #00ffff; }
.input-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #c0e0ff; }
.input-group input, .input-group select, .input-group textarea {
    width: 100%; padding: 0.75rem; background: rgba(0, 20, 30, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.2); border-radius: 8px;
    color: #ffffff; font-size: 1rem; transition: all 0.3s ease;
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none; border-color: #00ffff; box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.15);
    background: rgba(0, 30, 40, 0.6);
}
.input-group textarea { resize: vertical; min-height: 100px; }
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, #00a1a1, #007f7f); color: white; text-decoration: none;
    border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0, 200, 200, 0.2);
}
.btn:hover {
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 220, 220, 0.3);
    background: linear-gradient(45deg, #00c0c0, #00a1a1);
}
.btn i { line-height: 1; }
.generate-btn {
    width: 100%; padding: 1rem; font-size: 1.1rem;
    background: linear-gradient(45deg, #00dddd, #00b8b8); margin-bottom: 1rem;
}
.generate-btn:hover { background: linear-gradient(45deg, #00c8c8, #00dddd); }
#fallbackNotice {
    color: #ff6b6b;
    font-size: 0.85em;
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.3rem;
    border-radius: 4px;
    background-color: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    display: none;
}
.auth-buttons { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
#logoutBtn { background: linear-gradient(45deg, #cc3333, #a32929); }
#logoutBtn:hover { background: linear-gradient(45deg, #a32929, #cc3333); }
.discord-link {
    display: inline-flex; align-items: center; gap: 0.5rem; color: #7289da; text-decoration: none;
    font-weight: 600; padding: 0.5rem; border-radius: 8px; transition: all 0.3s ease;
}
.discord-link:hover { background: rgba(114, 137, 218, 0.1); transform: translateY(-1px); }
.output-section { min-height: 400px; position: relative; }
#loading {
    display: none; flex-direction: column; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #00ffff; position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 15, 24, 0.85); z-index: 1000;
}
#loading i { font-size: 3rem; margin-bottom: 1rem; }
#placeholder {
    display: flex; align-items: center; justify-content: center; height: 200px;
    color: #8892b0; font-size: 1.1rem; text-align: center;
    border: 2px dashed rgba(0, 255, 255, 0.2); border-radius: 12px;
}
#imageOutput { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.image-container-generated {
    position: relative; border-radius: 12px; overflow: hidden;
    background-color: rgba(0,30,40,0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column;
}
.image-container-generated:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.25);
}
.generated-image {
    display: block; width: 100%; height: auto;
    aspect-ratio: 1/1; object-fit: cover; cursor: zoom-in;
}
.image-actions-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
}
.btn-save-gallery, .btn-edit-image {
    font-family: 'Roboto', sans-serif; font-weight: 600; font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
    margin: 0.5rem;
    border-radius: 6px; border: none; color: white; cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    flex-grow: 1;
    max-width: 45%;
    text-align: center;
}
.btn-save-gallery {
     background: linear-gradient(45deg, #6c757d, #5a6268);
}
.btn-save-gallery:hover { background: linear-gradient(45deg, #5a6268, #4e555b); transform: translateY(-1px);}
.btn-save-gallery i, .btn-edit-image i { margin-right: 0.4rem; }

.btn-edit-image {
    background: linear-gradient(45deg, #ffc107, #e0a800);
    color: #0a0f18;
}
.btn-edit-image:hover { background: linear-gradient(45deg, #e0a800, #c69500); transform: translateY(-1px);}


.generation-options-container {
    background: rgba(0, 60, 80, 0.25);
    padding: 1.5rem; border-radius: 15px; margin-bottom: 2rem;
    border: 1px solid rgba(0, 255, 255, 0.15);
}
.generation-options-container h3 {
    font-family: 'Orbitron', sans-serif; color: #00ffff; margin-bottom: 1.5rem;
    text-align: center; font-size: 1.5rem; text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}
.options-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem 1.5rem; margin-bottom: 1rem;
}
.options-grid .input-group { margin-bottom: 0.5rem; }
.options-grid .input-group label { color: #a0d8ef; font-size: 0.9em;}
.options-note {
    font-size: 0.85em; color: #a0d8ef; margin-top: 0.5rem; text-align: center;
    background-color: rgba(0,30,40,0.3); padding: 0.5rem; border-radius: 6px;
}
.lightbox-modal {
    display: none; position: fixed; z-index: 1001;
    left: 0; top: 0; width: 100%; height: 100%; overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding-top: 70px;
}
#lightboxModal.image-lightbox-view {
    align-items: center;
    justify-content: center;
    padding-top: 70px;
}
#editImageModal.edit-image-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
}
.lightbox-content {
    margin: auto; display: block; max-width: 90%; max-height: 80vh;
    transition: transform 0.2s ease-out; cursor: grab;
    border: 2px solid rgba(0, 255, 255, 0.3); border-radius: 8px;
}
.lightbox-content.grabbing { cursor: grabbing; }
.lightbox-controls {
    position: absolute; top: 15px; left: 15px; right: 15px;
    display: flex; justify-content: space-between; align-items: center; z-index: 1002;
}
.lightbox-zoom-controls { display: flex; gap: 10px; }
.lightbox-action-btn, .lightbox-zoom-controls button {
    color: #00ffff; font-size: 20px; font-weight: bold; transition: 0.3s;
    background: rgba(10, 15, 24, 0.7); border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px; padding: 8px 12px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-action-btn:hover, .lightbox-zoom-controls button:hover {
    color: #fff; background: rgba(0, 255, 255, 0.4);
}
.lightbox-action-btn i { line-height: 1; }

.edit-modal-content-wrapper {
    background: #0c121f;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #00ffff;
    max-width: 90%;
    width: 650px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    max-height: 90vh;
    overflow-y: auto;
}
.edit-modal-content-wrapper h2 {
    font-family: 'Orbitron', sans-serif;
    color: #00ffff;
    text-align: center;
    margin-bottom: 20px;
}
.edit-modal-image-comparison {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.edit-modal-image-comparison > div {
    flex: 1;
    text-align: center;
}
.edit-modal-image-comparison img {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    background-color: rgba(0,20,30,0.4);
}
 .edit-modal-image-comparison p {
    font-size: 0.9em;
    color: #a0d8ef;
    margin-bottom: 5px;
}
#editImageLoading i, #editImageModalFallbackNotice i {
    color: #00ffff;
}
#editImageModalFallbackNotice {
    color: #ffc107;
    font-size: 0.85em;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0.5rem;
    padding: 0.3rem;
    border-radius: 4px;
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    display: none;
}
 #editMaskUrlHelpText {
    font-size: 0.8em;
    color: #a0d8ef;
    display: block;
    margin-top: 3px;
}


#toastContainer {
    position: fixed; top: 20px; right: 20px; z-index: 2000;
    display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.toast {
    padding: 12px 20px; border-radius: 8px; color: white;
    opacity: 0; transform: translateX(100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
    min-width: 280px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); font-size: 0.95rem;
}
.toast.toast-visible { opacity: 0.9; transform: translateX(0); }
.toast-info { background-color: rgba(0, 123, 255, 0.85); border-left: 5px solid #0056b3; }
.toast-success { background-color: rgba(40, 167, 69, 0.85); border-left: 5px solid #1e7e34; }
.toast-error { background-color: rgba(220, 53, 69, 0.85); border-left: 5px solid #b21f2d; }
.toast.toast-fade-out { opacity: 0; transform: translateX(100%); }
.toast a { color: #e0e6ed; text-decoration: underline; font-weight: bold; }
.toast a:hover { color: #ffffff; }
.site-footer-credit {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9em;
    color: #a0d8ef;
    background-color: rgba(10, 15, 24, 0.85);
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}
.site-footer-credit .heart-icon {
    color: #ff6b6b;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(0, 255, 255, 0.05); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: rgba(0, 200, 200, 0.6); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 220, 220, 0.8); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.input-section, .output-section, .showcase-item { animation: fadeIn 0.6s ease-out; }

@media (max-width: 1024px) {
    /* Critical landing h1/subtitle already handled */
    .dashboard-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
    /* Critical body padding, sidebar, splash, landing, popular chips already handled */
    .dashboard-container, .showcase-section { padding: 2rem 1rem; }
    .header h2 { font-size: 2rem; /* Already in critical, ensure consistency */ }
    .input-section, .output-section { padding: 1.5rem; }
    .auth-buttons { flex-direction: column; }
    .auth-buttons .btn { width: 100%; margin-bottom: 0.5rem; }
    .showcase-section h2 { font-size: 2rem; }
    .options-grid { grid-template-columns: 1fr; }
    .lightbox-content { max-width: 95%; max-height: 75vh; }
    .lightbox-controls { flex-direction: column; gap: 10px; top: 10px; left: 10px; right: 10px; align-items: flex-start; }
    .lightbox-zoom-controls { order: 2; }
    #lightboxDownloadBtn { order: 1; }
    .lightbox-controls .lightbox-close { order: 0; align-self: flex-end; }
    .lightbox-action-btn, .lightbox-zoom-controls button { padding: 6px 10px; font-size: 18px; }
    .site-footer-credit { font-size: 0.8em; padding: 8px 0;}
    #trustpilotWidgetContainer { margin: 1rem auto !important; }

    .edit-modal-content-wrapper { width: 95%; padding: 15px; }
    .edit-modal-image-comparison { flex-direction: column; }
    .edit-modal-image-comparison img { max-height: 180px; }
}
.btn.btn-bkash {
    background: linear-gradient(45deg, #e2136e, #c0105c);
    color: #ffffff;
    margin-top: 1rem;
    width:100%;
    justify-content:center;
}
.btn.btn-bkash:hover {
    background: linear-gradient(45deg, #ff408e, #d4126e);
    box-shadow: 0 6px 20px rgba(226, 19, 110, 0.4);
}
#trustpilotWidgetContainer {
    text-align: center;
    margin: 2rem auto 1rem auto;
    padding: 1rem;
    max-width: 450px;
}

/* --- START: AI Assistant Widget Styles --- */
#ai-assistant-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1010;
}

.ai-assistant-button {
    background: linear-gradient(45deg, #00ffff, #00a1a1);
    color: #0a0f18;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ai-assistant-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 255, 255, 0.6);
}

.ai-chat-widget-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: rgba(10, 25, 40, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.ai-chat-widget-window.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.ai-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
    font-family: 'Orbitron', sans-serif;
    color: #00ffff;
}

.ai-widget-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.ai-widget-close-btn {
    background: none; border: none; font-size: 1.5rem; color: #a0d8ef; cursor: pointer;
}
.ai-widget-close-btn:hover { color: #fff; }

.ai-widget-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-message {
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 80%;
    line-height: 1.4;
    word-wrap: break-word;
}

.ai-message.assistant {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: #e0e6ed;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}
.ai-message.user {
    background-color: #007bff;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}
.ai-message.loading {
    align-self: flex-start;
}
.ai-message.loading span {
     display: inline-block;
     width: 8px;
     height: 8px;
     border-radius: 50%;
     background-color: rgba(0, 255, 255, 0.6);
     animation: ai-typing-bounce 1.4s infinite ease-in-out both;
}
.ai-message.loading span:nth-child(1) { animation-delay: -0.32s; }
.ai-message.loading span:nth-child(2) { animation-delay: -0.16s; }

@keyframes ai-typing-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

.ai-widget-footer {
    padding: 15px;
    border-top: 1px solid rgba(0, 255, 255, 0.15);
    display: flex;
    gap: 10px;
}

#ai-widget-input {
    flex-grow: 1;
    background: rgba(0, 20, 30, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 10px 15px;
    color: white;
    outline: none;
}
#ai-widget-input:focus {
    border-color: #00ffff;
}

.ai-widget-send-btn {
    background: #00a1a1;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
}
.ai-widget-send-btn:hover { background: #00ffff; color: #0a0f18; }
/* --- END: AI Assistant Widget Styles --- */

/* --- START: Interactive Tour Styles --- */
.tour-popover {
    position: absolute;
    padding: 15px 20px;
    background: rgba(0, 255, 255, 0.95);
    color: #0a0f18;
    border: 2px solid #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 255, 255, 0.5);
    max-width: 320px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 9998;
    text-align: center;
}
.tour-popover p {
    margin: 0 0 15px 0;
    line-height: 1.5;
}
.tour-popover button {
    background: #0a0f18;
    color: #00ffff;
    border: 1px solid #00ffff;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}
 .tour-popover button:hover {
    background: #fff;
    color: #0a0f18;
}
/* --- END: Interactive Tour Styles --- */

/* --- START: CSS for New Content Expansion Sections (to address word count and H1 keyword usage) --- */

.content-expansion-section {
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 2rem auto;
    background-color: rgba(12, 18, 31, 0.7); /* Slightly different from showcase to differentiate, if needed */
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    box-shadow: 0 5px 25px rgba(0, 50, 50, 0.1);
}

.content-expansion-section h2,
.features-overview-section h2 { /* Shared H2 style for new sections */
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    color: #00ffff;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.7);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    padding-bottom: 0.75rem;
}

.content-expansion-section p {
    font-size: 1.1rem;
    color: #c0d0e0; /* Slightly brighter for readability in these sections */
    line-height: 1.7;
    margin-bottom: 1.2rem;
    text-align: justify; /* For a more formal, content-rich look */
}

.content-expansion-section p strong {
    color: #e0e6ed; /* Emphasize strong tags */
}

.content-expansion-section ul {
    list-style: none; /* Can be 'disc' inside 'content-expansion-section p ul' if preferred */
    padding-left: 20px;
    margin-bottom: 1.2rem;
}

.content-expansion-section ul li {
    font-size: 1.05rem;
    color: #b0c0d0;
    margin-bottom: 0.7rem;
    position: relative;
    padding-left: 25px; /* Space for custom bullet */
}

.content-expansion-section ul li::before {
    content: "\f138"; /* Font Awesome arrow-circle-right or similar, ensure FA is loaded */
    font-family: "Font Awesome 6 Free"; /* Or your FA version */
    font-weight: 900; /* For solid icons */
    color: #00ffff;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1em;
}

/* Features Overview Section Specifics (for "Why Choose GenAura?") */
.features-overview-section {
    padding: 3rem 2rem;
    max-width: 1200px; /* Slightly wider for feature cards */
    margin: 2rem auto;
    background-color: #080b13; /* Darker, distinct background for this block */
    border-radius: 15px;
    border-top: 2px solid rgba(0, 255, 255, 0.3);
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: rgba(16, 25, 45, 0.8);
    padding: 1.8rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.15);
    box-shadow: 0 6px 18px rgba(0, 30, 30, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 80, 80, 0.3);
}

.feature-card i.fas, .feature-card i.fab { /* Icon styling for features */
    font-size: 2.5rem;
    color: #00ffff;
    margin-bottom: 1rem;
    display: block; /* Center the icon */
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.feature-card h3 {
    font-family: 'Roboto', sans-serif; /* Standard font for feature titles for clarity */
    font-size: 1.3rem;
    color: #e0e6ed;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: #a0b0c0;
    line-height: 1.6;
    text-align: center; /* Override justify if used generally in p tags */
}


/* Responsive adjustments for new content sections (ensure this media query combines with existing if present) */
@media (max-width: 768px) {
    /* If there's an existing @media (max-width: 768px) {} block, add these inside it. */
    /* Otherwise, this block is fine as is. */
    .content-expansion-section,
    .features-overview-section {
        padding: 2rem 1rem; /* Less padding on mobile */
        margin: 1.5rem auto;
    }

    .content-expansion-section h2,
    .features-overview-section h2 {
        font-size: 1.8rem; /* Smaller H2 on mobile */
    }

    .content-expansion-section p,
    .content-expansion-section ul li {
        font-size: 1rem; /* Adjust base font size for paragraphs */
    }

    .features-grid {
        grid-template-columns: 1fr; /* Stack feature cards on mobile */
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem 1.2rem;
    }

    .feature-card i.fas, .feature-card i.fab {
        font-size: 2.2rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }
}

/* --- END: CSS for New Content Expansion Sections --- */
