:root {
    /* Premium Slate & Neon Theme */
    --bg-primary: #0f172a;
    --bg-secondary: #0b0f19;
    --bg-tertiary: #1e293b;
    --bg-input: rgba(30, 41, 59, 0.7);
    --text-normal: #f8fafc;
    --text-muted: #94a3b8;
    --interactive-normal: #cbd5e1;
    --interactive-hover: #ffffff;
    --interactive-active: #ffffff;
    --brand-experiment: #8b5cf6;

    --orange-skip: #f97316;
    --orange-hover: #ea580c;
    --blue-find: #5865f2;
    --blue-hover: #4752c4;

    --font-ui: 'gg sans', 'Inter', system-ui, sans-serif;
}

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

body {
    font-family: var(--font-ui);
    background-color: var(--bg-secondary);
    color: var(--text-normal);
    height: 100vh;
    overflow: hidden;
}

.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* =========================================
   SIDEBAR (LEFT)
   ========================================= */
.sidebar {
    width: 280px;
    background-color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.sidebar-top {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dm-list {
    display: flex;
    flex-direction: column;
}

.dm-item {
    background: rgba(255, 255, 255, 0.08);
    /* Active item */
    color: var(--interactive-active);
    border: none;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 16px;
}

.dm-item i {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    padding-left: 10px;
    margin-top: 8px;
}

/* Sidebar Bottom (Premium Ad & Profile) */
.sidebar-bottom {
    display: flex;
    flex-direction: column;
}

/* Removed premium ad styles entirely */

.profile-panel {
    background-color: var(--bg-tertiary);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-panel .avatar {
    width: 32px;
    height: 32px;
    background: white;
    color: black;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    font-size: 1.1rem;
}

.profile-panel .user-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.profile-panel .username {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-normal);
}

.profile-panel .user-controls {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 1.1rem;
}


/* =========================================
   MAIN CHAT AREA (RIGHT) AND GLASSMORPHISM
   ========================================= */
.chat-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* === LIVELY ANIMATED BACKGROUND === */
.chat-area::before,
.chat-area::after {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vh;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    animation: floatOrbs 25s infinite alternate ease-in-out;
    opacity: 0.35;
}

.chat-area::before {
    background: #8b5cf6;
    top: -20%;
    left: -10%;
}

.chat-area::after {
    background: #ec4899;
    bottom: -20%;
    right: -10%;
    animation-delay: -12s;
}

@keyframes floatOrbs {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    100% {
        transform: translate(15%, 15%) scale(1.3) rotate(15deg);
    }
}

/* Header */
.chat-header {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle line */
    background: rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-normal);
}

.header-left i {
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #23a559;
    border-radius: 50%;
    margin-left: 5px;
}

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

.icon-btn {
    color: var(--interactive-normal);
    font-size: 1.25rem;
    cursor: pointer;
}

.custom-dropdown {
    position: relative;
    user-select: none;
    outline: none;
}

.dropdown-header {
    display: flex;
    align-items: center;
    background: rgba(139, 92, 246, 0.15);
    /* Neon Brand tint */
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 6px 14px;
    gap: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    color: var(--text-normal);
    font-size: 0.85rem;
    font-weight: 500;
}

.dropdown-header:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.6);
}

.dropdown-header i.fa-filter {
    color: var(--brand-experiment);
    font-size: 0.85rem;
}

.dropdown-arrow {
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.sidebar-bottom .custom-dropdown.open .dropdown-arrow {
    transform: rotate(0deg);
    /* Arrow was already pointing up in HTML */
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    width: max-content;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
}

.custom-dropdown.open .dropdown-options {
    display: flex;
    animation: dropDownFade 0.2s ease forwards;
}

@keyframes dropDownFade {
    0% {
        opacity: 0;
        transform: translateY(-5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-option {
    padding: 10px 16px;
    color: var(--text-normal);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.1s;
}

.dropdown-option:hover {
    background: var(--brand-experiment);
    color: white;
}

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

.welcome-banner {
    margin-top: auto;
    /* Pushes it to the bottom if empty */
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.welcome-avatar {
    width: 68px;
    height: 68px;
    background: var(--interactive-normal);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.welcome-banner h2 {
    font-size: 2rem;
    color: #fff;
}

.welcome-banner p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Message item */
.message-wrapper {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-experiment);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    flex-shrink: 0;
    margin-top: 2px;
}

.message-wrapper.user .user-avatar {
    background: #23a559;
}

.message-core {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.username {
    font-weight: 500;
    font-size: 1rem;
    color: #fff;
}

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

.message-text {
    font-size: 1rem;
    color: var(--text-normal);
    line-height: 1.375rem;
    word-break: break-word;
}


/* Typing Indicator */
.typing-container {
    height: 24px;
    padding: 0 16px;
}

.typing-indicator {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.typing-indicator.hidden {
    display: none;
}

.dot-bounce {
    display: flex;
    gap: 4px;
}

.dot-bounce span {
    width: 5px;
    height: 5px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: bounce 1.4s infinite;
}

.dot-bounce span:nth-child(1) {
    animation-delay: -0.32s;
}

.dot-bounce span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Input Area */
.input-wrapper {
    padding: 0 16px 16px 16px;
    display: flex;
    align-items: stretch;
    gap: 12px;
    height: 68px;
}

.action-buttons {
    display: flex;
}

.esc-btn,
.skip-btn {
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0 16px;
    cursor: pointer;
    font-family: inherit;
    color: white;
}

.esc-btn {
    background-color: var(--bg-tertiary);
    border-radius: 8px 0 0 8px;
}

.esc-btn:hover {
    background-color: #111214;
}

.skip-btn {
    background-color: var(--orange-skip);
    border-radius: 0 8px 8px 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    min-width: 80px;
}

.skip-btn.finding {
    background-color: var(--blue-find);
    border-radius: 8px; /* Full rounded when alone? No, keep it consistent or adjusted */
}

.skip-btn.finding:hover {
    background-color: var(--blue-hover);
}

.skip-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent, rgba(255, 255, 255, 0.2));
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.skip-btn:hover {
    background-color: var(--orange-hover);
    transform: scale(1.02);
}

.chat-input-box {
    flex-grow: 1;
    background-color: var(--bg-input);
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.chat-input-box:focus-within {
    border-color: rgba(139, 92, 246, 0.4);
    background-color: rgba(30, 41, 59, 0.9);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.add-file-btn {
    background: transparent;
    border: none;
    color: var(--interactive-normal);
    font-size: 1.4rem;
    margin-right: 16px;
    cursor: pointer;
}

.add-file-btn:hover {
    color: var(--interactive-hover);
}

#message-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-normal);
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}

.input-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--interactive-normal);
    font-size: 1.4rem;
}

.gif-icon {
    font-size: 0.8rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.input-icons i:hover,
.gif-icon:hover {
    color: var(--interactive-hover);
    cursor: pointer;
}


/* Toasts */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--brand-experiment);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.toast.hidden {
    display: none;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

/* Modals & Popups */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    min-width: 350px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.close-btn {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.close-btn:hover {
    color: white;
    transform: scale(1.1);
}

.theme-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.theme-btn {
    background: var(--bg-tertiary);
    color: var(--text-normal);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.theme-btn:hover {
    background: var(--bg-input);
    transform: translateX(5px);
}

/* Pickers */
.picker-popup {
    position: absolute;
    bottom: 85px;
    right: 20px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    width: 320px;
    height: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.picker-popup.hidden {
    display: none;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    overflow-y: auto;
    padding-right: 8px;
}

.emoji-item {
    font-size: 1.5rem;
    text-align: center;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: 0.1s;
}

.emoji-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.2);
}

#gif-search {
    background: var(--bg-input);
    border: none;
    color: var(--text-normal);
    padding: 10px 12px;
    border-radius: 4px;
    outline: none;
    width: 100%;
    font-family: inherit;
    font-size: 0.9rem;
}

.gif-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 8px;
}

.gif-item {
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    object-fit: cover;
    height: 100px;
    transition: transform 0.2s;
}

.gif-item:hover {
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.chat-gif-embed {
    max-width: 250px;
    border-radius: 8px;
    margin-top: 8px;
    cursor: pointer;
}

/* ====== SETTINGS MODAL - PREMIUM REDESIGN ====== */
.settings-wide {
    width: 580px;
    max-width: 96vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* Top pill-style tab switcher */
.settings-tabs {
    display: flex;
    gap: 4px;
    padding: 14px 20px 0;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
}

.stab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 16px 10px;
    cursor: pointer;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    transition: all 0.18s;
    font-family: inherit;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.stab:hover {
    color: var(--text-normal);
}

.stab.active {
    color: #fff;
    border-bottom: 2px solid var(--brand-experiment);
    background: rgba(139, 92, 246, 0.08);
}

/* Panels */
.spanel {
    padding: 20px 22px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.spanel.hidden {
    display: none;
}

.shint {
    color: var(--text-muted);
    font-size: 0.83rem;
    line-height: 1.5;
    margin: 0;
}

.slabel {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* BG Upload Zone */
.bg-upload-zone {
    border: 2px dashed rgba(139, 92, 246, 0.35);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(139, 92, 246, 0.04);
}

.bg-upload-zone:hover {
    border-color: rgba(139, 92, 246, 0.8);
    background: rgba(139, 92, 246, 0.1);
    transform: scale(1.01);
}

/* Font size & family buttons */
.font-size-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fsz-btn {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.18s;
}

.fsz-btn:hover {
    color: white;
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.15);
}

.fsz-btn.active {
    background: var(--brand-experiment);
    color: white;
    border-color: transparent;
}

/* Red action button */
.saction-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.2s;
    align-self: flex-start;
}

.saction-btn:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* Toggle switch */
.toggle-sw {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 0;
}

.toggle-sw input {
    display: none;
}

.tslider {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    transition: 0.25s;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tslider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: 0.25s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.toggle-sw input:checked+.tslider {
    background: var(--brand-experiment);
    border-color: transparent;
}

.toggle-sw input:checked+.tslider::after {
    transform: translateX(20px);
}

/* Slider track */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--brand-experiment);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(139, 92, 246, 0.5);
}

/* Custom BG overlay */
#custom-bg-overlay {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s;
}

/* Settings section divider */
.sdivider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 4px 0;
}

/* ====== TOAST ====== */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: var(--brand-experiment);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.hidden {
    display: none;
}

/* Mobile Menu Button - Hidden by default */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-normal);
    font-size: 1.4rem;
    cursor: pointer;
}

/* ====== MOBILE RESPONSIVE ====== */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -290px;
        top: 0;
        bottom: 0;
        height: 100vh;
        z-index: 1100;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .app-layout.sidebar-open .sidebar {
        transform: translateX(290px);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1050;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
        backdrop-filter: blur(4px);
    }

    .app-layout.sidebar-open .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-btn {
        display: flex;
        margin-right: 12px;
    }

    .chat-header {
        padding: 0 12px;
    }

    .chat-area::before,
    .chat-area::after {
        width: 100vw;
        height: 100vh;
        filter: blur(80px);
    }

    .welcome-banner h2 {
        font-size: 1.5rem;
    }

    .welcome-avatar {
        width: 54px;
        height: 54px;
        font-size: 1.8rem;
    }

    /* Mobile specific input sizing */
    .input-wrapper {
        padding: 10px 12px 20px; /* Enhanced bottom padding for mobile browsers */
        height: auto;
        display: flex;
        flex-direction: row;
        gap: 10px;
        background: rgba(0,0,0,0.1);
        align-items: center;
    }

    .action-buttons {
        width: auto;
        display: flex;
        height: 52px;
    }

    .esc-btn {
        display: none !important;
    }

    .skip-btn {
        flex: none;
        width: 100px;
        height: 52px;
        border-radius: 10px;
        padding: 0 12px;
        font-size: 0.9rem;
    }

    .chat-input-box {
        flex-grow: 1;
        height: 52px;
        padding: 0 14px;
        border-radius: 12px;
    }

    .add-file-btn {
        margin-right: 12px;
        font-size: 1.2rem;
    }

    .input-icons {
        gap: 12px;
        font-size: 1.2rem;
    }

    #message-input {
        font-size: 0.95rem;
    }

    .modal-content {
        width: 92%;
        min-width: unset;
    }

    .settings-wide {
        max-height: 85vh;
    }

    .header-left {
        gap: 8px;
    }
}

/* =========================================
   LANDING PAGE STYLES
   ========================================= */

.landing-page {
    overflow-y: auto;
    height: auto;
    background: var(--bg-primary);
    scroll-behavior: smooth;
}

.gradient-text {
    background: linear-gradient(90deg, var(--brand-experiment), #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.logo i {
    color: var(--brand-experiment);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: white;
}

.cta-nav {
    background: var(--brand-experiment);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* Hero Section */
.hero {
    padding: 160px 40px 100px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    min-height: 80vh;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 540px;
}

.hero-badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.1);
    color: var(--brand-experiment);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: var(--brand-experiment);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-ui {
    width: 300px;
    height: 400px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    animation: float 6s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.ui-bar {
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin-bottom: 20px;
}

.ui-msg {
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    max-width: 80%;
}

.ui-msg.left {
    background: var(--bg-tertiary);
    align-self: flex-start;
}

.ui-msg.right {
    background: var(--brand-experiment);
    color: white;
    align-self: flex-end;
}

/* Features Section */
.features {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.3);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--brand-experiment);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA Card */
.final-cta {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-card {
    background: linear-gradient(135deg, var(--brand-experiment), #ec4899);
    padding: 80px 40px;
    border-radius: 40px;
    text-align: center;
    color: white;
}

.cta-card h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.cta-card p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-primary.large {
    background: white;
    color: var(--brand-experiment);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.footer {
    padding: 60px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #0b0f19;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 120px; }
    .hero-content p { margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: none; }
}

@media (max-width: 768px) {
    .nav-container { padding: 0 24px; }
    .nav-links a:not(.cta-nav) { display: none; }
    .hero-content h1 { font-size: 3rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 2.2rem; }
    .cta-card h2 { font-size: 2.5rem; }
}
