:root {
    --bg: #0b1020;
    --card: #111834;
    --muted: #64748b;
    --text: #eef2ff;
    --accent: #6366f1;
    --ring: rgba(99, 102, 241, 0.35);
}

.roboto-base {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}
* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}
body {
    margin: 0;
    background: #fff0f2;
    color: var(--text);
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}
.page {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.chat-card {
    width: 100%;
    max-width: 760px;
    background: #253762de;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #253762;
}
.chat-header .priv-link{
    margin-left: auto;
    color: white;
}
.chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-title img{
    border-radius: 12px;
    position: relative;
    top: -1px;
}
.chat-title h1 {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, white, var(--accent) 50%);
    box-shadow: 0 0 16px var(--accent);
}
.messages {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 56vh;
    min-height: 320px;
    overflow-y: auto;
}
.msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.msg .bubble {
    padding: 10px 12px;
    border-radius: 12px;
    max-width: 80%;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.msg.user .bubble {
    background: rgb(255 255 255 / 11%);
    border: 1px solid rgba(99, 102, 241, 0.35);
    margin-left: auto;
}
.msg.bot .bubble {
    background: #fff0f2;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #253762;
}
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 12px 10px;
}
.chip {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgb(255 255 255 / 11%);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
}
.chip:hover {
    border-color: #fff0f2;
}
.chat-input {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #253762;
}
.chat-input input {
    flex: 1;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text);
    outline: none;
    box-shadow: 0 0 0 2px transparent;
    font-size: 1rem;
}
.chat-input input:focus {
    border-color: #a3a3a3;
}
.chat-input button {
    background: #327e32;
    color: white;
    border: none;
    padding: 0 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 100;
    font-size: 0.8rem;
}
.chat-input button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}
.footer {
    text-align: center;
    margin-top: 14px;
    color: var(--muted);
    font-size: 1rem;
}
.link {
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    text-decoration: underline;
    font-size: 1rem;
}
.link:hover {
    color: var(--text);
}
.loading-dots {
    display: inline-block;
    width: 1.4em;
    text-align: left;
}
.loading-dots::after {
    content: "\2026";
    animation: dots 1.2s steps(4, end) infinite;
}
@keyframes dots {
    0%,
    20% {
        content: "";
    }
    40% {
        content: ".";
    }
    60% {
        content: "..";
    }
    80%,
    100% {
        content: "...";
    }
}
#cfkb-widget {
    position: fixed;
    z-index: 2147483647;
    width: 360px;
    max-width: 90vw;
    height: 560px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}
#cfkb-toggle {
    position: fixed;
    z-index: 2147483647;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    cursor: pointer;
}
#resetBtn{
    background: #6e6e6e;
}

.red{
    color: #dc505a;
}