/* =========================================================
   KTAI
   CHATGPT STYLE UI
========================================================= */

*{
    box-sizing:border-box;
    margin:0;
    padding:0;
    -webkit-tap-highlight-color:transparent;
}

:root{
    --bg:#090d16;
    --panel:#0f1520;
    --panel2:#121925;
    --editor:#0a0f18;

    --border:#273141;

    --text:#f5f7fb;
    --muted:#8c96a8;
    --muted2:#657083;

    --primary:#6258f5;
    --primary2:#786fff;

    --green:#39d98a;
    --red:#ff6276;
    --blue:#4b9dff;

    --bubble-user:#202738;
    --bubble-ai:#111823;

    --shadow:0 15px 50px rgba(0,0,0,.30);
}

body.light{
    --bg:#f5f7fb;
    --panel:#ffffff;
    --panel2:#f0f3f8;
    --editor:#ffffff;

    --border:#dfe4ec;

    --text:#151a24;
    --muted:#667085;
    --muted2:#98a2b3;

    --bubble-user:#e9e7ff;
    --bubble-ai:#ffffff;

    --shadow:0 15px 40px rgba(20,30,50,.10);
}

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

body{
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:var(--bg);
    color:var(--text);
}

button,
input,
textarea{
    font:inherit;
}

button{
    border:0;
    cursor:pointer;
}

.app{
    width:100%;
    height:100%;
    display:flex;
    overflow:hidden;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar{
    width:275px;
    height:100%;
    flex-shrink:0;

    background:var(--panel);
    border-right:1px solid var(--border);

    display:flex;
    flex-direction:column;

    position:relative;
    z-index:30;

    /* IMPORTANT:
       Desktop = visible
       Mobile = controlled at bottom
    */
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

.sidebar-top{
    padding:18px 14px 10px;
}

.brand{
    display:flex;
    align-items:center;
    gap:11px;
    padding:4px 8px 18px;
}

.brand-logo{
    width:38px;
    height:38px;
    border-radius:12px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary2)
        );

    display:flex;
    align-items:center;
    justify-content:center;

    color:#fff;

    box-shadow:
        0 8px 25px
        rgba(98,88,245,.25);
}

.brand-logo i{
    font-size:17px;
}

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

.brand-text strong{
    font-size:17px;
}

.brand-text span{
    font-size:11px;
    color:var(--muted);
    margin-top:4px;
}

.new-chat-btn{
    width:100%;
    height:44px;

    border:1px solid var(--border);
    border-radius:12px;

    background:var(--panel2);
    color:var(--text);

    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;

    transition:.2s;
}

.new-chat-btn:hover{
    border-color:var(--primary);
    background:rgba(98,88,245,.10);
}

.new-chat-btn i{
    color:var(--primary2);
}

.history-title{
    padding:18px 20px 8px;

    color:var(--muted2);

    font-size:11px;
    font-weight:600;

    text-transform:uppercase;
    letter-spacing:.7px;
}

.chat-history{
    flex:1;
    overflow-y:auto;
    padding:5px 10px 10px;
}

.chat-history::-webkit-scrollbar,
.chat-area::-webkit-scrollbar{
    width:5px;
}

.chat-history::-webkit-scrollbar-thumb,
.chat-area::-webkit-scrollbar-thumb{
    background:var(--border);
    border-radius:10px;
}

.history-empty{
    padding:30px 15px;
    text-align:center;

    color:var(--muted2);
    font-size:13px;
}

.history-item{
    width:100%;
    min-height:43px;

    display:flex;
    align-items:center;
    gap:9px;

    padding:7px 8px;

    border-radius:10px;

    color:var(--muted);
    background:transparent;

    margin-bottom:3px;

    text-align:left;

    transition:.2s;
}

.history-item:hover,
.history-item.active{
    background:var(--panel2);
    color:var(--text);
}

.history-item-main{
    flex:1;
    min-width:0;

    display:flex;
    align-items:center;
    gap:9px;
}

.history-item-main i{
    width:17px;
    color:var(--muted2);
    flex-shrink:0;
}

.history-title-text{
    min-width:0;
    flex:1;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;

    font-size:13px;
}

.history-delete{
    width:28px;
    height:28px;

    border-radius:7px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:transparent;
    color:var(--muted2);

    opacity:0;

    flex-shrink:0;

    transition:.2s;
}

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

.history-delete:hover{
    background:rgba(255,98,118,.12);
    color:var(--red);
}

.sidebar-bottom{
    position:relative;

    border-top:1px solid var(--border);

    padding:10px;
}

.side-btn{
    width:100%;
    min-height:42px;

    padding:8px 10px;

    border-radius:10px;

    background:transparent;
    color:var(--muted);

    display:flex;
    align-items:center;

    gap:11px;

    text-align:left;

    transition:.2s;
}

.side-btn:hover{
    color:var(--text);
    background:var(--panel2);
}

.side-btn i{
    width:18px;
    text-align:center;
}

.api-dot{
    width:7px;
    height:7px;

    border-radius:50%;

    margin-left:auto;

    background:var(--muted2);
}

.api-dot.active{
    background:var(--green);

    box-shadow:
        0 0 8px
        rgba(57,217,138,.55);
}

.side-value{
    margin-left:auto;

    font-size:11px;
    font-weight:700;

    color:var(--muted2);
}

.language-popup{
    position:absolute;

    left:10px;
    right:10px;

    bottom:145px;

    background:var(--panel);

    border:1px solid var(--border);

    border-radius:12px;

    padding:5px;

    box-shadow:var(--shadow);

    display:none;

    z-index:50;
}

.language-popup.show{
    display:block;
}

.language-popup button{
    width:100%;
    height:38px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 10px;

    border-radius:8px;

    color:var(--muted);
    background:transparent;
}

.language-popup button:hover,
.language-popup button.active{
    background:var(--panel2);
    color:var(--text);
}

.language-popup button i{
    color:var(--primary2);
    display:none;
}

.language-popup button.active i{
    display:block;
}

.danger-btn:hover{
    color:var(--red);
}

.mobile-close{
    display:none;
}


/* =========================================================
   MAIN
========================================================= */

.main{
    flex:1;
    min-width:0;
    height:100%;

    display:flex;
    flex-direction:column;

    background:var(--bg);
}

.header{
    height:62px;
    flex-shrink:0;

    border-bottom:1px solid var(--border);

    display:flex;
    align-items:center;

    padding:0 18px;

    background:rgba(9,13,22,.78);

    backdrop-filter:blur(15px);
}

body.light .header{
    background:rgba(245,247,251,.85);
}

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

.header-logo{
    width:32px;
    height:32px;

    border-radius:9px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary2)
        );

    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;
}

.header-logo i{
    font-size:14px;
}

.header-title > div:last-child{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.header-title strong{
    font-size:14px;
}

.header-title span{
    color:var(--muted2);
    font-size:10px;
}

.header-actions{
    margin-left:auto;

    display:flex;
    align-items:center;
    gap:7px;
}

.icon-btn{
    width:36px;
    height:36px;

    border-radius:10px;

    background:transparent;
    color:var(--muted);

    display:flex;
    align-items:center;
    justify-content:center;

    transition:.2s;
}

.icon-btn:hover{
    color:var(--text);
    background:var(--panel2);
}

.mobile-menu{
    display:none;
}

.think-btn{
    height:34px;

    border:1px solid var(--border);
    border-radius:9px;

    padding:0 11px;

    display:flex;
    align-items:center;
    gap:7px;

    color:var(--muted);
    background:var(--panel);

    font-size:11px;

    transition:.2s;
}

.think-btn:hover{
    color:var(--text);
}

.think-btn.active{
    color:#fff;

    border-color:var(--primary);

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary2)
        );

    box-shadow:
        0 5px 20px
        rgba(98,88,245,.25);
}


/* =========================================================
   CHAT AREA
========================================================= */

.chat-area{
    flex:1;
    min-height:0;

    overflow-y:auto;

    padding:30px 18px 20px;

    scroll-behavior:smooth;
}

.welcome{
    max-width:800px;

    min-height:100%;

    margin:0 auto;

    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;

    text-align:center;

    padding:20px;
}

.welcome-logo{
    width:62px;
    height:62px;

    border-radius:19px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary2)
        );

    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:25px;

    margin-bottom:20px;

    box-shadow:
        0 15px 45px
        rgba(98,88,245,.25);
}

.welcome h1{
    font-size:27px;
    margin-bottom:10px;
}

.welcome p{
    max-width:520px;

    color:var(--muted);

    font-size:14px;
    line-height:1.6;
}

.suggestions{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;

    gap:8px;

    margin-top:25px;
}

.suggestion{
    min-height:38px;

    padding:0 12px;

    border-radius:10px;

    border:1px solid var(--border);

    background:var(--panel);

    color:var(--muted);

    display:flex;
    align-items:center;
    gap:7px;

    font-size:11px;

    transition:.2s;
}

.suggestion:hover{
    color:var(--text);
    border-color:var(--primary);
}

.suggestion i{
    color:var(--primary2);
}

.messages{
    max-width:800px;
    margin:0 auto;
}

.message-row{
    display:flex;
    width:100%;
    margin-bottom:23px;
}

.message-row.user{
    justify-content:flex-end;
}

.message-row.assistant{
    justify-content:flex-start;
}

.message{
    max-width:85%;

    border-radius:17px;

    padding:13px 15px;

    line-height:1.65;

    font-size:14px;

    overflow:hidden;
}

.message-row.user .message{
    background:var(--bubble-user);
    border-bottom-right-radius:5px;
}

.message-row.assistant .message{
    background:var(--bubble-ai);
    border:1px solid var(--border);
    border-bottom-left-radius:5px;
}

.message-content{
    word-wrap:break-word;
    overflow-wrap:anywhere;
}

.message-content p{
    margin:0 0 9px;
}

.message-content p:last-child{
    margin-bottom:0;
}

.message-content pre{
    overflow-x:auto;

    margin:12px 0 0;

    padding:13px;

    border-radius:10px;

    background:#070b12;

    border:1px solid #202938;

    font-size:12px;

    line-height:1.55;
}

body.light .message-content pre{
    background:#10151e;
    color:#fff;
}

.message-content code{
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
}

.inline-code{
    background:rgba(128,128,128,.14);

    padding:2px 5px;

    border-radius:5px;

    font-size:12px;
}

.message-image{
    width:100%;
    max-width:300px;

    display:block;

    border-radius:11px;

    margin-bottom:9px;
}

.message-file{
    display:flex;
    align-items:center;
    gap:8px;

    margin-bottom:9px;

    color:var(--muted);

    font-size:11px;
}

.message-file i{
    color:var(--primary2);
}

.message-actions{
    display:flex;
    gap:5px;

    margin-top:8px;
}

.message-action{
    width:28px;
    height:28px;

    border-radius:7px;

    background:transparent;

    color:var(--muted2);

    display:flex;
    align-items:center;
    justify-content:center;
}

.message-action:hover{
    background:var(--panel2);
    color:var(--text);
}

.typing{
    display:flex;
    align-items:center;
    gap:5px;

    min-height:22px;
}

.typing span{
    width:6px;
    height:6px;

    border-radius:50%;

    background:var(--muted2);

    animation:typing 1.1s infinite;
}

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

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

@keyframes typing{
    0%,60%,100%{
        transform:translateY(0);
        opacity:.45;
    }

    30%{
        transform:translateY(-4px);
        opacity:1;
    }
}


/* =========================================================
   COMPOSER
========================================================= */

.composer-wrap{
    width:100%;
    flex-shrink:0;

    padding:0 18px 12px;
}

.attachment-preview{
    max-width:800px;
    margin:0 auto 7px;

    display:none;
}

.attachment-preview.show{
    display:flex;
    gap:7px;
}

.image-preview-box,
.file-preview-box{
    position:relative;

    border:1px solid var(--border);

    background:var(--panel);

    border-radius:11px;

    overflow:hidden;
}

.image-preview-box{
    width:72px;
    height:72px;
}

.image-preview-box img{
    width:100%;
    height:100%;

    object-fit:cover;
}

.file-preview-box{
    min-width:190px;
    max-width:280px;

    height:58px;

    display:flex;
    align-items:center;

    padding:7px 32px 7px 8px;

    gap:8px;
}

.file-preview-icon{
    width:38px;
    height:38px;

    border-radius:9px;

    background:rgba(98,88,245,.12);

    color:var(--primary2);

    display:flex;
    align-items:center;
    justify-content:center;
}

.file-preview-info{
    min-width:0;

    display:flex;
    flex-direction:column;
}

.file-preview-info strong{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;

    font-size:11px;
}

.file-preview-info small{
    color:var(--muted2);
    font-size:9px;
    margin-top:3px;
}

.remove-preview{
    position:absolute;

    right:5px;
    top:5px;

    width:22px;
    height:22px;

    border-radius:50%;

    background:rgba(0,0,0,.55);

    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:9px;
}

.composer{
    max-width:800px;
    min-height:54px;

    margin:0 auto;

    position:relative;

    display:flex;
    align-items:flex-end;

    gap:7px;

    padding:7px;

    border:1px solid var(--border);

    border-radius:16px;

    background:var(--panel);

    box-shadow:
        0 8px 35px
        rgba(0,0,0,.12);
}

.plus-btn{
    flex-shrink:0;

    width:39px;
    height:39px;

    border-radius:10px;

    background:var(--panel2);

    color:var(--muted);

    display:flex;
    align-items:center;
    justify-content:center;

    transition:.2s;
}

.plus-btn:hover,
.plus-btn.active{
    color:var(--text);
    background:rgba(98,88,245,.13);
}

#messageInput{
    flex:1;

    min-width:0;

    max-height:150px;

    resize:none;

    border:0;
    outline:0;

    background:transparent;

    color:var(--text);

    padding:10px 3px;

    font-size:14px;

    line-height:1.45;
}

#messageInput::placeholder{
    color:var(--muted2);
}

.send-btn{
    flex-shrink:0;

    width:39px;
    height:39px;

    border-radius:11px;

    background:var(--primary);

    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    transition:.2s;
}

.send-btn:hover{
    background:var(--primary2);
    transform:translateY(-1px);
}

.send-btn:disabled{
    opacity:.45;
    cursor:not-allowed;
    transform:none;
}

.send-btn.sending i{
    animation:
        sendSpin .8s linear infinite;
}

@keyframes sendSpin{
    to{
        transform:rotate(360deg);
    }
}

.privacy-note{
    max-width:800px;

    margin:7px auto 0;

    text-align:center;

    color:var(--muted2);

    font-size:9px;
}

.privacy-note i{
    margin-right:3px;
}


/* =========================================================
   ATTACHMENT MENU
========================================================= */

.attach-menu{
    position:absolute;

    left:7px;
    bottom:62px;

    width:185px;

    padding:6px;

    border:1px solid var(--border);

    border-radius:13px;

    background:var(--panel);

    box-shadow:var(--shadow);

    display:none;

    z-index:50;
}

.attach-menu.show{
    display:block;

    animation:
        menuIn .16s ease;
}

@keyframes menuIn{
    from{
        opacity:0;
        transform:translateY(5px);
    }

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

.attach-menu button{
    width:100%;
    height:40px;

    border-radius:8px;

    display:flex;
    align-items:center;

    gap:10px;

    padding:0 8px;

    background:transparent;
    color:var(--muted);

    font-size:12px;

    text-align:left;
}

.attach-menu button:hover{
    background:var(--panel2);
    color:var(--text);
}

.attach-icon{
    width:28px;
    height:28px;

    border-radius:8px;

    display:flex;
    align-items:center;
    justify-content:center;
}

.attach-icon.camera{
    background:rgba(98,88,245,.13);
    color:var(--primary2);
}

.attach-icon.gallery{
    background:rgba(57,217,138,.12);
    color:var(--green);
}

.attach-icon.file{
    background:rgba(75,157,255,.12);
    color:var(--blue);
}

.attach-icon.no-photo{
    background:rgba(255,98,118,.12);
    color:var(--red);
}

.attach-divider{
    height:1px;
    background:var(--border);
    margin:5px 3px;
}


/* =========================================================
   MODALS
========================================================= */

.modal-overlay{
    position:fixed;

    inset:0;

    z-index:100;

    background:rgba(0,0,0,.58);

    backdrop-filter:blur(6px);

    display:none;

    align-items:center;
    justify-content:center;

    padding:18px;
}

.modal-overlay.show{
    display:flex;
}

.modal{
    position:relative;

    width:100%;
    max-width:390px;

    border:1px solid var(--border);

    border-radius:18px;

    background:var(--panel);

    box-shadow:var(--shadow);

    padding:25px;

    animation:
        modalIn .18s ease;
}

@keyframes modalIn{
    from{
        opacity:0;
        transform:scale(.96) translateY(5px);
    }

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

.modal-close{
    position:absolute;

    right:13px;
    top:13px;

    width:32px;
    height:32px;

    border-radius:8px;

    background:transparent;
    color:var(--muted);

    display:flex;
    align-items:center;
    justify-content:center;

    z-index:10;
}

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

.modal-icon,
.confirm-icon{
    width:48px;
    height:48px;

    border-radius:14px;

    background:rgba(98,88,245,.13);

    color:var(--primary2);

    display:flex;
    align-items:center;
    justify-content:center;

    margin-bottom:15px;
}

.modal h2{
    font-size:18px;
    margin-bottom:8px;
}

.modal p{
    color:var(--muted);

    font-size:12px;
    line-height:1.6;

    margin-bottom:18px;
}

.key-input-wrap{
    position:relative;
}

.key-input-wrap input{
    width:100%;
    height:45px;

    border:1px solid var(--border);

    border-radius:10px;

    outline:0;

    background:var(--panel2);

    color:var(--text);

    padding:0 43px 0 12px;

    font-size:12px;
}

.key-input-wrap input:focus{
    border-color:var(--primary);
}

.key-input-wrap button{
    position:absolute;

    right:5px;
    top:5px;

    width:35px;
    height:35px;

    border-radius:8px;

    background:transparent;

    color:var(--muted);
}

.api-status{
    min-height:22px;

    margin-top:7px;

    color:var(--muted);

    font-size:10px;
}

.api-status.success{
    color:var(--green);
}

.api-status.error{
    color:var(--red);
}

.modal-actions{
    display:flex;

    gap:8px;

    margin-top:10px;
}

.modal-actions button{
    flex:1;

    height:42px;

    border-radius:10px;

    font-size:12px;
}

.primary-btn{
    background:var(--primary);
    color:#fff;
}

.primary-btn:hover{
    background:var(--primary2);
}

.secondary-btn{
    background:var(--panel2);
    color:var(--muted);
    border:1px solid var(--border);
}

.secondary-btn:hover{
    color:var(--text);
}

.danger-confirm-btn{
    background:var(--red);
    color:#fff;
}

.confirm-modal{
    text-align:center;
}

.confirm-icon{
    margin:0 auto 14px;

    background:rgba(255,98,118,.12);

    color:var(--red);
}

.confirm-modal .modal-actions{
    margin-top:20px;
}


/* =========================================================
   TOAST
========================================================= */

.toast{
    position:fixed;

    left:50%;
    bottom:25px;

    transform:
        translate(-50%,20px);

    opacity:0;
    pointer-events:none;

    z-index:200;

    max-width:
        calc(100% - 30px);

    padding:10px 14px;

    border-radius:10px;

    background:var(--panel2);

    border:1px solid var(--border);

    color:var(--text);

    box-shadow:var(--shadow);

    display:flex;
    align-items:center;
    gap:8px;

    font-size:11px;

    transition:.25s;
}

.toast.show{
    opacity:1;

    transform:
        translate(-50%,0);
}

.toast i{
    color:var(--green);
}


/* =========================================================
   LINKS
========================================================= */

.message-content a{
    color:var(--primary2);
    text-decoration:none;
}

.message-content a:hover{
    text-decoration:underline;
}


/* =========================================================
   MOBILE SIDEBAR
========================================================= */

@media(max-width:760px){

    .sidebar{
        position:fixed;

        left:0;
        top:0;
        bottom:0;

        width:275px;
        max-width:86vw;

        height:100%;

        /*
          IMPORTANT:
          Mobile မှာ အစကတည်းက ပိတ်ထားမယ်။
          .open ပါမှသာ ပြမယ်။
        */
        transform:translate3d(-110%,0,0);

        opacity:0;
        visibility:hidden;

        pointer-events:none;

        transition:
            transform .25s ease,
            opacity .20s ease,
            visibility 0s linear .25s;

        box-shadow:
            20px 0 50px
            rgba(0,0,0,.25);

        z-index:1000;
    }

    /*
      JavaScript က sidebar.classList.add("open")
      လုပ်တဲ့အချိန်မှသာ ပေါ်မယ်
    */
    .sidebar.open{
        transform:translate3d(0,0,0);

        opacity:1;
        visibility:visible;

        pointer-events:auto;

        transition:
            transform .25s ease,
            opacity .20s ease,
            visibility 0s linear 0s;
    }

    /*
      open မရှိရင် လုံးဝပိတ်
    */
    .sidebar:not(.open){
        transform:translate3d(-110%,0,0);

        opacity:0;
        visibility:hidden;

        pointer-events:none;
    }


    /* -----------------------------------------
       CLOSE BUTTON
    ----------------------------------------- */

    .mobile-close{
        display:flex;

        position:absolute;

        right:10px;
        top:10px;

        width:34px;
        height:34px;

        border-radius:9px;

        align-items:center;
        justify-content:center;

        background:transparent;

        color:var(--muted);

        z-index:1100;

        cursor:pointer;

        pointer-events:auto;
    }

    .mobile-close:hover{
        background:var(--panel2);
        color:var(--text);
    }


    /* -----------------------------------------
       MENU BUTTON
    ----------------------------------------- */

    .mobile-menu{
        display:flex;

        margin-right:4px;
    }


    /* -----------------------------------------
       HEADER
    ----------------------------------------- */

    .header{
        padding:0 10px;
    }

    .think-btn{
        padding:0 9px;
    }

    .think-btn span{
        display:none;
    }


    /* -----------------------------------------
       CHAT AREA
    ----------------------------------------- */

    .chat-area{
        padding:20px 11px 15px;
    }


    /* -----------------------------------------
       COMPOSER
    ----------------------------------------- */

    .composer-wrap{
        padding:
            0 9px
            calc(8px + env(safe-area-inset-bottom));
    }


    /* -----------------------------------------
       WELCOME
    ----------------------------------------- */

    .welcome{
        padding:10px;

        min-height:
            calc(100% - 10px);
    }

    .welcome h1{
        font-size:23px;
    }

    .welcome p{
        font-size:12px;
    }

    .suggestions{
        max-width:350px;
    }

    .suggestion{
        font-size:10px;
    }


    /* -----------------------------------------
       MESSAGE
    ----------------------------------------- */

    .message{
        max-width:91%;

        font-size:13px;
    }


    /* -----------------------------------------
       LANGUAGE POPUP
    ----------------------------------------- */

    .language-popup{
        bottom:143px;
    }
}


/* =========================================================
   SMALL PHONE
========================================================= */

@media(max-width:430px){

    .header-title strong{
        font-size:13px;
    }

    .header-title span{
        font-size:9px;
    }

    .header-logo{
        width:30px;
        height:30px;
    }

    .header-actions{
        gap:2px;
    }

    .icon-btn{
        width:33px;
        height:33px;
    }

    .think-btn{
        height:32px;

        font-size:10px;
    }

    .composer{
        min-height:52px;

        border-radius:15px;
    }

    #messageInput{
        font-size:13px;
    }

    .send-btn,
    .plus-btn{
        width:37px;
        height:37px;
    }

    .message{
        max-width:94%;
    }

    .modal{
        padding:21px;
    }

    .sidebar{
        width:275px;
        max-width:86vw;
    }
}