:root {
    --bg: #030504;
    --panel: #080c09;
    --panel-2: #0d120e;
    --panel-3: #141a15;

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --text: #f1f3f2;
    --text-soft: #c8cfca;
    --muted: #7b847e;
    --muted-dark: #59625c;

    --green: #39e87e;
    --green-soft: rgba(57, 232, 126, 0.08);

    --danger: #ff6969;

    --sidebar-width: 270px;

    --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    overflow: hidden;

    background: var(--bg);
    color: var(--text);

    font-family: "Inter", sans-serif;
}

button,
input,
textarea {
    font: inherit;
}

button {
    border: 0;
}

button {
    cursor: pointer;
}

input,
textarea {
    outline: none;
}

.hidden {
    display: none !important;
}


/* ================= BACKGROUND ================= */

body::before {
    content: "";

    position: fixed;
    top: -250px;
    left: -250px;

    width: 650px;
    height: 650px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(57, 232, 126, 0.075),
            transparent 68%
        );

    pointer-events: none;

    animation: glowMove 12s ease-in-out infinite alternate;
}

body::after {
    content: "";

    position: fixed;
    right: -280px;
    bottom: -300px;

    width: 650px;
    height: 650px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(57, 232, 126, 0.045),
            transparent 68%
        );

    pointer-events: none;

    animation: glowMove2 15s ease-in-out infinite alternate;
}

@keyframes glowMove {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(100px, 80px);
    }
}

@keyframes glowMove2 {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-90px, -70px);
    }
}


/* ================= AUTH ================= */

.auth-screen {
    position: fixed;
    inset: 0;

    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(57, 232, 126, 0.045),
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(57, 232, 126, 0.025),
            transparent 30%
        ),
        #020403;
}

.auth-glow {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(20px);
}

.glow-one {
    width: 300px;
    height: 300px;

    top: 10%;
    left: 12%;

    background: rgba(57, 232, 126, 0.025);

    animation: floatGlow 8s ease-in-out infinite;
}

.glow-two {
    width: 280px;
    height: 280px;

    right: 10%;
    bottom: 8%;

    background: rgba(57, 232, 126, 0.02);

    animation: floatGlow2 10s ease-in-out infinite;
}

@keyframes floatGlow {
    50% {
        transform: translate(40px, 30px);
    }
}

@keyframes floatGlow2 {
    50% {
        transform: translate(-35px, -25px);
    }
}


/* ================= AUTH CARD ================= */

.auth-card {
    position: relative;
    z-index: 2;

    width: min(430px, 100%);

    padding: 34px;

    border: 1px solid rgba(255, 255, 255, 0.09);

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(12, 17, 14, 0.98),
            rgba(5, 8, 6, 0.98)
        );

    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.65),
        0 0 70px rgba(57, 232, 126, 0.025);

    backdrop-filter: blur(25px);

    animation: cardIn .55s var(--ease);
}

.auth-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 70%;
    height: 1px;

    transform: translateX(-50%);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(57, 232, 126, .35),
            transparent
        );
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ================= LOGO ================= */

.auth-logo {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 28px;

    color: #eef1ef;

    font-size: 14px;
    font-weight: 800;
}

.auth-logo-icon {
    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(57, 232, 126, .15);

    border-radius: 9px;

    background: rgba(57, 232, 126, .06);

    color: var(--green);

    box-shadow:
        0 0 25px rgba(57, 232, 126, .06);
}


/* ================= AUTH HEADING ================= */

.auth-heading {
    margin-bottom: 25px;
}

.auth-heading h1 {
    margin-bottom: 7px;

    color: #f1f3f2;

    font-size: 29px;
    font-weight: 800;

    letter-spacing: -1px;
}

.auth-heading p {
    color: var(--muted);

    font-size: 12px;
}


/* ================= FORMS ================= */

#loginForm,
#registerForm {
    display: flex;
    flex-direction: column;

    gap: 17px;
}

.input-group {
    width: 100%;
}

.input-group label {
    display: block;

    margin-bottom: 8px;

    color: #aeb6b0;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .8px;
}


/* ================= INPUT ================= */

.input-wrapper {
    position: relative;
}

.input-wrapper > i {
    position: absolute;

    left: 15px;
    top: 50%;

    z-index: 2;

    color: #68716c;

    font-size: 13px;

    transform: translateY(-50%);

    pointer-events: none;

    transition: .2s ease;
}

.input-wrapper:focus-within > i {
    color: var(--green);
}

.input-wrapper input {
    width: 100%;
    height: 52px;

    padding: 0 47px 0 43px;

    border: 1px solid var(--border);

    border-radius: 13px;

    background: #090d0a;

    color: #eef1ef;

    font-size: 12px;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.input-wrapper input::placeholder {
    color: #5d665f;
}

.input-wrapper input:hover {
    border-color: var(--border-hover);
}

.input-wrapper input:focus {
    border-color: rgba(57, 232, 126, .32);

    background: #0b100d;

    box-shadow:
        0 0 0 3px rgba(57, 232, 126, .04);
}


/* ================= PASSWORD ================= */

.password-toggle {
    position: absolute;

    top: 50%;
    right: 8px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: transparent;

    color: #68716c;

    transform: translateY(-50%);

    transition: .2s ease;
}

.password-toggle:hover {
    background: rgba(255, 255, 255, .045);

    color: white;
}


/* ================= ERROR ================= */

.form-message {
    min-height: 14px;

    margin-top: -7px;

    font-size: 10px;

    text-align: center;
}

.error-message {
    color: var(--danger);
}

.success-message {
    color: var(--green);
}


/* ================= LOGIN BUTTON ================= */

.auth-submit {
    position: relative;

    width: 100%;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 8px;

    overflow: hidden;

    border-radius: 13px;

    background: #ededeb;

    color: #080a09;

    font-size: 11px;
    font-weight: 800;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.auth-submit::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 60%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.55),
            transparent
        );

    transform: skewX(-20deg);

    transition: left .65s ease;
}

.auth-submit:hover::before {
    left: 140%;
}

.auth-submit:hover {
    background: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(255,255,255,.06);
}

.auth-submit:active {
    transform: scale(.985);
}

.auth-submit span,
.auth-submit i {
    position: relative;
    z-index: 2;
}


/* ================= DIVIDER ================= */

.auth-divider {
    display: flex;
    align-items: center;

    gap: 12px;

    margin: 18px 0 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: rgba(255,255,255,.07);
}

.auth-divider span {
    color: #58615b;

    font-size: 9px;
    font-weight: 700;
}


/* ================= PASSKEY BUTTON ================= */

.passkey-login {
    width: 100%;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 12px;

    background: #121713;

    color: #d9dfdb;

    font-size: 11px;
    font-weight: 700;

    transition: .2s ease;
}

.passkey-login:hover {
    background: #191f1a;

    border-color: rgba(255,255,255,.14);

    transform: translateY(-1px);
}

.passkey-login i {
    color: #aeb6b0;
}


/* ================= AUTH SWITCH ================= */

.auth-switch {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    margin-top: 17px;

    color: #626b65;

    font-size: 10px;
}

.auth-switch button {
    padding: 0;

    background: transparent;

    color: #d9dfdb;

    font-size: 10px;
    font-weight: 700;

    transition: .2s ease;
}

.auth-switch button:hover {
    color: var(--green);
}


/* ================= PASSKEY CREATE ================= */

.passkey-wrapper {
    display: flex;
    align-items: center;

    gap: 8px;
}

.passkey-input {
    position: relative;

    flex: 1;
}

.passkey-input > i {
    position: absolute;

    left: 15px;
    top: 50%;

    color: #68716c;

    font-size: 13px;

    transform: translateY(-50%);
}

.passkey-input input {
    width: 100%;
    height: 52px;

    padding: 0 12px 0 43px;

    border: 1px solid var(--border);

    border-radius: 13px;

    background: #090d0a;

    color: #eef1ef;

    font-size: 12px;
}

.create-passkey {
    width: 82px;
    height: 52px;

    flex-shrink: 0;

    border: 1px solid rgba(255,255,255,.09);

    border-radius: 13px;

    background: #262c27;

    color: #f0f2f0;

    font-size: 10px;
    font-weight: 800;

    transition: .2s ease;
}

.create-passkey:hover {
    background: #333a34;

    transform: translateY(-2px);
}

.create-passkey:active {
    transform: scale(.96);
}

.input-hint {
    display: block;

    margin-top: 8px;

    color: #5e6761;

    font-size: 9px;
}


/* ================= APP ================= */

.app {
    width: 100%;
    height: 100vh;

    display: flex;

    background: var(--bg);
}

.main-content {
    width: 100%;
    height: 100vh;

    display: flex;
    flex-direction: column;

    transition:
        margin-left .3s var(--ease),
        width .3s var(--ease);
}


/* ================= SIDEBAR ================= */

.sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    z-index: 500;

    width: var(--sidebar-width);

    display: flex;
    flex-direction: column;

    padding: 15px 13px;

    border-right: 1px solid var(--border);

    background:
        linear-gradient(
            180deg,
            #080c09,
            #040605
        );

    transform: translateX(-100%);

    transition: transform .3s var(--ease);

    box-shadow:
        25px 0 70px rgba(0,0,0,.35);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar.open ~ .main-content {
    margin-left: var(--sidebar-width);

    width: calc(100% - var(--sidebar-width));
}


/* ================= SIDEBAR ================= */

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}

.sidebar-brand {
    display: flex;
    align-items: center;

    gap: 9px;

    color: #eef1ef;

    font-size: 14px;
    font-weight: 800;
}

.brand-icon {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(57,232,126,.06);

    color: var(--green);
}

.sidebar-collapse {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #111612;

    color: #7a837d;

    transition: .2s ease;
}

.sidebar-collapse:hover {
    background: #1a201b;

    color: white;
}


/* ================= NEW CHAT ================= */

.new-chat-button {
    width: 100%;
    height: 45px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 0 14px;

    margin-bottom: 10px;

    border: 1px solid var(--border);

    border-radius: 11px;

    background: #111612;

    color: #e7ebe8;

    font-size: 11px;
    font-weight: 700;

    transition: .2s ease;
}

.new-chat-button:hover {
    background: #181e19;

    transform: translateY(-1px);
}

.new-chat-button i {
    color: var(--green);
}


/* ================= SEARCH ================= */

.chat-search-wrapper {
    position: relative;

    margin-bottom: 18px;
}

.chat-search-wrapper > i {
    position: absolute;

    left: 13px;
    top: 50%;

    color: #68716c;

    font-size: 11px;

    transform: translateY(-50%);
}

.chat-search-wrapper input {
    width: 100%;
    height: 40px;

    padding: 0 12px 0 36px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: #090d0a;

    color: white;

    font-size: 10px;
}

.chat-search-wrapper input::placeholder {
    color: #5e6761;
}

.chat-search-wrapper input:focus {
    border-color: rgba(57,232,126,.25);
}


/* ================= HISTORY ================= */

.history-section {
    flex: 1;

    min-height: 0;
}

.history-label {
    margin: 0 9px 8px;

    color: #555e58;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .8px;
}

.history-list {
    height: calc(100% - 22px);

    overflow-y: auto;
}

.history-list::-webkit-scrollbar {
    width: 4px;
}

.history-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.08);

    border-radius: 10px;
}

.history-item {
    width: 100%;
    min-height: 40px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 0 11px;

    margin-bottom: 3px;

    border-radius: 9px;

    background: transparent;

    color: #7e8781;

    font-size: 10px;

    text-align: left;

    transition: .2s ease;
}

.history-item:hover {
    background: #111612;

    color: white;
}

.history-item.active {
    background: #171d18;

    color: #eef1ef;
}

.history-item i {
    color: #667069;
}

.history-item.active i {
    color: var(--green);
}

.history-item span {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* ================= SIDEBAR BOTTOM ================= */

.sidebar-bottom {
    display: flex;
    flex-direction: column;

    gap: 3px;

    padding-top: 10px;
}

.sidebar-item {
    width: 100%;
    height: 40px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 0 11px;

    border-radius: 9px;

    background: transparent;

    color: #7f8882;

    font-size: 10px;

    text-align: left;

    transition: .2s ease;
}

.sidebar-item:hover {
    background: #111612;

    color: white;
}

.sidebar-item i {
    width: 16px;

    text-align: center;
}

.sidebar-profile {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 9px 6px;

    margin-top: 5px;

    border-top: 1px solid var(--border);

    background: transparent;

    color: #7f8882;

    text-align: left;
}

.sidebar-profile:hover {
    color: white;
}

.mini-avatar {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #252b26;

    color: white;

    font-size: 10px;
    font-weight: 800;
}

.sidebar-profile-text {
    min-width: 0;

    flex: 1;
}

.sidebar-profile-text strong {
    display: block;

    overflow: hidden;

    color: #dce1de;

    font-size: 10px;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.sidebar-profile-text small {
    color: #5f6862;

    font-size: 8px;
}


/* ================= TOPBAR ================= */

.topbar {
    height: 64px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 18px;

    border-bottom: 1px solid var(--border);

    background: rgba(3,5,4,.8);

    backdrop-filter: blur(20px);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
}

.topbar-left {
    gap: 9px;
}

.topbar-right {
    gap: 5px;
}

.mobile-menu-button,
.top-icon-button {
    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: transparent;

    color: #858e88;

    transition: .2s ease;
}

.mobile-menu-button:hover,
.top-icon-button:hover {
    background: #121713;

    color: white;
}

.current-chat-title {
    max-width: 300px;

    overflow: hidden;

    color: #c9d0cb;

    font-size: 11px;
    font-weight: 600;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.top-profile-button {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 50%;

    background: #202621;

    color: white;

    font-size: 10px;
    font-weight: 800;

    transition: .2s ease;
}

.top-profile-button:hover {
    background: #2a322c;

    transform: translateY(-1px);
}


/* ================= CHAT ================= */

.chat-area {
    position: relative;

    flex: 1;

    min-height: 0;

    overflow-y: auto;

    padding: 20px;

    scroll-behavior: smooth;
}

.chat-area::-webkit-scrollbar {
    width: 5px;
}

.chat-area::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.08);

    border-radius: 10px;
}


/* ================= WELCOME ================= */

.welcome-screen {
    min-height: calc(100vh - 150px);

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 20px;

    text-align: center;
}

.welcome-logo-inner {
    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border: 1px solid var(--border);

    border-radius: 18px;

    background: #101511;

    color: var(--green);

    font-size: 23px;

    animation: logoFloat 3.5s ease-in-out infinite;
}

@keyframes logoFloat {
    50% {
        transform: translateY(-6px);
    }
}

.welcome-screen h2 {
    margin-bottom: 8px;

    color: #f1f3f2;

    font-size: clamp(27px, 4vw, 39px);

    font-weight: 800;

    letter-spacing: -1.5px;
}

.welcome-screen > p {
    max-width: 480px;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.6;
}


/* ================= SUGGESTIONS ================= */

.suggestions {
    width: min(730px, 100%);

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    margin-top: 27px;
}

.suggestion-card {
    min-height: 75px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 12px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: #090d0a;

    color: #b9c0bb;

    text-align: left;

    transition: .2s var(--ease);
}

.suggestion-card:hover {
    background: #101511;

    border-color: var(--border-hover);

    transform: translateY(-3px);
}

.suggestion-icon {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    background: #151a16;

    color: #aeb6b0;
}

.suggestion-content {
    min-width: 0;

    flex: 1;
}

.suggestion-content strong {
    display: block;

    margin-bottom: 3px;

    color: #e2e6e3;

    font-size: 10px;
}

.suggestion-content span {
    display: block;

    overflow: hidden;

    color: #68716b;

    font-size: 9px;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.suggestion-arrow {
    color: #5f6862;

    font-size: 9px;
}


/* ================= MESSAGES ================= */

.messages {
    width: min(850px, 100%);

    margin: 0 auto;

    padding: 8px 0 145px;
}

.message {
    display: flex;

    gap: 11px;

    margin-bottom: 25px;

    animation: messageIn .25s ease;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    background: #151a17;

    color: var(--green);

    font-size: 10px;
    font-weight: 800;
}

.message.user .message-avatar {
    background: #252b26;

    color: white;
}

.message-content {
    min-width: 0;

    flex: 1;
}

.message-name {
    margin-bottom: 5px;

    color: #7e8781;

    font-size: 9px;
    font-weight: 800;
}

.message-text {
    color: #e1e6e2;

    font-size: 12px;

    line-height: 1.7;

    white-space: pre-wrap;

    word-break: break-word;
}


/* ================= THINKING ================= */

.thinking-message {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 5px;

    animation: messageIn .25s ease;
}

.thinking-avatar {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #151a17;

    color: var(--green);

    font-size: 10px;
}

.thinking-content {
    display: flex;
    align-items: center;

    gap: 9px;
}

.thinking-text {
    color: #7f8882;

    font-size: 11px;
}

.thinking-timer {
    min-width: 38px;

    color: #5f6862;

    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.thinking-dots {
    display: flex;

    gap: 4px;
}

.thinking-dots span {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #7f8882;

    animation: thinking 1.1s infinite;
}

.thinking-dots span:nth-child(2) {
    animation-delay: .15s;
}

.thinking-dots span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes thinking {
    0%,
    60%,
    100% {
        opacity: .25;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-4px);
    }
}


/* ================= INPUT ================= */

.input-container {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 100;

    width: calc(100% - var(--sidebar-width));

    margin-left: var(--sidebar-width);

    padding:
        12px 20px 5px;

    background:
        linear-gradient(
            to top,
            #030504 70%,
            transparent
        );

    transition:
        width .3s var(--ease),
        margin-left .3s var(--ease);
}

.sidebar:not(.open) ~ .main-content .input-container {
    width: 100%;

    margin-left: 0;
}

.message-box {
    width: min(850px, 100%);

    min-height: 58px;

    display: flex;
    align-items: flex-end;

    gap: 5px;

    margin: 0 auto;

    padding: 8px;

    border: 1px solid rgba(255,255,255,.09);

    border-radius: 16px;

    background: #090d0a;

    box-shadow:
        0 20px 50px rgba(0,0,0,.3);

    transition: .2s ease;
}

.message-box:focus-within {
    border-color: rgba(57,232,126,.22);

    box-shadow:
        0 20px 50px rgba(0,0,0,.3),
        0 0 30px rgba(57,232,126,.025);
}

.message-input {
    flex: 1;

    width: 100%;

    min-height: 40px;
    max-height: 150px;

    resize: none;

    padding: 10px 4px;

    border: 0;

    background: transparent;

    color: white;

    font-size: 12px;

    line-height: 1.5;
}

.message-input::placeholder {
    color: #606963;
}

.input-button,
.send-button {
    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 11px;

    transition: .2s ease;
}

.input-button {
    background: transparent;

    color: #7d867f;
}

.input-button:hover {
    background: #171c18;

    color: white;
}

.send-button {
    background: #ededeb;

    color: #080a09;
}

.send-button:hover {
    background: white;

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(255,255,255,.06);
}

.input-button:active,
.send-button:active {
    transform: scale(.91);
}


/* ================= FILE ================= */

.file-preview {
    width: min(850px, 100%);

    display: flex;
    align-items: center;

    gap: 8px;

    margin: 0 auto 8px;

    padding: 8px 11px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: #101511;

    color: #b9c0bb;

    font-size: 9px;
}

.file-preview i {
    color: #aeb6b0;
}

.file-remove {
    margin-left: auto;

    background: transparent;

    color: #777f79;

    transition: .2s ease;
}

.file-remove:hover {
    color: var(--danger);
}

.input-footer {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding-top: 6px;

    color: #4f5852;

    font-size: 8px;
}

.footer-dot {
    color: #303832;
}


/* ================= MODALS ================= */

.modal-overlay {
    position: fixed;
    inset: 0;

    z-index: 3000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0,0,0,.72);

    backdrop-filter: blur(10px);

    animation: overlayIn .2s ease;
}

@keyframes overlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card {
    width: min(430px, 100%);

    padding: 25px;

    border: 1px solid var(--border);

    border-radius: 19px;

    background:
        linear-gradient(
            145deg,
            #101511,
            #080b09
        );

    box-shadow:
        0 35px 90px rgba(0,0,0,.65);

    animation: modalIn .25s var(--ease);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;
}

.modal-kicker {
    display: block;

    margin-bottom: 3px;

    color: #778079;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .8px;
}

.modal-header h3 {
    color: #eef1ef;

    font-size: 18px;
    font-weight: 800;
}

.close-modal {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #151a16;

    color: #7c857f;

    transition: .2s ease;
}

.close-modal:hover {
    background: #202621;

    color: white;
}


/* ================= SETTINGS ================= */

.settings-list {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.settings-option {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 11px;

    border: 1px solid transparent;

    border-radius: 12px;

    background: #0d120e;

    color: #9ca59f;

    text-align: left;

    transition: .2s ease;
}

.settings-option:hover {
    border-color: var(--border);

    background: #151a16;

    color: white;
}

.settings-option-icon {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #171c18;

    color: #aab2ac;
}

.settings-option-text {
    flex: 1;
}

.settings-option-text strong {
    display: block;

    margin-bottom: 3px;

    color: #dce1de;

    font-size: 10px;
}

.settings-option-text span {
    color: #606963;

    font-size: 8px;
}

.settings-option > i:last-child {
    color: #555e58;

    font-size: 8px;
}


/* ================= PROFILE ================= */

.profile-center {
    display: flex;
    flex-direction: column;

    align-items: center;

    padding: 7px 0 22px;

    text-align: center;
}

.profile-large-avatar {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 13px;

    border-radius: 50%;

    background: #202621;

    color: white;

    font-size: 20px;
    font-weight: 800;
}

.profile-center h2 {
    color: #eef1ef;

    font-size: 19px;
}

.profile-center p {
    margin-top: 4px;

    color: #68716b;

    font-size: 9px;
}

.logout-button {
    width: 100%;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border: 1px solid rgba(255,105,105,.12);

    border-radius: 11px;

    background: rgba(255,105,105,.045);

    color: #ff8585;

    font-size: 10px;
    font-weight: 700;

    transition: .2s ease;
}

.logout-button:hover {
    background: rgba(255,105,105,.09);
}


/* ================= DELETE ================= */

.delete-modal-card {
    text-align: center;
}

.delete-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 16px;

    border-radius: 14px;

    background: rgba(255,105,105,.07);

    color: var(--danger);
}

.delete-modal-card h3 {
    color: #eef1ef;

    font-size: 17px;
}

.delete-modal-card p {
    margin-top: 8px;

    color: #737c76;

    font-size: 10px;

    line-height: 1.6;
}

.confirm-actions {
    display: flex;

    gap: 8px;

    margin-top: 21px;
}

.cancel-button,
.confirm-delete {
    flex: 1;

    height: 43px;

    border-radius: 11px;

    font-size: 10px;
    font-weight: 700;

    transition: .2s ease;
}

.cancel-button {
    background: #171c18;

    color: #aab2ac;
}

.cancel-button:hover {
    background: #202621;

    color: white;
}

.confirm-delete {
    background: rgba(255,105,105,.09);

    color: #ff7777;

    border: 1px solid rgba(255,105,105,.12);
}

.confirm-delete:hover {
    background: rgba(255,105,105,.15);
}


/* ================= PASSKEY MODAL ================= */

.passkey-modal-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 15px;

    border-radius: 15px;

    background: #141914;

    color: #c4cbc6;

    font-size: 18px;
}

.passkey-description {
    margin-bottom: 17px;

    color: #737c76;

    font-size: 10px;

    line-height: 1.5;

    text-align: center;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 800px) {

    .sidebar {
        width: 275px;
    }

    .sidebar.open ~ .main-content {
        margin-left: 0;

        width: 100%;
    }

    .input-container,
    .sidebar:not(.open) ~ .main-content .input-container {
        width: 100%;

        margin-left: 0;

        padding-left: 12px;
        padding-right: 12px;
    }

    .suggestions {
        grid-template-columns: 1fr;
    }

    .chat-area {
        padding: 15px 12px;
    }
}


@media (max-width: 520px) {

    .auth-screen {
        padding: 13px;
    }

    .auth-card {
        padding: 28px 20px 24px;

        border-radius: 21px;
    }

    .auth-heading h1 {
        font-size: 26px;
    }

    .passkey-wrapper {
        gap: 6px;
    }

    .create-passkey {
        width: 75px;
    }

    .welcome-screen h2 {
        font-size: 29px;
    }

    .message-box {
        border-radius: 14px;
    }

    .input-button,
    .send-button {
        width: 38px;
        height: 38px;
    }

    .message-input {
        font-size: 11px;
    }
}


@media (max-width: 380px) {

    .auth-card {
        padding: 24px 16px 21px;
    }

    .auth-heading h1 {
        font-size: 24px;
    }

    .input-wrapper input,
    .passkey-input input {
        height: 49px;
    }

    .auth-submit {
        height: 50px;
    }
}