/* ===========================
   GulfTech AI — Styles
   Deep Ocean Dark Chat Theme
   =========================== */

/* ---------- Variables ---------- */
:root {
    --bg-primary: #020817;
    /* Deep Midnight Blue */
    --bg-secondary: rgba(0, 102, 255, 0.05);
    /* Soft Blue Tint */
    --bg-sidebar: rgba(1, 10, 25, 0.95);
    /* ===== CORE COLORS (Logo-based) ===== */
    --accent: #38bdf8;
    /* Cyan - Shield/Shark Glow */
    --accent-gold: #fbbf24;
    /* Gold - AI Text/Circle */
    --accent-glow: rgba(56, 189, 248, 0.4);
    --gold-glow: rgba(251, 191, 36, 0.3);

    --bg-dark: #030712;
    /* Deep Space Black */
    --bg-card: rgba(15, 23, 42, 0.6);
    --sidebar-bg: rgba(3, 7, 18, 0.85);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: var(--accent);

    --border: rgba(56, 189, 248, 0.15);
    --gold-border: rgba(251, 191, 36, 0.2);
    --bg-input: rgba(0, 90, 255, 0.06);
    --bg-hover: rgba(0, 212, 255, 0.1);
    --bg-active: rgba(0, 212, 255, 0.15);
    --bg-glass: rgba(0, 150, 255, 0.03);

    --accent-bright: #00d4ff;

    --gradient-logo: linear-gradient(135deg, #0ea5e9 0%, #fbbf24 100%);
    --gradient-glass: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.25);

    --border-focus: rgba(0, 188, 212, 0.4);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(0, 188, 212, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;

    --sidebar-width: 280px;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ===== SIDEBAR NAV ===== */
.sidebar-nav {
    padding: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--sidebar-border);
}

.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

.nav-badge {
    margin-left: auto;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}

/* ===== MAP MODAL SPECIFIC ===== */
.map-modal {
    max-width: 400px;
    width: 90%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.map-container {
    position: relative;
    width: 100%;
    height: 200px;
    /* Even smaller for elegance */
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    margin: 10px 0;
    border: 1px solid var(--border);
}

.venue-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.venue-title {
    font-family: 'Outfit', sans-serif;
    color: var(--accent);
    margin-bottom: 5px;
}

.venue-address {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.venue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .venue-grid {
        grid-template-columns: 1fr;
    }
}

.venue-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
}

.venue-info-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.venue-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.venue-info-list li {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
}

.info-label {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-back-map {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-back-map:hover {
    background: var(--accent);
    color: white;
}

/* ===== MASCOT ANIMATIONS ===== */
.welcome-mascot {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    cursor: pointer;
    animation: floating 3s ease-in-out infinite;
}

.welcome-mascot:hover {
    filter: drop-shadow(0 0 15px var(--accent-glow));
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.brand-logo:hover {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

/* ===== INTERACTIVE MAP STYLES ===== */
.map-container {
    margin-top: 20px;
    width: 100%;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.5));
    color: var(--text-secondary);
}

.map-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.map-node:hover {
    transform: scale(1.5);
}

.map-node-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border: 1px solid var(--border);
}

.map-node:hover .map-node-label {
    opacity: 1;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

::selection {
    background: rgba(0, 188, 212, 0.3);
    color: #fff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 140, 200, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 140, 200, 0.35);
}

/* ---------- Utility ---------- */
.accent {
    color: var(--accent);
}

/* Liquid Glass Feature */
.liquid-glass {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(30px) saturate(220%);
    -webkit-backdrop-filter: blur(30px) saturate(220%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.45),
        inset 0 1px 2px 0 rgba(255, 255, 255, 0.12),
        inset 0 0 1px 1px rgba(255, 255, 255, 0.08),
        0 0 15px rgba(56, 189, 248, 0.08);
    position: relative;
    overflow: hidden;
}

.liquid-glass::after {
    content: "";
    position: absolute;
    top: -150%;
    left: -150%;
    width: 400%;
    height: 400%;
    background: linear-gradient(45deg,
            transparent 0%,
            rgba(14, 165, 233, 0.06) 35%,
            rgba(251, 191, 36, 0.12) 50%,
            rgba(14, 165, 233, 0.06) 65%,
            transparent 100%);
    transform: rotate(25deg);
    animation: liquidShimmer 8s infinite linear;
    pointer-events: none;
    z-index: -1;
}

@keyframes liquidShimmer {
    0% {
        transform: translate(-50%, -50%) rotate(25deg);
        opacity: 0;
    }

    20% {
        opacity: 0.5;
    }

    80% {
        opacity: 0.5;
    }

    100% {
        transform: translate(50%, 50%) rotate(25deg);
        opacity: 0;
    }
}

/* Glassmorphism Button Effect */
.glass-btn {
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(20px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(200%) !important;
    border: 1px solid rgba(56, 189, 248, 0.2) !important;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.glass-btn:hover {
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
    box-shadow:
        0 8px 25px rgba(56, 189, 248, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-3px) scale(1.02);
}

/* Inline Suggestions */
.inline-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 12px 10px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.inline-suggestions.visible {
    max-height: 100px;
    opacity: 1;
    padding-top: 10px;
}

.inline-chip {
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: fadeInScale 0.2s ease forwards;
}

.inline-chip:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(5px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    z-index: 100;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 188, 212, 0.3));
    transition: transform 0.3s ease;
    mix-blend-mode: lighten;
    /* Removes black/dark background parts */
}

/* Specific class to clean logos with bad backgrounds */
.clean-logo {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    mix-blend-mode: screen !important;
    filter: brightness(1.2) contrast(1.1) saturate(1.2) drop-shadow(0 0 15px var(--accent));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-mask-image: linear-gradient(black, black);
    /* Forces mask purity */
    mask-image: linear-gradient(black, black);
}

.welcome-mascot.clean-logo {
    width: 240px;
    height: 240px;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    filter: brightness(1.2) contrast(1.1) drop-shadow(0 0 40px var(--accent));
    mix-blend-mode: screen !important;
    padding: 0 !important;
    display: block !important;
}

/* Fallback for AI message avatars */
.message-avatar img.clean-logo {
    mix-blend-mode: screen !important;
}

.welcome-mascot {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 24px;
    animation: floatMascot 4s ease-in-out infinite;
}

.brand:hover .brand-logo {
    transform: scale(1.05) rotate(-3deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text .accent {
    color: var(--accent-gold);
    text-shadow: 0 0 10px var(--gold-glow);
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.brand-tag {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

/* New Chat Button */
.new-chat-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 14px 8px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(0, 188, 212, 0.25);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.new-chat-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    color: var(--accent);
}

.new-chat-btn svg {
    flex-shrink: 0;
}

/* Chat History */
.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px;
}

.history-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 8px;
    margin-bottom: 4px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

.history-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.history-item.active {
    background: var(--bg-active);
    color: var(--accent);
}

.history-item-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.history-item-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-delete {
    position: absolute;
    right: 8px;
    opacity: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

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

.history-item-delete:hover {
    color: var(--accent-red);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.api-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.4);
}

.status-dot.offline {
    background: var(--accent-yellow);
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.3);
}

.settings-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.settings-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

/* ========================================
   SETTINGS MODAL
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-md);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.visible .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

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

.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.modal-body {
    padding: 24px;
}

.modal-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 22px;
    line-height: 1.6;
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-row {
    display: flex;
    gap: 8px;
}

.form-field input,
.form-field select {
    flex: 1;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-field select {
    font-family: var(--font-body);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6d8e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.form-field select option {
    background: var(--bg-secondary);
}

.form-field input:focus,
.form-field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.message.ai .message-bo.liquid-glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.toggle-vis {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    padding: 0 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-vis:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

.btn-save {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--gradient-main);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 6px;
}

.btn-save:hover {
    box-shadow: 0 4px 20px rgba(0, 188, 212, 0.3);
    transform: translateY(-1px);
}

/* ========================================
   MAIN CHAT AREA
   ======================================== */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-width: 0;
}

/* Chat Header */
.chat-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 22, 40, 0.8);
    backdrop-filter: blur(12px);
    flex-shrink: 0;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.menu-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.chat-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
}

.model-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 193, 7, 0.12);
    color: var(--accent-yellow);
    border: 1px solid rgba(255, 193, 7, 0.2);
    letter-spacing: 0.02em;
}

.model-badge.live {
    background: rgba(0, 230, 118, 0.1);
    color: var(--accent-green);
    border-color: rgba(0, 230, 118, 0.2);
}

.team-link {
    margin-left: auto;
    color: var(--text-muted);
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
}

.team-link:hover {
    color: var(--accent);
    background: var(--bg-hover);
    text-decoration: none;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

/* Welcome Screen */
.welcome-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatMascot {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.welcome-screen h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.welcome-screen p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 4px;
}

.welcome-sub {
    color: var(--text-secondary) !important;
    font-size: 0.9rem !important;
    margin-bottom: 30px !important;
    max-width: 480px;
    opacity: 0.8;
}

/* Countdown Container */
.countdown-container {
    background: rgba(8, 20, 34, 0.6);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-lg);
    padding: 24px 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), 0 0 20px rgba(14, 165, 233, 0.05);
    animation: borderGlow 6s infinite alternate;
}

@keyframes borderGlow {
    0% { border-color: rgba(14, 165, 233, 0.2); box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), 0 0 15px rgba(14, 165, 233, 0.05); }
    100% { border-color: rgba(14, 165, 233, 0.5); box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(14, 165, 233, 0.15); }
}

@keyframes glowPulse {
    from {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 10px rgba(14, 165, 233, 0.1);
    }

    to {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 25px rgba(14, 165, 233, 0.3);
    }
}

.countdown-label {
    font-size: 0.85rem;
    color: var(--text-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.countdown-digits {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cd-num {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 10px;
    padding: 12px 6px;
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    min-width: 68px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    display: block;
}

.cd-num.updating {
    animation: digitFlip 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes digitFlip {
    0% { transform: scale(1); filter: brightness(1); }
    40% { transform: scale(0.9) translateY(-2px); filter: brightness(1.5); }
    100% { transform: scale(1); filter: brightness(1); }
}

.cd-unit {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 6px;
    font-weight: 600;
}

.cd-sep {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 20px;
}

/* Suggestion Chips */
.suggestions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 480px;
    width: 100%;
}

.suggestion-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(14, 165, 233, 0.15);
    background: rgba(2, 8, 23, 0.5);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.suggestion-chip::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.suggestion-chip:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: rgba(14, 165, 233, 0.1);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), var(--shadow-glow);
}

.suggestion-chip:hover::before {
    opacity: 1;
}

.chip-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Message Bubbles */
.message {
    display: flex;
    gap: 14px;
    max-width: 780px;
    width: 100%;
    margin: 0 auto 20px;
    animation: fadeInUp 0.35s ease;
}

.message-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 2px;
}

.message.user .message-avatar {
    background: linear-gradient(135deg, #1e3a5f 0%, #2a4a6f 100%);
    color: var(--accent);
}

.message.ai .message-avatar {
    background: transparent;
    padding: 0;
    overflow: hidden;
}

.message.ai .message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 188, 212, 0.3));
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-sender {
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.message.ai .message-sender {
    color: var(--accent);
}

.message-body {
    font-size: 0.94rem;
    line-height: 1.75;
    color: var(--text-primary);
}

.message.user .message-body {
    background: var(--gradient-bubble);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.25);
}

/* Markdown rendering in AI messages */
.message-body h1,
.message-body h2,
.message-body h3,
.message-body h4 {
    font-family: var(--font-heading);
    margin: 16px 0 8px;
    color: var(--text-primary);
}

.message-body h1 {
    font-size: 1.3rem;
}

.message-body h2 {
    font-size: 1.15rem;
}

.message-body h3 {
    font-size: 1.05rem;
}

.message-body h4 {
    font-size: 0.96rem;
    color: var(--text-secondary);
}

.message-body p {
    margin-bottom: 10px;
}

.message-body ul,
.message-body ol {
    padding-left: 24px;
    margin-bottom: 10px;
}

.message-body li {
    margin-bottom: 4px;
}

.message-body code {
    font-family: var(--font-mono);
    background: rgba(0, 188, 212, 0.08);
    color: var(--accent-bright);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.86rem;
}

.message-body pre {
    background: #060e1b;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 12px 0;
    overflow-x: auto;
}

.message-body pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
    font-size: 0.84rem;
    line-height: 1.6;
}

.message-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.message-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 8px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.4;
    animation: typing 1.2s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    30% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ========================================
   INPUT AREA
   ======================================== */
.chat-input-wrapper {
    padding: 0 24px 20px;
    flex-shrink: 0;
}

.chat-input-container {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 10px 14px 10px 20px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    max-width: 780px;
    margin: 0 auto;
}

.chat-input-container:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.08);
}

#chatInput {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.94rem;
    line-height: 1.5;
    resize: none;
    outline: none;
    max-height: 150px;
    padding: 4px 0;
}

#chatInput::placeholder {
    color: var(--text-muted);
}

.send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-main);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
    opacity: 0.4;
}

.send-btn:not(:disabled) {
    opacity: 1;
}

.send-btn:not(:disabled):hover {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(0, 188, 212, 0.35);
}

.send-btn:disabled {
    cursor: default;
}

.input-hint {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 10px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.powered-by {
    color: var(--accent);
    opacity: 0.6;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        z-index: 200;
        box-shadow: var(--shadow-md);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .menu-btn {
        display: flex;
    }

    .suggestions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .suggestions {
        grid-template-columns: 1fr;
    }

    .welcome-mascot {
        width: 90px;
        height: 90px;
    }

    .welcome-screen h1 {
        font-size: 1.6rem;
    }

    .chat-messages {
        padding: 16px;
    }

    .chat-input-wrapper {
        padding: 0 12px 14px;
    }

    .chat-input-container {
        padding: 8px 10px 8px 14px;
    }

    .message {
        gap: 10px;
    }

    .message-avatar {
        width: 28px;
        height: 28px;
    }
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

/* ===== GULFTECH WEB EFFECTS REPLICATION ===== */

/* Glassmorphism Sidebar */
.sidebar {
    background: rgba(8, 20, 34, 0.7) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Moving Background Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #0a1628 0%, #050a14 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: blobFloat 25s infinite alternate ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: #00bcd4;
    top: -200px;
    right: -200px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #7c4dff;
    bottom: -150px;
    left: -150px;
    animation-delay: -5s;
    animation-duration: 30s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: #ffc107;
    top: 30%;
    left: 20%;
    opacity: 0.1;
    animation-delay: -10s;
    animation-duration: 20s;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(150px, 80px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 120px) scale(0.9);
    }

    100% {
        transform: translate(50px, -50px) scale(1);
    }
}

/* ========================================
   ORION CONSTELLATION
   ======================================== */
.orion-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 250px;
    height: 350px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

.orion-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px rgba(135, 206, 235, 0.3));
}

.orion-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.orion-star {
    fill: #e0f7fa;
    opacity: 0.7;
}

.orion-star.bright {
    fill: #fff;
    filter: drop-shadow(0 0 4px #4fc3f7);
    opacity: 0.9;
}

.orion-star.belt {
    fill: #b3e5fc;
    animation-delay: 1s;
}

@keyframes orionGlimmer {
    0%, 100% { opacity: 0.6; filter: drop-shadow(0 0 2px rgba(135, 206, 235, 0.3)); }
    50% { opacity: 1; filter: drop-shadow(0 0 8px rgba(135, 206, 235, 0.8)); }
}

.orion-star {
    fill: #e0f7fa;
    opacity: 0.7;
    animation: orionGlimmer 4s infinite ease-in-out;
}

.orion-star.bright {
    fill: #fff;
    filter: drop-shadow(0 0 6px #4fc3f7);
    opacity: 0.9;
    animation: orionGlimmer 3s infinite ease-in-out;
}

.orion-star.belt {
    fill: #b3e5fc;
    animation: orionGlimmer 5s infinite ease-in-out;
}

.orion-star.dim {
    fill: #e1bee7;
    opacity: 0.5;
    animation: orionGlimmer 6s infinite ease-in-out;
}


/* ===== PREMIUM ENHANCEMENTS ===== */
.pulsing-node {
    animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    }

    70% {
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(56, 189, 248, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

.map-hint-premium {
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.1), transparent);
    border-radius: 8px;
    margin-top: 10px;
}

.glass-glow {
    border: 1px solid var(--border) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.05) !important;
    transition: all 0.3s ease;
}

.glass-glow:hover {
    border-color: var(--accent) !important;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.1) !important;
    transform: translateY(-2px);
}

.venue-map-section {
    margin-top: 20px;
}

.schedule-google-map {
    height: 240px;
    margin-top: 10px;
}

.schedule-google-map-frame {
    width: 100%;
    height: 100%;
    border: 0;
}

.schedule-location-list {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.schedule-location-item {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 10px;
    font-size: 0.82rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s ease;
}

.schedule-location-item span:last-child {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.schedule-location-item:hover,
.schedule-location-item.active {
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.12);
}

.schedule-map-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 520px) {
    .schedule-location-list {
        grid-template-columns: 1fr;
    }
}

.venue-map-title {
    margin-bottom: 10px;
    color: var(--accent-gold);
    font-size: 0.95rem;
}

.venue-map-frame {
    width: 100%;
    height: 220px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.venue-map-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.btn-open-google {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-open-google:hover {
    border-color: var(--accent);
    color: #fff;
    background: rgba(56, 189, 248, 0.2);
    text-decoration: none;
}

.venue-visual-sim-premium {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, rgba(56, 189, 248, 0.02), rgba(56, 189, 248, 0.02) 10px, rgba(56, 189, 248, 0.05) 10px, rgba(56, 189, 248, 0.05) 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.premium-header {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.1), transparent);
    padding: 20px;
    border-radius: 12px;
}

/* ===== DYNAMIC STARS ===== */
.star-node {
    position: fixed;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: starPulse 3s infinite ease-in-out;
}

@keyframes starPulse {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 10px white;
    }
}

/* ===== UNIFIED BRANDING ===== */
.brand-name,
.welcome-screen h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.2));
}

.brand-name .accent,
.welcome-screen h1 .accent {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #fde68a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px var(--gold-glow) !important;
}

/* Suggestion Chips - Liquid Glass */
.suggestion-chip {
    background: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    border: 1px solid var(--border) !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    color: var(--text-primary) !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.suggestion-chip:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--accent) !important;
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.2) !important;
    background: rgba(56, 189, 248, 0.1) !important;
}

/* ===== BACKGROUND BLOBS (LIQUID GLASS TOUR) ===== */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: blobTour 25s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-gold);
    bottom: -150px;
    left: -150px;
    animation-duration: 35s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #7c4dff;
    top: 40%;
    left: 40%;
}

@keyframes blobTour {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(150px, 100px) scale(1.1);
    }

    100% {
        transform: translate(-100px, -50px) scale(0.9);
    }
}