.auth-modal {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / .95);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease
}

.auth-modal.hidden {
    display: none !important
}

.auth-container {
    background: linear-gradient(135deg, #1c1c1c, #2b2b2b);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgb(0 0 0 / .5);
    animation: slideUp 0.4s ease
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0
    }
    to {
        transform: translateY(0);
        opacity: 1
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px
}

.auth-header img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 15px;
    object-fit: cover
}

.auth-header h2 {
    font-size: 28px;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #fff0;
    margin-bottom: 8px
}

.auth-header p {
    color: #888;
    font-size: 14px
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px
}

.auth-form h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #fff
}

.auth-form input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #444;
    background: #1a1a1a;
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s, background 0.3s
}

.auth-form input:focus {
    outline: none;
    border-color: #007bff;
    background: #252525
}

.auth-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgb(0 123 255 / .4)
}

.auth-btn:active {
    transform: translateY(0)
}

.auth-switch {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-top: 10px
}

.auth-switch a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600
}

.auth-switch a:hover {
    text-decoration: underline
}

.auth-error {
    background: rgb(255 77 77 / .1);
    border: 1px solid #ff4d4d;
    border-radius: 10px;
    padding: 12px;
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 15px;
    text-align: center
}

.auth-success {
    background: rgb(76 175 80 / .1);
    border: 1px solid #4caf50;
    border-radius: 10px;
    padding: 12px;
    color: #66bb6a;
    font-size: 14px;
    margin-top: 15px;
    text-align: center
}

.user-info {
    background: #2b2b2b;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.user-info p {
    color: #fff;
    font-size: 13px;
    margin: 0;
    text-align: center;
    word-break: break-word
}

.logout-btn {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: none;
    background: #ff4d4d;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s
}

.logout-btn:hover {
    background: #f33
}

body.light-theme .auth-container {
    background: linear-gradient(135deg, #ffffff, #f4f4f4);
    border: 1px solid #ddd
}

body.light-theme .auth-header h2 {
    -webkit-text-fill-color: #fff0
}

body.light-theme .auth-header p {
    color: #666
}

body.light-theme .auth-form h3 {
    color: #333
}

body.light-theme .auth-form input {
    background: #f9f9f9;
    border-color: #ccc;
    color: #333
}

body.light-theme .auth-form input:focus {
    border-color: #007bff;
    background: #fff
}

body.light-theme .auth-switch {
    color: #666
}

body.light-theme .user-info {
    background: #f0f0f0;
    border-color: #ccc
}

body.light-theme .user-info p {
    color: #333
}

body.light-theme #deleteAccountSection {
    background: rgb(198 40 40 / .05);
    border-color: #d32f2f
}

body.light-theme #deleteAccountSection label {
    color: #c62828
}

body.light-theme #deleteAccountSection p {
    color: #666
}

body.light-theme #deleteAccountSection p strong {
    color: #c62828
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html,
body {
    height: 100%;
    width: 100%;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: linear-gradient(135deg, #1a1a1a, #2b2b2b);
    color: #fff;
    display: flex;
    overflow: hidden
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 260px;
    background: linear-gradient(180deg, #0f0f0f, #1c1c1c);
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: 4px 0 20px rgb(0 0 0 / .5);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    min-height: 40px overflow-x:hidden
}

.sidebar::-webkit-scrollbar {
    width: 6px
}

.sidebar::-webkit-scrollbar-track {
    background: #1c1c1c
}

.sidebar::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #777
}

.sidebar.hidden {
    transform: translateX(-100%)
}

.sidebar h2 {
    color: #fff;
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 10px
}

.sidebar a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    background: #111;
    padding: 1px 3px;
    border-radius: 12px;
    margin: 6px 0;
    text-align: left;
    transition: 0.3s;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0
}

.sidebar-icon {
    width: 15px;
    height: 15px;
    margin-right: 10px;
    flex-shrink: 0;
    filter: grayscale(80%) brightness(70%);
    transition: filter .3 ease
}

.sidebar a:hover {
    background: #ffb86c;
    color: #000
}

.sidebar .footer {
    font-size: .8em;
    text-align: center;
    color: gray;
    margin: top
}

.sidebar p {
    font-size: 17px;
    color: gray;
    text-align: center
}

.sidebar input[type="search"] {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #2b2b2b;
    color: #fff;
    font-size: 14px;
    display: none !important;
    
}

.new-chat-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    padding: 10px 12px;
    background: #111;
    color: #ffb86c;
    border-radius: 12px;
    text-decoration: none;
    overflow: hidden;
    flex-shrink: 0
}

.new-chat-btn::after {
    content: "";
    font-size: 15px;
    color: #000;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease
}

.new-chat-btn:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0)
}

.chats-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    padding: 10px 12px;
    background: #111;
    color: #ffb86c;
    border-radius: 12px;
    text-decoration: none;
    overflow: hidden;
    flex-shrink: 0
}

.chats-btn::after {
    content: "";
    font-size: 15px;
    color: #000;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease
}

.chats-btn:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0)
}

.search-chat-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    padding: 10px 12px;
    background: #111;
    color: #ffb86c;
    border-radius: 12px;
    text-decoration: none;
    overflow: hidden
}

.search-chat-btn::after {
    content: "";
    font-size: 14px;
    color: #000;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease
}

.search-chat-btn:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0)
}

#recentChatsContainer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #333;
    overflow-y: visible;
    max-height: none;
    padding-right: 5px
}

#recentChatsContainer a {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center
}

#recentChatsContainer .chat-title {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 10px
}

.chat-menu-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.2em;
    padding: 0 5px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    z-index: 10
}

.chat-menu-btn:hover {
    color: #fff
}

.chat-menu-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    background: #2b2b2b;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgb(0 0 0 / .4);
    z-index: 2000;
    min-width: 150px;
    padding: 5px 0
}

.chat-menu-popup button {
    display: block;
    width: 100%;
    padding: 8px 15px;
    background: none;
    border: none;
    color: #fff;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s
}

.chat-menu-popup button:hover {
    background: #007bff
}

#recentChatsContainer a:hover {
    background: #2b2b2b;
    color: #fff
}

#recentChatsContainer a[style*="007bff"] {
    background: #007bff;
    color: #fff;
    font-weight: 700
}

#recentChatsContainer p {
    color: #aaa;
    font-size: 12px;
    padding: 10px 0;
    text-align: center
}

#recentChatsContainer::-webkit-scrollbar {
    width: 6px
}

#recentChatsContainer::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px
}

#recentChatsContainer::-webkit-scrollbar-thumb:hover {
    background: #777
}

.toggle-btn {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    z-index: 1100;
    background: none;
    padding: 0;
    box-shadow: 0 0 10px rgb(255 184 108 / .6)
}

.toggle-btn video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%
}

.header {
    background: linear-gradient(90deg, #ffc107, #ff9800);
    padding: 12px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 1.3em;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: "Nunito Sans", sans-serif
}

.header p {
    text-align: right;
    color: #fff;
    font-size: 11px
}

.header video {
    width: 50px;
    height: 30px;
    border-radius: 6px;
    object-fit: cover
}

.chat-box {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #111;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%
}

.msg {
    margin: 8px 0;
    padding: 12px 18px;
    border-radius: 20px;
    max-width: 80%;
    line-height: 1.5;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease;
    align-self: stretch
}

.msg.user {
    background: var(--user-bubble-color, linear-gradient(135deg, #6a11cb, #2575fc));
    align-self: flex-end;
    font-size: 18px;
    color: #fff;
    font-family: "Comic Neue", cursive;
    position: relative
}

.msg.ai {
    background: #fff0;
    align-self: flex-start;
    font-family: "Merriweather", serif;
    font-size: 17px;
    padding: 0;
    border-radius: 0;
    margin: 10px 0;
    width: 100%
}

.typing {
    display: flex;
    gap: 6px
}

.typing span {
    width: 8px;
    height: 8px;
    background: #ffb86c;
    border-radius: 50%;
    opacity: .3;
    animation: blink 1.4s infinite both
}

.typing span:nth-child(2) {
    animation-delay: 0.2s
}

.typing span:nth-child(3) {
    animation-delay: 0.4s
}

@keyframes blink {
    0%,
    80%,
    100% {
        opacity: .3
    }
    40% {
        opacity: 1
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.input-area {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 10px 15px;
    background: rgb(0 0 0 / .7);
    border-top: 1px solid #333
}

.note {
    padding: 8px 10px;
    background: rgb(40 40 40 / .5);
    border-top: 1px solid #333;
    width: 100%
}

.note p {
    text-align: center;
    color: #bbb;
    font-size: 14px;
    margin: 0
}

.input-container {
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    align-items: center;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgb(255 255 255 / .1);
    border: none;
    scrollbar-width: none
}

.input-container::-webkit-scrollbar {
    display: none
}

.input-area textarea {
    flex: 1;
    min-width: 100px;
    padding: 4px 0;
    border: none;
    outline: none;
    font-size: 16px;
    background: #fff0;
    color: #fff;
    margin-left: 0;
    margin-top: 4px;
    resize: none;
    min-height: 20px;
    max-height: 200px;
    overflow-y: auto;
    font-family: "Comic Neue", cursive
}

.web-search-pill,
.learn-pill,
.deep-think-pill {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 15px;
    background: #007bff;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 5px;
    animation: fadeIn 0.3s ease
}

.learn-pill {
    background: #ff9800
}

.deep-think-pill {
    background: #7873f5
}

.web-search-pill.visible,
.learn-pill.visible,
.deep-think-pill.visible {
    display: inline-flex
}

.web-search-pill button,
.learn-pill button,
.deep-think-pill button {
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin-left: 2px;
    line-height: 1
}

.input-area button#actionBtn {
    background: linear-gradient(135deg, #ff6ec4, #7873f5);
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    color: #fff0;
    font-size: 0;
    cursor: pointer;
    align-self: flex-end;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-color 0.3s;
    flex-shrink: 0
}

.input-area button.mic-icon {
    background-image: url(mic_logo.png)
}

.input-area button.send-icon {
    background-image: url(send_logo.png)
}

.input-area button.stop-icon {
    background-image: url(stop_logo.png)
}

.plus-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #333;
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
    margin-bottom: 3px
}

.plus-btn:hover {
    background: #444;
    transform: rotate(90deg)
}

.slide-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1c1c1c;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -5px 20px rgb(0 0 0 / .5);
    padding: 20px;
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(.25, 1, .5, 1);
    transform: translateY(0)
}

.slide-menu.hidden {
    transform: translateY(100%);
    display: block !important
}

.slide-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 18px;
    color: #fff
}

.slide-menu-header button {
    background: none;
    border: none;
    color: #aaa;
    font-size: 20px;
    cursor: pointer
}

.slide-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px
}

.menu-btn {
    width: 100%;
    background: #2b2b2b;
    border: 1px solid #333;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease
}

.menu-btn:hover:not(.disabled) {
    background: #3c3c3c
}

.menu-btn div {
    display: flex;
    flex-direction: column
}

.menu-btn b {
    font-size: 14px;
    color: #fff
}

.menu-btn span {
    font-size: 11px;
    color: #888;
    margin-top: 2px
}

.pre {
    position: relative;
    background: #1e1e1e;
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    overflow-x: auto;
    margin-top: -1px;
    margin-bottom: 15px
}

.copy-btn {
    top: 8px;
    right: 8px;
    background: rgb(255 255 255 / .1);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px
}

.copy-btn:hover {
    background: rgb(255 255 255 / .25)
}

.placeholder {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25px;
    color: #aaa;
    text-align: center;
    opacity: .85;
    animation: fadeIn 0.8s ease;
    font-family: "Merriweather", serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 90%;
    max-width: 800px;
    z-index: 0
}

.placeholder img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: cover
}

.placeholder-text {
    font-size: 1.2em;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #fff0
}

.reply-bubble {
    position: absolute;
    background: #000;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 9999;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgb(0 0 0 / .5);
    transition: opacity 0.2s
}

.reply-preview {
    background: rgb(40 40 40 / .95);
    border-radius: 10px;
    padding: 10px 15px;
    margin: 0 10px 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgb(0 0 0 / .3);
    border: 1px solid #333
}

.reply-preview span {
    font-size: 14px;
    color: #eee;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.close-reply-btn {
    background: #fff0;
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0 4px
}

.close-reply-btn:hover {
    color: #fff
}

.quick-tools {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 0;
    width: 100%
}

.quick-tools button {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgb(255 255 255 / .2);
    background: rgb(255 255 255 / .1);
    backdrop-filter: blur(5px);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease
}

.quick-tools button:hover {
    background: rgb(255 255 255 / .2);
    transform: translateY(-2px)
}

.suggestions {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap
}

.suggestions button {
    padding: 6px 10px;
    border-radius: 6px;
    background: #f4f4f4;
    border: none;
    cursor: pointer;
    font-size: 12px
}

.cancel-suggestions {
    margin-top: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    border: none;
    background: #eee;
    cursor: pointer;
    font-size: 13px
}

body.light-theme {
    background: linear-gradient(135deg, #f4f4f4, #ffffff);
    color: #000
}

body.light-theme .sidebar {
    background: #fff;
    box-shadow: 4px 0 20px rgb(0 0 0 / .1)
}

body.light-theme .sidebar input[type="search"] {
    background: #fff;
    color: #000;
    border: 1px solid #ccc
}

body.light-theme .sidebar a {
    background: #fff;
    color: #000;
    box-shadow: 0 1px 3px rgb(0 0 0 / .1)
}

body.light-theme .sidebar a:hover {
    background: #007bff;
    color: #fff
}

body.light-theme .chat-box {
    background: #fcfcfc
}

body.light-theme .msg.user {
    background: var(--user-bubble-color-light, #007bff);
    color: #fff
}

body.light-theme .msg.ai {
    color: #222
}

body.light-theme .input-area {
    background: rgb(255 255 255 / .8);
    border-top: 1px solid #ddd
}

body.light-theme .input-container {
    background: rgb(200 200 200 / .4)
}

body.light-theme .input-area textarea {
    color: #000
}

body.light-theme .placeholder {
    color: #555
}

body.light-theme pre {
    background: #e0e0e0;
    color: #333
}

body.light-theme .copy-btn {
    background: #fff;
    color: #000
}

body.light-theme .copy-btn:hover {
    background: rgb(0 0 0 / .25)
}

body.light-theme .note {
    background: rgb(230 230 230 / .8);
    border-top: 1px solid #ddd
}

body.light-theme .note p {
    color: #555
}

body.light-theme .slide-menu {
    background: #fff;
    box-shadow: 0 -5px 20px rgb(0 0 0 / .1)
}

body.light-theme .slide-menu-header {
    color: #333
}

body.light-theme .menu-btn {
    background: #f9f9f9;
    border-color: #eee
}

body.light-theme .menu-btn b {
    color: #333
}

body.light-theme .quick-tools button {
    background: rgb(0 0 0 / .05);
    border: 1px solid rgb(0 0 0 / .1);
    color: #333
}

body.light-theme .quick-tools button:hover {
    background: rgb(0 0 0 / .1)
}

body.light-theme .plus-btn {
    background: #e0e0e0;
    color: #333
}

body.light-theme .plus-btn:hover {
    background: #d0d0d0
}

#settingsModal button.active-theme {
    border: 2px solid #007bff !important;
    background: #007bff !important;
    color: white !important;
    font-weight: 700
}

.bubble-color-option.active-color {
    border: 3px solid white !important;
    box-shadow: 0 0 0 2px #007bff !important;
    transform: scale(1.1)
}

.minimal-ads {
    margin: 15px 0;
    overflow: hidden;
    width: 100%;
    height: 30px;
    background: #2b2b2b;
    border-radius: 8px;
    box-shadow: inset 0 0 5px rgb(0 0 0 / .5);
    display: flex;
    align-items: center
}

.sidebar.hidden .minimal-ads {
    opacity: 0
}

.ads-track {
    display: flex;
    white-space: nowrap;
    animation: scrollAds 15s linear infinite;
    padding-left: 100%
}

.ad-item {
    padding: 0 20px;
    font-size: .85em;
    color: gold;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 600;
    line-height: 30px;
    text-shadow: 0 0 2px rgb(255 215 0 / .4)
}

@keyframes scrollAds {
    0% {
        transform: translateX(0%)
    }
    100% {
        transform: translateX(-100%)
    }
}

body.light-theme .minimal-ads {
    background: #e6e6e6;
    box-shadow: inset 0 0 3px rgb(0 0 0 / .1)
}

body.light-theme .ad-item {
    color: #333;
    text-shadow: none
}

**TABLE_STYLES** .table-container-wrapper {
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    box-shadow: 0 4px 8px rgb(0 0 0 / .2);
    max-width: 100%;
    overflow-x: auto
}

.table-container-wrapper table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
    background: #111
}

.table-container-wrapper table th,
.table-container-wrapper table td {
    padding: 10px 12px;
    border: 1px solid #333;
    text-align: left;
    vertical-align: top;
    color: #fff
}

.table-container-wrapper table th {
    background: #2b2b2b;
    font-weight: 700;
    color: #ffc107;
    border-bottom: 2px solid #ffc107
}

body.light-theme .table-container-wrapper {
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgb(0 0 0 / .1)
}

body.light-theme .table-container-wrapper table {
    background: #fff
}

body.light-theme .table-container-wrapper table th,
body.light-theme .table-container-wrapper table td {
    border: 1px solid #eee;
    color: #333
}

body.light-theme .table-container-wrapper table th {
    background: #f0f0f0;
    color: #007bff;
    border-bottom: 2px solid #007bff
}

body.light-theme .sidebar-icon {
    filter: brightness(0)
}

body.light-theme .sidebar h2 {
    color: #000
}

body.light-theme #recentChatsContainer a {
    background-color: #fff;
    color: #fff
}

.spotify-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 15px;
    background: #1db954;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    animation: fadeIn 0.3s ease
}

.spotify-pill button {
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
    padding: 0 0 1px 0;
    margin-left: 2px;
    opacity: .8
}

.spotify-table-wrapper {
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1db954;
    box-shadow: 0 4px 15px rgb(29 185 84 / .4);
    max-width: 100%;
    overflow-x: auto;
    background: #121212
}

.spotify-table-wrapper table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
    background: #121212;
    color: #fff
}

.spotify-table-wrapper table th,
.spotify-table-wrapper table td {
    padding: 12px 16px;
    border: none;
    text-align: left;
    vertical-align: middle
}

.spotify-table-wrapper table th {
    background: #1db954;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px
}

.spotify-table-wrapper table tr:nth-child(even) {
    background: #181818
}

.spotify-table-wrapper table tr:hover {
    background: #282828
}

.spotify-action-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border: none;
    border-radius: 25px;
    background: #1db954;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    margin-top: 15px
}

.spotify-action-button:hover {
    background: #28e06a;
    transform: translateY(-1px)
}

.deep-think-indicator {
    position: absolute;
    top: -10px;
    right: 15px;
    background: #7873f5;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgb(0 0 0 / .3);
    pointer-events: none;
    white-space: nowrap;
    z-index: 10
}

.settings-modal-fullscreen {
    display: none;
    position: fixed;
    inset: 0;
    background: #111;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease
}

.settings-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 1600px;
    background: #1c1c1c
}

.settings-sidebar-nav {
    width: 300px;
    background: #151515;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: 1px solid #333
}

.settings-sidebar-nav h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #fff;
    padding-left: 10px
}

.settings-tab {
    padding: 12px 15px;
    text-align: left;
    background: #fff0;
    border: none;
    color: #aaa;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease
}

.settings-tab:hover {
    background: #252525;
    color: #fff
}

.settings-tab.active {
    background: #007bff;
    color: #fff;
    font-weight: 600
}

.settings-tab.danger {
    color: #ff6c6c
}

.settings-tab.danger:hover {
    background: rgb(255 108 108 / .1)
}

.close-settings-btn {
    padding: 12px;
    background: #333;
    border: none;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s
}

.close-settings-btn:hover {
    background: #444
}

.settings-content-area {
    flex: 1;
    padding: 50px;
    overflow-y: auto
}

.settings-section {
    display: none;
    max-width: 800px;
    animation: fadeIn 0.3s ease
}

.settings-section.active {
    display: block
}

.settings-section h3 {
    font-size: 28px;
    margin-bottom: 5px;
    color: #fff
}

.section-desc {
    color: #888;
    margin-bottom: 30px;
    font-size: 16px
}

.setting-item {
    margin-bottom: 30px;
    padding: 20px;
    background: #252525;
    border-radius: 12px;
    border: 1px solid #333
}

.setting-item label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 18px
}

.setting-item input[type="text"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #1a1a1a;
    color: #fff;
    font-size: 16px
}

.setting-item .hint {
    color: #777;
    font-size: 13px;
    margin-top: 8px
}

.color-options-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap
}

.theme-switcher {
    display: flex;
    gap: 10px
}

.theme-switcher button {
    flex: 1;
    padding: 15px;
    background: #333;
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s
}

.theme-switcher button:hover {
    background: #444
}

.danger-zone {
    border-color: #ff4d4d;
    background: rgb(255 77 77 / .05)
}

.danger-btn {
    margin-top: 15px;
    padding: 12px 20px;
    background: #d9534f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px
}

.danger-btn:hover {
    background: #c9302c
}

body.light-theme .settings-wrapper,
body.light-theme .settings-sidebar-nav {
    background: #f9f9f9;
    color: #333
}

body.light-theme .settings-sidebar-nav {
    border-right: 1px solid #ddd
}

body.light-theme .settings-sidebar-nav h2 {
    color: #333
}

body.light-theme .setting-item {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgb(0 0 0 / .05)
}

body.light-theme .settings-section h3 {
    color: #333
}

body.light-theme .setting-item input[type="text"] {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ccc
}

body.light-theme .close-settings-btn {
    background: #e0e0e0;
    color: #333
}

body.light-theme .theme-switcher button {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ccc
}

body.light-theme .settings-tab {
    color: #555
}

body.light-theme .settings-tab:hover {
    background: #eee
}

.code-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / .9);
    z-index: 20000;
    display: flex;
    flex-direction: column;
    padding: 20px
}

.code-preview-modal.hidden {
    display: none
}

.code-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222;
    padding: 15px 20px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: 1px solid #333
}

.code-preview-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px
}

.code-preview-header button {
    background: #444;
    border: none;
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer
}

.code-preview-header button:hover {
    background: #666
}

.code-preview-body {
    flex: 1;
    background: #fff;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    overflow: hidden
}

#previewFrame {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff
}

.preview-btn {
    background: #28a745 !important;
    color: white !important
}

.preview-btn:hover {
    background: #218838 !important
}

.chat-image-wrapper {
    margin: 12px 0;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgb(0 0 0 / .2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    max-width: 100%;
    background-color: #000
}

.chat-image-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgb(0 0 0 / .3)
}

.chat-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    cursor: zoom-in;
    object-fit: cover
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgb(0 0 0 / .8), transparent);
    color: #fff;
    padding: 20px 10px 10px 10px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: center
}

.chat-image-wrapper:hover .image-caption {
    opacity: 1
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0 0 0 / .95);
    animation: fadeIn 0.3s ease;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.lightbox-modal.active {
    display: flex
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgb(255 255 255 / .1);
    animation: zoomIn 0.3s ease
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: 700;
    transition: 0.3s;
    cursor: pointer;
    z-index: 100001
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: auto;
    font-family: "Nunito Sans", sans-serif
}

body.light-theme .chat-image-wrapper {
    box-shadow: 0 4px 15px rgb(0 0 0 / .1)
}

body.light-theme .lightbox-modal {
    background-color: rgb(255 255 255 / .95)
}

body.light-theme .lightbox-caption {
    color: #333
}

body.light-theme .lightbox-close {
    color: #333
}

@keyframes zoomIn {
    from {
        transform: scale(.8);
        opacity: 0
    }
    to {
        transform: scale(1);
        opacity: 1
    }
}

.explore-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle
}

.pill-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle
}

.settings-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle
}

.settings-tab {
    display: flex;
    align-items: center;
    justify-content: flex-start
}

.button-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle
}

.danger-btn {
    display: flex;
    align-items: center;
    justify-content: center
}

.modal-icon {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    vertical-align: middle
}

.code-preview-header h3 {
    display: flex;
    align-items: center;
    margin: 0
}

.custom-model-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    margin-right: 6px;
    z-index: 1500
}

.model-selected {
    width: 40px;
    height: 40px;
    background: #2b2b2b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #444;
    transition: all 0.2s ease
}

.model-selected:hover {
    background: #444;
    transform: scale(1.05)
}

.model-selected img {
    width: 22px;
    height: 22px;
    object-fit: contain
}

.model-menu {
    position: absolute;
    bottom: 110%;
    right: 0;
    width: 260px;
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgb(0 0 0 / .5);
    padding: 8px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: opacity 0.2s, transform 0.2s
}

.model-menu.hidden {
    display: none
}

.menu-header {
    font-size: 11px;
    color: #888;
    padding: 4px 10px;
    margin-bottom: 4px;
    font-weight: 600
}

.model-option {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative
}

.model-option:hover {
    background: #333
}

.model-option.disabled {
    opacity: .5;
    pointer-events: none;
    filter: grayscale(100%)
}

.model-option.active {
    background: #333
}

.model-option.active .opt-check {
    display: block
}

.opt-icon img {
    width: 24px;
    height: 24px;
    margin-right: 12px
}

.opt-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1
}

.opt-info b {
    font-size: 14px;
    color: #fff;
    margin-bottom: 2px
}

.opt-info span {
    font-size: 10px;
    color: #aaa
}

.opt-check {
    color: #6a5acd;
    font-size: 18px;
    font-weight: 700;
    display: none
}

.limit-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px !important;
    font-weight: 600;
    margin-top: 2px;
    display: inline-block;
    color: #4caf50 !important
}

.limit-badge.loading {
    color: #ffc107 !important
}

.limit-badge.reached {
    color: #f44336 !important
}

body.light-theme .model-selected {
    background: #f0f0f0;
    border: 1px solid #ccc
}

body.light-theme .model-selected:hover {
    background: #e0e0e0
}

body.light-theme .model-menu {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 5px 20px rgb(0 0 0 / .1)
}

body.light-theme .model-option:hover {
    background: #f5f5f5
}

body.light-theme .opt-info b {
    color: #333
}

body.light-theme .opt-info span {
    color: #777
}

body.light-theme .menu-header {
    color: #555
}

#chat-view-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    height: 100%
}

#chat-view-container.hidden {
    display: none
}

#news-view-container {
    display: none;
    flex: 1;
    overflow-y: auto;
    background: #111;
    padding: 20px;
    animation: fadeIn 0.3s ease
}

#news-view-container.active {
    display: block
}

.news-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333
}

.news-header h2 {
    font-size: 24px;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #fff0;
    font-family: "Nunito Sans", sans-serif
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px
}

.news-card {
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgb(0 0 0 / .5);
    border-color: #555
}

.news-image {
    height: 140px;
    background: #2b2b2b;
    position: relative;
    overflow: hidden
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .8;
    transition: opacity 0.3s
}

.news-card:hover .news-image img {
    opacity: 1
}

.news-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgb(0 123 255 / .9);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase
}

.news-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column
}

.news-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
    font-family: "Merriweather", serif
}

.news-snippet {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 15px;
    flex: 1
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #666;
    border-top: 1px solid #333;
    padding-top: 10px
}

body.light-theme #news-view-container {
    background: #fcfcfc
}

body.light-theme .news-card {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgb(0 0 0 / .05)
}

body.light-theme .news-title {
    color: #222
}

body.light-theme .news-snippet {
    color: #666
}

body.light-theme .news-header {
    border-bottom: 1px solid #ddd
}

.bottom-nav-container {
    background: #111;
    border-top: 1px solid #333;
    padding: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    z-index: 100
}

.nav-tabs {
    display: flex;
    width: 100%;
    max-width: 500px;
    position: relative
}

.nav-tab {
    flex: 1;
    padding: 12px 0;
    background: #fff0;
    border: none;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: color 0.3s;
    position: relative
}

.nav-tab svg {
    width: 20px;
    height: 20px;
    fill: currentColor
}

.nav-tab:hover {
    color: #aaa
}

.nav-tab.active {
    color: #ffb86c
}

.nav-tab.active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #ffb86c;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px #ffb86c
}

body.light-theme .bottom-nav-container {
    background: #fff;
    border-top: 1px solid #ddd
}

body.light-theme .nav-tab {
    color: #999
}

body.light-theme .nav-tab.active {
    color: #007bff
}

body.light-theme .nav-tab.active::after {
    background: #007bff;
    box-shadow: 0 2px 8px rgb(0 123 255 / .4)
}

.image-input-section {
    width: 100%
}

.image-btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px
}

.img-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #2b2b2b;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 20px 10px;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s, transform 0.2s;
    gap: 8px;
    height: 100px
}

.img-action-btn:hover {
    background: #3c3c3c;
    transform: translateY(-2px);
    border-color: #007bff
}

.img-action-btn span {
    font-weight: 600;
    font-size: 14px
}

.image-preview-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    border-radius: 15px;
    background: #333;
    border: 1px solid #555;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    margin-right: 5px;
    margin-bottom: 2px;
    animation: fadeIn 0.3s ease;
    flex-shrink: 0
}

.image-preview-pill img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #fff
}

.image-preview-pill button {
    background: #ff4d4d;
    border: none;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px
}

.image-preview-pill button:hover {
    background: red
}

body.light-theme .img-action-btn {
    background: #f0f0f0;
    border-color: #ccc;
    color: #333
}

body.light-theme .img-action-btn:hover {
    background: #e0e0e0
}

body.light-theme .image-preview-pill {
    background: #e0e0e0;
    border-color: #ccc;
    color: #333
}

width:100%;
height:100%;
object-fit:cover;
border-radius:50%
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%
}

.header {
    background: linear-gradient(90deg, #ffc107, #ff9800);
    padding: 12px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 1.3em;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: "Nunito Sans", sans-serif
}

.header p {
    text-align: right;
    color: #fff;
    font-size: 11px
}

.header video {
    width: 50px;
    height: 30px;
    border-radius: 6px;
    object-fit: cover
}

.chat-box {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #111;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%
}

.msg {
    margin: 8px 0;
    padding: 12px 18px;
    border-radius: 20px;
    max-width: 80%;
    line-height: 1.5;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease;
    align-self: stretch
}

.msg.user {
    background: var(--user-bubble-color, linear-gradient(135deg, #6a11cb, #2575fc));
    align-self: flex-end;
    font-size: 18px;
    color: #fff;
    font-family: "Comic Neue", cursive;
    position: relative
}

.msg.ai {
    background: #fff0;
    align-self: flex-start;
    font-family: "Merriweather", serif;
    font-size: 17px;
    padding: 0;
    border-radius: 0;
    margin: 10px 0;
    width: 100%
}

.typing {
    display: flex;
    gap: 6px
}

.typing span {
    width: 8px;
    height: 8px;
    background: #ffb86c;
    border-radius: 50%;
    opacity: .3;
    animation: blink 1.4s infinite both
}

.typing span:nth-child(2) {
    animation-delay: 0.2s
}

.typing span:nth-child(3) {
    animation-delay: 0.4s
}

@keyframes blink {
    0%,
    80%,
    100% {
        opacity: .3
    }
    40% {
        opacity: 1
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.input-area {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 10px 15px;
    background: rgb(0 0 0 / .7);
    border-top: 1px solid #333
}

.note {
    padding: 8px 10px;
    background: rgb(40 40 40 / .5);
    border-top: 1px solid #333;
    width: 100%
}

.note p {
    text-align: center;
    color: #bbb;
    font-size: 11px;
    margin: 0
}

.note a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 500;
}

.note a:hover {
  color: #e0e0e0;
}



.input-container {
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    align-items: center;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgb(255 255 255 / .1);
    border: none;
    scrollbar-width: none
}

.input-container::-webkit-scrollbar {
    display: none
}

.input-area textarea {
    flex: 1;
    min-width: 100px;
    padding: 4px 0;
    border: none;
    outline: none;
    font-size: 16px;
    background: #fff0;
    color: #fff;
    margin-left: 0;
    margin-top: 4px;
    resize: none;
    min-height: 20px;
    max-height: 200px;
    overflow-y: auto;
    font-family: "Comic Neue", cursive
}

.web-search-pill,
.learn-pill,
.deep-think-pill {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 15px;
    background: #007bff;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 5px;
    animation: fadeIn 0.3s ease
}

.learn-pill {
    background: #ff9800
}

.deep-think-pill {
    background: #7873f5
}

.web-search-pill.visible,
.learn-pill.visible,
.deep-think-pill.visible {
    display: inline-flex
}

.web-search-pill button,
.learn-pill button,
.deep-think-pill button {
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin-left: 2px;
    line-height: 1
}

.input-area button#actionBtn {
    background: linear-gradient(135deg, #ff6ec4, #7873f5);
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    color: #fff0;
    font-size: 0;
    cursor: pointer;
    align-self: flex-end;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-color 0.3s;
    flex-shrink: 0
}

.input-area button.mic-icon {
    background-image: url(mic_logo.png)
}

.input-area button.send-icon {
    background-image: url(send_logo.png)
}

.input-area button.stop-icon {
    background-image: url(stop_logo.png)
}

.plus-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #333;
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
    margin-bottom: 3px
}

.plus-btn:hover {
    background: #444;
    transform: rotate(90deg)
}

.slide-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1c1c1c;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -5px 20px rgb(0 0 0 / .5);
    padding: 20px;
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(.25, 1, .5, 1);
    transform: translateY(0)
}

.slide-menu.hidden {
    transform: translateY(100%);
    display: block !important
}

.slide-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 18px;
    color: #fff
}

.slide-menu-header button {
    background: none;
    border: none;
    color: #aaa;
    font-size: 20px;
    cursor: pointer
}

.slide-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px
}

.menu-btn {
    width: 100%;
    background: #2b2b2b;
    border: 1px solid #333;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease
}

.menu-btn:hover:not(.disabled) {
    background: #3c3c3c
}

.menu-btn div {
    display: flex;
    flex-direction: column
}

.menu-btn b {
    font-size: 14px;
    color: #fff
}

.menu-btn span {
    font-size: 11px;
    color: #888;
    margin-top: 2px
}

.pre {
    position: relative;
    background: #1e1e1e;
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    overflow-x: auto;
    margin-top: -1px;
    margin-bottom: 15px
}

.copy-btn {
    top: 8px;
    right: 8px;
    background: rgb(255 255 255 / .1);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px
}

.copy-btn:hover {
    background: rgb(255 255 255 / .25)
}

.placeholder {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25px;
    color: #aaa;
    text-align: center;
    opacity: .85;
    animation: fadeIn 0.8s ease;
    font-family: "Merriweather", serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 90%;
    max-width: 800px;
    z-index: 0
}

.placeholder img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: cover
}

.placeholder-text {
    font-size: 1.2em;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #fff0
}

.reply-bubble {
    position: absolute;
    background: #000;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 9999;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgb(0 0 0 / .5);
    transition: opacity 0.2s
}

.reply-preview {
    background: rgb(40 40 40 / .95);
    border-radius: 10px;
    padding: 10px 15px;
    margin: 0 10px 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgb(0 0 0 / .3);
    border: 1px solid #333
}

.reply-preview span {
    font-size: 14px;
    color: #eee;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.close-reply-btn {
    background: #fff0;
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0 4px
}

.close-reply-btn:hover {
    color: #fff
}

.quick-tools {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 0;
    width: 100%
}

.quick-tools button {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgb(255 255 255 / .2);
    background: rgb(255 255 255 / .1);
    backdrop-filter: blur(5px);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease
}

.quick-tools button:hover {
    background: rgb(255 255 255 / .2);
    transform: translateY(-2px)
}

.suggestions {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap
}

.suggestions button {
    padding: 6px 10px;
    border-radius: 6px;
    background: #f4f4f4;
    border: none;
    cursor: pointer;
    font-size: 12px
}

.cancel-suggestions {
    margin-top: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    border: none;
    background: #eee;
    cursor: pointer;
    font-size: 13px
}

body.light-theme {
    background: linear-gradient(135deg, #f4f4f4, #ffffff);
    color: #000
}

body.light-theme .sidebar {
    background: #fff;
    box-shadow: 4px 0 20px rgb(0 0 0 / .1)
}

body.light-theme .sidebar input[type="search"] {
    background: #fff;
    color: #000;
    border: 1px solid #ccc
}

body.light-theme .sidebar a {
    background: #fff;
    color: #000;
    box-shadow: 0 1px 3px rgb(0 0 0 / .1)
}

body.light-theme .sidebar a:hover {
    background: #007bff;
    color: #fff
}

body.light-theme .chat-box {
    background: #fcfcfc
}

body.light-theme .msg.user {
    background: var(--user-bubble-color-light, #007bff);
    color: #fff
}

body.light-theme .msg.ai {
    color: #222
}

body.light-theme .input-area {
    background: rgb(255 255 255 / .8);
    border-top: 1px solid #ddd
}

body.light-theme .input-container {
    background: rgb(200 200 200 / .4)
}

body.light-theme .input-area textarea {
    color: #000
}

body.light-theme .placeholder {
    color: #555
}

body.light-theme pre {
    background: #e0e0e0;
    color: #333
}

body.light-theme .copy-btn {
    background: #fff;
    color: #000
}

body.light-theme .copy-btn:hover {
    background: rgb(0 0 0 / .25)
}

body.light-theme .note {
    background: rgb(230 230 230 / .8);
    border-top: 1px solid #ddd
}

body.light-theme .note p {
    color: #555
}

body.light-theme .note a {
  color: #000000;
  text-decoration: underline;
  font-weight: 500;
}

body.light-theme .note a:hover {
  color: #e0e0e0;
}

body.light-theme .slide-menu {
    background: #fff;
    box-shadow: 0 -5px 20px rgb(0 0 0 / .1)
}

body.light-theme .slide-menu-header {
    color: #333
}

body.light-theme .menu-btn {
    background: #f9f9f9;
    border-color: #eee
}

body.light-theme .menu-btn b {
    color: #333
}

body.light-theme .quick-tools button {
    background: rgb(0 0 0 / .05);
    border: 1px solid rgb(0 0 0 / .1);
    color: #333
}

body.light-theme .quick-tools button:hover {
    background: rgb(0 0 0 / .1)
}

body.light-theme .plus-btn {
    background: #e0e0e0;
    color: #333
}

body.light-theme .plus-btn:hover {
    background: #d0d0d0
}

#settingsModal button.active-theme {
    border: 2px solid #007bff !important;
    background: #007bff !important;
    color: white !important;
    font-weight: 700
}

.bubble-color-option.active-color {
    border: 3px solid white !important;
    box-shadow: 0 0 0 2px #007bff !important;
    transform: scale(1.1)
}

.minimal-ads {
    margin: 15px 0;
    overflow: hidden;
    width: 100%;
    height: 30px;
    background: #2b2b2b;
    border-radius: 8px;
    box-shadow: inset 0 0 5px rgb(0 0 0 / .5);
    display: flex;
    align-items: center
}

.sidebar.hidden .minimal-ads {
    opacity: 0
}

.ads-track {
    display: flex;
    white-space: nowrap;
    animation: scrollAds 15s linear infinite;
    padding-left: 100%
}

.ad-item {
    padding: 0 20px;
    font-size: .85em;
    color: gold;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 600;
    line-height: 30px;
    text-shadow: 0 0 2px rgb(255 215 0 / .4)
}

@keyframes scrollAds {
    0% {
        transform: translateX(0%)
    }
    100% {
        transform: translateX(-100%)
    }
}

body.light-theme .minimal-ads {
    background: #e6e6e6;
    box-shadow: inset 0 0 3px rgb(0 0 0 / .1)
}

body.light-theme .ad-item {
    color: #333;
    text-shadow: none
}

**TABLE_STYLES** .table-container-wrapper {
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    box-shadow: 0 4px 8px rgb(0 0 0 / .2);
    max-width: 100%;
    overflow-x: auto
}

.table-container-wrapper table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
    background: #111
}

.table-container-wrapper table th,
.table-container-wrapper table td {
    padding: 10px 12px;
    border: 1px solid #333;
    text-align: left;
    vertical-align: top;
    color: #fff
}

.table-container-wrapper table th {
    background: #2b2b2b;
    font-weight: 700;
    color: #ffc107;
    border-bottom: 2px solid #ffc107
}

body.light-theme .table-container-wrapper {
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgb(0 0 0 / .1)
}

body.light-theme .table-container-wrapper table {
    background: #fff
}

body.light-theme .table-container-wrapper table th,
body.light-theme .table-container-wrapper table td {
    border: 1px solid #eee;
    color: #333
}

body.light-theme .table-container-wrapper table th {
    background: #f0f0f0;
    color: #007bff;
    border-bottom: 2px solid #007bff
}

body.light-theme .sidebar-icon {
    filter: brightness(0)
}

body.light-theme .sidebar h2 {
    color: #000
}

body.light-theme #recentChatsContainer a {
    background-color: #fff;
    color: #fff
}

.spotify-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 15px;
    background: #1db954;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    animation: fadeIn 0.3s ease
}

.spotify-pill button {
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
    padding: 0 0 1px 0;
    margin-left: 2px;
    opacity: .8
}

.spotify-table-wrapper {
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1db954;
    box-shadow: 0 4px 15px rgb(29 185 84 / .4);
    max-width: 100%;
    overflow-x: auto;
    background: #121212
}

.spotify-table-wrapper table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
    background: #121212;
    color: #fff
}

.spotify-table-wrapper table th,
.spotify-table-wrapper table td {
    padding: 12px 16px;
    border: none;
    text-align: left;
    vertical-align: middle
}

.spotify-table-wrapper table th {
    background: #1db954;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px
}

.spotify-table-wrapper table tr:nth-child(even) {
    background: #181818
}

.spotify-table-wrapper table tr:hover {
    background: #282828
}

.spotify-action-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border: none;
    border-radius: 25px;
    background: #1db954;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    margin-top: 15px
}

.spotify-action-button:hover {
    background: #28e06a;
    transform: translateY(-1px)
}

.deep-think-indicator {
    position: absolute;
    top: -10px;
    right: 15px;
    background: #7873f5;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgb(0 0 0 / .3);
    pointer-events: none;
    white-space: nowrap;
    z-index: 10
}

.settings-modal-fullscreen {
    display: none;
    position: fixed;
    inset: 0;
    background: #111;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease
}

.settings-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 1600px;
    background: #1c1c1c
}

.settings-sidebar-nav {
    width: 300px;
    background: #151515;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: 1px solid #333
}

.settings-sidebar-nav h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #fff;
    padding-left: 10px
}

.settings-tab {
    padding: 12px 15px;
    text-align: left;
    background: #fff0;
    border: none;
    color: #aaa;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease
}

.settings-tab:hover {
    background: #252525;
    color: #fff
}

.settings-tab.active {
    background: #007bff;
    color: #fff;
    font-weight: 600
}

.settings-tab.danger {
    color: #ff6c6c
}

.settings-tab.danger:hover {
    background: rgb(255 108 108 / .1)
}

.close-settings-btn {
    padding: 12px;
    background: #333;
    border: none;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s
}

.close-settings-btn:hover {
    background: #444
}

.settings-content-area {
    flex: 1;
    padding: 50px;
    overflow-y: auto
}

.settings-section {
    display: none;
    max-width: 800px;
    animation: fadeIn 0.3s ease
}

.settings-section.active {
    display: block
}

.settings-section h3 {
    font-size: 28px;
    margin-bottom: 5px;
    color: #fff
}

.section-desc {
    color: #888;
    margin-bottom: 30px;
    font-size: 16px
}

.setting-item {
    margin-bottom: 30px;
    padding: 20px;
    background: #252525;
    border-radius: 12px;
    border: 1px solid #333
}

.setting-item label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 18px
}

.setting-item input[type="text"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #1a1a1a;
    color: #fff;
    font-size: 16px
}

.setting-item .hint {
    color: #777;
    font-size: 13px;
    margin-top: 8px
}

.color-options-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap
}

.theme-switcher {
    display: flex;
    gap: 10px
}

.theme-switcher button {
    flex: 1;
    padding: 15px;
    background: #333;
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s
}

.theme-switcher button:hover {
    background: #444
}

.danger-zone {
    border-color: #ff4d4d;
    background: rgb(255 77 77 / .05)
}

.danger-btn {
    margin-top: 15px;
    padding: 12px 20px;
    background: #d9534f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px
}

.danger-btn:hover {
    background: #c9302c
}

body.light-theme .settings-wrapper,
body.light-theme .settings-sidebar-nav {
    background: #f9f9f9;
    color: #333
}

body.light-theme .settings-sidebar-nav {
    border-right: 1px solid #ddd
}

body.light-theme .settings-sidebar-nav h2 {
    color: #333
}

body.light-theme .setting-item {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgb(0 0 0 / .05)
}

body.light-theme .settings-section h3 {
    color: #333
}

body.light-theme .setting-item input[type="text"] {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ccc
}

body.light-theme .close-settings-btn {
    background: #e0e0e0;
    color: #333
}

body.light-theme .theme-switcher button {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ccc
}

body.light-theme .settings-tab {
    color: #555
}

body.light-theme .settings-tab:hover {
    background: #eee
}

.code-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / .9);
    z-index: 20000;
    display: flex;
    flex-direction: column;
    padding: 20px
}

.code-preview-modal.hidden {
    display: none
}

.code-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222;
    padding: 15px 20px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: 1px solid #333
}

.code-preview-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px
}

.code-preview-header button {
    background: #444;
    border: none;
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer
}

.code-preview-header button:hover {
    background: #666
}

.code-preview-body {
    flex: 1;
    background: #fff;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    overflow: hidden
}

#previewFrame {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff
}

.preview-btn {
    background: #28a745 !important;
    color: white !important
}

.preview-btn:hover {
    background: #218838 !important
}

.chat-image-wrapper {
    margin: 12px 0;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgb(0 0 0 / .2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    max-width: 100%;
    background-color: #000
}

.chat-image-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgb(0 0 0 / .3)
}

.chat-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    cursor: zoom-in;
    object-fit: cover
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgb(0 0 0 / .8), transparent);
    color: #fff;
    padding: 20px 10px 10px 10px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: center
}

.chat-image-wrapper:hover .image-caption {
    opacity: 1
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0 0 0 / .95);
    animation: fadeIn 0.3s ease;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.lightbox-modal.active {
    display: flex
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgb(255 255 255 / .1);
    animation: zoomIn 0.3s ease
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: 700;
    transition: 0.3s;
    cursor: pointer;
    z-index: 100001
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: auto;
    font-family: "Nunito Sans", sans-serif
}

body.light-theme .chat-image-wrapper {
    box-shadow: 0 4px 15px rgb(0 0 0 / .1)
}

body.light-theme .lightbox-modal {
    background-color: rgb(255 255 255 / .95)
}

body.light-theme .lightbox-caption {
    color: #333
}

body.light-theme .lightbox-close {
    color: #333
}

@keyframes zoomIn {
    from {
        transform: scale(.8);
        opacity: 0
    }
    to {
        transform: scale(1);
        opacity: 1
    }
}

.explore-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle
}

.pill-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle
}

.settings-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle
}

.settings-tab {
    display: flex;
    align-items: center;
    justify-content: flex-start
}

.button-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle
}

.danger-btn {
    display: flex;
    align-items: center;
    justify-content: center
}

.modal-icon {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    vertical-align: middle
}

.code-preview-header h3 {
    display: flex;
    align-items: center;
    margin: 0
}

.custom-model-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    margin-right: 6px;
    z-index: 1500
}

.model-selected {
    width: 40px;
    height: 40px;
    background: #2b2b2b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #444;
    transition: all 0.2s ease
}

.model-selected:hover {
    background: #444;
    transform: scale(1.05)
}

.model-selected img {
    width: 22px;
    height: 22px;
    object-fit: contain
}

.model-menu {
    position: absolute;
    bottom: 110%;
    right: 0;
    width: 260px;
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgb(0 0 0 / .5);
    padding: 8px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: opacity 0.2s, transform 0.2s
}

.model-menu.hidden {
    display: none
}

.menu-header {
    font-size: 11px;
    color: #888;
    padding: 4px 10px;
    margin-bottom: 4px;
    font-weight: 600
}

.model-option {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative
}

.model-option:hover {
    background: #333
}

.model-option.disabled {
    opacity: .5;
    pointer-events: none;
    filter: grayscale(100%)
}

.model-option.active {
    background: #333
}

.model-option.active .opt-check {
    display: block
}

.opt-icon img {
    width: 24px;
    height: 24px;
    margin-right: 12px
}

.opt-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1
}

.opt-info b {
    font-size: 14px;
    color: #fff;
    margin-bottom: 2px
}

.opt-info span {
    font-size: 10px;
    color: #aaa
}

.opt-check {
    color: #6a5acd;
    font-size: 18px;
    font-weight: 700;
    display: none
}

.limit-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px !important;
    font-weight: 600;
    margin-top: 2px;
    display: inline-block;
    color: #4caf50 !important
}

.limit-badge.loading {
    color: #ffc107 !important
}

.limit-badge.reached {
    color: #f44336 !important
}

body.light-theme .model-selected {
    background: #f0f0f0;
    border: 1px solid #ccc
}

body.light-theme .model-selected:hover {
    background: #e0e0e0
}

body.light-theme .model-menu {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 5px 20px rgb(0 0 0 / .1)
}

body.light-theme .model-option:hover {
    background: #f5f5f5
}

body.light-theme .opt-info b {
    color: #333
}

body.light-theme .opt-info span {
    color: #777
}

body.light-theme .menu-header {
    color: #555
}

#chat-view-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    height: 100%
}

#chat-view-container.hidden {
    display: none
}

#news-view-container {
    display: none;
    flex: 1;
    overflow-y: auto;
    background: #111;
    padding: 20px;
    animation: fadeIn 0.3s ease
}

#news-view-container.active {
    display: block
}

.news-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333
}

.news-header h2 {
    font-size: 24px;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #fff0;
    font-family: "Nunito Sans", sans-serif
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px
}

.news-card {
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgb(0 0 0 / .5);
    border-color: #555
}

.news-image {
    height: 140px;
    background: #2b2b2b;
    position: relative;
    overflow: hidden
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .8;
    transition: opacity 0.3s
}

.news-card:hover .news-image img {
    opacity: 1
}

.news-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgb(0 123 255 / .9);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase
}

.news-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column
}

.news-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
    font-family: "Merriweather", serif
}

.news-snippet {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 15px;
    flex: 1
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #666;
    border-top: 1px solid #333;
    padding-top: 10px
}

body.light-theme #news-view-container {
    background: #fcfcfc
}

body.light-theme .news-card {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgb(0 0 0 / .05)
}

body.light-theme .news-title {
    color: #222
}

body.light-theme .news-snippet {
    color: #666
}

body.light-theme .news-header {
    border-bottom: 1px solid #ddd
}

.bottom-nav-container {
    background: #111;
    border-top: 1px solid #333;
    padding: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    z-index: 100
}

.nav-tabs {
    display: flex;
    width: 100%;
    max-width: 500px;
    position: relative
}

.nav-tab {
    flex: 1;
    padding: 12px 0;
    background: #fff0;
    border: none;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: color 0.3s;
    position: relative
}

.nav-tab svg {
    width: 20px;
    height: 20px;
    fill: currentColor
}

.nav-tab:hover {
    color: #aaa
}

.nav-tab.active {
    color: #ffb86c
}

.nav-tab.active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #ffb86c;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px #ffb86c
}

body.light-theme .bottom-nav-container {
    background: #fff;
    border-top: 1px solid #ddd
}

body.light-theme .nav-tab {
    color: #999
}

body.light-theme .nav-tab.active {
    color: #007bff
}

body.light-theme .nav-tab.active::after {
    background: #007bff;
    box-shadow: 0 2px 8px rgb(0 123 255 / .4)
}

.image-input-section {
    width: 100%
}

.image-btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px
}

.img-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #2b2b2b;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 20px 10px;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s, transform 0.2s;
    gap: 8px;
    height: 100px
}

.img-action-btn:hover {
    background: #3c3c3c;
    transform: translateY(-2px);
    border-color: #007bff
}

.img-action-btn span {
    font-weight: 600;
    font-size: 14px
}

.image-preview-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    border-radius: 15px;
    background: #333;
    border: 1px solid #555;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    margin-right: 5px;
    margin-bottom: 2px;
    animation: fadeIn 0.3s ease;
    flex-shrink: 0
}

.image-preview-pill img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #fff
}

.image-preview-pill button {
    background: #ff4d4d;
    border: none;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px
}

.image-preview-pill button:hover {
    background: red
}

body.light-theme .img-action-btn {
    background: #f0f0f0;
    border-color: #ccc;
    color: #333
}

body.light-theme .img-action-btn:hover {
    background: #e0e0e0
}

body.light-theme .image-preview-pill {
    background: #e0e0e0;
    border-color: #ccc;
    color: #333
}

.command-menu {
    position: absolute;
    bottom: 80px;
    left: 20px;
    background: #1c1c1c;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 10px;
    max-width: 300px;
    box-shadow: 0 4px 20px rgb(0 0 0 / .5);
    z-index: 3000;
    display: none
}

.command-menu.visible {
    display: block;
    animation: slideUp 0.2s ease
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.command-item {
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px
}

.command-item:hover {
    background: #333
}

.command-item svg {
    width: 18px;
    height: 18px;
    fill: #667eea
}

.file-preview-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 15px;
    background: #ff9800;
    border: 1px solid #f57c00;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    margin-right: 5px;
    margin-bottom: 2px;
    flex-shrink: 0
}

.file-preview-pill button {
    background: #fff;
    border: none;
    color: #ff9800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center
}

.limit-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #f44;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgb(0 0 0 / .3);
    z-index: 10000;
    animation: slideUp 0.3s ease
}

body.light-theme .command-menu {
    background: #fff;
    border-color: #ddd
}

body.light-theme .command-item:hover {
    background: #f5f5f5
}

body.light-theme .file-preview-pill {
    background: #ff9800;
    border-color: #f57c00
}

.share-modal {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / .85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease
}

.share-modal-content {
    background: linear-gradient(135deg, #1c1c1c, #2b2b2b);
    border: 1px solid #333;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgb(0 0 0 / .5);
    animation: slideUp 0.4s ease
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #333
}

.share-modal-header h3 {
    font-size: 22px;
    color: #fff;
    margin: 0
}

.close-modal-btn {
    background: #fff0;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center
}

.close-modal-btn:hover {
    color: #fff
}

.share-modal-body {
    padding: 25px
}

.permission-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px
}

.permission-option {
    cursor: pointer
}

.permission-option input[type="radio"] {
    display: none
}

.permission-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #252525;
    border: 2px solid #333;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative
}

.permission-option input[type="radio"]:checked+.permission-card {
    border-color: #007bff;
    background: rgb(0 123 255 / .1)
}

.permission-option input[type="radio"]:checked+.permission-card .permission-check {
    display: block
}

.permission-card:hover {
    background: #2b2b2b;
    border-color: #444
}

.permission-icon {
    font-size: 28px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(255 255 255 / .05);
    border-radius: 10px
}

.permission-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.permission-details strong {
    font-size: 16px;
    color: #fff
}

.permission-details span {
    font-size: 13px;
    color: #888
}

.permission-check {
    display: none;
    color: #007bff;
    font-size: 24px;
    font-weight: 700
}

.share-link-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px
}

.share-link-input {
    flex: 1;
    padding: 12px 15px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-family: monospace
}

.share-link-input:focus {
    outline: none;
    border-color: #007bff
}

.copy-share-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap
}

.copy-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgb(0 123 255 / .4)
}

.copy-share-btn:active {
    transform: translateY(0)
}

.web-share-btn {
    width: 100%;
    padding: 14px;
    background: #333;
    border: 1px solid #444;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    margin-bottom: 15px
}

.web-share-btn:hover {
    background: #3c3c3c;
    border-color: #555
}

.web-share-btn svg {
    flex-shrink: 0
}

.pin-icon {
    flex-shrink: 0;
    opacity: .7;
    transition: opacity 0.2s
}

.pin-icon.hidden {
    display: none
}

#recentChatsContainer a:hover .pin-icon {
    opacity: 1
}

#recentChatsContainer a.pinned {
    background: rgb(255 184 108 / .1) !important;
    border-left: 3px solid #ffb86c;
    padding-left: 10px
}

body.light-theme #recentChatsContainer a.pinned {
    background: rgb(0 123 255 / .1) !important;
    border-left: 3px solid #007bff
}

body.light-theme .share-modal-content {
    background: linear-gradient(135deg, #ffffff, #f4f4f4);
    border: 1px solid #ddd
}

body.light-theme .share-modal-header {
    border-bottom: 1px solid #ddd
}

body.light-theme .share-modal-header h3 {
    color: #333
}

body.light-theme .close-modal-btn {
    color: #666
}

body.light-theme .close-modal-btn:hover {
    color: #333
}

body.light-theme .permission-card {
    background: #f9f9f9;
    border-color: #ddd
}

body.light-theme .permission-option input[type="radio"]:checked+.permission-card {
    border-color: #007bff;
    background: rgb(0 123 255 / .1)
}

body.light-theme .permission-card:hover {
    background: #f0f0f0;
    border-color: #ccc
}

body.light-theme .permission-icon {
    background: rgb(0 0 0 / .05)
}

body.light-theme .permission-details strong {
    color: #333
}

body.light-theme .permission-details span {
    color: #666
}

body.light-theme .share-link-input {
    background: #f0f0f0;
    border-color: #ccc;
    color: #333
}

body.light-theme .web-share-btn {
    background: #f0f0f0;
    border-color: #ccc;
    color: #333
}

body.light-theme .web-share-btn:hover {
    background: #e0e0e0;
    border-color: #bbb
}

body.light-theme .share-stats p {
    color: #999
}

.share-stats {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #333
}

body.light-theme .share-stats {
    border-top: 1px solid #ddd
}

.share-stats p {
    color: #666;
    font-size: 12px;
    text-align: center
}

.shared-chat-banner {
    background: linear-gradient(135deg, rgb(0 123 255 / .1), rgb(106 17 203 / .1));
    border: 1px solid #007bff;
    border-radius: 12px;
    padding: 15px 20px;
    margin: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 15px rgb(0 123 255 / .2)
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.shared-chat-banner strong {
    color: #fff;
    font-size: 16px
}

.shared-chat-banner button:hover {
    background: #ff3333 !important
}

body.light-theme .shared-chat-banner {
    background: linear-gradient(135deg, rgb(0 123 255 / .15), rgb(106 17 203 / .15));
    border-color: #007bff
}

body.light-theme .shared-chat-banner strong {
    color: #333
}

body.light-theme .shared-chat-banner p {
    color: #666 !important
}

.memory-usage {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #888;
    padding: 5px 12px;
    background: rgb(255 255 255 / .05);
    border-radius: 8px;
    transition: all 0.3s ease
}

#memoryUsed {
    color: #4CAF50;
    font-weight: 700;
    transition: color 0.3s ease
}

#memoryLimit {
    color: #888
}

.memory-usage.warning {
    background: rgb(255 152 0 / .1);
    border: 1px solid rgb(255 152 0 / .3)
}

.memory-usage.warning #memoryUsed {
    color: #FF9800
}

.memory-usage.full {
    background: rgb(244 67 54 / .1);
    border: 1px solid rgb(244 67 54 / .3)
}

.memory-usage.full #memoryUsed {
    color: #F44336
}

.memory-hint-box {
    background: rgb(0 123 255 / .1);
    border: 1px solid rgb(0 123 255 / .3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease
}

.memory-hint-box p {
    margin: 0;
    color: #fff;
    line-height: 1.6
}

.memory-hint-box strong {
    color: #007BFF
}

.memory-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px
}

.memory-list::-webkit-scrollbar {
    width: 6px
}

.memory-list::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px
}

.memory-list::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px
}

.memory-list::-webkit-scrollbar-thumb:hover {
    background: #777
}

.memory-item {
    background: #2b2b2b;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.2s ease;
    animation: slideIn 0.3s ease
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px)
    }
    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.memory-item:hover {
    background: #333;
    border-color: #555;
    transform: translateX(5px)
}

.memory-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.memory-text {
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
    word-wrap: break-word;
    font-family: 'Merriweather', serif
}

.memory-meta {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: #888;
    font-family: 'IBM Plex Sans', sans-serif
}

.memory-meta span {
    display: flex;
    align-items: center;
    gap: 4px
}

.memory-delete-btn {
    background: #F44336;
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 16px
}

.memory-delete-btn:hover {
    background: #D32F2F;
    transform: scale(1.1) rotate(10deg)
}

.memory-delete-btn:active {
    transform: scale(.95)
}

.memory-empty {
    text-align: center;
    color: #666;
    padding: 60px 20px;
    font-size: 14px
}

.memory-empty p:first-of-type {
    font-size: 16px;
    color: #888;
    margin-bottom: 8px
}

.memory-saved-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgb(76 175 80 / .2);
    border: 1px solid #4CAF50;
    border-radius: 15px;
    color: #4CAF50;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
    animation: memoryPulse 0.5s ease;
    box-shadow: 0 2px 8px rgb(76 175 80 / .3)
}

@keyframes memoryPulse {
    0% {
        opacity: 0;
        transform: scale(.8)
    }
    50% {
        transform: scale(1.1)
    }
    100% {
        opacity: 1;
        transform: scale(1)
    }
}

.memory-saved-indicator::before {
    content: '🧠';
    font-size: 14px;
    animation: brainSpin 1s ease
}

@keyframes brainSpin {
    0% {
        transform: rotate(0deg)
    }
    100% {
        transform: rotate(360deg)
    }
}

.memory-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgb(76 175 80 / .4);
    z-index: 10000;
    animation: slideUpNotif 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px
}

@keyframes slideUpNotif {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px)
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0)
    }
}

body.light-theme .memory-usage {
    background: rgb(0 0 0 / .05)
}

body.light-theme .memory-usage.warning {
    background: rgb(255 152 0 / .1)
}

body.light-theme .memory-usage.full {
    background: rgb(244 67 54 / .1)
}

body.light-theme .memory-hint-box {
    background: rgb(0 123 255 / .08);
    border-color: rgb(0 123 255 / .3)
}

body.light-theme .memory-hint-box p {
    color: #333
}

body.light-theme .memory-hint-box strong {
    color: #007BFF
}

body.light-theme .memory-list::-webkit-scrollbar-track {
    background: #f0f0f0
}

body.light-theme .memory-list::-webkit-scrollbar-thumb {
    background: #ccc
}

body.light-theme .memory-list::-webkit-scrollbar-thumb:hover {
    background: #999
}

body.light-theme .memory-item {
    background: #f9f9f9;
    border-color: #ddd
}

body.light-theme .memory-item:hover {
    background: #f0f0f0;
    border-color: #ccc
}

body.light-theme .memory-text {
    color: #333
}

body.light-theme .memory-meta {
    color: #666
}

body.light-theme .memory-empty {
    color: #999
}

body.light-theme .memory-empty p:first-of-type {
    color: #666
}

body.light-theme .memory-notification {
    background: linear-gradient(135deg, #4CAF50, #45A049)
}

@media (max-width:768px) {
    .memory-list {
        max-height: 300px
    }
    .memory-item {
        padding: 12px;
        gap: 10px
    }
    .memory-text {
        font-size: 14px
    }
    .memory-saved-indicator {
        font-size: 11px;
        padding: 4px 10px;
        margin-left: 5px
    }
    .memory-hint-box {
        padding: 12px
    }
    .memory-hint-box p {
        font-size: 12px !important
    }
}

.memory-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #888
}

.memory-loading::after {
    content: '🧠';
    font-size: 32px;
    animation: memoryLoadingSpin 2s linear infinite
}

@keyframes memoryLoadingSpin {
    0% {
        transform: rotate(0deg) scale(1)
    }
    50% {
        transform: rotate(180deg) scale(1.2)
    }
    100% {
        transform: rotate(360deg) scale(1)
    }
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: 0.3s;
    border-radius: 26px;
    border: 1px solid #444
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgb(0 0 0 / .2)
}

.toggle-switch input:checked+.toggle-slider {
    background-color: #4CAF50;
    border-color: #4CAF50
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(24px)
}

.toggle-switch input:focus+.toggle-slider {
    box-shadow: 0 0 1px #4CAF50
}

body.light-theme .toggle-slider {
    background-color: #ccc;
    border-color: #bbb
}

body.light-theme .toggle-switch input:checked+.toggle-slider {
    background-color: #4CAF50;
    border-color: #4CAF50
}

.temp-chat-btn {
    position: absolute;
    right: 20px;
    background: rgb(255 255 255 / .1);
    border: 1px solid rgb(255 255 255 / .3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px)
}

.temp-chat-btn:hover {
    background: rgb(255 255 255 / .2);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgb(255 255 255 / .2)
}

.temp-chat-btn:active {
    transform: scale(.95)
}

.temp-chat-btn svg {
    filter: drop-shadow(0 0 3px rgb(255 255 255 / .5))
}

body.light-theme .temp-chat-btn {
    background: rgb(0 0 0 / .05);
    border-color: rgb(0 0 0 / .2)
}

body.light-theme .temp-chat-btn:hover {
    background: rgb(0 0 0 / .1);
    box-shadow: 0 4px 12px rgb(0 0 0 / .1)
}

body.light-theme .temp-chat-btn svg {
    filter: none
}

.temp-info-center {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 40px;
    background: rgb(40 40 40 / .95);
    border: 1px solid #444;
    border-radius: 20px;
    max-width: 550px;
    width: 90%;
    animation: fadeIn 0.5s ease;
    box-shadow: 0 10px 40px rgb(0 0 0 / .5);
    backdrop-filter: blur(10px)
}

.temp-info-center h2 {
    font-size: 26px;
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700
}

.temp-info-center h2 svg {
    animation: ghostFloat 2s ease-in-out infinite
}

@keyframes ghostFloat {
    0%,
    100% {
        transform: translateY(0)
    }
    50% {
        transform: translateY(-5px)
    }
}

.temp-info-center p {
    font-size: 16px;
    color: #aaa;
    line-height: 1.6;
    margin: 10px 0
}

.temp-info-center .days-left {
    font-size: 48px;
    font-weight: 700;
    color: #ff9800;
    margin: 20px 0;
    text-shadow: 0 0 20px rgb(255 152 0 / .5);
    animation: pulse 2s ease-in-out infinite
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1)
    }
    50% {
        transform: scale(1.05)
    }
}

body.light-theme .temp-info-center {
    background: rgb(255 255 255 / .98);
    border-color: #ddd;
    box-shadow: 0 10px 40px rgb(0 0 0 / .15)
}

body.light-theme .temp-info-center h2 {
    color: #333
}

body.light-theme .temp-info-center p {
    color: #666
}

body.light-theme .temp-info-center .days-left {
    color: #ff9800;
    text-shadow: 0 0 20px rgb(255 152 0 / .3)
}

.temp-chat-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgb(128 128 128 / .15);
    border: 1px solid #666;
    border-left: 3px solid #ff9800;
    border-radius: 8px;
    font-size: 13px;
    color: #ff9800;
    margin-bottom: 10px;
    transition: all 0.2s ease
}

.temp-chat-indicator:hover {
    background: rgb(128 128 128 / .25);
    border-left-width: 4px
}

.temp-chat-indicator svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0
}

body.light-theme .temp-chat-indicator {
    background: rgb(255 152 0 / .1);
    border-color: #ff9800;
    color: #f57c00
}

body.light-theme .temp-chat-indicator:hover {
    background: rgb(255 152 0 / .15)
}

#recentChatsContainer a.temporary-chat {
    background: rgb(255 152 0 / .1) !important;
    border-left: 3px solid #ff9800;
    padding-left: 10px
}

#recentChatsContainer a.temporary-chat:hover {
    background: rgb(255 152 0 / .2) !important
}

#recentChatsContainer a.temporary-chat .pin-icon {
    color: #ff9800;
    animation: ghostPulse 2s ease-in-out infinite
}

@keyframes ghostPulse {
    0%,
    100% {
        opacity: .7
    }
    50% {
        opacity: 1
    }
}

body.light-theme #recentChatsContainer a.temporary-chat {
    background: rgb(255 152 0 / .08) !important;
    border-left-color: #ff9800
}

body.light-theme #recentChatsContainer a.temporary-chat:hover {
    background: rgb(255 152 0 / .15) !important
}

#input.temporary-placeholder::placeholder {
    color: #ff9800 !important;
    font-weight: 600
}

body.light-theme #input.temporary-placeholder::placeholder {
    color: #f57c00 !important
}

.notification-hint-box {
    background: rgb(255 152 0 / .1);
    border: 1px solid rgb(255 152 0 / .3);
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
    animation: fadeIn 0.3s ease
}

.notification-hint-box p {
    font-size: 13px;
    color: #FF9800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px
}

.notification-hint-box svg {
    flex-shrink: 0
}

body.light-theme .notification-hint-box {
    background: rgb(255 152 0 / .08);
    border-color: rgb(255 152 0 / .3)
}

body.light-theme .notification-hint-box p {
    color: #f57c00
}

#input::placeholder {
    transition: opacity 0.3s ease
}

#input.typing-placeholder::placeholder {
    animation: placeholderBlink 0.1s step-end infinite
}

@keyframes placeholderBlink {
    0%,
    100% {
        opacity: 1
    }
    50% {
        opacity: .5
    }
}

.header.temporary-mode {
    background: linear-gradient(90deg, #ff9800, #f57c00)
}

.header.temporary-mode span::before {
    content: '👻 ';
    animation: ghostFloat 2s ease-in-out infinite
}

@media (max-width:768px) {
    .temp-chat-btn {
        width: 36px;
        height: 36px;
        right: 15px
    }
    .temp-chat-btn svg {
        width: 18px;
        height: 18px
    }
    .temp-info-center {
        padding: 30px 20px;
        max-width: 90%
    }
    .temp-info-center h2 {
        font-size: 22px
    }
    .temp-info-center .days-left {
        font-size: 36px;
        margin: 15px 0
    }
    .temp-info-center p {
        font-size: 14px
    }
    .toggle-switch {
        width: 45px;
        height: 24px
    }
    .toggle-slider:before {
        height: 16px;
        width: 16px;
        left: 3px;
        bottom: 3px
    }
    .toggle-switch input:checked+.toggle-slider:before {
        transform: translateX(21px)
    }
}

.notification-permission-prompt {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1c1c1c, #2b2b2b);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 20px;
    max-width: 320px;
    box-shadow: 0 8px 24px rgb(0 0 0 / .5);
    z-index: 10000;
    animation: slideInRight 0.4s ease
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0
    }
    to {
        transform: translateX(0);
        opacity: 1
    }
}

.notification-permission-prompt h4 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px
}

.notification-permission-prompt p {
    margin: 0 0 15px 0;
    color: #aaa;
    font-size: 13px;
    line-height: 1.5
}

.notification-permission-buttons {
    display: flex;
    gap: 8px
}

.notification-permission-buttons button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease
}

.notification-permission-buttons button.allow {
    background: #4CAF50;
    color: #fff
}

.notification-permission-buttons button.allow:hover {
    background: #45a049
}

.notification-permission-buttons button.deny {
    background: #333;
    color: #aaa
}

.notification-permission-buttons button.deny:hover {
    background: #444;
    color: #fff
}

body.light-theme .notification-permission-prompt {
    background: linear-gradient(135deg, #ffffff, #f4f4f4);
    border-color: #ddd;
    box-shadow: 0 8px 24px rgb(0 0 0 / .15)
}

body.light-theme .notification-permission-prompt h4 {
    color: #333
}

body.light-theme .notification-permission-prompt p {
    color: #666
}

body.light-theme .notification-permission-buttons button.deny {
    background: #f0f0f0;
    color: #666
}

body.light-theme .notification-permission-buttons button.deny:hover {
    background: #e0e0e0;
    color: #333
}

.days-left-badge {
    position: absolute;
    top: 50%;
    right: 35px;
    transform: translateY(-50%);
    background: rgb(255 152 0 / .2);
    border: 1px solid rgb(255 152 0 / .5);
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    color: #ff9800;
    white-space: nowrap
}

body.light-theme .days-left-badge {
    background: rgb(255 152 0 / .15);
    border-color: rgb(255 152 0 / .4);
    color: #f57c00
}

.setting-item:has(.toggle-switch):hover {
    background: #2b2b2b
}

body.light-theme .setting-item:has(.toggle-switch):hover {
    background: #f5f5f5
}

.search-indicator {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1c1c1c, #2b2b2b);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    box-shadow: 0 4px 20px rgb(0 0 0 / .5);
    animation: slideDown 0.3s ease
}

.search-indicator.hidden {
    display: none
}

.search-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #444;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

#searchText {
    color: #fff;
    font-size: 14px;
    font-weight: 600
}

#searchCount {
    color: #007bff;
    font-weight: 700
}

.search-sources-icons {
    display: flex;
    gap: 8px;
    align-items: center
}

.source-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    border: 2px solid #555
}

.sources-modal {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / .85);
    z-index: 99998;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.3s ease
}

.sources-modal-content {
    background: linear-gradient(135deg, #1c1c1c, #2b2b2b);
    border: 1px solid #333;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 600px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 -10px 40px rgb(0 0 0 / .5);
    animation: slideUpModal 0.4s ease
}

@keyframes slideUpModal {
    from {
        transform: translateY(100%);
        opacity: 0
    }
    to {
        transform: translateY(0);
        opacity: 1
    }
}

.sources-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #1c1c1c, #2b2b2b);
    z-index: 10
}

.sources-modal-header h3 {
    font-size: 18px;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px
}

.sources-list {
    padding: 20px
}

.source-item {
    background: #252525;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    cursor: pointer
}

.source-item:hover {
    background: #2b2b2b;
    border-color: #007bff;
    transform: translateX(5px)
}

.source-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px
}

.source-domain-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #007bff;
    border: 2px solid #007bff;
    flex-shrink: 0
}

.source-title {
    color: #007bff;
    font-size: 15px;
    font-weight: 600;
    flex: 1
}

.source-snippet {
    color: #aaa;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px
}

.source-url {
    color: #666;
    font-size: 11px;
    font-family: monospace;
    word-break: break-all
}

.link-verification-modal {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / .9);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease
}

.link-verification-content {
    background: linear-gradient(135deg, #1c1c1c, #2b2b2b);
    border: 1px solid #ff9800;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgb(255 152 0 / .3);
    animation: slideUp 0.4s ease
}

.verification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #333
}

.verification-header h3 {
    font-size: 18px;
    color: #ff9800;
    margin: 0
}

.verification-body {
    padding: 25px
}

.warning-text {
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px
}

.url-info {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px
}

.url-label {
    color: #888;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px
}

.url-display {
    color: #fff;
    font-size: 13px;
    font-family: monospace;
    word-break: break-all;
    line-height: 1.5
}

.url-actions {
    display: flex;
    gap: 10px
}

.url-action-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease
}

.copy-url-btn {
    background: #333;
    color: #fff
}

.copy-url-btn:hover {
    background: #444;
    transform: translateY(-2px)
}

.open-url-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff
}

.open-url-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgb(0 123 255 / .4)
}

.open-sources-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background: #007bff;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px
}

.open-sources-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(0 123 255 / .3)
}

.open-sources-btn svg {
    width: 16px;
    height: 16px
}

body.light-theme .search-indicator {
    background: linear-gradient(135deg, #ffffff, #f4f4f4);
    border-color: #ddd
}

body.light-theme #searchText {
    color: #333
}

body.light-theme .source-icon {
    background: #f0f0f0;
    border-color: #ccc;
    color: #007bff
}

body.light-theme .sources-modal-content {
    background: linear-gradient(135deg, #ffffff, #f4f4f4);
    border-color: #ddd
}

body.light-theme .sources-modal-header {
    background: linear-gradient(135deg, #ffffff, #f4f4f4);
    border-bottom-color: #ddd
}

body.light-theme .sources-modal-header h3 {
    color: #333
}

body.light-theme .source-item {
    background: #f9f9f9;
    border-color: #ddd
}

body.light-theme .source-item:hover {
    background: #f0f0f0;
    border-color: #007bff
}

body.light-theme .source-snippet {
    color: #666
}

body.light-theme .source-url {
    color: #999
}

body.light-theme .link-verification-content {
    background: linear-gradient(135deg, #ffffff, #f4f4f4);
    border-color: #ff9800
}

body.light-theme .verification-header h3 {
    color: #f57c00
}

body.light-theme .warning-text {
    color: #666
}

body.light-theme .url-info {
    background: #f9f9f9;
    border-color: #ddd
}

body.light-theme .url-display {
    color: #333
}

body.light-theme .copy-url-btn {
    background: #e0e0e0;
    color: #333
}

body.light-theme .copy-url-btn:hover {
    background: #d0d0d0
}

.source-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    border: 2px solid #555;
    overflow: hidden;
    position: relative
}

.source-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.source-domain-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #007bff;
    border: 2px solid #007bff;
    flex-shrink: 0;
    overflow: hidden;
    position: relative
}

.source-domain-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.source-domain-icon span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center
}

.account-info-box {
    background: #2b2b2b;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeIn 0.3s ease
}

.account-email {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 15px;
    padding: 12px;
    background: rgb(255 255 255 / .05);
    border-radius: 8px;
    word-break: break-all
}

.account-email svg {
    flex-shrink: 0;
    color: #007bff
}

.account-email span {
    flex: 1;
    font-weight: 500
}

.logout-btn-settings {
    padding: 12px 18px;
    background: linear-gradient(135deg, #ff4d4d, #d32f2f);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgb(255 77 77 / .3)
}

.logout-btn-settings:hover {
    background: linear-gradient(135deg, #f33, #c62828);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(255 77 77 / .4)
}

.logout-btn-settings:active {
    transform: translateY(0)
}

.logout-btn-settings svg {
    flex-shrink: 0
}

body.light-theme .account-info-box {
    background: #f9f9f9;
    border-color: #ddd
}

body.light-theme .account-email {
    background: rgb(0 0 0 / .03);
    color: #333
}

body.light-theme .account-email svg {
    color: #007bff
}

body.light-theme .logout-btn-settings {
    background: linear-gradient(135deg, #f44336, #d32f2f)
}

body.light-theme .logout-btn-settings:hover {
    background: linear-gradient(135deg, #e53935, #c62828)
}

@media (max-width:768px) {
    .account-info-box {
        padding: 15px
    }
    .account-email {
        font-size: 13px;
        padding: 10px
    }
    .logout-btn-settings {
        padding: 10px 15px;
        font-size: 14px
    }
}

.voice-stream-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 3px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgb(102 126 234 / .3)
}

.voice-stream-btn:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgb(102 126 234 / .5)
}

.voice-stream-btn:active {
    transform: scale(.95)
}

.voice-icon-svg {
    width: 24px;
    height: 24px
}

.voice-icon-svg .voice-waves {
    fill: #fff
}

.voice-stream-btn .wave {
    animation: wave-pulse 1.2s ease-in-out infinite;
    transform-origin: center
}

.voice-stream-btn .wave-1 {
    animation-delay: 0s
}

.voice-stream-btn .wave-2 {
    animation-delay: 0.1s
}

.voice-stream-btn .wave-3 {
    animation-delay: 0.2s
}

.voice-stream-btn .wave-4 {
    animation-delay: 0.3s
}

.voice-stream-btn .wave-5 {
    animation-delay: 0.4s
}

@keyframes wave-pulse {
    0%,
    100% {
        transform: scaleY(1);
        opacity: .7
    }
    50% {
        transform: scaleY(1.5);
        opacity: 1
    }
}

.voice-stream-btn.active {
    background: linear-gradient(135deg, #ff4d4d, #ff1744);
    box-shadow: 0 0 0 0 rgb(255 77 77 / .7);
    animation: pulse-ring 1.5s infinite
}

.voice-stream-btn.active .wave {
    animation: wave-active 0.6s ease-in-out infinite
}

@keyframes wave-active {
    0%,
    100% {
        transform: scaleY(.5)
    }
    50% {
        transform: scaleY(1.8)
    }
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgb(255 77 77 / .7)
    }
    70% {
        box-shadow: 0 0 0 10px #fff0
    }
    100% {
        box-shadow: 0 0 0 0 #fff0
    }
}

body.light-theme .voice-stream-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 2px 8px rgb(102 126 234 / .2)
}

body.light-theme .voice-stream-btn:hover {
    box-shadow: 0 4px 12px rgb(102 126 234 / .4)
}

body.light-theme .voice-stream-btn.active {
    background: linear-gradient(135deg, #ff4d4d, #ff1744)
}

.voice-modal {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / .95);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease
}

.voice-modal-content {
    background: linear-gradient(135deg, #1c1c1c, #2b2b2b);
    border: 1px solid #444;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgb(0 0 0 / .5)
}

.voice-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px
}

.voice-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #667eea;
    opacity: .3;
    animation: pulse 2s infinite
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: .3
    }
    50% {
        transform: scale(1.2);
        opacity: .1
    }
}

.voice-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px
}

.voice-status {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600
}

.voice-transcript,
.voice-response {
    background: rgb(255 255 255 / .05);
    border: 1px solid rgb(255 255 255 / .1);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    text-align: left;
    color: #fff;
    min-height: 60px;
    max-height: 150px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6
}

.voice-transcript strong,
.voice-response strong {
    color: #667eea;
    display: block;
    margin-bottom: 5px
}

.voice-stop-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff4d4d, #d32f2f);
    border: none;
    border-radius: 25px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    margin-top: 20px
}

.voice-stop-btn:hover {
    background: linear-gradient(135deg, #f33, #c62828);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(255 77 77 / .4)
}

.voice-stop-btn:active {
    transform: translateY(0)
}

body.light-theme .voice-modal-content {
    background: linear-gradient(135deg, #ffffff, #f4f4f4);
    border-color: #ddd
}

body.light-theme .voice-status,
body.light-theme .voice-transcript,
body.light-theme .voice-response {
    color: #333
}

body.light-theme .voice-transcript,
body.light-theme .voice-response {
    background: rgb(0 0 0 / .03);
    border-color: rgb(0 0 0 / .1)
}

body.light-theme .voice-transcript strong,
body.light-theme .voice-response strong {
    color: #667eea
}

@media (max-width:768px) {
    .voice-stream-btn {
        width: 42px;
        height: 42px;
        margin-right: 8px
    }
    .voice-icon-svg {
        width: 20px;
        height: 20px
    }
    .voice-modal-content {
        padding: 30px 20px;
        max-width: 90%
    }
    .voice-animation {
        width: 100px;
        height: 100px
    }
    .voice-icon {
        font-size: 40px
    }
}

.voice-modal {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / .95);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease
}

.voice-modal-content {
    background: linear-gradient(135deg, #1c1c1c, #2b2b2b);
    border: 1px solid #444;
    border-radius: 20px;
    padding: 40px;
    max-width: 550px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgb(0 0 0 / .7);
    position: relative;
    overflow: hidden
}

.voice-modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgb(102 126 234 / .1) 0%, transparent 70%);
    animation: rotate 20s linear infinite
}

@keyframes rotate {
    from {
        transform: rotate(0deg)
    }
    to {
        transform: rotate(360deg)
    }
}

.voice-animation {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 30px;
    z-index: 1
}

.voice-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: .3;
    animation: pulse 2s ease-in-out infinite
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: .3
    }
    50% {
        transform: scale(1.3);
        opacity: .1
    }
}

.voice-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 56px;
    filter: drop-shadow(0 4px 8px rgb(0 0 0 / .3));
    z-index: 2
}

.voice-status {
    font-size: 20px;
    color: #fff;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgb(0 0 0 / .3)
}

.voice-status.thinking {
    color: #667eea
}

.voice-status.speaking {
    color: #4CAF50
}

.voice-status.error {
    color: #ff4d4d
}

.voice-transcript,
.voice-response {
    background: rgb(255 255 255 / .05);
    border: 1px solid rgb(255 255 255 / .1);
    border-radius: 12px;
    padding: 16px;
    margin: 15px 0;
    text-align: left;
    color: #fff;
    min-height: 70px;
    max-height: 180px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease
}

.voice-transcript:hover,
.voice-response:hover {
    background: rgb(255 255 255 / .08);
    border-color: rgb(255 255 255 / .2)
}

.voice-transcript strong,
.voice-response strong {
    color: #667eea;
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px
}

.voice-transcript:empty::before {
    content: 'Waiting for your voice...';
    color: #666;
    font-style: italic
}

.voice-response:empty::before {
    content: 'AI response will appear here...';
    color: #666;
    font-style: italic
}

.voice-transcript::-webkit-scrollbar,
.voice-response::-webkit-scrollbar {
    width: 6px
}

.voice-transcript::-webkit-scrollbar-track,
.voice-response::-webkit-scrollbar-track {
    background: rgb(0 0 0 / .2);
    border-radius: 3px
}

.voice-transcript::-webkit-scrollbar-thumb,
.voice-response::-webkit-scrollbar-thumb {
    background: rgb(102 126 234 / .5);
    border-radius: 3px
}

.voice-transcript::-webkit-scrollbar-thumb:hover,
.voice-response::-webkit-scrollbar-thumb:hover {
    background: rgb(102 126 234 / .7)
}

.voice-stop-btn {
    padding: 14px 35px;
    background: linear-gradient(135deg, #ff4d4d, #d32f2f);
    border: none;
    border-radius: 30px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-top: 25px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgb(255 77 77 / .3)
}

.voice-stop-btn:hover {
    background: linear-gradient(135deg, #f33, #c62828);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgb(255 77 77 / .5)
}

.voice-stop-btn:active {
    transform: translateY(0)
}

.countdown {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
    margin: 20px 0;
    animation: countdownPulse 1s ease-in-out
}

@keyframes countdownPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1
    }
    50% {
        transform: scale(1.2);
        opacity: .8
    }
}

.thinking-indicator {
    display: inline-flex;
    gap: 6px;
    margin-left: 10px
}

.thinking-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: thinkingBounce 1.4s infinite ease-in-out both
}

.thinking-dot:nth-child(1) {
    animation-delay: -0.32s
}

.thinking-dot:nth-child(2) {
    animation-delay: -0.16s
}

@keyframes thinkingBounce {
    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: .5
    }
    40% {
        transform: scale(1);
        opacity: 1
    }
}

body.light-theme .voice-modal-content {
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    border-color: #ddd;
    box-shadow: 0 20px 60px rgb(0 0 0 / .15)
}

body.light-theme .voice-modal-content::before {
    background: radial-gradient(circle, rgb(102 126 234 / .05) 0%, transparent 70%)
}

body.light-theme .voice-status,
body.light-theme .voice-transcript,
body.light-theme .voice-response {
    color: #333
}

body.light-theme .voice-transcript,
body.light-theme .voice-response {
    background: rgb(0 0 0 / .03);
    border-color: rgb(0 0 0 / .1)
}

body.light-theme .voice-transcript strong,
body.light-theme .voice-response strong {
    color: #667eea
}

body.light-theme .voice-transcript:empty::before,
body.light-theme .voice-response:empty::before {
    color: #999
}

body.light-theme .voice-pulse {
    background: linear-gradient(135deg, #667eea, #764ba2)
}

@media (max-width:768px) {
    .voice-modal-content {
        padding: 30px 20px;
        max-width: 95%
    }
    .voice-animation {
        width: 110px;
        height: 110px;
        margin-bottom: 20px
    }
    .voice-icon {
        font-size: 48px
    }
    .voice-status {
        font-size: 18px;
        margin-bottom: 20px
    }
    .voice-transcript,
    .voice-response {
        padding: 12px;
        font-size: 14px;
        max-height: 120px
    }
    .voice-stop-btn {
        padding: 12px 28px;
        font-size: 15px
    }
    .countdown {
        font-size: 40px
    }
}

@media (max-width:480px) {
    .voice-modal-content {
        padding: 25px 15px
    }
    .voice-animation {
        width: 100px;
        height: 100px
    }
    .voice-icon {
        font-size: 42px
    }
    .voice-status {
        font-size: 16px
    }
    .voice-transcript,
    .voice-response {
        padding: 10px;
        font-size: 13px;
        max-height: 100px
    }
}

.auth-buttons-floating {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1050;
    animation: slideInFromRight 0.5s cubic-bezier(.25, .46, .45, .94)
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100px);
        opacity: 0
    }
    100% {
        transform: translateX(0);
        opacity: 1
    }
}

.floating-auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 4px 12px rgb(0 0 0 / .15);
    white-space: nowrap
}

.floating-auth-btn svg {
    flex-shrink: 0
}

.floating-auth-btn.login-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff
}

.floating-auth-btn.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgb(102 126 234 / .4);
    background: linear-gradient(135deg, #7b8ff5, #8a5bb8)
}

.floating-auth-btn.login-btn:active {
    transform: translateY(-1px)
}

.floating-auth-btn.signup-btn {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff
}

.floating-auth-btn.signup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgb(240 147 251 / .4);
    background: linear-gradient(135deg, #f5a3fc, #ff6b7d)
}

.floating-auth-btn.signup-btn:active {
    transform: translateY(-1px)
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1)
    }
    50% {
        transform: scale(1.05)
    }
}

.floating-auth-btn.pulse {
    animation: pulse 2s ease-in-out infinite
}

.community-modal {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / .92);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 20px
}

.community-modal-content {
    background: linear-gradient(135deg, #1c1c1c, #2b2b2b);
    border: 1px solid #333;
    border-radius: 20px;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgb(0 0 0 / .6);
    animation: slideUpModal 0.4s cubic-bezier(.25, .46, .45, .94);
    overflow: hidden
}

@keyframes slideUpModal {
    0% {
        transform: translateY(50px);
        opacity: 0
    }
    100% {
        transform: translateY(0);
        opacity: 1
    }
}

.community-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #333;
    background: rgb(0 0 0 / .2);
    flex-shrink: 0
}

.community-header h3 {
    font-size: 18px;
    margin: 0
}

.community-header p {
    margin: 4px 0 0 0
}

.community-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    background: #1a1a1a
}

.community-body::-webkit-scrollbar {
    width: 8px
}

.community-body::-webkit-scrollbar-track {
    background: #1a1a1a
}

.community-body::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px
}

.community-body::-webkit-scrollbar-thumb:hover {
    background: #555
}

.community-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #888
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #2b2b2b;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.community-loading p {
    font-size: 14px;
    color: #666;
    margin: 0
}

.community-post {
    background: linear-gradient(135deg, #252525, #2b2b2b);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 2px 8px rgb(0 0 0 / .2)
}

.community-post:hover {
    background: linear-gradient(135deg, #2b2b2b, #333);
    border-color: #444;
    box-shadow: 0 4px 16px rgb(0 0 0 / .3);
    transform: translateY(-2px)
}

.community-post:last-child {
    margin-bottom: 0
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px
}

.post-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #667eea;
    box-shadow: 0 2px 8px rgb(102 126 234 / .3)
}

.post-author-info {
    flex: 1
}

.post-author-name {
    font-weight: 600;
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px
}

.post-author-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: .5px;
    box-shadow: 0 2px 4px rgb(102 126 234 / .3)
}

.post-timestamp {
    font-size: 12px;
    color: #666;
    margin-top: 2px
}

.post-content {
    margin-bottom: 15px
}

.post-text {
    color: #eee;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 15px;
    word-wrap: break-word;
    white-space: pre-wrap
}

.post-text a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s
}

.post-text a:hover {
    color: #8a9fff;
    text-decoration: underline
}

.post-media {
    margin: 15px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 12px rgb(0 0 0 / .4)
}

.post-media img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease
}

.post-media img:hover {
    transform: scale(1.02)
}

.post-media video {
    width: 100%;
    max-height: 450px;
    display: block;
    background: #000
}

.post-media video:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px
}

.post-actions {
    display: flex;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid #333;
    flex-wrap: wrap
}

.post-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgb(255 255 255 / .03);
    border: 1px solid #333;
    color: #888;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s cubic-bezier(.4, 0, .2, 1);
    user-select: none
}

.post-action-btn:hover {
    background: rgb(255 255 255 / .08);
    color: #fff;
    border-color: #444;
    transform: translateY(-1px)
}

.post-action-btn:active {
    transform: translateY(0)
}

.post-action-btn.upvoted {
    color: #4CAF50;
    background: rgb(76 175 80 / .1);
    border-color: #4CAF50
}

.post-action-btn.upvoted:hover {
    background: rgb(76 175 80 / .15)
}

.post-action-btn.downvoted {
    color: #f44336;
    background: rgb(244 67 54 / .1);
    border-color: #f44336
}

.post-action-btn.downvoted:hover {
    background: rgb(244 67 54 / .15)
}

.post-action-btn[onclick*="comment"] {
    color: #667eea
}

.post-action-btn span {
    font-weight: 600;
    min-width: 20px;
    text-align: center
}

.comments-list {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #2b2b2b
}

.comments-list>p {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px
}

.comment-item {
    background: #1a1a1a;
    border: 1px solid #2b2b2b;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 10px;
    transition: all 0.2s ease
}

.comment-item:hover {
    background: #222;
    border-color: #333
}

.comment-item:last-child {
    margin-bottom: 0
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px
}

.comment-author {
    font-weight: 600;
    color: #fff;
    font-size: 14px
}

.comment-time {
    font-size: 11px;
    color: #666
}

.comment-text {
    color: #ddd;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
    white-space: pre-wrap
}

.community-comment-section {
    border-top: 1px solid #333;
    background: #1a1a1a;
    flex-shrink: 0
}

#communityCommentInput {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #444;
    background: #222;
    color: #fff;
    resize: vertical;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.2s ease
}

#communityCommentInput:focus {
    outline: none;
    border-color: #667eea;
    background: #252525;
    box-shadow: 0 0 0 3px rgb(102 126 234 / .1)
}

#communityCommentInput::placeholder {
    color: #666
}

#commentCharCount {
    font-size: 12px;
    color: #666;
    transition: color 0.2s ease
}

.submit-comment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 4px 12px rgb(102 126 234 / .3)
}

.submit-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgb(102 126 234 / .4);
    background: linear-gradient(135deg, #7b8ff5, #8a5bb8)
}

.submit-comment-btn:active {
    transform: translateY(0)
}

.submit-comment-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none
}

.submit-comment-btn svg {
    flex-shrink: 0
}

.sidebar.guest-mode {
    transform: translateX(-100%);
    pointer-events: none
}

.guest-mode .menu-btn[onclick*="prepDeepThink"],
.guest-mode .menu-btn[onclick*="prepLearnMode"],
.guest-mode .temp-chat-btn,
.guest-mode #communityLink {
    display: none !important
}

.guest-mode~.toggle-btn {
    display: none
}

body.light-theme .floating-auth-btn.login-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 12px rgb(102 126 234 / .25)
}

body.light-theme .floating-auth-btn.signup-btn {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    box-shadow: 0 4px 12px rgb(240 147 251 / .25)
}

body.light-theme .community-modal {
    background: rgb(0 0 0 / .7)
}

body.light-theme .community-modal-content {
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    border-color: #ddd;
    box-shadow: 0 20px 60px rgb(0 0 0 / .15)
}

body.light-theme .community-header {
    border-bottom-color: #e0e0e0;
    background: rgb(0 0 0 / .02)
}

body.light-theme .community-header h3 {
    color: #333
}

body.light-theme .community-header p {
    color: #666
}

body.light-theme .community-body {
    background: #f5f5f5
}

body.light-theme .community-body::-webkit-scrollbar-track {
    background: #f0f0f0
}

body.light-theme .community-body::-webkit-scrollbar-thumb {
    background: #ccc
}

body.light-theme .community-body::-webkit-scrollbar-thumb:hover {
    background: #bbb
}

body.light-theme .loading-spinner {
    border-color: #e0e0e0;
    border-top-color: #667eea
}

body.light-theme .community-loading p {
    color: #999
}

body.light-theme .community-post {
    background: linear-gradient(135deg, #ffffff, #fafafa);
    border-color: #e0e0e0;
    box-shadow: 0 2px 8px rgb(0 0 0 / .06)
}

body.light-theme .community-post:hover {
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    border-color: #d0d0d0;
    box-shadow: 0 4px 16px rgb(0 0 0 / .1)
}

body.light-theme .post-author-name,
body.light-theme .post-text {
    color: #333
}

body.light-theme .post-timestamp,
body.light-theme .comment-time {
    color: #999
}

body.light-theme .post-actions {
    border-top-color: #e0e0e0
}

body.light-theme .post-action-btn {
    background: rgb(0 0 0 / .02);
    border-color: #e0e0e0;
    color: #666
}

body.light-theme .post-action-btn:hover {
    background: rgb(0 0 0 / .05);
    color: #333;
    border-color: #d0d0d0
}

body.light-theme .comment-item {
    background: #fafafa;
    border-color: #e0e0e0
}

body.light-theme .comment-item:hover {
    background: #f5f5f5;
    border-color: #d0d0d0
}

body.light-theme .comment-author,
body.light-theme .comment-text {
    color: #333
}

body.light-theme .community-comment-section {
    border-top-color: #e0e0e0;
    background: #fafafa
}

body.light-theme #communityCommentInput {
    background: #fff;
    border-color: #d0d0d0;
    color: #333
}

body.light-theme #communityCommentInput:focus {
    border-color: #667eea;
    background: #fff
}

body.light-theme #communityCommentInput::placeholder {
    color: #999
}

body.light-theme #commentCharCount {
    color: #999
}

@media (max-width:768px) {
    .auth-buttons-floating {
        top: 15px;
        right: 15px;
        gap: 8px;
        flex-direction: column
    }
    .floating-auth-btn {
        padding: 8px 16px;
        font-size: 13px;
        width: auto
    }
    .community-modal {
        padding: 10px
    }
    .community-modal-content {
        max-height: 92vh;
        border-radius: 16px
    }
    .community-header {
        padding: 15px 18px;
        flex-wrap: wrap
    }
    .community-header h3 {
        font-size: 16px
    }
    .community-body {
        padding: 15px
    }
    .community-post {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 12px
    }
    .post-author-avatar {
        width: 38px;
        height: 38px
    }
    .post-author-name {
        font-size: 14px
    }
    .post-text {
        font-size: 14px
    }
    .post-media img,
    .post-media video {
        max-height: 300px;
        border-radius: 10px
    }
    .post-actions {
        gap: 8px
    }
    .post-action-btn {
        padding: 6px 12px;
        font-size: 13px
    }
    .comment-item {
        padding: 10px 12px
    }
    .comment-author {
        font-size: 13px
    }
    .comment-text {
        font-size: 13px
    }
    .community-comment-section {
        padding: 12px
    }
    #communityCommentInput {
        font-size: 13px;
        padding: 10px
    }
    .submit-comment-btn {
        padding: 8px 18px;
        font-size: 13px
    }
}

@media (max-width:480px) {
    .auth-buttons-floating {
        top: 10px;
        right: 10px
    }
    .floating-auth-btn {
        padding: 7px 14px;
        font-size: 12px
    }
    .floating-auth-btn svg {
        width: 16px;
        height: 16px
    }
    .community-header {
        padding: 12px 15px
    }
    .community-header img {
        width: 32px
    }
    .community-body {
        padding: 12px
    }
    .community-post {
        padding: 12px
    }
    .post-actions {
        flex-wrap: wrap;
        gap: 6px
    }
}

.guest-mode .img-action-btn[onclick*="cameraInput"],
.guest-mode .img-action-btn[onclick*="galleryInput"],
.guest-mode .img-action-btn[onclick*="fileInput"] {
    display: none !important
}

.admin-tab {
    flex: 1;
    padding: 12px 20px;
    background: #fff0;
    border: none;
    border-bottom: 2px solid #fff0;
    color: #888;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    overflow: auto
}

.admin-tab:hover {
    color: #fff;
    background: rgb(255 255 255 / .05)
}

.admin-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgb(102 126 234 / .1)
}

.admin-post-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.admin-post-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px
}

.admin-post-actions button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s
}

.admin-edit-btn {
    background: #667eea;
    color: #fff
}

.admin-edit-btn:hover {
    background: #5568d3;
    transform: translateY(-1px)
}

.admin-delete-btn {
    background: #f44336;
    color: #fff
}

.admin-delete-btn:hover {
    background: #d32f2f;
    transform: translateY(-1px)
}

body.light-theme .admin-post-card {
    background: #f9f9f9;
    border-color: #ddd
}

body.light-theme .admin-tab {
    color: #666
}

body.light-theme .admin-tab:hover {
    color: #333;
    background: rgb(0 0 0 / .03)
}

body.light-theme .admin-tab.active {
    color: #667eea;
    background: rgb(102 126 234 / .08)
}

.guest-new-chat-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 25px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgb(102 126 234 / .3);
    transition: all 0.3s ease
}

.guest-new-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgb(102 126 234 / .4);
    background: linear-gradient(135deg, #7b8ff5, #8a5bb8)
}

.guest-new-chat-btn:active {
    transform: translateY(0)
}

.guest-new-chat-btn svg {
    flex-shrink: 0
}

.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1c1c1c, #2b2b2b);
    border: 1px solid #444;
    border-radius: 16px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    z-index: 100000;
    box-shadow: 0 10px 40px rgb(0 0 0 / .6);
    animation: slideUpCookie 0.5s ease
}

@keyframes slideUpCookie {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1
    }
}

.cookie-content {
    display: flex;
    gap: 15px;
    margin-bottom: 15px
}

.cookie-icon {
    font-size: 32px;
    flex-shrink: 0
}

.cookie-text h4 {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600
}

.cookie-text p {
    margin: 0;
    color: #aaa;
    font-size: 14px;
    line-height: 1.5
}

.cookie-buttons {
    display: flex;
    gap: 10px
}

.cookie-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease
}

.cookie-btn.accept {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #fff
}

.cookie-btn.accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(76 175 80 / .4)
}

.cookie-btn.decline {
    background: #333;
    color: #aaa
}

.cookie-btn.decline:hover {
    background: #444;
    color: #fff
}

body.light-theme .cookie-consent {
    background: linear-gradient(135deg, #ffffff, #f4f4f4);
    border-color: #ddd;
    box-shadow: 0 10px 40px rgb(0 0 0 / .15)
}

body.light-theme .cookie-text h4 {
    color: #333
}

body.light-theme .cookie-text p {
    color: #666
}

body.light-theme .cookie-btn.decline {
    background: #f0f0f0;
    color: #666
}

body.light-theme .cookie-btn.decline:hover {
    background: #e0e0e0;
    color: #333
}

.community-modal-shorts {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / .98);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease
}

.community-modal-content-shorts {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: #000;
    overflow: hidden
}

.shorts-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: rgb(0 0 0 / .5);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff
}

.shorts-close-btn:hover {
    background: rgb(255 255 255 / .2);
    transform: scale(1.1)
}

.shorts-posts-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch
}

.shorts-posts-container::-webkit-scrollbar {
    display: none
}

.shorts-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff
}

.shorts-loading p {
    margin-top: 15px;
    font-size: 16px;
    color: #aaa
}

.shorts-post-card {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #1a1a1a 0%, #000 100%)
}

.shorts-post-media {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}

.shorts-post-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain
}

.shorts-post-media video {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.shorts-post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgb(0 0 0 / .9) 0%, transparent 100%);
    padding: 80px 20px 20px;
    color: #fff;
    z-index: 10
}

.shorts-post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px
}

.shorts-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #667eea;
    object-fit: cover
}

.shorts-author-info {
    flex: 1
}

.shorts-author-name {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff
}

.shorts-author-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: .5px
}

.shorts-post-timestamp {
    font-size: 11px;
    color: #aaa;
    margin-top: 2px
}

.shorts-post-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    max-height: 120px;
    overflow-y: auto;
    color: #fff
}

.shorts-post-text::-webkit-scrollbar {
    width: 3px
}

.shorts-post-text::-webkit-scrollbar-thumb {
    background: rgb(255 255 255 / .3);
    border-radius: 3px
}

.shorts-actions {
    position: absolute;
    right: 15px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 20
}

.shorts-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease
}

.shorts-action-btn:active {
    transform: scale(1.2)
}

.shorts-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgb(255 255 255 / .1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease
}

.shorts-action-btn:hover .shorts-action-icon {
    background: rgb(255 255 255 / .2)
}

.shorts-action-btn.active .shorts-action-icon {
    background: rgb(102 126 234 / .3);
    border: 2px solid #667eea
}

.shorts-action-count {
    font-size: 12px;
    font-weight: 600;
    color: #fff
}

.shorts-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(0 0 0 / .5);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s ease;
    z-index: 50
}

.shorts-nav:hover {
    background: rgb(255 255 255 / .2);
    transform: translateY(-50%) scale(1.1)
}

.shorts-nav.prev {
    left: 20px
}

.shorts-nav.next {
    right: 20px
}

.shorts-nav:disabled {
    opacity: .3;
    cursor: not-allowed
}

.shorts-nav:disabled:hover {
    transform: translateY(-50%) scale(1)
}

.profile-picture-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px
}

.profile-picture-preview {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #667eea;
    cursor: pointer;
    transition: all 0.3s ease
}

.profile-picture-preview:hover {
    border-color: #7b8ff5;
    transform: scale(1.05)
}

.profile-picture-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.profile-picture-overlay {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / .6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease
}

.profile-picture-preview:hover .profile-picture-overlay {
    opacity: 1
}

.upload-picture-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgb(102 126 234 / .3)
}

.upload-picture-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(102 126 234 / .4)
}

.upload-picture-btn:active {
    transform: translateY(0)
}

.save-profile-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgb(76 175 80 / .3)
}

.save-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(76 175 80 / .4)
}

.save-profile-btn:active {
    transform: translateY(0)
}

.save-profile-btn svg {
    flex-shrink: 0
}

body.light-theme .profile-picture-preview {
    border-color: #007bff
}

body.light-theme .profile-picture-preview:hover {
    border-color: #0056b3
}

@media (max-width:768px) {
    .guest-new-chat-btn {
        top: 10px;
        left: 10px;
        padding: 8px 14px;
        font-size: 13px
    }
    .guest-new-chat-btn svg {
        width: 18px;
        height: 18px
    }
    .cookie-consent {
        bottom: 15px;
        padding: 15px;
        max-width: 95%
    }
    .cookie-icon {
        font-size: 28px
    }
    .cookie-text h4 {
        font-size: 16px
    }
    .cookie-text p {
        font-size: 13px
    }
    .shorts-nav {
        width: 40px;
        height: 40px
    }
    .shorts-nav svg {
        width: 24px;
        height: 24px
    }
    .shorts-nav.prev {
        left: 10px
    }
    .shorts-nav.next {
        right: 10px
    }
    .shorts-actions {
        right: 10px;
        bottom: 80px;
        gap: 15px
    }
    .shorts-action-icon {
        width: 40px;
        height: 40px;
        font-size: 18px
    }
    .shorts-action-count {
        font-size: 11px
    }
    .profile-picture-preview {
        width: 100px;
        height: 100px
    }
    .upload-picture-btn {
        font-size: 13px;
        padding: 8px 16px
    }
}

@media (max-width:480px) {
    .cookie-consent {
        padding: 12px
    }
    .cookie-buttons {
        flex-direction: column
    }
    .cookie-btn {
        width: 100%
    }
}

.comment-modal {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / .85);
    backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.3s ease
}

.comment-modal-content {
    background: linear-gradient(135deg, #1c1c1c, #2b2b2b);
    border: 1px solid #333;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgb(0 0 0 / .6);
    animation: slideUpModal 0.4s ease
}

@keyframes slideUpModal {
    from {
        transform: translateY(100%);
        opacity: 0
    }
    to {
        transform: translateY(0);
        opacity: 1
    }
}

.comment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #333;
    background: rgb(0 0 0 / .2);
    flex-shrink: 0
}

.comment-modal-header h3 {
    font-size: 18px;
    color: #fff;
    margin: 0
}

.comments-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #1a1a1a
}

.comments-list-container::-webkit-scrollbar {
    width: 6px
}

.comments-list-container::-webkit-scrollbar-track {
    background: #1a1a1a
}

.comments-list-container::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px
}

.comments-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #888
}

.comment-item-modal {
    background: #252525;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.2s ease
}

.comment-item-modal:hover {
    background: #2b2b2b;
    border-color: #444
}

.comment-item-modal:last-child {
    margin-bottom: 0
}

.comment-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px
}

.comment-item-author {
    font-weight: 600;
    color: #fff;
    font-size: 14px
}

.comment-item-time {
    font-size: 11px;
    color: #666
}

.comment-item-text {
    color: #ddd;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
    white-space: pre-wrap
}

.comment-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666
}

.comment-empty-state div {
    font-size: 48px;
    margin-bottom: 15px
}

.comment-input-section {
    border-top: 1px solid #333;
    background: #1a1a1a;
    padding: 15px 20px;
    flex-shrink: 0
}

#commentTextarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #444;
    background: #222;
    color: #fff;
    resize: vertical;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.2s ease
}

#commentTextarea:focus {
    outline: none;
    border-color: #667eea;
    background: #252525;
    box-shadow: 0 0 0 3px rgb(102 126 234 / .1)
}

#commentTextarea::placeholder {
    color: #666
}

#commentCharCounter {
    font-size: 12px;
    color: #666;
    transition: color 0.2s ease
}

body.light-theme .comment-modal {
    background: rgb(0 0 0 / .7)
}

body.light-theme .comment-modal-content {
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    border-color: #ddd
}

body.light-theme .comment-modal-header {
    border-bottom-color: #e0e0e0;
    background: rgb(0 0 0 / .02)
}

body.light-theme .comment-modal-header h3 {
    color: #333
}

body.light-theme .comments-list-container {
    background: #f5f5f5
}

body.light-theme .comment-item-modal {
    background: #fff;
    border-color: #e0e0e0
}

body.light-theme .comment-item-modal:hover {
    background: #f9f9f9;
    border-color: #d0d0d0
}

body.light-theme .comment-item-author,
body.light-theme .comment-item-text {
    color: #333
}

body.light-theme .comment-item-time {
    color: #999
}

body.light-theme .comment-input-section {
    border-top-color: #e0e0e0;
    background: #fafafa
}

body.light-theme #commentTextarea {
    background: #fff;
    border-color: #d0d0d0;
    color: #333
}

body.light-theme #commentTextarea:focus {
    border-color: #667eea
}

body.light-theme #commentTextarea::placeholder {
    color: #999
}

@media (max-width:768px) {
    .comment-modal-content {
        max-height: 90vh
    }
    .comment-modal-header {
        padding: 15px 18px
    }
    .comments-list-container {
        padding: 15px
    }
    .comment-item-modal {
        padding: 12px
    }
    .comment-input-section {
        padding: 12px 15px
    }
}

.reply-bubble-ai {
    animation: bubbleFadeIn 0.2s ease
}

@keyframes bubbleFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

body.light-theme #replyPreviewContainer {
    background: rgb(230 230 230 / .95) !important;
    border-color: #ccc !important
}

body.light-theme #replyPreviewContainer svg {
    fill: #667eea !important
}

body.light-theme #replyPreviewText {
    color: #333 !important
}

body.light-theme .reply-bubble-ai {
    background: linear-gradient(135deg, #667eea, #764ba2) !important
}

.user-profile-btn {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1c1c1c, #0f0f0f);
    border-top: 1px solid #333;
    padding: 12px;
    margin: 0 -20px -20px -20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001
}

.user-profile-btn:hover {
    background: linear-gradient(180deg, #252525, #1a1a1a)
}

.user-profile-main {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 10px;
    transition: background 0.2s ease
}

.user-profile-main:hover {
    background: rgb(255 255 255 / .05)
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0
}

.user-info-text {
    flex: 1;
    min-width: 0
}

.user-name {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.user-status {
    font-size: 11px;
    color: #888
}

.chevron-icon {
    width: 16px;
    height: 16px;
    fill: #888;
    transition: transform 0.3s ease
}

.user-profile-btn.expanded .chevron-icon {
    transform: rotate(180deg)
}

.user-dropdown-menu {
    display: none;
    padding: 8px 0;
    margin-top: 8px;
    border-top: 1px solid #333
}

.user-dropdown-menu.show {
    display: block;
    animation: slideDown 0.3s ease
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #ccc;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin: 2px 0
}

.user-menu-item:hover {
    background: rgb(255 255 255 / .08);
    color: #fff
}

.user-menu-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor
}

body.light-theme .user-profile-btn {
    background: linear-gradient(180deg, #f9f9f9, #f0f0f0);
    border-top-color: #ddd
}

body.light-theme .user-profile-main:hover {
    background: rgb(0 0 0 / .03)
}

body.light-theme .user-name {
    color: #333
}

body.light-theme .user-status {
    color: #666
}

body.light-theme .chevron-icon {
    fill: #666
}

body.light-theme .user-dropdown-menu {
    border-top-color: #ddd
}

body.light-theme .user-menu-item {
    color: #555
}

body.light-theme .user-menu-item:hover {
    background: rgb(0 0 0 / .05);
    color: #333
}

input[readonly] {
    background-color: #e5e7eb;
    cursor: not-allowed;
    opacity: .8
}

#chatsBtn {
    position: relative
}

#chatsPanel {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto
}

#chatsPanel::-webkit-scrollbar {
    width: 4px
}

#chatsPanel::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 2px
}

.sidebar-chat-item {
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden
}

.sidebar-chat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgb(102 126 234 / .2), transparent);
    transition: width 0.3s ease
}

.sidebar-chat-item:hover {
    background: #2b2b2b;
    border-color: #667eea;
    transform: translateX(5px)
}

.sidebar-chat-item:hover::before {
    width: 100%
}

.sidebar-chat-item.highlight {
    animation: highlightPulse 0.6s ease
}

@keyframes highlightPulse {
    0%,
    100% {
        background: #222;
        border-color: #333
    }
    50% {
        background: rgb(102 126 234 / .3);
        border-color: #667eea
    }
}

.sidebar-chat-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.sidebar-chat-date {
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px
}

.language-submenu {
    position: absolute;
    right: -160px;
    top: 0;
    width: 160px;
    background: #2b2b2b;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgb(0 0 0 / .4);
    z-index: 10000
}

.language-submenu-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #ccc
}

.language-submenu-item:hover {
    background: #333;
    color: #fff
}

.language-submenu-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px
}

.language-submenu-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px
}

.language-submenu-item.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff
}

body.light-theme #chatsPanel {
    background: #f9f9f9;
    border-color: #ddd
}

body.light-theme .sidebar-chat-item {
    background: #fff;
    border-color: #e0e0e0
}

body.light-theme .sidebar-chat-item:hover {
    background: #f5f5f5;
    border-color: #667eea
}

body.light-theme .sidebar-chat-title {
    color: #333
}

body.light-theme .sidebar-chat-date {
    color: #666
}

body.light-theme .language-submenu {
    background: #fff;
    border-color: #ddd
}

body.light-theme .language-submenu-item {
    color: #333
}

body.light-theme .language-submenu-item:hover {
    background: #f5f5f5
}

#chatsPanel {
    background: linear-gradient(180deg, #1a1a1a, #252525);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgb(0 0 0 / .3)
}

#chatsPanel::-webkit-scrollbar {
    width: 6px
}

#chatsPanel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 3px
}

#sidebarChatsSearch {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid #444;
    background: #1a1a1a;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease
}

#sidebarChatsSearch:focus {
    outline: none;
    border-color: #667eea;
    background: #252525;
    box-shadow: 0 0 0 3px rgb(102 126 234 / .1)
}

#sidebarChatsSearch::placeholder {
    color: #666
}

.sidebar-chat-item {
    background: linear-gradient(135deg, #2b2b2b, #1f1f1f);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden
}

.sidebar-chat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    transform: scaleY(0);
    transition: transform 0.3s ease
}

.sidebar-chat-item:hover {
    background: linear-gradient(135deg, #333, #2b2b2b);
    border-color: #667eea;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgb(102 126 234 / .2)
}

.sidebar-chat-item:hover::before {
    transform: scaleY(1)
}

.sidebar-chat-item.highlight {
    animation: highlightPulse 0.6s ease
}

@keyframes highlightPulse {
    0%,
    100% {
        background: linear-gradient(135deg, #2b2b2b, #1f1f1f);
        border-color: #333
    }
    50% {
        background: rgb(102 126 234 / .3);
        border-color: #667eea
    }
}

.sidebar-chat-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: .3px
}

.sidebar-chat-date {
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px
}

.sidebar-chat-date svg {
    flex-shrink: 0;
    opacity: .7
}

#chatsBtn {
    position: relative;
    transition: all 0.3s ease
}

#chatsBtn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 4px 12px rgb(102 126 234 / .4)
}

.pricing-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / .9);
    backdrop-filter: blur(10px);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 20px
}

.pricing-modal-content {
    background: linear-gradient(135deg, #1c1c1c, #2b2b2b);
    border: 1px solid #333;
    border-radius: 20px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgb(0 0 0 / .6);
    animation: slideUpModal 0.4s ease
}

.pricing-header {
    text-align: center;
    padding: 40px 20px 20px;
    border-bottom: 1px solid #333
}

.pricing-header h2 {
    font-size: 36px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #fff0;
    margin-bottom: 10px
}

.pricing-header p {
    color: #aaa;
    font-size: 16px
}

.pricing-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap
}

.billing-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #252525;
    padding: 8px 16px;
    border-radius: 25px;
    border: 1px solid #444
}

.billing-toggle span {
    color: #fff;
    font-size: 14px;
    font-weight: 600
}

.billing-toggle .save-badge {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700
}

.currency-selector {
    display: flex;
    align-items: center;
    gap: 8px
}

.currency-selector select {
    background: #252525;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 14px;
    cursor: pointer
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 30px 20px;
    max-width: 1100px;
    margin: 0 auto
}

.pricing-card {
    background: linear-gradient(135deg, #252525, #1f1f1f);
    border: 2px solid #333;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgb(102 126 234 / .3);
    border-color: #667eea
}

.pricing-card.featured {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgb(102 126 234 / .4)
}

.pricing-card.featured::before {
    content: '🔥 MOST POPULAR';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px
}

.plan-price {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(90deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #fff0;
    margin-bottom: 5px
}

.plan-price .currency {
    font-size: 24px;
    opacity: .8
}

.plan-price .period {
    font-size: 16px;
    color: #888;
    font-weight: 400
}

.plan-description {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 25px
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0
}

.plan-features li {
    padding: 10px 0;
    color: #ddd;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px
}

.plan-features li::before {
    content: '✓';
    color: #4CAF50;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0
}

.plan-features li.disabled {
    opacity: .4
}

.plan-features li.disabled::before {
    content: '✗';
    color: #666
}

.subscribe-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgb(102 126 234 / .4)
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgb(102 126 234 / .5)
}

.subscribe-btn.current-plan {
    background: #2b2b2b;
    border: 2px solid #667eea;
    color: #667eea;
    cursor: default
}

.subscribe-btn.current-plan:hover {
    transform: none
}

.close-pricing-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgb(255 255 255 / .1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease
}

.close-pricing-btn:hover {
    background: rgb(255 255 255 / .2);
    transform: rotate(90deg)
}

body.light-theme .pricing-modal-content {
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    border-color: #ddd
}

body.light-theme .pricing-card {
    background: linear-gradient(135deg, #fff, #f5f5f5);
    border-color: #e0e0e0
}

body.light-theme .plan-name,
body.light-theme .plan-features li {
    color: #333
}

body.light-theme .plan-description {
    color: #666
}

body.light-theme .billing-toggle,
body.light-theme .currency-selector select {
    background: #f0f0f0;
    border-color: #ddd;
    color: #333
}

body.light-theme #chatsPanel {
    background: linear-gradient(180deg, #f9f9f9, #f0f0f0);
    border-color: #ddd
}

body.light-theme .sidebar-chat-item {
    background: linear-gradient(135deg, #fff, #f9f9f9);
    border-color: #e0e0e0
}

body.light-theme .sidebar-chat-item:hover {
    background: linear-gradient(135deg, #f5f5f5, #f0f0f0);
    border-color: #667eea
}

body.light-theme .sidebar-chat-title {
    color: #333
}

body.light-theme .sidebar-chat-date {
    color: #666
}

body.light-theme #sidebarChatsSearch {
    background: #fff;
    border-color: #ddd;
    color: #333
}

@media (max-width:768px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        padding: 20px 15px
    }
    .pricing-header h2 {
        font-size: 28px
    }
    .pricing-controls {
        flex-direction: column
    }
}

.pricing-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / .92);
    backdrop-filter: blur(10px);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
    overflow-y: auto
}

.pricing-modal-content {
    background: linear-gradient(135deg, #1c1c1c, #2b2b2b);
    border: 1px solid #333;
    border-radius: 20px;
    width: 100%;
    max-width: 1200px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgb(0 0 0 / .6);
    animation: slideUpModal 0.4s ease;
    position: relative
}

.close-pricing-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgb(255 255 255 / .1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
    z-index: 10
}

.close-pricing-btn:hover {
    background: rgb(255 255 255 / .2);
    transform: rotate(90deg)
}

.pricing-header {
    text-align: center;
    padding: 40px 20px 20px;
    border-bottom: 1px solid #333
}

.pricing-header h2 {
    font-size: 36px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #fff0;
    margin-bottom: 10px
}

.pricing-header p {
    color: #aaa;
    font-size: 16px
}

.pricing-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap
}

.billing-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #252525;
    padding: 8px 16px;
    border-radius: 25px;
    border: 1px solid #444
}

.billing-toggle span {
    color: #888;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s
}

.billing-toggle span.active {
    color: #fff
}

.billing-toggle .save-badge {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700
}

.currency-selector {
    display: flex;
    align-items: center;
    gap: 8px
}

.currency-selector select {
    background: #252525;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 14px;
    cursor: pointer
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 30px 20px;
    max-width: 1100px;
    margin: 0 auto
}

.pricing-card {
    background: linear-gradient(135deg, #252525, #1f1f1f);
    border: 2px solid #333;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgb(102 126 234 / .3);
    border-color: #667eea
}

.pricing-card.featured {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgb(102 126 234 / .4)
}

.pricing-card.featured::before {
    content: '🔥 MOST POPULAR';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px
}

.plan-price {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(90deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #fff0;
    margin-bottom: 5px
}

.plan-price .currency {
    font-size: 24px;
    opacity: .8
}

.plan-price .period {
    font-size: 16px;
    color: #888;
    font-weight: 400
}

.plan-description {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 25px
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0
}

.plan-features li {
    padding: 10px 0;
    color: #ddd;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px
}

.plan-features li::before {
    content: '✓';
    color: #4CAF50;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0
}

.plan-features li.disabled {
    opacity: .4
}

.plan-features li.disabled::before {
    content: '✗';
    color: #666
}

.subscribe-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgb(102 126 234 / .4)
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgb(102 126 234 / .5)
}

.subscribe-btn.current-plan {
    background: #2b2b2b;
    border: 2px solid #667eea;
    color: #667eea;
    cursor: default
}

.subscribe-btn.current-plan:hover {
    transform: none
}

body.light-theme .pricing-modal-content {
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    border-color: #ddd
}

body.light-theme .pricing-card {
    background: linear-gradient(135deg, #fff, #f5f5f5);
    border-color: #e0e0e0
}

body.light-theme .plan-name,
body.light-theme .plan-features li {
    color: #333
}

body.light-theme .plan-description {
    color: #666
}

body.light-theme .billing-toggle,
body.light-theme .currency-selector select {
    background: #f0f0f0;
    border-color: #ddd;
    color: #333
}

body.light-theme .billing-toggle span {
    color: #666
}

body.light-theme .billing-toggle span.active {
    color: #333
}

.gte-night-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / .95);
    backdrop-filter: blur(10px);
    z-index: 100001;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease
}

.gte-night-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #667eea;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgb(102 126 234 / .4);
    animation: slideUpModal 0.4s ease;
    display: flex;
    flex-direction: column
}

.gte-night-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.gte-night-header h3 {
    font-size: 20px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px
}

.gte-night-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #0f3460
}

.gte-night-messages::-webkit-scrollbar {
    width: 6px
}

.gte-night-messages::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px
}

.gte-msg {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 85%;
    white-space: pre-wrap;
    word-wrap: break-word;
    animation: slideIn 0.3s ease
}

.gte-msg.user {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    margin-left: auto
}

.gte-msg.bot {
    background: rgb(255 255 255 / .1);
    color: #fff;
    margin-right: auto
}

.gte-night-input {
    display: flex;
    border-top: 2px solid #667eea;
    background: #16213e
}

.gte-night-input input {
    flex: 1;
    padding: 15px;
    border: none;
    outline: none;
    background: #fff0;
    color: #fff;
    font-size: 14px
}

.gte-night-input input::placeholder {
    color: #888
}

.gte-night-input button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s
}

.gte-night-input button:hover {
    background: linear-gradient(135deg, #7b8ff5, #8a5bb8)
}

.gte-night-input button.stop {
    background: linear-gradient(135deg, #ff4d4d, #d32f2f)
}

.gte-night-input button.stop:hover {
    background: linear-gradient(135deg, #ff3333, #c62828)
}

.model-option.pro-only {
    opacity: .5;
    position: relative
}

.model-option.pro-only::after {
    content: '🔒 Pro';
    position: absolute;
    right: 40px;
    font-size: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700
}

.model-option.pro-only:hover {
    background: rgb(102 126 234 / .1)
}

@media (max-width:768px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        padding: 20px 15px
    }
    .pricing-header h2 {
        font-size: 28px
    }
    .pricing-controls {
        flex-direction: column
    }
    .gte-night-content {
        width: 95%;
        max-height: 90vh
    }
}

#snowCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    display: none
}

.placeholder {
    z-index: 2
}

.ai-action-btn {
    background: rgb(255 255 255 / .05);
    border: 1px solid #333;
    color: #888;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-size: 13px
}

.ai-action-btn:hover {
    background: rgb(255 255 255 / .1);
    color: #fff;
    border-color: #444
}

.ai-action-btn.liked {
    color: #4CAF50;
    background: rgb(76 175 80 / .1);
    border-color: #4CAF50
}

.ai-action-btn.disliked {
    color: #ff4d4d;
    background: rgb(255 77 77 / .1);
    border-color: #ff4d4d
}

.feedback-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgb(76 175 80 / .4);
    z-index: 10001;
    font-weight: 600;
    font-size: 14px;
    animation: slideUpNotif 0.3s ease;
    transition: opacity 0.3s ease
}

.report-modal {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / .9);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease
}

.report-modal-content {
    background: linear-gradient(135deg, #1c1c1c, #2b2b2b);
    border: 1px solid #444;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgb(0 0 0 / .6)
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #333
}

.report-header h3 {
    font-size: 18px;
    color: #fff;
    margin: 0
}

.report-header button {
    background: #fff0;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer
}

.report-body {
    padding: 25px
}

.submit-report-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff4d4d, #d32f2f);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease
}

.submit-report-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(255 77 77 / .4)
}

body.light-theme .ai-action-btn {
    background: rgb(0 0 0 / .03);
    border-color: #ddd;
    color: #666
}

body.light-theme .report-modal-content {
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    border-color: #ddd
}

.msg.user {
    position: relative;
    display: inline-block;
    max-width: 80%;
    margin-left: auto;
    margin-bottom: 45px
}

.user-message-actions {
    position: absolute;
    bottom: -35px;
    right: 0;
    display: flex;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: auto;
    transition-delay: 2s
}

.msg.user:hover .user-message-actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s
}

.msg.user.active .user-message-actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s
}

.user-action-btn {
    background: rgb(30 30 30 / .9);
    border: 1px solid rgb(255 255 255 / .1);
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    font-weight: 500
}

.user-action-btn:hover {
    background: rgb(40 40 40 / .95);
    border-color: rgb(255 255 255 / .25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(0 0 0 / .3)
}

.user-action-btn:active {
    transform: translateY(0)
}

.user-action-btn svg {
    width: 14px;
    height: 14px
}

.light-theme .user-action-btn {
    background: rgb(255 255 255 / .95);
    color: #333;
    border-color: rgb(0 0 0 / .1);
    box-shadow: 0 2px 8px rgb(0 0 0 / .1)
}

.light-theme .user-action-btn:hover {
    background: rgb(255 255 255);
    border-color: rgb(0 0 0 / .2);
    box-shadow: 0 4px 12px rgb(0 0 0 / .15)
}

.light-theme .edit-message-textarea {
    background: rgb(255 255 255 / .5) !important;
    color: #000 !important;
    border-color: var(--user-bubble-color) !important
}

#chatsPanel {
    position: fixed;
    top: 0;
    left: 280px;
    width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-right: 1px solid #333;
    box-shadow: 2px 0 10px rgb(0 0 0 / .3);
    z-index: 999;
    overflow-y: auto;
    animation: slideInLeft 0.3s ease
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0
    }
    to {
        transform: translateX(0);
        opacity: 1
    }
}

.chats-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
    background: rgb(0 0 0 / .2)
}

.chats-panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff
}

.close-panel-btn {
    background: #fff0;
    border: none;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s
}

.close-panel-btn:hover {
    background: rgb(255 255 255 / .1);
    color: #fff
}

.sidebar-search-input {
    width: calc(100% - 40px);
    margin: 15px 20px;
    padding: 12px 15px;
    background: rgb(255 255 255 / .05);
    border: 1px solid #333;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s
}

.sidebar-search-input:focus {
    background: rgb(255 255 255 / .08);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgb(102 126 234 / .1)
}

.chats-panel-content {
    padding: 0 20px 20px 20px
}

.chats-section {
    margin-bottom: 25px
}

.chats-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    margin-bottom: 10px;
    letter-spacing: .5px
}

.chats-list {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.sidebar-chat-item {
    padding: 12px 15px;
    background: rgb(255 255 255 / .03);
    border: 1px solid #fff0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s
}

.sidebar-chat-item:hover {
    background: rgb(102 126 234 / .1);
    border-color: #667eea;
    transform: translateX(5px)
}

.sidebar-chat-item.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea
}

.sidebar-chat-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.sidebar-chat-date {
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px
}

.sidebar-chat-item.active .sidebar-chat-date {
    color: rgb(255 255 255 / .8)
}

#chatsBtn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 600
}

@media (max-width:768px) {
    #chatsPanel {
        left: 0;
        width: 100%;
        max-width: 100vw
    }
}

.chats-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666
}

.chats-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    opacity: .3
}

body.empty-chat .input-area {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 90%;
    max-width: 800px;
    background: rgb(0 0 0 / .7);
    border: 1px solid #333;
    border-radius: 30px;
    transition: all 0.5s cubic-bezier(.4, 0, .2, 1)
}

body.empty-chat .note {
    display: none
}

body.light-theme.empty-chat .input-area {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 90%;
    max-width: 800px;
    background: rgb(255 255 255 / .85);
    border: 1px solid #333;
    border-radius: 30px;
    transition: all 0.5s cubic-bezier(.4, 0, .2, 1)
}

.help-center-modal {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / .92);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease
}

.help-center-content {
    background: linear-gradient(135deg, #1c1c1c, #2b2b2b);
    border: 1px solid #333;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgb(0 0 0 / .6);
    animation: slideUpModal 0.4s ease;
    display: flex;
    flex-direction: column
}

.help-center-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #333;
    background: rgb(0 0 0 / .2)
}

.help-center-header h2 {
    margin: 0;
    font-size: 24px;
    color: #fff
}

.close-help-btn {
    background: #fff0;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.2s
}

.close-help-btn:hover {
    background: rgb(255 255 255 / .1);
    color: #fff
}

.help-center-search {
    padding: 20px 30px;
    border-bottom: 1px solid #333
}

.help-center-search input {
    width: 100%;
    padding: 12px 18px;
    background: rgb(255 255 255 / .05);
    border: 1px solid #444;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s
}

.help-center-search input:focus {
    background: rgb(255 255 255 / .08);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgb(102 126 234 / .1)
}

.help-center-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px
}

.help-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap
}

.help-category {
    padding: 10px 20px;
    background: rgb(255 255 255 / .05);
    border: 1px solid #333;
    border-radius: 20px;
    color: #aaa;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s
}

.help-category:hover {
    background: rgb(255 255 255 / .08);
    color: #fff
}

.help-category.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: #fff
}

.help-articles {
    display: grid;
    gap: 15px
}

.help-article {
    display: flex;
    gap: 15px;
    padding: 18px;
    background: rgb(255 255 255 / .03);
    border: 1px solid #333;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease
}

.help-article:hover {
    background: rgb(102 126 234 / .1);
    border-color: #667eea;
    transform: translateX(5px)
}

.help-article-icon {
    font-size: 32px;
    flex-shrink: 0
}

.help-article-content {
    flex: 1
}

.help-article-content h4 {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600
}

.help-article-content p {
    margin: 0;
    color: #888;
    font-size: 13px;
    line-height: 1.5
}

.help-article-modal {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / .95);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease
}

.help-article-modal-content {
    background: linear-gradient(135deg, #1c1c1c, #2b2b2b);
    border: 1px solid #333;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgb(0 0 0 / .6);
    animation: slideUpModal 0.4s ease;
    display: flex;
    flex-direction: column
}

.help-article-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #333
}

.back-help-btn {
    background: #fff0;
    border: none;
    color: #667eea;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.2s
}

.back-help-btn:hover {
    background: rgb(102 126 234 / .1)
}

.help-article-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px
}

.help-article-modal-body h1 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 20px
}

.help-article-modal-body h3 {
    font-size: 18px;
    color: #fff;
    margin-top: 25px;
    margin-bottom: 10px
}

.help-article-modal-body p {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 15px
}

.help-article-modal-body ul,
.help-article-modal-body ol {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 15px;
    padding-left: 25px
}

.help-article-modal-body code {
    background: rgb(255 255 255 / .1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #667eea
}

.toggle-chats-btn {
    background: #fff0;
    border: none;
    color: gray;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease
}

.toggle-chats-btn:hover {
    background: rgb(255 255 255 / .1);
    color: #fff
}

.toggle-chats-btn svg {
    transition: transform 0.3s ease
}

.toggle-chats-btn.collapsed svg {
    transform: rotate(-90deg)
}

#recentChatsContainer.collapsed {
    display: none
}

body.light-theme .help-center-content,
body.light-theme .help-article-modal-content {
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    border-color: #ddd
}

body.light-theme .help-center-header,
body.light-theme .help-article-modal-header {
    border-bottom-color: #e0e0e0
}

body.light-theme .help-center-header h2,
body.light-theme .help-article-modal-body h1,
body.light-theme .help-article-modal-body h3 {
    color: #333
}

body.light-theme .help-article-content h4 {
    color: #333
}

body.light-theme .help-article-content p,
body.light-theme .help-article-modal-body p {
    color: #666
}

body.light-theme .help-center-search input {
    background: #f0f0f0;
    border-color: #ddd;
    color: #333
}

body.light-theme .help-category {
    background: #f0f0f0;
    border-color: #ddd;
    color: #666
}

body.light-theme .help-article {
    background: #f9f9f9;
    border-color: #e0e0e0
}

@media (max-width:768px) {
    .help-center-content,
    .help-article-modal-content {
        width: 95%;
        max-height: 90vh
    }
    .help-categories {
        overflow-x: auto;
        flex-wrap: nowrap
    }
}

.your-chats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    margin-bottom: 6px
}

.your-chats-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600
}

.toggle-chats-btn {
    background: #fff0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center
}

.maps-modal {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / .85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px)
}

.maps-modal-content {
    background: #1a1a1a;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgb(0 0 0 / .5)
}

.maps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #333;
    background: linear-gradient(135deg, #667eea, #764ba2)
}

.maps-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px
}

.maps-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(85vh - 80px)
}

.places-list {
    margin-top: 20px;
    display: grid;
    gap: 12px
}

.place-item {
    background: #2b2b2b;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #333;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    gap: 12px
}

.place-item:hover {
    background: #333;
    border-color: #667eea;
    transform: translateY(-2px)
}

.place-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0
}

.place-info {
    flex: 1
}

.place-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px
}

.place-address {
    font-size: 13px;
    color: #888;
    margin-bottom: 6px
}

.place-distance {
    font-size: 12px;
    color: #667eea;
    font-weight: 600
}

.loading-places {
    text-align: center;
    padding: 40px;
    color: #888
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.maps-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    padding: 12px 14px;
    border-radius: 12px;
    margin-top: 10px;
    cursor: pointer;
    transition: .25s;
    box-shadow: 0 6px 18px rgb(26 115 232 / .35)
}

.maps-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgb(26 115 232 / .45)
}

.maps-tab-icon {
    font-size: 22px
}

.maps-tab-text {
    flex: 1;
    color: #fff
}

.maps-tab-title {
    font-weight: 600;
    font-size: 14px
}

.maps-tab-sub {
    font-size: 12px;
    opacity: .85
}

.maps-tab-open {
    font-size: 18px;
    color: #fff
}
/* Tambahkan ke styles.css */
.edit-message-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid var(--user-bubble-color);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color 0.3s ease;
}

.edit-message-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.edit-buttons-container {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
}

.edit-save-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.edit-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.edit-cancel-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #f44336, #e53935);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.edit-cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}
.archived-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.archived-chat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #2b2b2b;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.archived-chat-item:hover {
    background: #333;
    transform: translateX(4px);
}

.archived-chat-info {
    flex: 1;
    min-width: 0;
}

.archived-chat-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archived-chat-date {
    font-size: 12px;
    color: #888;
}

.unarchive-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.unarchive-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.sidebar-chat-item.highlight {
    animation: highlightPulse 0.6s ease;
}

@keyframes highlightPulse {
    0%, 100% {
        background: #2b2b2b;
    }
    50% {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
        transform: scale(1.02);
    }
}
/* Command menu positioning dinamis */
.command-menu {
    position: fixed;
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 8px;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    min-width: 280px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.2s ease;
}

.command-menu.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Positioning untuk empty chat (di bawah input) */
body.empty-chat .command-menu {
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
}

body.empty-chat .command-menu.visible {
    transform: translateX(-50%) translateY(0);
}

/* Positioning untuk ada chat (di atas input) */
body:not(.empty-chat) .command-menu {
    bottom: 160px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
}

body:not(.empty-chat) .command-menu.visible {
    transform: translateX(-50%) translateY(0);
}

/* Command item hover */
.command-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.command-item:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.command-item svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* File size warning */
.file-size-warning {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 8px;
    font-size: 12px;
    color: #ff9800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-size-warning svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}