:root {
    --neon-cyan: #00f0ff;
    --neon-blue: #3b82f6;
    --neon-purple: #9d00ff;
    --neon-green: #39ff14;
    --dark-void: #070b16;
    --dark-pane: #090e1d;
    --dark-glass: rgba(13, 19, 38, 0.85);
    --border-dim: rgba(0, 240, 255, 0.15);
    --border-accent: rgba(0, 240, 255, 0.35);
}

/* 1. DUPLICATES HIDER */
#cyber-bot-trigger, .pulse-ring {
    display: none !important;
}

/* 2. MAIN LAYOUT AND CORE LAYOUT ENGINE */
.cyber-gemini-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 85%;
    max-width: 820px;
    height: 80vh;
    max-height: 700px;
    background: var(--dark-void);
    border: 1px solid var(--border-dim);
    border-radius: 28px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.1);
    z-index: 100000;
    display: none; /* Controlled dynamically by theme activator */
    overflow: hidden;
    font-family: 'Inter', 'SolaimanLipi', sans-serif;
    color: #f1f5f9;
}

/* If activated and visible */
.cyber-gemini-wrapper.active-window-grid,
.cyber-gemini-wrapper.active,
.cyber-gemini-wrapper:has(.cyber-chat-window.active) {
    display: flex !important;
}

/* 3. SIDEBAR FOR SAVED CHAT ARCHIVE THREADS */
.cyber-gemini-sidebar {
    width: 250px;
    background: var(--dark-pane);
    border-right: 1px solid rgba(0, 240, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    shrink: 0;
}

.cyber-gemini-sidebar.collapsed {
    width: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.sidebar-header {
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 240, 255, 0.05);
}

.sidebar-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--neon-cyan);
    font-family: 'Rajdhani', sans-serif;
}

button.wp-accent-btn {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 8px;
    width: 26px;
    height: 26px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}

button.wp-accent-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.sidebar-threads-list {
    flex-grow: 1;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-item {
    padding: 10px 14px;
    font-size: 12.5px;
    border-radius: 12px;
    background: rgba(13, 19, 38, 0.4);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
}

.sidebar-item.active {
    background: rgba(13, 19, 38, 0.9);
    border-color: rgba(0, 240, 255, 0.25);
    color: var(--neon-cyan);
    font-weight: 600;
}

.sidebar-item:hover {
    background: #0e152d;
    color: #f1f5f9;
}

.sidebar-item-delete {
    color: #ef4444;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.2s;
}

.sidebar-item:hover .sidebar-item-delete {
    opacity: 1;
}

.sidebar-footer {
    padding: 14px 18px;
    border-top: 1px solid rgba(0, 240, 255, 0.05);
}

.footer-status-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    font-family: monospace;
    color: #475569;
}

.status-marker {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-marker.neon-green {
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

/* 4. CHAT WINDOW CONTROLLER GRID ACCENTS */
.cyber-chat-window {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    background: radial-gradient(ellipse at 50% 0%, #111a30, var(--dark-void));
}

/* Header style and alignments */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--dark-pane);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.header-main-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bot-info-meta {
    display: flex;
    flex-direction: column;
}

.header-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.header-status-badge {
    font-size: 8.5px;
    color: var(--neon-green);
    letter-spacing: 1px;
    font-family: monospace;
    margin-top: 2px;
}

.header-main-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Modals option selects */
select.custom-wp-select {
    background: var(--dark-void) !important;
    color: var(--neon-cyan) !important;
    border: 1px solid rgba(0, 240, 255, 0.2) !important;
    border-radius: 10px !important;
    padding: 5px 12px !important;
    font-size: 11px !important;
    font-family: monospace !important;
    outline: none !important;
    cursor: pointer !important;
}

select.custom-wp-select:hover {
    border-color: var(--neon-cyan) !important;
}

button.custom-icon-btn {
    background: rgba(0, 240, 255, 0.05);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 10px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

button.custom-icon-btn:hover {
    color: white;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

#close-chat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff99;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

#close-chat:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
    transform: rotate(90deg);
}

/* Sparkle Animation */
svg.sparkle-anim-svg {
    animation: rotateSparkle 3s linear infinite;
}

@keyframes rotateSparkle {
    0% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 2px var(--neon-cyan)); }
    50% { transform: scale(1.1) rotate(180deg); filter: drop-shadow(0 0 8px var(--neon-cyan)); }
    100% { transform: scale(1) rotate(360deg); filter: drop-shadow(0 0 2px var(--neon-cyan)); }
}

/* 5. WELCOME CHAT PRESET AREA */
.welcome-preset-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 550px;
    margin: 40px auto;
    animation: fadeIn 0.4s ease;
}

.welcome-orb {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.35);
    margin-bottom: 20px;
}

.welcome-preset-center h3 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
}

.welcome-preset-center p {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 24px;
}

.welcome-grid-presets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
}

@media (min-width: 550px) {
    .welcome-grid-presets {
        grid-template-columns: 1fr 1fr;
    }
}

.preset-card {
    background: rgba(13, 19, 38, 0.55);
    border: 1px solid rgba(0, 240, 255, 0.08);
    border-radius: 16px;
    padding: 14px 18px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.preset-card:hover {
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

.preset-card h5 {
    font-size: 12.5px;
    font-weight: 750;
    color: var(--neon-cyan);
    margin-bottom: 4px;
}

.preset-card p {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.4;
}

/* 6. CONVERSATION THREAD MESSAGES & CHAT BODY */
.chat-body {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Scrollbar styles to match the layout perfectly */
.chat-body::-webkit-scrollbar { width: 5px; }
.chat-body::-webkit-scrollbar-track { background: transparent; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(0, 240, 255, 0.25); border-radius: 10px; }

/* Custom Chat Bubble grids with glassmorphism and gradient glows */
.gemini-message-block {
    display: flex;
    gap: 14px;
    max-width: 85%;
    opacity: 0;
    animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.gemini-message-block.bot-type {
    align-self: flex-start;
}

.msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #00f0ff, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    shrink: 0;
    font-family: 'Rajdhani', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-type .msg-avatar {
    background: linear-gradient(135deg, #bd00ff, #ff003c);
    color: white;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.3);
}

.msg-bubble {
    padding: 16px 20px;
    border-radius: 20px;
    font-size: 13.5px;
    line-height: 1.7;
    letter-spacing: 0.3px;
    font-family: "Inter", "SolaimanLipi", sans-serif;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}

.user-type .msg-bubble {
    background: linear-gradient(135deg, rgba(189, 0, 255, 0.15) 0%, rgba(255, 0, 60, 0.25) 100%);
    color: #ffe6eb;
    border-top-right-radius: 4px;
    border: 1px solid rgba(255, 0, 60, 0.4);
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-shadow: 0 0 5px rgba(255, 0, 60, 0.35);
}

.bot-type .msg-bubble {
    background: rgba(15, 22, 45, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #f1f5f9;
    border-top-left-radius: 2px;
    border: 1px solid rgba(0, 240, 255, 0.12);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Dynamic Timestamp metadata label */
.msg-timestamp {
    font-size: 9px;
    font-family: monospace;
    color: #475569;
    margin-top: 5px;
    padding: 0 4px;
}
.user-type .msg-timestamp { text-align: right; }

/* INLINE IMAGES INSIDE CHAT RENDERS */
.msg-image-attachment {
    max-width: 100%;
    max-height: 280px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(0, 240, 255, 0.2);
    margin-bottom: 12px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
    transition: transform 0.3s ease;
}
.msg-image-attachment:hover {
    transform: scale(1.015);
}

/* SPEECH & VOICE PLAYBACK BUTTONS */
.msg-voice-play-trigger {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.1);
    color: rgba(0, 240, 255, 0.82);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    margin-top: 10px;
}

.msg-voice-play-trigger:hover {
    color: white;
    background: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
    border-color: var(--neon-cyan);
}

.msg-voice-play-trigger.speaking-active {
    color: white;
    background: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
    animation: breathingVoice 1s ease infinite;
}

@keyframes breathingVoice {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.98); opacity: 0.9; }
}

/* Dynamic loader style Processing with modern bouncing points */
.bot-processing-msg {
    color: var(--neon-cyan);
    font-family: monospace;
    font-size: 10.5px;
    letter-spacing: 1px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.1);
    padding: 10px 18px;
    border-radius: 12px;
    align-self: flex-start;
    animation: pulseLoader 1.4s infinite ease-in-out;
    margin-left: 50px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
}

@keyframes pulseLoader {
    0%, 100% { opacity: 0.8; border-color: rgba(0, 240, 255, 0.1); }
    50% { opacity: 1; border-color: rgba(0, 240, 255, 0.35); box-shadow: 0 0 15px rgba(0, 240, 255, 0.12); }
}

/* 7. CHAT FOOTER & PRO ACTION CONTROLLERS */
.chat-footer {
    background: var(--dark-pane);
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
}

.footer-actions-row::-webkit-scrollbar { display: none; }

.footer-action-btn, .preset-action-btn {
    background: #0f162d;
    border: 1px solid rgba(0, 240, 255, 0.12);
    color: #94a3b8;
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.footer-action-btn:hover, .preset-action-btn:hover {
    border-color: var(--neon-cyan);
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

/* Dictation indicator toggling */
.footer-action-btn.dict-active {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: #ef4444;
    animation: pulseLoader 1s infinite;
}

.input-container-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

#user-input {
    flex-grow: 1;
    background: var(--dark-void);
    border: 1px solid rgba(0, 240, 255, 0.15);
    color: white;
    padding: 12px 20px;
    border-radius: 18px;
    font-size: 13.5px;
    outline: none;
    transition: all 0.3s ease;
}

#user-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

#send-btn {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border: none;
    fill: white;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(157, 0, 255, 0.3);
}

#send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--neon-cyan);
}

#send-btn svg {
    width: 18px;
    height: 18px;
}

/* SYNTH PLAYER STRIP INDICATOR animations */
.synth-indicator-strip {
    background: rgba(0, 240, 255, 0.05);
    border-top: 1px solid rgba(0, 240, 255, 0.12);
    border-bottom: 1px solid rgba(0, 240, 255, 0.12);
    padding: 6px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-family: monospace;
    color: var(--neon-cyan);
}

.waveform-anim-mini {
    display: flex;
    gap: 2px;
    align-items: center;
    height: 14px;
}

.waveform-anim-mini span {
    width: 2px;
    height: 10px;
    background: var(--neon-cyan);
    border-radius: 4px;
    display: inline-block;
    animation: wavPulse 0.8s infinite ease-in-out;
}

.waveform-anim-mini span:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.waveform-anim-mini span:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.waveform-anim-mini span:nth-child(4) { height: 12px; animation-delay: 0.15s; }

@keyframes wavPulse {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

/* 8. COMPLETE SECURE SETTINGS ADMIN CONFIG MODAL MODES */
.gemini-modal-scaffold {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 5, 12, 0.85);
    backdrop-filter: blur(15px);
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-card-container {
    background: #080d19;
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 24px;
    width: 100%;
    max-width: 580px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
    overflow: hidden;
    animation: zoomUp 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.1) forwards;
}

.modal-card-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.modal-card-header h4 {
    color: white;
    font-size: 15px;
    font-weight: bold;
    margin: 0;
}

.close-modal-x {
    color: #64748b;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.close-modal-x:hover {
    color: white;
}

.modal-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-item label {
    font-size: 10px;
    color: var(--neon-cyan);
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.form-group-item input[type="text"], .form-group-item textarea {
    background: #050812;
    border: 1px solid rgba(0, 240, 255, 0.15);
    color: white;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 12px;
    outline: none;
    font-family: monospace;
}

.form-group-item input[type="text"]:focus, .form-group-item textarea:focus {
    border-color: var(--neon-cyan);
}

.setting-grid-halves {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 500px) {
    .setting-grid-halves {
        grid-template-columns: 1fr 1fr;
    }
}

.bg-dark-card {
    background: #050812;
    padding: 12px;
    border-radius: 14px;
}

.border-c {
    border: 1px solid rgba(0, 240, 255, 0.08);
}

.flex-align-between {
    flex-direction: column;
    justify-content: space-between;
}

button.sys-btn {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

button.sys-btn:hover {
    background: #10b981;
    color: black;
}

.action-destruct-panel {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.destruct-meta h5 {
    color: #fca5a5;
    font-size: 12px;
    margin: 0 0 2px 0;
}

.destruct-meta p {
    color: #64748b;
    font-size: 10px;
    margin: 0;
}

button.destruct-btn {
    background: #450a0a;
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
}

button.destruct-btn:hover {
    background: #7f1d1d;
}

.modal-card-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    background: #060a14;
    display: flex;
    justify-content: right;
    gap: 12px;
}

button.dismiss-btn-alt {
    background: #0f162d;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
}

button.wp-accent-save-btn {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
}

button.wp-accent-save-btn:hover {
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* MARKDOWN STYLES WRAPPER */
.markdown-bot-rendered {
    font-family: inherit;
}

.markdown-bot-rendered code {
    font-family: monospace;
    font-size: 11px;
    background: #050812;
    padding: 2px 4px;
    border-radius: 4px;
    color: #e2e8f0;
}

.markdown-bot-rendered pre {
    background: #050812;
    padding: 12px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 12px 0;
}

.markdown-bot-rendered pre code {
    background: transparent;
    padding: 0;
    color: #10b981;
}

.copy-block-btn {
    float: right;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
}

.copy-block-btn:hover {
    background: var(--neon-cyan);
    color: black;
}

/* 9. MOBILE RESPONSIVE ADAPTATIONS */
@media (max-width: 768px) {
    .cyber-gemini-wrapper {
        bottom: 15px !important;
        right: 15px !important;
        width: calc(100% - 30px) !important;
        height: 85vh !important;
        max-width: 100% !important;
        border-radius: 16px !important;
        top: auto !important;
        margin: 0px !important;
    }

    .cyber-gemini-sidebar {
        position: absolute !important;
        top: 60px !important;
        left: 0 !important;
        height: calc(100% - 60px) !important;
        z-index: 1000 !important;
        width: 250px !important;
        transform: translateX(0) !important;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.6) !important;
        background: #090e1d !important;
        transition: transform 0.3s ease !important;
    }

    .cyber-gemini-sidebar.collapsed {
        transform: translateX(-100%) !important;
        width: 250px !important;
        opacity: 1 !important;
        pointer-events: none !important;
    }

    .chat-body {
        padding: 16px !important;
        gap: 16px !important;
    }

    .chat-header {
        padding: 12px 14px !important;
        flex-direction: column !important;
        grid-gap: 8px !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }
    
    .chat-header .header-main-left {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .chat-header .header-main-right {
        width: 100% !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .header-status-badge {
        font-size: 8px !important;
        padding: 2px 6px !important;
    }

    .custom-icon-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 11px !important;
    }

    .custom-wp-select {
        font-size: 10px !important;
        padding: 4px 6px !important;
    }

    .welcome-preset-center {
        margin: 15px auto !important;
        padding: 0 10px !important;
    }

    .welcome-orb {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 12px !important;
        border-radius: 14px !important;
    }

    .welcome-orb svg {
        width: 26px !important;
        height: 26px !important;
    }

    .welcome-preset-center h3 {
        font-size: 16px !important;
        margin-bottom: 6px !important;
    }

    .welcome-preset-center p {
        font-size: 11.5px !important;
        margin-bottom: 16px !important;
    }

    .welcome-grid-presets {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .preset-card {
        padding: 10px 14px !important;
        border-radius: 12px !important;
    }

    .preset-card h5 {
        font-size: 11.5px !important;
        margin-bottom: 2px !important;
    }

    .preset-card p {
        font-size: 10px !important;
    }

    .gemini-message-block {
        max-width: 90% !important;
        gap: 10px !important;
    }

    .msg-avatar {
        width: 30px !important;
        height: 30px !important;
        font-size: 11px !important;
        border-radius: 10px !important;
    }

    .msg-bubble {
        padding: 12px 14px !important;
        font-size: 12.5px !important;
        border-radius: 16px !important;
    }

    /* Footer adjustments */
    .chat-footer {
        padding: 12px 16px !important;
        gap: 8px !important;
    }

    .footer-actions-row {
        gap: 6px !important;
        padding-bottom: 4px !important;
    }

    .footer-action-btn, .preset-action-btn {
        padding: 5px 10px !important;
        font-size: 10px !important;
        border-radius: 8px !important;
    }

    #user-input {
        padding: 10px 14px !important;
        font-size: 12px !important;
        border-radius: 14px !important;
    }

    #send-btn {
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
    }

    #send-btn svg {
        width: 15px !important;
        height: 15px !important;
    }
}

/* =========================================================
   10. ADVANCED CYBER ECOSYSTEM: SHADOW TERMINAL & SIMPLIFIED MODES
   ========================================================= */

/* --- SHADOW TERMINAL MODE (HACKER COM-LINE) --- */
.cyber-gemini-wrapper.terminal-mode-active {
    background: #000000 !important;
    border: 2px solid #00ff41 !important;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.4) !important;
}
.cyber-gemini-wrapper.terminal-mode-active::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    linear-gradient-size: 100% 4px, 6px 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 99999;
    pointer-events: none;
}
.cyber-gemini-wrapper.terminal-mode-active .chat-header {
    background: #050805 !important;
    border-bottom: 2px solid #00ff41 !important;
}
.cyber-gemini-wrapper.terminal-mode-active .cyber-gemini-sidebar {
    background: #020402 !important;
    border-right: 1px solid #00ff41 !important;
}
.cyber-gemini-wrapper.terminal-mode-active .sidebar-item.active {
    background: rgba(0, 255, 65, 0.15) !important;
    border-color: #00ff41 !important;
    color: #00ff41 !important;
}
.cyber-gemini-wrapper.terminal-mode-active .sidebar-item {
    color: #00ff41 !important;
    font-family: 'JetBrains Mono', Courier, monospace !important;
}
.cyber-gemini-wrapper.terminal-mode-active .chat-body {
    background: #000000 !important;
}
.cyber-gemini-wrapper.terminal-mode-active .msg-bubble {
    background: #020502 !important;
    border: 1px solid #00ff41 !important;
    border-radius: 4px !important;
    color: #00ff41 !important;
    font-family: 'JetBrains Mono', Courier, monospace !important;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2) !important;
}
.cyber-gemini-wrapper.terminal-mode-active .msg-avatar {
    background: #00ff41 !important;
    color: #000 !important;
    font-family: monospace !important;
    font-weight: bold !important;
}
.cyber-gemini-wrapper.terminal-mode-active .chat-footer {
    background: #020502 !important;
    border-top: 1px solid #00ff41 !important;
}
.cyber-gemini-wrapper.terminal-mode-active #user-input {
    background: #000 !important;
    border: 1px dashed #00ff41 !important;
    color: #00ff41 !important;
    font-family: 'JetBrains Mono', Courier, monospace !important;
    border-radius: 4px !important;
}
.cyber-gemini-wrapper.terminal-mode-active #send-btn {
    background: #00ff41 !important;
    color: #000600 !important;
    border-radius: 4px !important;
}
.cyber-gemini-wrapper.terminal-mode-active .welcome-preset-center {
    border: 1px dashed #00ff41 !important;
    background: #020502 !important;
    padding: 24px !important;
    border-radius: 8px !important;
    font-family: 'JetBrains Mono', monospace !important;
}
.cyber-gemini-wrapper.terminal-mode-active .welcome-preset-center h3,
.cyber-gemini-wrapper.terminal-mode-active .welcome-preset-center p {
    color: #00ff41 !important;
}
.cyber-gemini-wrapper.terminal-mode-active .preset-card {
    background: #000000 !important;
    border: 1px solid #00ff41 !important;
    border-radius: 4px !important;
}
.cyber-gemini-wrapper.terminal-mode-active .preset-card h5,
.cyber-gemini-wrapper.terminal-mode-active .preset-card p {
    color: #00ff41 !important;
}
.cyber-gemini-wrapper.terminal-mode-active .custom-wp-select {
    background: #000000 !important;
    color: #00ff41 !important;
    border: 1px solid #00ff41 !important;
}

/* --- ACCESSIBILITY / ZERO-TECH SIMPLIFIED MODE --- */
.cyber-gemini-wrapper.simplified-mode-active {
    background: #ffffff !important;
    color: #111111 !important;
    border: 3px solid #000000 !important;
    box-shadow: 10px 10px 0px #000000 !important;
    border-radius: 0px !important;
}
.cyber-gemini-wrapper.simplified-mode-active .chat-header {
    background: #eeeeee !important;
    border-bottom: 2px solid #000000 !important;
    color: #000000 !important;
    border-radius: 0px !important;
}
.cyber-gemini-wrapper.simplified-mode-active .header-title,
.cyber-gemini-wrapper.simplified-mode-active .header-status-badge {
    color: #000000 !important;
    font-family: system-ui, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    background: none !important;
    border: none !important;
}
.cyber-gemini-wrapper.simplified-mode-active .custom-icon-btn {
    color: #000000 !important;
    border: 2px solid #000000 !important;
    background: #ffffff !important;
    border-radius: 0px !important;
}
.cyber-gemini-wrapper.simplified-mode-active .cyber-gemini-sidebar {
    background: #fcfcfc !important;
    border-right: 2px solid #000000 !important;
    border-radius: 0px !important;
}
.cyber-gemini-wrapper.simplified-mode-active .sidebar-item {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
    border-radius: 0px !important;
    font-weight: bold !important;
}
.cyber-gemini-wrapper.simplified-mode-active .sidebar-item.active {
    background: #000000 !important;
    color: #ffffff !important;
}
.cyber-gemini-wrapper.simplified-mode-active .chat-body {
    background: #ffffff !important;
}
.cyber-gemini-wrapper.simplified-mode-active .msg-bubble {
    background: #f0f0f0 !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    box-shadow: none !important;
}
.cyber-gemini-wrapper.simplified-mode-active .user-type .msg-bubble {
    background: #e6f7ff !important;
}
.cyber-gemini-wrapper.simplified-mode-active .msg-avatar {
    background: #000000 !important;
    color: #ffffff !important;
    border-radius: 0px !important;
    font-weight: 900 !important;
}
.cyber-gemini-wrapper.simplified-mode-active .chat-footer {
    background: #eeeeee !important;
    border-top: 2px solid #000000 !important;
    border-radius: 0px !important;
}
.cyber-gemini-wrapper.simplified-mode-active #user-input {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
    font-size: 15px !important;
    border-radius: 0px !important;
}
.cyber-gemini-wrapper.simplified-mode-active #send-btn {
    background: #000000 !important;
    color: #ffffff !important;
    border-radius: 0px !important;
    border: 2px solid #000000 !important;
}
.cyber-gemini-wrapper.simplified-mode-active .welcome-preset-center {
    border: 2px solid #000000 !important;
    background: #ffffff !important;
    color: #000000 !important;
    border-radius: 0px !important;
}
.cyber-gemini-wrapper.simplified-mode-active .welcome-preset-center h3 {
    font-size: 22px !important;
    color: #000 !important;
    font-weight: bold !important;
}
.cyber-gemini-wrapper.simplified-mode-active .welcome-preset-center p {
    font-size: 15px !important;
    color: #333333 !important;
}
.cyber-gemini-wrapper.simplified-mode-active .welcome-grid-presets {
    display: none !important;
}
.cyber-gemini-wrapper.simplified-mode-active .custom-wp-select {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
    border-radius: 0px !important;
}
.cyber-gemini-wrapper.simplified-mode-active .footer-actions-row,
.cyber-gemini-wrapper.simplified-mode-active .sidebar-footer,
.cyber-gemini-wrapper.simplified-mode-active .welcome-orb {
    display: none !important;
}

