﻿:root {
    --kb-yellow: #FFD22E;
    --kb-yellow-strong: #ffcb09;
    --kb-black: #0E0F14;
    --kb-text: #1d1f2a;
    --kb-muted: #6b7280;
    --kb-bg: #f5f6f8;
    --kb-white: #ffffff;
    --radius: 22px;
    --shadow: 0 10px 30px rgba(0,0,0,.08)
}

html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans",Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
    background: var(--kb-bg);
    color: var(--kb-text)
}

.page {
    min-height: 100%;
    display: grid;
    place-items: center;
    /*padding: 28px*/
}

.phone {
    width: 360px;
    max-width: 100%;
    height: 720px;
    background: var(--kb-white);
    border-radius: 32px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column
}

.bankbar {
    background: var(--kb-yellow);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between
}

.logo {
    font-weight: 800;
    letter-spacing: .2px
}

    .logo img {
        width: 70%
    }

.lang-switch {
    width: 105px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: #1118270d;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 700;
    cursor: pointer;
    user-select: none
}

.screen {
    flex: 1;
    display: none;
    flex-direction: column;
    padding: 22px
}

    .screen.active {
        display: flex;
        animation: fade .25s ease both
    }

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(6px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin: 6px 0 18px
}

.subtitle {
    text-align: center;
    color: var(--kb-muted);
    line-height: 1.4
}

.card {
    background: var(--kb-white);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow)
}

.btn {
    width: 100%;
    cursor: pointer;
    border: 0;
    border-radius: 16px;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 16px
}

.btn-primary {
    background: var(--kb-yellow)
}

    .btn-primary:hover {
        filter: brightness(.98)
    }

.btn-muted {
    background: #eef0f4
}

.btn-block {
    width: 100%
}

.form {
    display: grid;
    gap: 10px
}

.input {
    width: calc(100% - 30px);
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 15px
}

    .input:focus {
        outline: 2px solid #11182722;
        border-color: #d1d5db
    }

.hint {
    font-size: 12px;
    color: var(--kb-muted)
}

.amount {
    display: grid;
    gap: 8px
}

.amount-value {
    font-size: 30px;
    font-weight: 800;
    text-align: center
}

.range {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #eee;
    border-radius: 999px;
    outline: none
}

    .range::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--kb-yellow);
        border: 3px solid #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,.15)
    }

.center {
    display: grid;
    place-items: center;
    gap: 14px;
    text-align: center
}

.clock {
    width: 110px;
    height: 110px;
    background: radial-gradient(circle at 50% 50%,#fff 60%,#fff 61%,#0000 61%),conic-gradient(var(--kb-yellow) 0 100%);
    border-radius: 50%;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.13));
    position: relative
}

    .clock::after {
        content: "";
        width: 5px;
        height: 28px;
        border-radius: 6px;
        background: #111827;
        position: absolute;
        top: 30px;
        left: calc(50% - 2.5px);
        transform-origin: 50% 27px;
        animation: ticks 2.2s linear infinite
    }

@keyframes ticks {
    to {
        transform: rotate(360deg)
    }
}

.pill {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    background: #eef0f4;
    padding: 6px 10px;
    border-radius: 999px
}

.footer-note {
    margin-top: auto;
    text-align: center;
    color: var(--kb-muted);
    font-size: 12px
}

.upload {
    display: grid;
    gap: 8px
}

.drop {
    border: 2px dashed #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    color: var(--kb-muted)
}

    .drop.drag {
        background: #fffbea;
        border-color: #facc15;
        color: #a16207
    }

    .droppass.drag {
        background: #fffbea;
        border-color: #facc15;
        color: #a16207
    }

.space-lg {
    height: 14px
}

.row {
    display: flex;
    gap: 10px
}

.options {
    display: grid;
    gap: 10px
}

.option {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 600
}

    .option[aria-checked="true"] {
        outline: 3px solid #11182722;
        border-color: #d1d5db;
        background: #fff
    }

.summary {
    display: grid;
    gap: 8px
}

    .summary .line {
        display: flex;
        justify-content: space-between
    }



@media (max-width: 480px) {
    .phone {
        width: 100%;
        height: 100%;
        border-radius: 0px;
    }

/*    .screen {
        justify-content:space-around;
    }*/
}




#chatButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ffc107;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 9999;
}

#chatWindow {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 340px;
    height: 480px;
    background: #0f1117;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 9999;

    
    margin: 0;
    background-color: #CBF3F0;
    color: var(--text);
    font-family: system-ui,Segoe UI,Roboto,Arial
}



.wrap {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 0;
    height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto
}

header {
    background-color: var(--kb-yellow);
    color: var(--kb-black);
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 14px 14px 0 0;
}

    header .left {
        font-size: 18px;
        font-weight: 700;
    }

pill {
    background-color: #CBF3F0;
    border: 1px solid var(--kb-muted);
    color: var(--kb-muted);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
}

/*.status.connected {
    color: #86efac;
    border-color: #244b33
}

.status.reconnecting {
    color: #fde047;
    border-color: #64541d
}

.status.disconnected {
    color: #fca5a5;
    border-color: #5d2a2a
}*/

main {
    padding: 6px
}

.chat {
    height: calc(340px);
    background-color: #fff;
    padding: 12px;
    margin-bottom: 16px;
    max-height: calc(100% - 100px);
    overflow-y: auto;
    flex-grow: 1;
    border-radius: 10px;
}
.row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin: 12px 0
}

input, button, textarea {
    font: inherit
}

textarea {
    width: 90%;
    height: 20px;
    padding: 10px;
    border: 1px solid var(--kb-muted);
    border-radius: 12px;
    background-color: var(--kb-bg);
    font-size: 14px;
    resize: none;
    color: var(--kb-text);
}

#send {
    padding: 10px 16px;
    background-color: var(--kb-yellow);
    border: none;
    border-radius: 16px;
    color: var(--kb-white);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

    button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    button:hover {
        background-color: var(--kb-yellow-strong);
    }

.msg {
    display: flex;
    margin: 6px 0
}

.me {
    justify-content: flex-end
}

    .me .bubble {
        background: #2631c7
    }

.bubble {
    padding: 10px 12px;
    border-radius: 14px;
    background-color: var(--kb-yellow);
    color: var(--kb-white);
    max-width: 70%;
    word-wrap: break-word;
}

.meta {
    text-align: center;
    font-size: .8rem;
    color: var(--muted);
    margin: 2px 4px
}

.sys {
    opacity: .7;
    text-align: center;
    margin: 8px 0
}

.hid {
    display: none
}