/* -------------------------------------------------------------------------- */
/* MEKTEKNIK.COM - Cyber Security & AI Coming Soon Page Styles                */
/* Designed with High-End Cyberpunk & Futuristic Aesthetic                    */
/* -------------------------------------------------------------------------- */

:root {
    --bg-dark: #030712;
    --card-bg: rgba(7, 16, 38, 0.75);
    --border-color: rgba(0, 243, 255, 0.25);
    --border-glow: rgba(0, 243, 255, 0.6);
    --primary-cyan: #00f3ff;
    --primary-blue: #0066ff;
    --neon-purple: #8b5cf6;
    --cyber-green: #10b981;
    --warning-yellow: #f59e0b;
    --accent-red: #ef4444;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    color: var(--text-main);
    font-family: var(--font-body), -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background: linear-gradient(315deg, rgba(8, 12, 28, 0.98) 3%, rgba(45, 12, 70, 0.95) 38%, rgba(12, 75, 140, 0.95) 68%, rgba(0, 160, 185, 0.9) 98%);
    animation: gradient 15s ease infinite;
    background-size: 400% 400%;
    background-attachment: fixed;
}

@keyframes gradient {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* Animated Liquid Waves Background */
.waves-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.wave {
    background: rgba(0, 243, 255, 0.15);
    border-radius: 1000% 1000% 0 0;
    position: fixed;
    width: 200%;
    height: 14em;
    animation: wave 10s -3s linear infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.8;
    bottom: 0;
    left: 0;
    z-index: 0;
    backdrop-filter: blur(2px);
}

.wave:nth-of-type(2) {
    bottom: -1.25em;
    animation: wave 18s linear reverse infinite;
    opacity: 0.8;
    background: rgba(139, 92, 246, 0.15);
}

.wave:nth-of-type(3) {
    bottom: -2.5em;
    animation: wave 20s -1s reverse infinite;
    opacity: 0.9;
    background: rgba(0, 102, 255, 0.18);
}

@keyframes wave {
    2% {
        transform: translateX(1);
    }
    25% {
        transform: translateX(-25%);
    }
    50% {
        transform: translateX(-50%);
    }
    75% {
        transform: translateX(-25%);
    }
    100% {
        transform: translateX(1);
    }
}

/* Stars Animated Background */
.stars-bg {
  background: transparent;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.stars-bg::after {
  content: " ";
  position: absolute;
  top: 0; left: 0;
  width: 200%; height: 200%;
  background-image: 
    radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
    radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px);
  background-size: 550px 550px, 350px 350px;
  background-position: 0 0, 40px 60px;
  animation: starMove 100s linear infinite;
}

@keyframes starMove {
  from { transform: translateY(0); }
  to { transform: translateY(-1000px); }
}

/* Cyber Visual Overlays */
.cyber-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.scanline {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0, 243, 255, 0.03) 50%,
        rgba(0, 243, 255, 0.03)
    );
    background-size: 100% 4px;
    opacity: 0.7;
}

.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 40%, rgba(3, 7, 18, 0.85) 90%);
}

.grid-floor {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40vh;
    background-image: 
        linear-gradient(to right, rgba(0, 243, 255, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 243, 255, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: bottom center;
    mask-image: linear-gradient(to top, rgba(0,0,0,1), transparent);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1), transparent);
}

/* Header */
.cyber-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(3, 7, 18, 0.8), transparent);
    backdrop-filter: blur(8px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px var(--primary-cyan));
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: #fff;
}

.brand-name .highlight {
    color: var(--primary-cyan);
    text-shadow: 0 0 12px var(--primary-cyan);
}

.domain-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sec-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--cyber-green);
    box-shadow: 0 0 10px var(--cyber-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.cyber-btn-icon {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--primary-cyan);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cyber-btn-icon:hover {
    background: rgba(0, 243, 255, 0.25);
    box-shadow: 0 0 12px var(--border-glow);
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6rem 1.5rem 5rem;
}

.cyber-card {
    position: relative;
    width: 100%;
    max-width: 680px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.08), inset 0 0 20px rgba(0, 243, 255, 0.03);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cyber-card:hover {
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.15), inset 0 0 30px rgba(0, 243, 255, 0.05);
}

/* Corner Brackets */
.bracket {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--primary-cyan);
    border-style: solid;
    pointer-events: none;
}

.top-left { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.top-right { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.bottom-left { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.bottom-right { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary-cyan);
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-cyan);
    animation: pulse 1.5s infinite;
}

.glitch-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.tech-tag {
    color: var(--primary-cyan);
}

.status-box {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.4);
    border-left: 3px solid var(--primary-cyan);
    border-radius: 0 8px 8px 0;
    text-align: left;
}

.construction-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Progress Bar */
.progress-section {
    margin: 1.75rem 0;
    text-align: left;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.progress-percent {
    color: var(--primary-cyan);
    font-weight: bold;
}

.progress-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 243, 255, 0.15);
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-cyan));
    box-shadow: 0 0 12px var(--primary-cyan);
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cyber Terminal */
.cyber-terminal {
    background: rgba(2, 6, 18, 0.9);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 8px;
    margin: 1.5rem 0;
    overflow: hidden;
    text-align: left;
    font-family: var(--font-mono);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.term-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.term-dot.red { background-color: #ef4444; }
.term-dot.yellow { background-color: #f59e0b; }
.term-dot.green { background-color: #10b981; }

.term-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.4rem;
}

.terminal-body {
    padding: 0.8rem 1rem;
    font-size: 0.82rem;
    max-height: 110px;
    overflow-y: auto;
}

.log-line {
    margin-bottom: 0.35rem;
}

.log-line.green { color: var(--cyber-green); }
.log-line.cyan { color: var(--primary-cyan); }
.log-line.yellow { color: var(--warning-yellow); }

/* Form */
.notify-form {
    margin-top: 1.75rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.cyber-btn {
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    border: none;
    border-radius: 6px;
    color: #030712;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0 1.5rem;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cyber-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.cyber-btn:active {
    transform: translateY(0);
}

.form-feedback {
    margin-top: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    min-height: 1.2rem;
}

.form-feedback.success { color: var(--cyber-green); }
.form-feedback.error { color: var(--accent-red); }

/* Footer */
.cyber-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 1.5rem;
    z-index: 10;
    background: linear-gradient(to top, rgba(3, 7, 18, 0.9), transparent);
    text-align: center;
    border-top: 1px solid rgba(0, 243, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
}

.powered-by {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.senbas-link {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
}

.senbas-link:hover {
    color: #fff;
    text-shadow: 0 0 16px var(--primary-cyan);
}

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

/* Responsive Design */
@media (max-width: 640px) {
    .cyber-header {
        padding: 0.8rem 1rem;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    .domain-tag {
        display: none;
    }

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

    .glitch-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .input-group {
        flex-direction: column;
    }

    .cyber-btn {
        padding: 0.8rem;
    }

    .ai-chat-widget {
        bottom: 15px !important;
        right: 15px !important;
    }

    .ai-chat-box {
        right: 10px !important;
        left: 10px !important;
        bottom: 75px !important;
        top: auto !important;
        width: calc(100vw - 20px) !important;
        height: 72dvh !important;
        max-width: 100vw !important;
        max-height: 85dvh !important;
        border-radius: 14px !important;
    }

    .prompt-modal-window {
        width: 95vw !important;
        height: 85vh !important;
    }

    .prompt-templates-grid {
        grid-template-columns: 1fr !important;
    }
}

/* -------------------------------------------------------------------------- */
/* AI Cyber Chatbot Widget Styles (Enhanced & Resizable)                     */
/* -------------------------------------------------------------------------- */
.ai-chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999999 !important;
    pointer-events: auto !important;
}

.ai-chat-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(7, 16, 38, 0.95), rgba(0, 243, 255, 0.25));
    border: 1.5px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 0.8rem 1.4rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 9999999 !important;
    pointer-events: auto !important;
}

.ai-chat-toggle-btn * {
    pointer-events: none !important;
}

.ai-chat-toggle-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 0 35px rgba(0, 243, 255, 0.6);
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.25), rgba(7, 16, 38, 0.95));
}

.ai-svg-icon {
    stroke: var(--primary-cyan);
    filter: drop-shadow(0 0 5px var(--primary-cyan));
}

.ai-unread-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: var(--cyber-green);
    border: 2px solid var(--bg-dark);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyber-green);
    animation: pulse 1.5s infinite;
}

/* Resizable & Draggable Chat Window */
.ai-chat-box {
    position: fixed;
    bottom: 85px;
    right: 25px;
    width: 440px;
    height: 580px;
    min-width: 340px;
    min-height: 420px;
    max-width: 95vw;
    max-height: 95vh;
    resize: both;
    overflow: hidden;
    background: rgba(7, 16, 38, 0.96);
    border: 1.5px solid var(--primary-cyan);
    border-radius: 16px;
    backdrop-filter: blur(25px);
    box-shadow: 0 0 45px rgba(0, 243, 255, 0.35);
    display: flex;
    flex-direction: column;
    transition: opacity 0.25s ease, transform 0.25s ease;
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 9999999 !important;
    pointer-events: auto !important;
}

.ai-chat-box.hidden {
    display: none !important;
    opacity: 0 !important;
    transform: translateY(20px) scale(0.95) !important;
    pointer-events: none !important;
}

.ai-chat-box:not(.hidden) {
    display: flex !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
}

/* Header & Drag Grip */
.chat-header {
    background: rgba(3, 7, 18, 0.92);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    cursor: grab;
    user-select: none;
}

.chat-header:active {
    cursor: grabbing;
}

.chat-title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.status-dot.online {
    width: 8px;
    height: 8px;
    background: var(--cyber-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cyber-green);
}

.title-text {
    color: var(--primary-cyan);
    white-space: nowrap;
}

/* Agent Selector */
.agent-selector {
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 6px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
}

.agent-selector:hover, .agent-selector:focus {
    border-color: var(--primary-cyan);
    background: rgba(0, 243, 255, 0.18);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.25);
}

.agent-selector option {
    background: #071026;
    color: #fff;
}

/* Header Action Buttons */
.chat-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.chat-action-btn, .chat-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.3rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-action-btn:hover {
    color: var(--primary-cyan);
    background: rgba(0, 243, 255, 0.15);
}

.chat-action-btn.listening {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
    animation: pulse 1s infinite;
}

.chat-close-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

/* Telemetry & Mode Bar */
.telemetry-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.85rem;
    background: rgba(2, 6, 18, 0.7);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.mode-toggles {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-label {
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s;
}

.toggle-label:hover {
    color: var(--primary-cyan);
}

.toggle-label input[type="checkbox"] {
    accent-color: var(--primary-cyan);
    width: 13px;
    height: 13px;
    cursor: pointer;
}

.telemetry-stats {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tel-tag {
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: var(--primary-cyan);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
}

/* Messages Area */
.chat-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.chat-hint-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    border-top: 1px dashed rgba(0, 243, 255, 0.15);
    padding-top: 0.4rem;
}

.chat-message {
    max-width: 88%;
    display: flex;
    flex-direction: column;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
}

.chat-message .message-content {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    line-height: 1.5;
    word-break: break-word;
    position: relative;
}

.chat-message.bot .message-content {
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: #e5e7eb;
    border-top-left-radius: 2px;
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: #030712;
    font-weight: 600;
    border-top-right-radius: 2px;
}

/* Audio TTS Speaker Button on Bot Messages */
.speak-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 4px;
    margin-top: 4px;
    align-self: flex-start;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    transition: all 0.2s;
}

.speak-btn:hover {
    color: var(--primary-cyan);
    background: rgba(0, 243, 255, 0.12);
}

/* Enhanced Code Block & Actions Bar */
.chat-message pre {
    background: #020612 !important;
    border: 1px solid rgba(0, 243, 255, 0.3) !important;
    border-radius: 8px !important;
    padding: 0.85rem !important;
    margin: 0.6rem 0 !important;
    overflow-x: auto;
    font-family: var(--font-mono) !important;
    font-size: 0.82rem !important;
    position: relative;
}

.chat-message code {
    font-family: var(--font-mono);
    border-radius: 4px;
}

.code-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.35rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary-cyan);
    border-radius: 6px 6px 0 0;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    margin-bottom: -0.6rem;
}

.code-header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.code-action-btn {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.25);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.code-action-btn:hover {
    background: var(--primary-cyan);
    color: #030712;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.code-action-btn svg {
    stroke: currentColor;
}

/* Diagrams & Charts Containers */
.diagram-container, .chart-container {
    margin: 0.75rem 0;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 8px;
    padding: 0.85rem;
    border: 1px solid rgba(0, 243, 255, 0.2);
    max-width: 100%;
    overflow-x: auto;
}

.diagram-container svg {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.chart-container canvas {
    max-width: 100%;
    height: auto;
}

/* Attached Files Bar */
.attached-files-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(3, 7, 18, 0.6);
    border-top: 1px solid rgba(0, 243, 255, 0.1);
}

.file-tag {
    background: rgba(0, 243, 255, 0.15);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.file-tag-remove {
    cursor: pointer;
    color: #ef4444;
    font-weight: bold;
    margin-left: 2px;
}

/* Quick Suggestion Chips (NO EMOJIS in buttons) */
.chat-quick-chips {
    padding: 0.5rem 0.8rem;
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    background: rgba(3, 7, 18, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chip-btn {
    white-space: nowrap;
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.25);
    color: var(--primary-cyan);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.chip-btn:hover {
    background: rgba(0, 243, 255, 0.25);
    color: #fff;
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.35);
}

/* Input Form */
.chat-input-form {
    display: flex;
    padding: 0.75rem;
    background: rgba(3, 7, 18, 0.95);
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    gap: 0.5rem;
    position: relative;
}

.chat-input-form input {
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input-form input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.chat-send-btn {
    background: var(--primary-cyan);
    border: none;
    border-radius: 8px;
    color: #030712;
    padding: 0 0.9rem;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-send-btn:hover {
    background: #fff;
    box-shadow: 0 0 14px var(--primary-cyan);
}

/* Resizer Handle Indicator */
.chat-resizer-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: se-resize !important;
    pointer-events: auto !important;
    border-right: 3px solid var(--primary-cyan);
    border-bottom: 3px solid var(--primary-cyan);
    border-radius: 0 0 12px 0;
    opacity: 0.85;
    z-index: 100;
    transition: opacity 0.2s, border-color 0.2s;
}

.chat-resizer-handle:hover {
    opacity: 1;
    border-color: #fff;
    box-shadow: 0 0 10px var(--primary-cyan);
}

/* Code Preview Modal (WIEV) */
.code-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-preview-modal.hidden {
    display: none !important;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(10px);
}

.modal-window {
    position: relative;
    z-index: 2;
    width: 85vw;
    height: 85vh;
    max-width: 1200px;
    background: #071026;
    border: 1.5px solid var(--primary-cyan);
    border-radius: 14px;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    background: rgba(3, 7, 18, 0.95);
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--primary-cyan);
    letter-spacing: 1px;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #ef4444;
}

.modal-body {
    flex: 1;
    background: #fff;
    position: relative;
}

.preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
}

/* Security Alert Msg */
.sec-alert-msg {
    border-left: 3px solid var(--accent-red) !important;
    background: rgba(239, 68, 68, 0.1) !important;
    color: #fca5a5 !important;
}

/* Cyber Select Dropdown */
.cyber-select {
    background: rgba(7, 16, 38, 0.9);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    padding: 3px 6px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}

.cyber-select option {
    background: #030712;
    color: #f3f4f6;
}

/* Prompt Templates Modal */
.prompt-modal-window {
    max-width: 850px;
    height: 80vh;
    background: rgba(7, 16, 38, 0.96) !important;
    border: 1.5px solid var(--primary-cyan) !important;
    box-shadow: 0 0 35px rgba(0, 243, 255, 0.3);
}

.prompt-modal-body {
    background: transparent !important;
    padding: 1rem;
    overflow-y: auto;
}

.prompt-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    padding-bottom: 0.8rem;
}

.prompt-tab-btn {
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prompt-tab-btn:hover, .prompt-tab-btn.active {
    background: rgba(0, 243, 255, 0.2);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.25);
}

.prompt-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1rem;
}

.prompt-card {
    background: rgba(3, 7, 18, 0.75);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.prompt-card:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.25);
    background: rgba(7, 16, 38, 0.95);
}

.prompt-card-badge {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary-cyan);
    background: rgba(0, 243, 255, 0.12);
    border: 1px solid var(--primary-cyan);
    padding: 2px 8px;
    border-radius: 10px;
}

.prompt-card h4 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    margin: 0;
}

.prompt-card p {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.35;
}

