:root {
    --bg: #05060a;
    --panel: rgba(255, 255, 255, .04);
    --stroke: rgba(255, 255, 255, .10);
    --stroke2: rgba(255, 255, 255, .14);
    --muted: rgba(255, 255, 255, .62);
    --muted2: rgba(255, 255, 255, .45);
    --amp: 0;

    --primary: #7c3aed;
    --accent: #8b5cf6;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #05060a;
    overflow: auto;
}

.hidden {
    display: none !important;
}

.ui-app {
    height: 100vh;
    width: 100vw;
    display: flex;
    background: var(--bg);
    color: white;
    font-family: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

/* Scrollbars */
.ui-scroll {
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .14) transparent;
}

.ui-scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.ui-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .12);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: content-box;
}

.ui-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.ui-input {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .14) transparent;
}

.ui-input::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.ui-input::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .12);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: content-box;
}

.ui-input::-webkit-scrollbar-track {
    background: transparent;
}

/* Sidebar */
.ui-sidebar {
    width: 320px;
    min-width: 320px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #05060a;
    border-right: 1px solid rgba(255, 255, 255, .06);
    transition: width .22s ease, min-width .22s ease;
    position: relative;
    overflow: hidden;
}

.ui-sidebar::before {
    content: '';
    position: absolute;
    inset: -150px;
    background:
        /* Top glow */
        radial-gradient(800px 500px at 50% 8%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 50%),
        /* Center highlight */
        radial-gradient(750px 450px at 50% 40%, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 55%);
    filter: blur(22px);
    opacity: .65;
    pointer-events: none;
    animation: mistFloat 25s ease-in-out infinite alternate;
}

/* Sidebar vignette */
.ui-sidebar::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(850px 800px at 50% 35%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .25) 50%, rgba(0, 0, 0, .55) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, 0) 20%),
        linear-gradient(0deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, 0) 24%);
    pointer-events: none;
    z-index: 0;
}

.ui-sidebar>* {
    position: relative;
    z-index: 1;
}


/* Header - Fixed at top */
.ui-side-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 14px 10px;
}

.ui-brand {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.ui-brand-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .55));
}

.ui-brand-text {
    min-width: 0;
}

.ui-brand-title {
    padding-top: 5px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: .3;
    color: rgba(255, 255, 255, .92);
}

.ui-brand-sub {
    margin-top: 2px;
    font-size: 11px;
    color: rgba(255, 255, 255, .45);
}

.ui-side-search {
    flex-shrink: 0;
    padding: 0 14px 12px;
}

.ui-search {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
    border-radius: 16px;
    padding: 10px 12px;
}

.ui-search-ico {
    color: rgba(255, 255, 255, .60);
    display: flex;
}

.ui-search-input {
    width: 100%;
    background: transparent;
    border: 0;
    outline: none;
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
}

.ui-search-input::placeholder {
    color: rgba(255, 255, 255, .35);
}

.ui-side-section {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0 14px;
    overflow: hidden;
}

.ui-side-section {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .12) transparent;
}

.ui-side-title {
    flex-shrink: 0;
    font-size: 11px;
    letter-spacing: .18em;
    color: rgba(255, 255, 255, .40);
    margin: 10px 2px 8px;
}

#emptyDocMessage {
    flex-shrink: 0;
    padding: 28px 16px;
}

#docList {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 10px;
}

/* .ui-docs {
    padding-bottom: 10px;
    max-height: calc(100vh - 340px);
} */

.ui-docs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.ui-doc {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
    border-radius: 18px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.ui-doc-ico {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .28);
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .82);
}

.ui-doc-title {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, .88);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.ui-doc-del {
    width: 34px;
    height: 34px;
    border-radius: 14px;
    opacity: .75;
}

.ui-doc-del:hover {
    opacity: 1;
}

.ui-side-upgrade {
    flex-shrink: 0;
    padding: 10px 14px;
    transition: all 0.3s ease;
}

.ui-side-upgrade.hidden {
    display: none;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    overflow: hidden;
}

.ui-upgrade-card {
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
    border-radius: 18px;
    padding: 12px 12px;
}

.ui-upgrade-title {
    font-size: 13px;
    font-weight: 800;
    color: rgba(255, 255, 255, .90);
}

.ui-pro-pill {
    display: inline-block;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .10);
    margin-left: 4px;
}

.ui-upgrade-sub {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.3;
    color: rgba(255, 255, 255, .46);
}

.ui-upgrade-btn {
    margin-top: 10px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .92);
    color: #0b0c10;
    font-weight: 800;
    font-size: 12px;
    border-radius: 14px;
    padding: 10px 12px;
    cursor: pointer;
}

.ui-upgrade-btn:hover {
    filter: brightness(1.03);
}

.ui-user {
    flex-shrink: 0;
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    background: rgba(0, 0, 0, .14);
    cursor: pointer;
    transition: .15s ease;
}

.ui-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .90);
}

.ui-user-text {
    line-height: 1.1;
}

.ui-user-name {
    font-size: 12px;
    font-weight: 800;
    color: rgba(255, 255, 255, .90);
}

.ui-user-mail {
    font-size: 11px;
    color: rgba(255, 255, 255, .45);
}

/* collapsed sidebar */
.ui-sidebar.collapsed {
    width: 76px;
    min-width: 76px;
}

.ui-sidebar.collapsed .ui-brand-text,
.ui-sidebar.collapsed .ui-side-search,
.ui-sidebar.collapsed .ui-side-title,
.ui-sidebar.collapsed .ui-docs,
.ui-sidebar.collapsed .ui-side-upgrade,
.ui-sidebar.collapsed .ui-user-text {
    display: none !important;
}

.ui-sidebar.collapsed .ui-side-header {
    justify-content: center;
    padding-top: 18px;
}

.ui-sidebar.collapsed .ui-user {
    justify-content: center;
}

/* Buttons */
.ui-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .70);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: .15s ease;
}

.ui-icon-btn:hover {
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .92);
    border-color: rgba(255, 255, 255, .16);
}

.ui-ico-btn {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .18);
    color: rgba(255, 255, 255, .78);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: .15s ease;
}

.ui-ico-btn:hover {
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .95);
    border-color: rgba(255, 255, 255, .16);
}

/* ============================================
   MAIN - BRIGHTER RIGHT SIDE FIX
   ============================================ */

.ui-main {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: #05060a;
}

/* Beautiful top glows - keep this */
.ui-main::before {
    content: '';
    position: absolute;
    inset: -150px;
    background:
        /* Top-left glow */
        radial-gradient(1050px 620px at 18% 12%, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0) 50%),
        /* Top-right glow */
        radial-gradient(1050px 620px at 82% 12%, rgba(255, 255, 255, 0.064), rgba(255, 255, 255, 0) 10%),
        /* Center highlight */
        radial-gradient(950px 580px at 50% 40%, rgba(255, 255, 255, 0.074), rgba(255, 255, 255, 0) 45%),
        /* Bottom center */
        radial-gradient(850px 520px at 50% 85%, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 58%);
    filter: blur(22px);
    opacity: .70;
    pointer-events: none;
    animation: mistFloat 25s ease-in-out infinite alternate;
}

/* BRIGHTER vignette - much lighter on right side */
.ui-main::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        /* Softer centered radial vignette */
        radial-gradient(1350px 1250px at 50% 38%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, .60) 100%),
        /* Top fade - lighter */
        linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, 0) 20%),
        /* Bottom fade - lighter */
        linear-gradient(0deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, 0) 24%),
        /* Left shadow - very light */
        linear-gradient(90deg, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, 0) 40%),
        /* Right shadow - MUCH LIGHTER (was .12, now .05) */
        linear-gradient(270deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, 0) 12%);
    pointer-events: none;
}

@keyframes mistFloat {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(10px, -10px);
    }

    100% {
        transform: translate(-10px, 10px);
    }
}

#topMenuBtn {
    background: linear-gradient(269deg, #4b4b4e, #343436c4);
}

.ui-topbar {
    height: 58px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid #1b1c20;
    /* box-shadow: 1px 5px 15px 0px rgba(0, 0, 0, 0.591); */
}

.ui-protocol-wrap {
    position: relative;
}

/* centered Voice text */
.ui-protocol-btn {
    width: 170px;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .85);
    border-radius: 999px;
    padding: 9px 14px;
    padding-right: 40px;
    /* room for chevron */
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: .15s ease;
    font-size: 13px;
    font-weight: 800;
}

.ui-protocol-btn:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .16);
}

.ui-protocol-btn svg {
    position: absolute;
    right: 12px;
    opacity: .9;
}

.ui-top-actions {
    position: relative;
    display: flex;
    gap: 10px;
}

.ui-dropdown {
    position: absolute;
    top: 46px;
    right: 0;
    min-width: 190px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(10, 10, 14, .92);
    border-radius: 16px;
    padding: 8px;
    z-index: 40;
    backdrop-filter: blur(10px);
    transform-origin: top right;
    animation: uiPop .12s ease-out;
}

@keyframes uiPop {
    from {
        transform: translateY(-6px) scale(.98);
        opacity: 0;
    }

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

.ui-menu {
    min-width: 220px;
}

.ui-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, .08);
    margin: 6px 0;
}

.ui-drop-badge {
    margin-left: auto;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(124, 58, 237, .18);
    border: 1px solid rgba(124, 58, 237, .30);
    color: rgba(139, 92, 246, .95);
    font-weight: 800;
}

.ui-drop-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, .82);
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    position: relative;
    transition: .15s ease;
}

.ui-drop-item:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .08);
}

.ui-drop-center {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ui-drop-ico {
    display: flex;
    opacity: .85;
}

.ui-green-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, .18);
    position: absolute;
    right: 12px;
}

/* Chat */
.ui-chat {
    position: relative;
    z-index: 2;
    height: calc(100% - 58px);
    display: flex;
    flex-direction: column;
    padding-bottom: 15px;
    align-items: center;
    gap: 12px;
}

.ui-chat-scroll {
    width: 100%;
    /* full width -> scrollbar at screen edge */
    max-width: none;
    flex: 1;
    /* less top padding so it starts near top */
    padding-top: 21px;
}

.ui-chat-list {
    width: min(980px, 100%);
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ui-bubble-wrap {
    width: 100%;
    display: flex;
}

.ui-bubble {
    max-width: min(760px, 92%);
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
    border-radius: 26px;
    padding: 12px 14px;
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
    line-height: 1.55;
    box-shadow: 0 22px 80px rgba(0, 0, 0, .35);
    /* white-space: pre-wrap; */
}

.ui-bubble.user {
    border-radius: 26px 26px 8px 26px;
}

.ui-bubble.ai {
    border-radius: 26px 26px 26px 8px;
}

.ui-suggest-wrap {
    /* width: min(980px, 100%); */
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
    justify-content: center;
}

.ui-suggest {
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
    border-radius: 10px;
    padding: 14px 14px;
    text-align: left;
    cursor: pointer;
    transition: .15s ease;
    font-size: 12px;
}

.ui-suggest:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .16);
}

.ui-suggest-title {
    font-size: 13px;
    font-weight: 900;
    color: rgba(255, 255, 255, .90);
}

.ui-suggest-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, .50);
    margin-top: 6px;
}

.ui-file-suggest {
    width: min(980px, 100%);
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .03);
    border-radius: 20px;
    padding: 12px 12px;
}

.ui-file-suggest-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: center;
    justify-content: center;
    width: 100%;
}

.ui-sq-btn {
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .78);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: .15s ease;
    font-size: 12px;
}

.ui-sq-btn:hover {
    background: rgba(255, 255, 255, .08);
}

.ui-chips,
#chipsRow {
    width: min(900px, 100%);
    max-width: 100%;

    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;

    /* leave room for scrollbar */
    padding: 2px 4px 14px;

    overflow-x: hidden;
    overflow-y: hidden;

    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;

    position: relative;

    /* hide scrollbar by default */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* old Edge */
    color-scheme: dark;

    background: transparent;
}

.ui-chips::-webkit-scrollbar,
#chipsRow::-webkit-scrollbar {
    height: 0;
}

.ui-chips.is-scrollable,
#chipsRow.is-scrollable {
    overflow-x: auto;

    /* Firefox colors */
    scrollbar-width: thin;
    /* scrollbar-color: rgba(255, 255, 255, 0.18) #0b0b0f; */

    /* make the scrollbar/overflow area dark */
    background: linear-gradient(to bottom,
            transparent 0%,
            transparent calc(100% - 12px),
            #0b0b0f calc(100% - 12px),
            #0b0b0f 100%);

    /* force dark strip behind scrollbar (important on some setups) */
    box-shadow: inset 0 -14px 0 #0b0b0f;

    /* fixed edge fade (does NOT move) */
    -webkit-mask-image: linear-gradient(90deg,
            transparent 0px,
            #000 28px,
            #000 calc(100% - 28px),
            transparent 100%);
    mask-image: linear-gradient(90deg,
            transparent 0px,
            #000 28px,
            #000 calc(100% - 28px),
            transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.ui-chips.is-scrollable::-webkit-scrollbar,
#chipsRow.is-scrollable::-webkit-scrollbar {
    height: 10px;
    background-color: #0b0b0f;
}

.ui-chips.is-scrollable::-webkit-scrollbar-track {
    background: #0b0b0f;
    /* ✅ track background */
}

.ui-chips.is-scrollable::-webkit-scrollbar-track,
.ui-chips.is-scrollable::-webkit-scrollbar-track-piece,
#chipsRow.is-scrollable::-webkit-scrollbar-track,
#chipsRow.is-scrollable::-webkit-scrollbar-track-piece {
    background-color: #0b0b0f;
}

.ui-chips.is-scrollable::-webkit-scrollbar-thumb,
#chipsRow.is-scrollable::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .12);
    border-radius: 999px;
    border: 3px solid #0b0b0f;
    background-clip: content-box;
}

.ui-chips.is-scrollable::-webkit-scrollbar-corner,
#chipsRow.is-scrollable::-webkit-scrollbar-corner {
    background-color: #0b0b0f;
}

.ui-chips>*,
#chipsRow>* {
    flex: 0 0 auto;
}

.ui-chips::before,
.ui-chips::after,
#chipsRow::before,
#chipsRow::after {
    content: none !important;
}

.ui-chips.is-scrollable::before,
.ui-chips.is-scrollable::after {
    opacity: 1;
}

.ui-chips::before {
    left: 0;
    background: linear-gradient(90deg, rgba(5, 6, 10, .95), rgba(5, 6, 10, 0));
}

.ui-chips::after {
    right: 0px;
    background: linear-gradient(270deg, rgba(5, 6, 10, .95), rgba(5, 6, 10, 0));
}

.ui-chip {
    display: flex;
    align-items: center;
    gap: 12px;

    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
    border-radius: 20px;
    padding: 10px 12px;

    /* min-width: 260px; */
    scroll-snap-align: start;

    flex: 0 0 auto;
}

.ui-chip.big {
    min-width: 320px;
}

.ui-chip-ico {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .28);
    display: grid;
    place-items: center;
}

.ui-chip-title {
    font-size: 13px;
    font-weight: 900;
    color: rgba(255, 255, 255, .90);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ui-chip-x {
    margin-left: auto;
}

.ui-composer {
    width: min(900px, 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
    border-radius: 22px;
    padding: 10px 10px;
    box-shadow: 0 22px 90px rgba(0, 0, 0, .45);
}

.ui-input-wrap {
    flex: 1;
    min-width: 0;
}

.ui-input {
    width: 100%;
    background: transparent;
    border: 0;
    outline: none;
    resize: none;
    overflow-y: auto;
    color: rgba(255, 255, 255, .90);
    font-size: 13px;
    line-height: 1.35;
    padding: 8px 6px;
    max-height: 160px;
}

.ui-input::placeholder {
    color: rgba(255, 255, 255, .40);
}

.ui-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ui-divider {
    color: rgba(255, 255, 255, .35);
    font-size: 14px;
    padding: 0 2px;
}

.ui-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .92);
    color: #0b0c10;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: .15s ease;
}

.ui-send-btn:hover {
    filter: brightness(1.03);
}

.ui-pulse {
    animation: uiPulse 1.1s ease-in-out infinite;
}

@keyframes uiPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: .45;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Voice Fullscreen */
.ui-voice {
    position: fixed;
    inset: 0;
    z-index: 60;
}

.ui-voice-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(12px);
}

.ui-voice-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px;
}

.ui-voice-blob {
    width: 210px;
    height: 210px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 60%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0) 60%);
    box-shadow:
        0 40px 140px rgba(0, 0, 0, .55),
        inset 0 0 0 2px rgba(255, 255, 255, .14),
        inset 0 0 70px rgba(0, 0, 0, .60);
    transform: scale(calc(1 + (var(--amp) * 0.35)));
    transition: transform .08s ease-out;
    position: relative;
    overflow: hidden;
}

.ui-voice-blob {
    --amp: 0;
    position: relative;
}

.ui-voice-blob::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, .8);
    opacity: calc(.25 + var(--amp) * .65);
    filter: blur(calc(.5px + var(--amp) * 1.5px));
    transform: scale(calc(1 + var(--amp) * 0.05));
    animation: blobSpin 1.2s linear infinite;
    pointer-events: none;
}

.ui-voice-blob.wave::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, .35);
    opacity: calc(.08 + var(--amp) * .35);
    transform: scale(calc(1 + var(--amp) * 0.35));
    animation: blobPulse .75s ease-in-out infinite;
    pointer-events: none;
}

@keyframes blobSpin {
    from {
        transform: rotate(0deg) scale(calc(1 + var(--amp) * 0.05));
    }

    to {
        transform: rotate(360deg) scale(calc(1 + var(--amp) * 0.05));
    }
}

@keyframes blobPulse {
    0% {
        opacity: .45;
    }

    100% {
        opacity: 0;
    }
}

.ui-voice-blob::after {
    content: "";
    position: absolute;
    inset: -18px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 60%);
    filter: blur(18px);
    opacity: calc(.12 + (var(--amp) * .25));
}

.ui-voice-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 94px;
    width: min(820px, 92%);
    text-align: center;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, .88);
    text-shadow: 0 16px 60px rgba(0, 0, 0, .55);
}

.ui-voice-actions {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 26px;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
}

.ui-voice-btn {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .92);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: .15s ease;
}

.ui-voice-btn:hover {
    background: rgba(255, 255, 255, .10);
}

/* Modal + Toast */
.ui-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
}

.ui-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(10px);
}

.ui-modal-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(520px, 92%);
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(10, 10, 14, .92);
    border-radius: 20px;
    padding: 16px;
}

.ui-modal-title {
    font-size: 14px;
    font-weight: 900;
    color: rgba(255, 255, 255, .92);
}

.ui-modal-sub {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
    line-height: 1.4;
}

.ui-modal-close {
    margin-top: 14px;
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .92);
    color: #0b0c10;
    font-weight: 900;
    font-size: 12px;
    padding: 10px 12px;
    cursor: pointer;
}


/* Responsive */
@media (max-width: 740px) {
    .ui-suggest-wrap {
        grid-template-columns: 1fr;
    }

    .ui-voice-blob {
        width: 190px;
        height: 190px;
    }

    .ui-voice-text {
        font-size: 13px;
        bottom: 92px;
    }
}

/* =========================
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
========================= */

/* =========================
   AUTH GLASS (fits inside your index layout)
   ========================= */
.auth-glass {
    min-height: calc(100vh - 0px);
    display: grid;
    place-items: center;
    padding: clamp(18px, 2vw, 28px);
}

.auth-glass-shell {
    width: min(1100px, 100%);
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 1024px) {
    .auth-glass-shell {
        grid-template-columns: 1.02fr 1fr;
        gap: 22px;
    }
}

.auth-glass-card {
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.06);
    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}

.auth-glass-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(520px 240px at 12% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%),
        radial-gradient(520px 240px at 88% 92%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 55%);
    opacity: .9;
    pointer-events: none;
}

.auth-glass-inner {
    position: relative;
    padding: 28px;
}

@media (min-width: 768px) {
    .auth-glass-inner {
        padding: 34px;
    }
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.auth-badge {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    color: color-mix(in srgb, var(--accent) 85%, #fff 15%);
    font-weight: 900;
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.auth-title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}

.auth-sub {
    margin: 0 0 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.auth-divider {
    height: 1px;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    margin: 16px 0 18px;
}

.auth-field {
    margin-bottom: 12px;
}

.auth-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.72);
}

.auth-input {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.22);
    color: rgba(255, 255, 255, 0.92);
    outline: none;
    transition: .15s ease;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.auth-input:focus {
    border-color: color-mix(in srgb, var(--accent) 55%, rgba(255, 255, 255, 0.12));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.auth-pass {
    position: relative;
}

.auth-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.06);
    display: grid;
    place-items: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.70);
    transition: .15s ease;
}

.auth-eye:hover {
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.92);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.auth-row a {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
    text-decoration: none;
}

.auth-row a:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--accent) 55%, rgba(255, 255, 255, 0.12));
    background: rgba(0, 0, 0, 0.18);
    color: color-mix(in srgb, var(--accent) 90%, #fff 10%);
    font-weight: 900;
    letter-spacing: .01em;
    cursor: pointer;
    transition: .15s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.auth-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.45);
}

.auth-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.50);
}

.auth-or::before,
.auth-or::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
}

.auth-social {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 6px;
}

.auth-social a {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: .15s ease;
}

.auth-social a:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

.auth-foot {
    margin-top: 14px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.52);
}

.auth-foot a {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
    text-decoration: none;
}

.auth-foot a:hover {
    text-decoration: underline;
}

/* Flash alerts */
.auth-alert {
    border: 1px solid rgba(239, 68, 68, .35);
    background: rgba(239, 68, 68, .08);
    color: rgba(254, 202, 202, 1);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    margin: 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-alert button {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.70);
    cursor: pointer;
}

.auth-alert button:hover {
    color: #fff;
}

/* Right art panel */
.auth-art {
    display: none;
}

@media (min-width: 1024px) {
    .auth-art {
        display: block;
        position: relative;
        min-height: 520px;
        border-radius: 22px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.04);
        box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
        overflow: hidden;
    }
}

.auth-art::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(460px 260px at 50% 50%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
        radial-gradient(600px 320px at 55% 45%, rgba(255, 255, 255, 0.06), transparent 60%);
    opacity: .9;
    pointer-events: none;
}

.auth-art-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-orbit {
    width: 330px;
    height: 330px;
    border-radius: 999px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.auth-orbit::before,
.auth-orbit::after {
    content: "";
    position: absolute;
    inset: -40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: rotate(12deg);
}

.auth-orbit::after {
    inset: -75px;
    opacity: .7;
    transform: rotate(-12deg);
}

.auth-diamond {
    width: 120px;
    height: 120px;
    transform: rotate(45deg);
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--accent) 45%, rgba(255, 255, 255, 0.10));
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--accent) 55%, transparent),
            rgba(255, 255, 255, 0.02),
            rgba(0, 0, 0, 0.12));
}

/* =========================
   LOGIN v3 (like screenshot: GoCheck dark/purple)
   ========================= */

.gc-auth {
    min-height: 100vh;
    background:
        radial-gradient(900px 500px at 20% 20%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 60%),
        radial-gradient(800px 460px at 70% 85%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
        #07080d;
    color: rgba(255, 255, 255, .92);
    display: grid;
    place-items: center;
    padding: clamp(18px, 3vw, 34px);
    font-family: "Onest", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.gc-auth-wrap {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: center;
}

@media (min-width: 1024px) {
    .gc-auth-wrap {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 42px;
    }
}

/* LEFT */
.gc-auth-left h1 {
    font-size: clamp(44px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 900;
    margin: 0 0 10px;
    color: color-mix(in srgb, var(--accent) 90%, #fff 10%);
}

.gc-auth-left p.lead {
    margin: 0 0 22px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.62);
    max-width: 520px;
}

.gc-bullets {
    display: grid;
    gap: 14px;
    margin-top: 14px;
    max-width: 560px;
}

.gc-bullet {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 12px;
    align-items: start;
}

.gc-dot {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: color-mix(in srgb, var(--accent) 90%, #fff 10%);
}

.gc-bullet strong {
    display: block;
    font-weight: 900;
    margin-bottom: 2px;
}

.gc-bullet span {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.45;
}

/* RIGHT CARD */
.gc-card {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.gc-card-inner {
    padding: 26px;
}

@media (min-width: 768px) {
    .gc-card-inner {
        padding: 30px;
    }
}

.gc-card-title {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-align: center;
    margin: 2px 0 6px;
}

.gc-card-sub {
    text-align: center;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    margin: 0 0 18px;
}

/* fields */
.gc-field {
    margin-bottom: 14px;
}

.gc-label {
    display: block;
    font-size: 12px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 8px;
}

.gc-input {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.22);
    color: rgba(255, 255, 255, 0.92);
    outline: none;
    transition: .15s ease;
}

.gc-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.gc-input:focus {
    border-color: color-mix(in srgb, var(--accent) 55%, rgba(255, 255, 255, 0.12));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.gc-pass {
    position: relative;
}

.gc-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.06);
    display: grid;
    place-items: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.70);
    transition: .15s ease;
}

.gc-eye:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

/* row */
.gc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.60);
}

.gc-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gc-check input {
    width: 15px;
    height: 15px;
    accent-color: var(--accent);
}

.gc-link {
    color: color-mix(in srgb, var(--accent) 90%, #fff 10%);
    font-weight: 900;
    text-decoration: none;
}

.gc-link:hover {
    text-decoration: underline;
}

/* button */
.gc-btn {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    color: #fff;
    font-weight: 900;
    letter-spacing: .01em;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--accent) 85%, #6d28d9 15%),
            color-mix(in srgb, var(--primary) 80%, #7c3aed 20%));
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    transition: .15s ease;
}

.gc-btn:hover {
    filter: brightness(1.05);
}

/* divider */
.gc-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.50);
}

.gc-or::before,
.gc-or::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(255, 255, 255, 0.10);
}

/* social */
.gc-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gc-social-btn {
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: .15s ease;
}

.gc-social-btn:hover {
    background: rgba(255, 255, 255, 0.10);
}

.gc-card-footline {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

/* bottom benefits */
.gc-benefits {
    margin-top: 14px;
    display: grid;
    gap: 8px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
}

.gc-benefits div::before {
    content: "✓";
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.65);
}

/* alerts */
.gc-alert {
    border: 1px solid rgba(239, 68, 68, .35);
    background: rgba(239, 68, 68, .08);
    color: rgba(254, 202, 202, 1);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    margin: 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gc-alert button {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.70);
    cursor: pointer;
}

.gc-alert button:hover {
    color: #fff;
}





/* ======================================================================
   AUTH V6 — Two-panel (left fills to mid) + clean monochrome palette
   ONLY colors: black, white, #1a1b1f, #0b0d11
   ====================================================================== */

.authv6 {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: auto;
    background: #000;
}

.authv6-wrap {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Desktop: 55% / 45% */
@media (min-width: 1024px) {
    .authv6-wrap {
        flex-direction: row;
    }

    .authv6-left {
        flex: 0 0 55%;
    }

    .authv6-right {
        flex: 0 0 45%;
    }
}

/* Mobile: stack */
@media (max-width: 1023px) {
    .authv6-wrap {
        flex-direction: column;
    }

    .authv6-left {
        min-height: 280px;
        /* nice hero height on mobile */
    }
}

/* LEFT PANEL */
.authv6-left {
    position: relative;
    overflow: hidden;

    /* your gradient stays */
    background: linear-gradient(180deg, #1a1b1f 0%, #0b0d11 55%, #000 100%);
    width: 100%;
    height: 100%;
    border-right: 3px solid #ffffff26;
}

/* Video as background */
.authv6-leftVideo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* black & white + darker */
    filter: grayscale(1) contrast(1.105) brightness(0.99);
    opacity: 0.55;

    pointer-events: none;
}

/* Overlay on top of video (keeps it clean and readable) */
.authv6-left::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;

    /* top -> bottom (bottom strongest) */
    background: linear-gradient(177deg, rgba(0, 0, 0, 0.10) 0%, rgb(11 13 17 / 25%) 40%, rgba(0, 0, 0, 0.834) 70%, rgba(0, 0, 0, 0.92) 100%);
}

/* Left content above everything */
.authv6-leftInner {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 30px;
    z-index: 2;
}

/* Mobile padding */
@media (max-width: 1023px) {
    .authv6-leftInner {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }
}

.authv6-leftInner h1 {
    font-size: 25px !important;
    font-weight: 700;
}

.authv6-brandRow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .85);
}

.authv6-brandIcon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: #1a1b1f;
    display: grid;
    place-items: center;
}

.authv6-brandIcon svg {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, .9);
}

.authv6-brandName {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.authv6-leftTitle {
    margin: 0;
    font-size: 36px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
}

.authv6-leftDesc {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .55);
}

/* RIGHT FORM AREA */
.authv6-right {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.authv6-cards {
    width: min(460px, 100%);
    border-radius: 22px;
    padding: 26px;
}


.authv6-card {
    width: min(460px, 100%);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(26, 27, 31, .70);
    /* #1a1b1f w/ alpha */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 90px rgba(0, 0, 0, .72), inset 0 1px 0 rgba(255, 255, 255, .06);
    padding: 26px;
}

.authv6-h1 {
    text-align: center;
    margin: 2px 0 6px;
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, .92);
}

.authv6-sub {
    text-align: center;
    margin: 0 0 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, .50);
}

/* flash alert */
.authv6-alert {
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(11, 13, 17, .65);
    color: rgba(255, 255, 255, .80);
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.authv6-alert button {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: rgba(255, 255, 255, .70);
}

.authv6-alert button:hover {
    color: #fff;
}

.authv6-field {
    margin-top: 12px;
}

.authv6-label {
    display: block;
    font-size: 12px;
    margin: 0 0 7px;
    color: rgba(255, 255, 255, .62);
    font-weight: 600;
}

.authv6-input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: #0b0d11;
    /* required */
    padding: 11px 12px;
    outline: none;
    font-size: 13px;
    color: rgba(255, 255, 255, .90);
    transition: border-color .15s ease;
}

.authv6-input::placeholder {
    color: rgba(255, 255, 255, .35);
}

.authv6-input:focus {
    border-color: rgba(255, 255, 255, .22);
}

.authv6-pass {
    position: relative;
}

.authv6-eye {
    position: absolute;
    right: 10px;
    top: 27px;
    width: 40px;
    height: 39px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.authv6-eye:hover {
    border-color: rgba(255, 255, 255, .16);
}

.authv6-eye svg {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, .82);
}

.authv6-help {
    font-size: 11px;
    margin-top: 8px;
    color: rgba(255, 255, 255, .42);
}

/* CUSTOM REMEMBER SWITCH */
.authv6-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

.authv6-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    position: relative;
    z-index: 1;
}

.authv6-row .authv6-link {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.authv6-switch input {
    display: none;
}

.authv6-track {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #0b0d11;
    border: 1px solid rgba(255, 255, 255, .12);
    position: relative;
    transition: .15s ease;
}

.authv6-thumb {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .90);
    position: absolute;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    transition: .15s ease;
}

.authv6-switch input:checked+.authv6-track {
    background: #fff;
    border-color: rgba(255, 255, 255, .28);
}

.authv6-switch input:checked+.authv6-track .authv6-thumb {
    left: 23px;
    background: #0b0d11;
}

/* BUTTON (white) */
.authv6-btn {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 11px 12px;
    margin-top: 14px;
    cursor: pointer;
    background: #fff;
    /* required */
    color: #0b0d11;
    font-weight: 650;
    font-size: 13px;
    box-shadow: 0 18px 56px rgba(0, 0, 0, .55);
    transition: transform .12s ease, filter .12s ease;
}

.authv6-btn:hover {
    filter: brightness(0.98);
}

.authv6-btn:active {
    transform: translateY(1px);
}

.authv6-foot {
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
}

.authv6-link {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
}

.authv6-link:hover {
    text-decoration: underline;
}

/* mobile: left panel becomes top block */
@media (max-width: 1023px) {
    .authv6-left {
        min-height: 260px;
    }

    .authv6-leftInner {
        position: absolute;
        left: 18px;
        right: 18px;
        bottom: 18px;
    }
}


/* Add to existing ui.css */

/* Welcome Cards */
.ui-welcome-cards {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 16px;
    padding: 20px 6px;
}

.ui-welcome-card {
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
    border-radius: 22px;
    padding: 32px 24px;
    text-align: center;
    transition: .15s ease;
}

.ui-welcome-card:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .14);
    transform: translateY(-2px);
}

.ui-welcome-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 20px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .82);
}

.ui-welcome-icon svg {
    width: 24px;
    height: 24px;
}

.ui-welcome-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, .92);
}

.ui-welcome-card p {
    font-size: 13px;
    margin: 0;
    color: rgba(255, 255, 255, .55);
    line-height: 1.5;
}

/* Drop Zone Overlay */
.ui-drop-zone {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(5, 6, 10, .92);
    backdrop-filter: blur(12px);
    display: grid;
    place-items: center;
    animation: fadeIn .2s ease;
}

.ui-drop-content {
    text-align: center;
    padding: 40px;
    border: 2px dashed rgba(255, 255, 255, .25);
    border-radius: 24px;
    background: rgba(255, 255, 255, .04);
    max-width: 500px;
}

.ui-drop-content svg {
    color: rgba(255, 255, 255, .70);
    margin-bottom: 20px;
    animation: bounce 1.5s ease infinite;
}

.ui-drop-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 12px;
    color: rgba(255, 255, 255, .92);
}

.ui-drop-content p {
    font-size: 14px;
    margin: 0;
    color: rgba(255, 255, 255, .60);
    line-height: 1.5;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Empty docs message in sidebar */
.ui-empty-docs {
    text-align: center;
    padding: 28px 16px;
    color: rgba(255, 255, 255, .45);
}

.ui-empty-docs svg {
    opacity: .35;
    margin-bottom: 14px;
}

.ui-empty-docs p {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 6px;
    color: rgba(255, 255, 255, .62);
}

.ui-empty-docs span {
    font-size: 12px;
    color: rgba(255, 255, 255, .40);
}

/* Document number badge */
.ui-doc-num {
    display: inline-block;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .12);
    margin-right: 6px;
    font-weight: 800;
}

/* Chat bubbles - left/right alignment */
.ui-bubble-wrap {
    width: 100%;
    display: flex;
}

.ui-bubble-wrap.user {
    justify-content: flex-end;
}

.ui-bubble-wrap.ai {
    justify-content: flex-start;
}

/* Document Preview Sidebar */
.ui-doc-preview {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%;
    max-width: 800px;
    background: rgba(10, 10, 14, .98);
    border-left: 1px solid rgba(255, 255, 255, .10);
    z-index: 100;
    transform: translateX(100%);
    transition: transform .3s ease;
    backdrop-filter: blur(20px);
}

.ui-doc-preview.open {
    transform: translateX(0);
}

.ui-doc-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .20);
}

.ui-doc-preview-title {
    font-size: 14px;
    font-weight: 800;
    color: rgba(255, 255, 255, .90);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.ui-doc-preview-content {
    height: calc(100% - 60px);
    overflow: auto;
}

.ui-doc-preview-content iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

/* User Profile Sidebar */
.ui-profile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    max-width: 90%;
    background: rgba(10, 10, 14, .98);
    border-left: 1px solid rgba(255, 255, 255, .10);
    z-index: 100;
    transform: translateX(100%);
    transition: transform .3s ease;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
}

.ui-profile-sidebar.open {
    transform: translateX(0);
}

.ui-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .20);
}

.ui-profile-header h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    color: rgba(255, 255, 255, .92);
}

.ui-profile-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
}

.ui-profile-avatar-big {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 2px solid rgba(255, 255, 255, .12);
    display: grid;
    place-items: center;
    font-size: 32px;
    font-weight: 900;
    color: rgba(255, 255, 255, .90);
    margin: 0 auto 20px;
}

.ui-profile-info {
    text-align: center;
    margin-bottom: 30px;
}

.ui-profile-name {
    font-size: 20px;
    font-weight: 800;
    color: rgba(255, 255, 255, .92);
    margin: 0 0 6px;
}

.ui-profile-email {
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
}

.ui-profile-section {
    margin-bottom: 24px;
}

.ui-profile-section-title {
    font-size: 11px;
    letter-spacing: .18em;
    color: rgba(255, 255, 255, .45);
    margin: 0 0 12px;
    text-transform: uppercase;
}

.ui-profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
    border-radius: 12px;
    margin-bottom: 8px;
}

.ui-profile-item-label {
    font-size: 13px;
    color: rgba(255, 255, 255, .70);
}

.ui-profile-item-value {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .92);
}

.ui-profile-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .88);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: .15s ease;
    margin-top: 8px;
}

.ui-profile-btn:hover {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .18);
}

/* Voice blob animation */
.ui-voice-blob {
    border: 2px solid rgba(255, 255, 255, .25) !important;
    box-shadow:
        0 40px 140px rgba(0, 0, 0, .55),
        0 0 0 4px rgba(255, 255, 255, .08),
        inset 0 0 70px rgba(0, 0, 0, .60) !important;
}

.ui-voice-blob.active {
    animation: voicePulse 1.2s ease-in-out infinite;
    border-color: rgba(139, 92, 246, .60) !important;
}

@keyframes voicePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 40px 140px rgba(0, 0, 0, .55),
            0 0 0 4px rgba(139, 92, 246, .20),
            inset 0 0 70px rgba(0, 0, 0, .60);
    }

    50% {
        transform: scale(1.05);
        box-shadow:
            0 40px 160px rgba(0, 0, 0, .65),
            0 0 0 8px rgba(139, 92, 246, .35),
            inset 0 0 80px rgba(0, 0, 0, .70);
    }
}

/* Voice settings dropdown */
.ui-voice-settings {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(10, 10, 14, .95);
    border-radius: 16px;
    padding: 8px;
    backdrop-filter: blur(20px);
}

.ui-voice-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: .15s ease;
    margin-bottom: 4px;
}

.ui-voice-option:hover {
    background: rgba(255, 255, 255, .06);
}

.ui-voice-option-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ui-voice-option-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .82);
}

.ui-voice-option-text {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .88);
}

.ui-voice-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .20);
}

/* Improved suggestions */
.ui-suggest {
    position: relative;
    overflow: hidden;
}

.ui-suggest::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--primary));
    opacity: 0;
    transition: opacity .15s ease;
}

.ui-suggest:hover::before {
    opacity: 1;
}

/* User Section - Always at bottom */
.ui-user {
    flex-shrink: 0;
    margin-top: 0;
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    background: rgba(0, 0, 0, .14);
    cursor: pointer;
    transition: .15s ease;
    position: relative;
    bottom: 0;
    display: flex;
    align-content: center;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.ui-user:hover {
    background: rgba(255, 255, 255, .02);
}

.ui-side-section::-webkit-scrollbar {
    width: 6px;
}

#docList::-webkit-scrollbar {
    width: 6px;
}

#docList::-webkit-scrollbar-track {
    background: transparent;
}

#docList::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .12);
    border-radius: 10px;
}

#docList::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .18);
}

#docList {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .12) transparent;
}

.ui-side-section:has(#docList:not(:empty)) #emptyDocMessage {
    display: none;
}

#docList:empty {
    display: none;
}

.ui-side-section::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .12);
    border-radius: 10px;
}

.ui-side-section::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .18);
}


/* Responsive */
@media (max-width: 740px) {
    .ui-welcome-cards {
        grid-template-columns: 1fr;
    }

    .ui-doc-preview {
        width: 100%;
        max-width: 100%;
    }

    .ui-profile-sidebar {
        width: 100%;
    }
}

/* Overlay backdrop for sidebars */
.ui-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .60);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.ui-sidebar-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

/* Document click target */
.ui-doc {
    cursor: pointer;
}

.ui-doc:hover {
    background: rgba(255, 255, 255, .06);
    transform: translateX(2px);
}


/* === Chat bubble alignment + width (ONLY this part) === */

/* make each message row full width */
.ui-msg {
    width: 100%;
    display: flex;
    align-items: flex-end;
    margin: 10px 0;
    gap: 10px;
}

/* answer left, question right */
.ui-msg-ai {
    justify-content: flex-start;
}

.ui-msg-user {
    justify-content: flex-end;
}

/* bubble width = text width, but capped at 80% */
.ui-msg .ui-bubble {
    width: fit-content;
    max-width: 80%;
    height: auto;
}

/* fallback for browsers that don’t support fit-content well */
@supports not (width: fit-content) {
    .ui-msg .ui-bubble {
        display: inline-block;
    }
}

#voice-slider .voice-hiring.audio-playing {
    border-color: rgba(70, 54, 222, 0.8);
    box-shadow: 0 0 20px rgba(70, 54, 222, 0.3), 0 0 40px rgba(70, 54, 222, 0.2), 0 0 60px rgba(70, 54, 222, 0.1), inset 0 0 20px rgba(70, 54, 222, 0.2);
    animation-duration: 12s;
}

/* Existing ring movement animation */
@keyframes ringMovement {
    0% {
        border-radius: 45% 55% 50% 50% / 45% 55% 45% 55%;
        transform: rotate(0deg) scale(1);
    }

    25% {
        border-radius: 55% 45% 55% 45% / 50% 50% 50% 50%;
        transform: rotate(90deg) scale(1.1);
    }

    50% {
        border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
        transform: rotate(180deg) scale(1);
    }

    75% {
        border-radius: 45% 55% 55% 45% / 45% 55% 45% 55%;
        transform: rotate(270deg) scale(1.1);
    }

    100% {
        border-radius: 45% 55% 50% 50% / 45% 55% 45% 55%;
        transform: rotate(360deg) scale(1);
    }
}

.voice-hiring.wave::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid #fff;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.4;
    animation: wave-pulse 2s infinite;
    pointer-events: none;
}

@keyframes wave-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* You can keep or remove your existing jump animation for "speaking" */
.voice-hiring.speaking {
    animation: jump 0.6s infinite alternate;
}

@keyframes jump {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

.voice-hiring {
    position: absolute;
    width: 200px;
    height: 200px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    filter: blur(1px);
    animation: ringMovement 8s infinite linear;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(255, 255, 255, 0.2), 0 0 60px rgba(255, 255, 255, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
}

@keyframes ringMovement {
    0% {
        border-radius: 45% 55% 50% 50% / 45% 55% 45% 55%;
        transform: rotate(0deg) scale(1);
    }

    25% {
        border-radius: 55% 45% 55% 45% / 50% 50% 50% 50%;
        transform: rotate(90deg) scale(1.1);
    }

    50% {
        border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
        transform: rotate(180deg) scale(1);
    }

    75% {
        border-radius: 45% 55% 55% 45% / 45% 55% 45% 55%;
        transform: rotate(270deg) scale(1.1);
    }

    100% {
        border-radius: 45% 55% 50% 50% / 45% 55% 45% 55%;
        transform: rotate(360deg) scale(1);
    }
}

.voice-hiring.active-recording {
    border-color: rgba(74, 134, 198, 0.627);
    box-shadow: 0 0 20px rgba(74, 134, 198, 0.3), 0 0 40px rgba(74, 134, 198, 0.2), 0 0 60px rgba(74, 134, 198, 0.1), inset 0 0 20px rgba(74, 134, 198, 0.2);
    animation: ringMovement 6s infinite linear;
}

/* Add this new CSS rule */
.voice-hiring.audio-playing {
    border-color: rgba(70, 54, 222, 0.8);
    box-shadow: 0 0 20px rgba(70, 54, 222, 0.3), 0 0 40px rgba(70, 54, 222, 0.2), 0 0 60px rgba(70, 54, 222, 0.1), inset 0 0 20px rgba(70, 54, 222, 0.2);
    animation: ringMovement 6.5s infinite linear;
}

/* .voice-hiring.audio-playing { animation: pulse 1.5s infinite; } */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* =========================
   User menu (like screenshot)
========================= */
/* User Menu */
.ui-user-menu {
    position: fixed;
    z-index: 99951;
    min-width: 280px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgb(22 22 25);
    backdrop-filter: blur(14px);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .55);
    overflow: hidden;
    animation: uiPop .12s ease-out;
}

.ui-user-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px 14px;
}

.ui-user-menu-avatar {
    flex: 0 0 auto;
}

.ui-user-menu-info {
    flex: 1;
    min-width: 0;
}

.ui-user-menu-name {
    font-weight: 900;
    color: rgba(255, 255, 255, .92);
    font-size: 16px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ui-user-menu-mail {
    margin-top: 4px;
    color: rgba(255, 255, 255, .58);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ui-user-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, .10);
    margin: 8px 0;
}

.ui-user-menu-list {
    padding: 6px 6px 8px;
}

.ui-user-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 11px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .92);
    cursor: pointer;
    font-size: 13px;
    /* font-weight: 700; */
    text-align: left;
}

.ui-user-menu-item:hover {
    background: rgba(255, 255, 255, .07);
}

.ui-user-menu-ico {
    width: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .85);
    flex: 0 0 auto;
}

.ui-user-menu-right {
    margin-left: auto;
    opacity: .75;
    display: flex;
    align-items: center;
}

/* Submenu */
.ui-user-submenu {
    position: fixed;
    z-index: 99952;
    width: 206px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgb(22 22 25);
    backdrop-filter: blur(14px);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .55);
    overflow: hidden;
}

.ui-user-submenu .ui-user-menu-list {
    padding: 10px 6px 10px;
}


@keyframes modal-pop {
    from {
        transform: translate(-50%, -50%) scale(0.96);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.animate-modal-pop {
    animation: modal-pop 0.18s ease-out;
}

/* Upgrade Plans Grid */
.ui-upgrade-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.ui-plan-box {
    position: relative;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .03);
    border-radius: 18px;
    padding: 18px 16px;
    transition: .2s ease;
}

.ui-plan-box:hover {
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .05);
}

.ui-plan-box-featured {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .30);
}

.ui-plan-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .80);
    letter-spacing: .05em;
}

.ui-plan-badge-current {
    background: rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .75);
}

.ui-plan-badge-popular {
    background: rgba(255, 255, 255, .92);
    border-color: rgba(255, 255, 255, .95);
    color: #0b0c10;
}

.ui-plan-badge-team {
    background: rgba(59, 130, 246, .12);
    border-color: rgba(59, 130, 246, .25);
    color: rgba(96, 165, 250, .95);
}

.ui-plan-icon-wrap {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .82);
}

.ui-plan-box-title {
    font-size: 18px;
    font-weight: 900;
    color: rgba(255, 255, 255, .92);
    margin: 0 0 10px 0;
    text-align: center;
}

.ui-plan-box-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
    margin-bottom: 18px;
}

.ui-plan-amount {
    font-size: 32px;
    font-weight: 900;
    color: rgba(255, 255, 255, .95);
}

.ui-plan-period {
    font-size: 12px;
    color: rgba(255, 255, 255, .58);
}

.ui-plan-box-features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ui-plan-box-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .80);
    font-size: 12px;
}

.ui-plan-box-features li svg {
    color: #22c55e;
    flex: 0 0 auto;
}

.ui-plan-box-btn {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .92);
    color: #0b0c10;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: .15s ease;
}

.ui-plan-box-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.ui-plan-box-btn-pro {
    background: rgba(255, 255, 255, .92);
    border-color: rgba(255, 255, 255, .95);
}

.ui-plan-box-btn-disabled {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .55);
    cursor: not-allowed;
}

.ui-plan-box-btn-disabled:hover {
    filter: none;
    transform: none;
}

/* Settings Styles */
.ui-settings-body {
    padding: 0 !important;
}

.ui-settings-tabs {
    display: flex;
    gap: 4px;
    padding: 14px 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    overflow-x: auto;
    scrollbar-width: thin;
}

.ui-settings-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .60);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    transition: .15s ease;
    white-space: nowrap;
    flex: 0 0 auto;
}

.ui-settings-tab:hover {
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .80);
}

.ui-settings-tab.active {
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .95);
    border-bottom: 2px solid rgba(255, 255, 255, .95);
}

.ui-settings-content {
    padding: 16px 14px;
}

.ui-settings-panel {
    display: none;
}

.ui-settings-panel.active {
    display: block;
}

.ui-setting-item {
    margin-bottom: 16px;
}

.ui-setting-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 6px;
    letter-spacing: .02em;
}

.ui-setting-select,
.ui-setting-input {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
    border-radius: 11px;
    color: rgba(255, 255, 255, .88);
    font-size: 12px;
    outline: none;
    transition: .15s ease;
}

.ui-setting-select:focus,
.ui-setting-input:focus {
    border-color: rgba(255, 255, 255, .20);
    background: rgba(255, 255, 255, .06);
}

.ui-setting-save-btn {
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .92);
    color: #0b0c10;
    font-weight: 800;
    font-size: 12px;
    border-radius: 11px;
    cursor: pointer;
    transition: .15s ease;
}

.ui-setting-save-btn:hover {
    filter: brightness(1.05);
}

.ui-setting-divider {
    height: 1px;
    background: rgba(255, 255, 255, .08);
    margin: 20px 0;
}

/* Toggle Switch (WHITE) */
.ui-setting-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    gap: 12px;
}

.ui-setting-toggle-item:last-child {
    border-bottom: 0;
}

.ui-setting-toggle-text {
    flex: 1;
    min-width: 0;
}

.ui-setting-toggle-title {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, .88);
    margin-bottom: 3px;
}

.ui-setting-toggle-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, .52);
}

.ui-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex: 0 0 auto;
}

.ui-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ui-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    transition: .2s;
}

.ui-switch-slider:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: rgba(255, 255, 255, .65);
    border-radius: 50%;
    transition: .2s;
}

.ui-switch input:checked+.ui-switch-slider {
    background: rgba(255, 255, 255, .92);
    border-color: rgba(255, 255, 255, .95);
}

.ui-switch input:checked+.ui-switch-slider:before {
    background: #0b0c10;
    transform: translateX(20px);
}

/* Verify Box */
.ui-verify-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .03);
    border-radius: 14px;
}

.ui-verify-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(34, 197, 94, .10);
    border: 1px solid rgba(34, 197, 94, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    flex: 0 0 auto;
}

.ui-verify-text {
    flex: 1;
    min-width: 0;
}

.ui-verify-title {
    font-size: 13px;
    font-weight: 800;
    color: rgba(255, 255, 255, .90);
    margin-bottom: 3px;
}

.ui-verify-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, .58);
}

.ui-verify-btn {
    padding: 8px 14px;
    border: 1px solid rgba(34, 197, 94, .28);
    background: #22c55e;
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    border-radius: 10px;
    cursor: pointer;
    flex: 0 0 auto;
    transition: .15s ease;
    white-space: nowrap;
}

.ui-verify-btn:hover {
    filter: brightness(1.1);
}

/* Danger Zone */
.ui-danger-box {
    padding: 16px;
    border: 1px solid rgba(239, 68, 68, .18);
    background: rgba(239, 68, 68, .04);
    border-radius: 14px;
}

.ui-danger-title {
    font-size: 13px;
    font-weight: 800;
    color: #ef4444;
    margin: 0 0 10px 0;
}

.ui-danger-btn {
    padding: 8px 14px;
    border: 1px solid rgba(239, 68, 68, .25);
    background: rgba(239, 68, 68, .10);
    color: #ef4444;
    font-weight: 800;
    font-size: 11px;
    border-radius: 10px;
    cursor: pointer;
    transition: .15s ease;
}

.ui-danger-btn:hover {
    background: rgba(239, 68, 68, .18);
    border-color: rgba(239, 68, 68, .35);
}

/* Close Button with Icon */
.ui-user-drawer-close {
    height: 36px;
    width: 36px;
    padding: 0;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .75);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .15s ease;
}

.ui-user-drawer-close:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .95);
}

/* Backdrop - clickable to close */
.ui-user-drawer-backdrop {
    cursor: pointer;
}

/* Upgrade Plans - Enhanced Cards */
.ui-upgrade-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.ui-plan-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .02);
    border-radius: 20px;
    padding: 20px;
    transition: .25s ease;
    overflow: hidden;
}

.ui-plan-card:hover {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .04);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

.ui-plan-card-featured {
    border: 1px solid rgba(255, 255, 255, .20);
    background: linear-gradient(135deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .03) 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .30);
}

.ui-plan-card-featured:hover {
    border-color: rgba(255, 255, 255, .30);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

.ui-plan-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, .06) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

.ui-plan-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 9px;
    font-weight: 900;
    padding: 4px 9px;
    border-radius: 999px;
    letter-spacing: .08em;
}

.ui-plan-badge-current {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .70);
}

.ui-plan-badge-popular {
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(255, 255, 255, 1);
    color: #0b0c10;
    box-shadow: 0 4px 16px rgba(255, 255, 255, .25);
}

.ui-plan-badge-team {
    background: rgba(59, 130, 246, .12);
    border: 1px solid rgba(59, 130, 246, .30);
    color: rgba(96, 165, 250, 1);
}

.ui-plan-header {
    text-align: center;
    margin-bottom: 20px;
}

.ui-plan-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .80);
    transition: .25s ease;
}

.ui-plan-card:hover .ui-plan-icon {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .18);
    transform: scale(1.05);
}

.ui-plan-icon-pro {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .20);
    color: rgba(255, 255, 255, .95);
}

.ui-plan-name {
    font-size: 20px;
    font-weight: 900;
    color: rgba(255, 255, 255, .95);
    margin: 0 0 12px 0;
    letter-spacing: -.02em;
}

.ui-plan-price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    margin-bottom: 6px;
    line-height: 1;
}

.ui-plan-currency {
    font-size: 20px;
    font-weight: 800;
    color: rgba(255, 255, 255, .75);
    margin-top: 4px;
}

.ui-plan-amount {
    font-size: 42px;
    font-weight: 900;
    color: rgba(255, 255, 255, .98);
    letter-spacing: -.03em;
}

.ui-plan-period {
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
    margin-top: 20px;
}

.ui-plan-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, .60);
    margin: 0 0 18px 0;
}

.ui-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.ui-plan-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
}

.ui-plan-feature svg {
    color: #22c55e;
    flex: 0 0 auto;
}

.ui-plan-btn {
    width: 100%;
    padding: 11px 16px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .92);
    color: #0b0c10;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: .2s ease;
}

.ui-plan-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, .15);
}

.ui-plan-btn-pro {
    background: rgba(255, 255, 255, .95);
    border-color: rgba(255, 255, 255, .98);
    box-shadow: 0 4px 16px rgba(255, 255, 255, .12);
}

.ui-plan-btn-disabled {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .50);
    cursor: not-allowed;
}

.ui-plan-btn-disabled:hover {
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, .06);
}

/* Settings - Better Forms */
.ui-settings-body {
    padding: 0 !important;
}

.ui-settings-tabs {
    display: flex;
    gap: 6px;
    padding: 14px 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    overflow-x: auto;
    scrollbar-width: thin;
}

.ui-settings-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    transition: .15s ease;
    white-space: nowrap;
    flex: 0 0 auto;
}

.ui-settings-tab:hover {
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .75);
}

.ui-settings-tab.active {
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .98);
    border-bottom: 2px solid rgba(255, 255, 255, .95);
}

.ui-settings-content {
    padding: 14px;
}

.ui-settings-panel {
    display: none;
}

.ui-settings-panel.active {
    display: block;
}

.ui-settings-card {
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .03);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
}

.ui-setting-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.ui-setting-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ui-setting-row:first-child {
    padding-top: 0;
}

.ui-setting-label-wrap {
    min-width: 0;
}

.ui-setting-label-main {
    font-size: 12px;
    font-weight: 800;
    color: rgba(255, 255, 255, .90);
    margin-bottom: 3px;
}

.ui-setting-label-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, .52);
    line-height: 1.3;
}

.ui-setting-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .18);
    border-radius: 12px;
    color: rgba(255, 255, 255, .90);
    font-size: 12px;
    outline: none;
    transition: .15s ease;
}

.ui-setting-input:focus {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(0, 0, 0, .25);
}

.ui-setting-save-btn {
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .92);
    color: #0b0c10;
    font-weight: 800;
    font-size: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: .15s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
}

.ui-setting-save-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 255, 255, .15);
}

/* Toggle Rows */
.ui-setting-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.ui-setting-toggle-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ui-setting-toggle-row:first-child {
    padding-top: 0;
}

/* White Switch */
.ui-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex: 0 0 auto;
}

.ui-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ui-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    transition: .22s ease;
}

.ui-switch-slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: rgba(255, 255, 255, .60);
    border-radius: 50%;
    transition: .22s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

.ui-switch input:checked+.ui-switch-slider {
    background: rgba(255, 255, 255, .95);
    border-color: rgba(255, 255, 255, 1);
}

.ui-switch input:checked+.ui-switch-slider:before {
    background: #0b0c10;
    transform: translateX(20px);
}

/* Verify Card */
.ui-verify-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(34, 197, 94, .18);
    background: linear-gradient(135deg, rgba(34, 197, 94, .08) 0%, rgba(34, 197, 94, .03) 100%);
    border-radius: 16px;
    margin-bottom: 12px;
}

.ui-verify-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    flex: 0 0 auto;
}

.ui-verify-content {
    flex: 1;
    min-width: 0;
}

.ui-verify-title {
    font-size: 13px;
    font-weight: 800;
    color: rgba(255, 255, 255, .92);
    margin-bottom: 4px;
}

.ui-verify-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, .62);
    line-height: 1.4;
}

.ui-verify-btn {
    padding: 9px 16px;
    border: 1px solid rgba(34, 197, 94, .35);
    background: #22c55e;
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    border-radius: 11px;
    cursor: pointer;
    flex: 0 0 auto;
    transition: .15s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ui-verify-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(34, 197, 94, .35);
}

/* Danger Card */
.ui-danger-card {
    padding: 18px;
    border: 1px solid rgba(239, 68, 68, .20);
    background: linear-gradient(135deg, rgba(239, 68, 68, .06) 0%, rgba(239, 68, 68, .02) 100%);
    border-radius: 16px;
}

.ui-danger-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.ui-danger-header svg {
    color: #ef4444;
    flex: 0 0 auto;
    margin-top: 2px;
}

.ui-danger-title {
    font-size: 13px;
    font-weight: 800;
    color: #ef4444;
    margin: 0 0 3px 0;
}

.ui-danger-desc {
    font-size: 11px;
    color: rgba(239, 68, 68, .75);
}

.ui-danger-btn {
    padding: 9px 16px;
    border: 1px solid rgba(239, 68, 68, .30);
    background: rgba(239, 68, 68, .12);
    color: #ef4444;
    font-weight: 800;
    font-size: 11px;
    border-radius: 11px;
    cursor: pointer;
    transition: .15s ease;
}

.ui-danger-btn:hover {
    background: rgba(239, 68, 68, .20);
    border-color: rgba(239, 68, 68, .40);
    transform: translateY(-1px);
}

.costume-card-header-upgrade {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================
   WHITE SPARK CURSOR EFFECT
   ============================================ */
/* ============================================
   WHITE SPARK CURSOR EFFECT - SMALL SHADOWS
   ============================================ */

.spark-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

.spark {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #ffffff, #e8e8e8);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8),
        0 0 8px rgba(255, 255, 255, 0.4);
    animation: sparkFloat 0.6s ease-out forwards;
    opacity: 1;
}

@keyframes sparkFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Welcome Card Hover State */
.ui-welcome-card {
    cursor: pointer !important;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}

.ui-welcome-card.spark-active {
    cursor: none;
}

/* Glow effect on card - smaller shadow */
.ui-welcome-card.spark-active {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.10),
        0 0 17px rgba(255, 255, 255, 0.08);
    animation: cardGlowWhite 0.6s ease-out;
}

@keyframes cardGlowWhite {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.10);
    }

    50% {
        box-shadow: 0 0 17px rgba(255, 255, 255, 0.12),
            0 0 35px rgba(255, 255, 255, 0.10);
    }
}

/* Mini sparks for trail - smaller shadow */
.spark.mini {
    width: 4px;
    height: 4px;
    background: #ffffff;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.7),
        0 0 6px rgba(255, 255, 255, 0.3);
}

/* Large sparks for explosion - smaller shadow */
.spark.large {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #ffffff 0%, #f0f0f0 50%, transparent 100%);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.9),
        0 0 10px rgba(255, 255, 255, 0.5);
}

/* ============================================
   TOAST - BOTTOM POSITION
   ============================================ */

#toast.ui-toast {
    position: absolute;
    top: 10px !important;
    left: 60px !important;
    background: rgba(18, 18, 22, .96);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    padding: 8px 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 48px rgba(0, 0, 0, .55);
    backdrop-filter: blur(12px);
    z-index: 99999;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 5s ease, transform 5s ease;
}

#toast.ui-toast.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(0px);
    pointer-events: none;
}

#toast.ui-toast:not(.hidden) {
    opacity: 1;
    transform: translateX(0%) translateY(0);
}

/* =========================
   Bubble text reveal effects
   - AI: left -> right (slow)
   - User: right -> left
   - AI line-by-line (when .ui-line exists)
   - Typing dots bubble
   ========================= */

/* Base */
.ui-bubble-text {
    display: inline-block;

    -webkit-mask-image: linear-gradient(#000 0 0);
    -webkit-mask-repeat: no-repeat;
    mask-image: linear-gradient(#000 0 0);
    mask-repeat: no-repeat;

    opacity: 0;
    filter: blur(1.2px);
    will-change: mask-size, mask-position, opacity, transform, filter;
}

/* -------------------------
   AI (LEFT -> RIGHT) default
   (works for single-line / no .ui-line)
   ------------------------- */
.ui-msg-ai .ui-bubble-text {
    -webkit-mask-size: 0% 100%;
    -webkit-mask-position: 0 0;
    mask-size: 0% 100%;
    mask-position: 0 0;

    transform: translateX(-3px);
    animation: ai-reveal 2.2s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes ai-reveal {
    0% {
        opacity: 0;
        filter: blur(1.2px);
        transform: translateX(-3px);
        -webkit-mask-size: 0% 100%;
        mask-size: 0% 100%;
    }

    55% {
        opacity: 1;
        filter: blur(.4px);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateX(0);
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
    }
}

/* -------------------------
   USER (RIGHT -> LEFT)
   ------------------------- */
.ui-msg-user .ui-bubble-text {
    -webkit-mask-size: 0% 100%;
    -webkit-mask-position: 100% 0;
    mask-size: 0% 100%;
    mask-position: 100% 0;

    transform: translateX(3px);
    animation: user-reveal 2.2s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes user-reveal {
    0% {
        opacity: 0;
        filter: blur(1.1px);
        transform: translateX(3px);
        -webkit-mask-size: 0% 100%;
        mask-size: 0% 100%;
        -webkit-mask-position: 100% 0;
        mask-position: 100% 0;
    }

    60% {
        opacity: 1;
        filter: blur(.35px);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateX(0);
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-position: 100% 0;
        mask-position: 100% 0;
    }
}

/* =========================
   Bubble text reveal effects
   - AI: left -> right (slower)
   - User: right -> left (a bit faster)
   - AI word-by-word if .ui-w exists
   - AI line-by-line if .ui-line exists
   - Typing dots bubble
   ========================= */

/* ---------- Base ---------- */
.ui-bubble-text {
    display: inline-block;

    -webkit-mask-image: linear-gradient(#000 0 0);
    -webkit-mask-repeat: no-repeat;
    mask-image: linear-gradient(#000 0 0);
    mask-repeat: no-repeat;

    opacity: 0;
    filter: blur(1.2px);
    will-change: mask-size, mask-position, opacity, transform, filter;
}

/* =========================================================
   DEFAULT AI (LEFT -> RIGHT) — SLOWER
   Runs only when there are NO .ui-w and NO .ui-line inside
   ========================================================= */
.ui-msg-ai .ui-bubble-text {
    -webkit-mask-size: 0% 100%;
    -webkit-mask-position: 0 0;
    mask-size: 0% 100%;
    mask-position: 0 0;

    transform: translateX(-3px);
    animation: ai-reveal 1.85s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes ai-reveal {
    0% {
        opacity: 0;
        filter: blur(1.2px);
        transform: translateX(-3px);
        -webkit-mask-size: 0% 100%;
        mask-size: 0% 100%;
    }

    55% {
        opacity: 1;
        filter: blur(.4px);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateX(0);
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
    }
}

/* =========================================================
   USER (RIGHT -> LEFT) — A BIT FASTER THAN AI
   ========================================================= */
.ui-msg-user .ui-bubble-text {
    -webkit-mask-size: 0% 100%;
    -webkit-mask-position: 100% 0;
    mask-size: 0% 100%;
    mask-position: 100% 0;

    transform: translateX(3px);
    animation: user-reveal 1.25s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes user-reveal {
    0% {
        opacity: 0;
        filter: blur(1.1px);
        transform: translateX(3px);
        -webkit-mask-size: 0% 100%;
        mask-size: 0% 100%;
        -webkit-mask-position: 100% 0;
        mask-position: 100% 0;
    }

    60% {
        opacity: 1;
        filter: blur(.35px);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateX(0);
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-position: 100% 0;
        mask-position: 100% 0;
    }
}

/* =========================================================
   AI LINE-BY-LINE (CSS ONLY)
   Works if you wrap lines as .ui-line with --i
   ========================================================= */
.ui-msg-ai .ui-bubble-text:has(.ui-line) {
    opacity: 1;
    filter: none;
    transform: none;

    -webkit-mask-image: none;
    mask-image: none;

    animation: none !important;
}

.ui-msg-ai .ui-bubble-text .ui-line {
    display: block;

    -webkit-mask-image: linear-gradient(#000 0 0);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 0% 100%;
    -webkit-mask-position: 0 0;

    mask-image: linear-gradient(#000 0 0);
    mask-repeat: no-repeat;
    mask-size: 0% 100%;
    mask-position: 0 0;

    opacity: 0;
    filter: blur(1.2px);
    transform: translateX(-3px);

    will-change: mask-size, opacity, transform, filter;

    animation: ai-line-reveal 1.55s cubic-bezier(.16, 1, .3, 1) forwards;
    animation-delay: calc(var(--i) * 0.55s);
}

@keyframes ai-line-reveal {
    0% {
        opacity: 0;
        filter: blur(1.2px);
        transform: translateX(-3px);
        -webkit-mask-size: 0% 100%;
        mask-size: 0% 100%;
    }

    55% {
        opacity: 1;
        filter: blur(.4px);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateX(0);
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
    }
}

/* =========================================================
   AI WORD-BY-WORD (if .ui-w exists)
   This makes it naturally fill first line then second
   ========================================================= */
.ui-msg-ai .ui-bubble-text:has(.ui-w) {
    opacity: 1;
    filter: none;
    transform: none;

    -webkit-mask-image: none;
    mask-image: none;

    animation: none !important;
}

.ui-msg-ai .ui-bubble-text .ui-w {
    display: inline-block;
    white-space: pre;

    opacity: 0;
    filter: blur(1px);
    transform: translateX(-2px);

    animation: ai-word 0.55s cubic-bezier(.16, 1, .3, 1) forwards;
    animation-delay: calc(var(--i) * 0.045s);
    /* ✅ slower, not too fast */
}

@keyframes ai-word {
    0% {
        opacity: 0;
        filter: blur(1px);
        transform: translateX(-2px);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateX(0);
    }
}

/* =========================================================
   Typing bubble (3 dots)
   ========================================================= */
.ui-msg.ui-typing .ui-bubble-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    opacity: 1 !important;
    filter: none !important;
    transform: none !important;

    -webkit-mask-image: none !important;
    mask-image: none !important;
    animation: none !important;
}

.ui-msg.ui-typing .ui-tdot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
    animation: uiTypingDot 1.05s infinite ease-in-out;
}

.ui-msg.ui-typing .ui-tdot:nth-child(2) {
    animation-delay: .14s;
}

.ui-msg.ui-typing .ui-tdot:nth-child(3) {
    animation-delay: .28s;
}

@keyframes uiTypingDot {

    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: .35;
    }

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .ui-bubble-text,
    .ui-msg-ai .ui-bubble-text .ui-line,
    .ui-msg-ai .ui-bubble-text .ui-w {
        animation: none !important;
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;

        -webkit-mask-size: 100% 100% !important;
        mask-size: 100% 100% !important;
    }
}

input:checked+span+.dot {
    transform: translateX(20px);
}

.tab-btn {
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .05);
    padding: .4rem .75rem;
    border-radius: 999px;
    font-size: .75rem;
    color: rgba(255, 255, 255, .75);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, .08);
}

.tab-active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Make native date picker icon visible on dark UI */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: .65;
    cursor: pointer;
}

input[type="date"]:hover::-webkit-calendar-picker-indicator {
    opacity: .9;
}

.ui-btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
}

/* ============================================
   RESPONSIVE STYLES FOR MOBILE DEVICES
   ============================================ */

/* Mobile Menu Button - Hidden by default, shown on mobile */
.ui-mobile-menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .70);
    place-items: center;
    cursor: pointer;
    transition: .15s ease;
}

.ui-mobile-menu-btn:hover {
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .92);
    border-color: rgba(255, 255, 255, .16);
}

/* Mobile Overlay for Sidebar */
.ui-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    z-index: 98;
    opacity: 0;
    transition: opacity .25s ease;
}

.ui-sidebar-overlay.active {
    opacity: 1;
}

/* ============================================
   TABLET BREAKPOINT (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .ui-sidebar {
        width: 280px;
        min-width: 280px;
    }

    .ui-chat-list {
        width: min(850px, 100%);
        padding: 0 20px;
    }

    .ui-composer {
        width: min(850px, calc(100% - 32px));
    }

    .ui-user-drawer {
        width: 380px;
        max-width: calc(100vw - 40px);
    }

    .ui-upgrade-plans {
        flex-direction: column;
        gap: 16px;
    }

    .ui-plan-card {
        width: 100%;
        max-width: 100%;
    }
}

/* ============================================
   MOBILE BREAKPOINT (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Show mobile menu button */
    .ui-mobile-menu-btn {
        display: grid;
    }

    /* Show overlay when sidebar is open */
    .ui-sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .ui-sidebar-overlay.active {
        pointer-events: auto;
    }

    /* App layout fix for mobile */
    .ui-app {
        flex-direction: column;
    }

    /* Sidebar becomes off-canvas */
    .ui-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 85vw;
        max-width: 320px;
        min-width: 280px;
        height: 100vh;
        height: 100dvh;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform .3s cubic-bezier(.4, 0, .2, 1);
        box-shadow: none;
    }

    .ui-sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, .5);
    }

    /* Prevent collapsed state on mobile */
    .ui-sidebar.collapsed {
        width: 85vw;
        max-width: 320px;
        min-width: 280px;
        transform: translateX(-100%);
    }

    .ui-sidebar.collapsed.mobile-open {
        transform: translateX(0);
    }

    .ui-sidebar.collapsed .ui-brand-text,
    .ui-sidebar.collapsed .ui-side-search,
    .ui-sidebar.collapsed .ui-side-title,
    .ui-sidebar.collapsed .ui-docs,
    .ui-sidebar.collapsed .ui-side-upgrade,
    .ui-sidebar.collapsed .ui-user-text {
        display: flex !important;
    }

    .ui-sidebar.collapsed .ui-side-header {
        justify-content: flex-start;
        padding-top: 0;
    }

    .ui-sidebar.collapsed .ui-user {
        justify-content: flex-start;
    }

    /* Main content full width */
    .ui-main {
        width: 100%;
        min-width: 100%;
        flex: 1;
    }

    /* Topbar adjustments */
    .ui-topbar {
        padding: 0 12px;
        gap: 8px;
        height: 56px;
    }

    /* Hide the sidebar toggle (info button) on mobile, use hamburger instead */
    #infoBtn {
        display: none;
    }

    /* Protocol button smaller on mobile */
    .ui-protocol-btn {
        width: auto;
        min-width: 100px;
        padding: 8px 12px;
        padding-right: 32px;
        font-size: 12px;
    }

    /* Chat area full width */
    .ui-chat {
        padding: 0 0 12px;
        height: calc(100% - 56px);
    }

    .ui-chat-list {
        width: 100%;
        padding: 0 12px;
    }

    .ui-chat-scroll {
        padding-top: 12px;
    }

    /* Composer responsive */
    .ui-composer {
        width: calc(100% - 24px);
        margin: 0 12px;
        padding: 8px 12px;
        border-radius: 20px;
        gap: 8px;
    }

    .ui-input-wrap {
        flex: 1;
        min-width: 0;
    }

    .ui-input {
        font-size: 16px; /* Prevent iOS zoom */
        min-height: 24px;
    }

    .ui-right-actions {
        gap: 6px;
        flex-shrink: 0;
    }

    .ui-ico-btn,
    .ui-send-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    /* Hide divider on mobile */
    .ui-divider {
        display: none;
    }

    /* Welcome section responsive */
    .ui-welcome {
        padding: 20px 16px;
    }

    .ui-welcome h1 {
        font-size: 24px;
    }

    .ui-welcome p {
        font-size: 14px;
    }

    /* Welcome cards responsive - single column */
    .ui-welcome-cards {
        display: grid;
        grid-template-columns: 1fr;
        padding: 0 16px;
        gap: 12px;
    }

    .ui-welcome-card {
        padding: 16px 14px;
    }

    .ui-welcome-card h5 {
        font-size: 14px;
    }

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

    .ui-welcome-icon {
        width: 40px;
        height: 40px;
    }

    .ui-welcome-icon svg {
        width: 20px;
        height: 20px;
    }

    /* Suggestion chips responsive */
    .ui-suggest-wrap {
        grid-template-columns: 1fr;
        padding: 0 16px;
        gap: 8px;
    }

    .ui-suggest-chip {
        padding: 12px 14px;
        font-size: 13px;
    }

    /* Drop zone */
    .ui-drop-content h2 {
        font-size: 18px;
    }

    .ui-drop-content p {
        font-size: 13px;
    }

    /* Messages responsive */
    .ui-msg {
        max-width: 92%;
    }

    .ui-bubble {
        max-width: 100%;
        padding: 12px 14px;
        font-size: 14px;
    }

    .ui-avatar-sm {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    /* Drawers full width on mobile */
    .ui-user-drawer {
        width: 100%;
        max-width: 100%;
        right: 0;
        border-radius: 0;
        height: 100vh;
        height: 100dvh;
    }

    .ui-user-drawer-body {
        padding: 16px;
    }

    /* Document preview drawer */
    .ui-doc-drawer {
        width: 100%;
        max-width: 100%;
    }

    /* Plan cards in drawer */
    .ui-upgrade-plans {
        flex-direction: column;
        gap: 14px;
    }

    .ui-plan-card {
        width: 100%;
        padding: 18px;
    }

    .ui-plan-features {
        gap: 8px;
    }

    /* Settings tabs scrollable on mobile */
    .ui-settings-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        padding-bottom: 4px;
    }

    .ui-settings-tabs::-webkit-scrollbar {
        display: none;
    }

    .ui-settings-tab {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 12px;
    }

    /* User menu responsive */
    .ui-user-menu {
        width: calc(100vw - 28px);
        max-width: 300px;
        left: 14px;
        right: auto;
    }

    /* Voice mode */
    .ui-voice-blob {
        width: 160px;
        height: 160px;
    }

    .ui-voice-text {
        font-size: 16px;
    }

    /* Modals */
    .ui-modal-card {
        width: calc(100% - 32px);
        max-width: 380px;
        padding: 20px;
    }

    /* Dropdown menu positioning */
    .ui-dropdown {
        right: 0;
        min-width: 160px;
    }

    .ui-menu {
        min-width: 180px;
    }

    /* Top actions */
    .ui-top-actions {
        gap: 6px;
    }

    /* File chips in composer */
    .ui-pending-files {
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .ui-file-chip {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* ============================================
   SMALL MOBILE BREAKPOINT (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    /* Sidebar takes more space on small phones */
    .ui-sidebar {
        width: 90vw;
        max-width: 300px;
        min-width: 260px;
    }

    .ui-sidebar.collapsed {
        width: 90vw;
        max-width: 300px;
        min-width: 260px;
    }

    /* Brand smaller */
    .ui-brand-title {
        font-size: 16px;
    }

    .ui-brand-icon {
        width: 24px;
        height: 24px;
    }

    /* Topbar compact */
    .ui-topbar {
        height: 50px;
        padding: 0 8px;
    }

    .ui-icon-btn,
    .ui-mobile-menu-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
        border-radius: 10px;
    }

    /* Protocol button even smaller */
    .ui-protocol-btn {
        min-width: 80px;
        padding: 6px 10px;
        padding-right: 28px;
        font-size: 11px;
    }

    .ui-protocol-btn svg {
        right: 8px;
        width: 14px;
        height: 14px;
    }

    /* Chat adjustments */
    .ui-chat {
        height: calc(100% - 50px);
    }

    .ui-chat-list {
        padding: 0 8px;
    }

    /* Composer more compact */
    .ui-composer {
        width: calc(100% - 16px);
        margin: 0 8px;
        padding: 6px 10px;
        gap: 6px;
        border-radius: 18px;
    }

    .ui-ico-btn,
    .ui-send-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        border-radius: 10px;
    }

    .ui-ico-btn svg,
    .ui-send-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Welcome section */
    .ui-welcome {
        padding: 16px 12px;
    }

    .ui-welcome h1 {
        font-size: 20px;
    }

    .ui-welcome p {
        font-size: 13px;
    }

    /* Welcome cards stacked with smaller padding */
    .ui-welcome-cards {
        padding: 0 12px;
        gap: 10px;
    }

    .ui-welcome-card {
        padding: 14px 12px;
    }

    .ui-welcome-card h5 {
        font-size: 13px;
    }

    .ui-welcome-card p {
        font-size: 11px;
        line-height: 1.4;
    }

    .ui-welcome-icon {
        width: 36px;
        height: 36px;
    }

    .ui-welcome-icon svg {
        width: 18px;
        height: 18px;
    }

    /* Suggestion chips */
    .ui-suggest-wrap {
        padding: 0 12px;
    }

    .ui-suggest-chip {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Messages */
    .ui-msg {
        max-width: 95%;
    }

    .ui-bubble {
        padding: 10px 12px;
        font-size: 13px;
        line-height: 1.5;
    }

    .ui-avatar-sm {
        width: 26px;
        height: 26px;
        min-width: 26px;
    }

    /* Drawer adjustments */
    .ui-user-drawer-head {
        padding: 12px 14px;
    }

    .ui-user-drawer-title {
        font-size: 15px;
    }

    .ui-user-drawer-body {
        padding: 12px;
    }

    /* Plan cards even more compact */
    .ui-plan-card {
        padding: 14px;
    }

    .ui-plan-name {
        font-size: 16px;
    }

    .ui-plan-amount {
        font-size: 26px;
    }

    /* Settings compact */
    .ui-settings-card {
        padding: 12px;
    }

    .ui-setting-row {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .ui-setting-input {
        width: 100%;
    }

    /* User section in sidebar */
    .ui-user {
        padding: 10px;
    }

    .ui-avatar {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .ui-user-name {
        font-size: 12px;
    }

    .ui-user-mail {
        font-size: 10px;
    }

    /* Voice mode compact */
    .ui-voice-blob {
        width: 140px;
        height: 140px;
    }

    .ui-voice-text {
        font-size: 14px;
    }

    /* Modal compact */
    .ui-modal-card {
        width: calc(100% - 24px);
        padding: 16px;
    }

    /* Dropdown */
    .ui-dropdown {
        min-width: 150px;
    }

    .ui-drop-item {
        padding: 10px;
        font-size: 12px;
    }

    /* Top actions more compact */
    .ui-top-actions {
        gap: 4px;
    }
}

/* ============================================
   LANDSCAPE MODE ADJUSTMENTS
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .ui-sidebar {
        overflow-y: auto;
    }

    .ui-side-upgrade {
        display: none;
    }

    .ui-voice-blob {
        width: 120px;
        height: 120px;
    }

    .ui-voice-text {
        font-size: 16px;
    }

    .ui-welcome-cards {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ui-welcome-card {
        flex: 1 1 calc(33.333% - 12px);
        min-width: 150px;
    }
}

/* ============================================
   TOUCH DEVICE IMPROVEMENTS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .ui-icon-btn,
    .ui-ico-btn,
    .ui-send-btn,
    .ui-mobile-menu-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .ui-drop-item {
        padding: 12px 14px;
    }

    .ui-user-menu-item {
        padding: 12px 14px;
    }

    .ui-doc {
        padding: 10px 12px;
    }

    .ui-doc-del {
        width: 40px;
        height: 40px;
    }

    /* Better touch feedback instead of hover */
    .ui-icon-btn:hover,
    .ui-ico-btn:hover,
    .ui-drop-item:hover,
    .ui-user-menu-item:hover,
    .ui-mobile-menu-btn:hover {
        background: inherit;
    }

    .ui-icon-btn:active,
    .ui-ico-btn:active,
    .ui-drop-item:active,
    .ui-user-menu-item:active,
    .ui-mobile-menu-btn:active {
        background: rgba(255, 255, 255, .12);
        transform: scale(0.95);
    }

    .ui-welcome-card:active {
        transform: scale(0.98);
    }

    .ui-suggest-chip:active {
        transform: scale(0.98);
    }
}

/* ============================================
   SAFE AREA INSETS (for phones with notches)
   ============================================ */
@supports (padding: env(safe-area-inset-bottom)) {
    @media (max-width: 768px) {
        .ui-composer {
            padding-bottom: calc(8px + env(safe-area-inset-bottom));
            margin-bottom: env(safe-area-inset-bottom);
        }

        .ui-chat {
            padding-bottom: calc(12px + env(safe-area-inset-bottom));
        }

        .ui-sidebar {
            padding-top: env(safe-area-inset-top);
            padding-bottom: env(safe-area-inset-bottom);
        }

        .ui-topbar {
            padding-top: env(safe-area-inset-top);
            height: calc(56px + env(safe-area-inset-top));
        }

        .ui-user-drawer {
            padding-bottom: env(safe-area-inset-bottom);
        }
    }
}

/* ============================================
   PREVENT OVERSCROLL BOUNCE ON IOS
   ============================================ */
@media (max-width: 768px) {
    .ui-app {
        position: fixed;
        inset: 0;
        overflow: hidden;
    }

    .ui-chat-scroll {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .ui-sidebar {
        overscroll-behavior: contain;
    }
}

.ui-drop-success {
  background-color: #3c6300;
  color: white;
  padding: 3px 15px;
  border-radius: 15px;
    font-size: 10px;
    border: 1px solid #192e03;
}