        /* ============================================================
           Styles — updated with English-first UI
           ============================================================ */
        * {
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }
        html,
        body {
            height: 100%;
            margin: 0;
            overscroll-behavior: none;
        }
        :root {
            --app-bg: #EDE6DC;
            --panel-bg: #F7F3EC;
            --card-bg: #ffffff;
            --border-app: #E3D9C8;
            --text-main: #1e293b;
            --accent: #6B5B45;
            --accent-hover: #574A38;
            --shadow: 0 8px 32px rgba(80, 65, 45, 0.08);
            --radius: 20px;
        }
        html[data-theme="dark"] {
            --app-bg: #2A241C;
            --panel-bg: #322B21;
            --card-bg: #3A3226;
            --border-app: #4A4030;
            --text-main: #F1E9DC;
            --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        }
        html[data-theme="dark"] body {
            background: var(--app-bg);
            color: var(--text-main);
        }
        html[data-theme="dark"] .bg-white {
            background-color: var(--card-bg) !important;
        }
        html[data-theme="dark"] .settings-card {
            background: var(--card-bg);
            border-color: var(--border-app);
        }
        html[data-theme="dark"] .text-slate-800,
        html[data-theme="dark"] .text-slate-700,
        html[data-theme="dark"] .text-slate-600 {
            color: var(--text-main) !important;
        }
        html[data-theme="dark"] .text-slate-400,
        html[data-theme="dark"] .text-slate-500,
        html[data-theme="dark"] .text-slate-300 {
            color: #A79C89 !important;
        }
        html[data-theme="dark"] .bg-app,
        html[data-theme="dark"] .bg-panel,
        html[data-theme="dark"] #sidebar,
        html[data-theme="dark"] #app {
            background-color: var(--app-bg);
        }
        html[data-theme="dark"] #sidebar.md\:bg-\[\#F4EEE4\],
        html[data-theme="dark"] aside#sidebar {
            background-color: var(--panel-bg) !important;
        }
        html[data-theme="dark"] .border-app {
            border-color: var(--border-app) !important;
        }
        html[data-theme="dark"] input,
        html[data-theme="dark"] select,
        html[data-theme="dark"] textarea {
            background-color: var(--card-bg) !important;
            color: var(--text-main) !important;
            border-color: var(--border-app) !important;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
            background: var(--app-bg);
            color: var(--text-main);
            background-image: url('img/fon.png');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
        }
        button {
            font-family: inherit;
            cursor: pointer;
        }
        a {
            text-decoration: none;
            color: inherit;
        }
        img,
        video {
            display: block;
            max-width: 100%;
        }
        textarea {
            font-family: inherit;
        }
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        ::-webkit-scrollbar-thumb {
            background: #E7D2C4;
            border-radius: 10px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #D9B99F;
        }
        .safe-top {
            padding-top: env(safe-area-inset-top);
        }
        .safe-bottom {
            padding-bottom: env(safe-area-inset-bottom);
        }
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(8px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .msg-anim {
            animation: fadeInUp 0.28s ease-out;
        }
        @keyframes pulseDot {
            0%,
            80%,
            100% {
                transform: scale(0.6);
                opacity: 0.4;
            }
            40% {
                transform: scale(1);
                opacity: 1;
            }
        }
        .dot {
            animation: pulseDot 1.4s infinite ease-in-out;
            display: inline-block;
        }
        .dot:nth-child(2) {
            animation-delay: 0.15s;
        }
        .dot:nth-child(3) {
            animation-delay: 0.3s;
        }
        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }
        .spin {
            animation: spin 1s linear infinite;
        }
        @keyframes shimmer {
            0% {
                background-position: -400px 0;
            }
            100% {
                background-position: 400px 0;
            }
        }
        .shimmer {
            background: linear-gradient(90deg, #F0E2D9 0px, #FBF8F5 40px, #F0E2D9 80px);
            background-size: 600px 100%;
            animation: shimmer 1.6s infinite linear;
        }
        @keyframes progressSlide {
            0% {
                transform: translateX(-100%);
            }
            100% {
                transform: translateX(400%);
            }
        }
        .gen-progress-track {
            position: relative;
            width: 100%;
            height: 6px;
            border-radius: 999px;
            background: #F0E2D9;
            overflow: hidden;
        }
        .gen-progress-fill {
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            width: 25%;
            border-radius: 999px;
            background: linear-gradient(90deg, #D9B99F, #C9A183);
            animation: progressSlide 1.4s infinite ease-in-out;
        }
        @keyframes softPulse {
            0%,
            100% {
                opacity: 1;
            }
            50% {
                opacity: 0.55;
            }
        }
        .gen-label {
            animation: softPulse 1.8s infinite ease-in-out;
        }
        @keyframes popIn {
            0% {
                opacity: 0;
                transform: scale(0.94);
            }
            100% {
                opacity: 1;
                transform: scale(1);
            }
        }
        .pop-in {
            animation: popIn 0.25s ease-out;
        }
        .scrollbar-none::-webkit-scrollbar {
            display: none;
        }
        .scrollbar-none {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
        .flex {
            display: flex;
        }
        .inline-flex {
            display: inline-flex;
        }
        .grid {
            display: grid;
        }
        .hidden {
            display: none !important;
        }
        .block {
            display: block;
        }
        .inline-block {
            display: inline-block;
        }
        .flex-col {
            flex-direction: column;
        }
        .flex-row {
            flex-direction: row;
        }
        .flex-1 {
            flex: 1 1 0%;
        }
        .shrink-0 {
            flex-shrink: 0;
        }
        .items-center {
            align-items: center;
        }
        .items-end {
            align-items: flex-end;
        }
        .items-stretch {
            align-items: stretch;
        }
        .justify-center {
            justify-content: center;
        }
        .justify-between {
            justify-content: space-between;
        }
        .justify-around {
            justify-content: space-around;
        }
        .justify-end {
            justify-content: flex-end;
        }
        .justify-start {
            justify-content: flex-start;
        }
        .self-start {
            align-self: flex-start;
        }
        .gap-0\.5 {
            gap: 2px;
        }
        .gap-1 {
            gap: 4px;
        }
        .gap-1\.5 {
            gap: 6px;
        }
        .gap-2 {
            gap: 8px;
        }
        .gap-3 {
            gap: 12px;
        }
        .gap-4 {
            gap: 16px;
        }
        .gap-5 {
            gap: 20px;
        }
        .grid-cols-1 {
            grid-template-columns: repeat(1, minmax(0, 1fr));
        }
        .auto-rows-min {
            grid-auto-rows: min-content;
        }
        .relative {
            position: relative;
        }
        .absolute {
            position: absolute;
        }
        .fixed {
            position: fixed;
        }
        .inset-0 {
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
        }
        .top-0 {
            top: 0;
        }
        .left-0 {
            left: 0;
        }
        .right-0 {
            right: 0;
        }
        .bottom-0 {
            bottom: 0;
        }
        .overflow-hidden {
            overflow: hidden;
        }
        .overflow-y-auto {
            overflow-y: auto;
        }
        .w-full {
            width: 100%;
        }
        .w-screen {
            width: 100vw;
        }
        .h-full {
            height: 100%;
        }
        .h-screen {
            height: 100vh;
        }
        .h-px {
            height: 1px;
        }
        .min-h-0 {
            min-height: 0;
        }
        .min-w-0 {
            min-width: 0;
        }
        .max-w-3xl {
            max-width: 48rem;
        }
        .max-w-xs {
            max-width: 20rem;
        }
        .w-2 {
            width: 8px;
        }
        .h-2 {
            height: 8px;
        }
        .w-6 {
            width: 24px;
        }
        .h-6 {
            height: 24px;
        }
        .w-7 {
            width: 28px;
        }
        .h-7 {
            height: 28px;
        }
        .w-8 {
            width: 32px;
        }
        .h-8 {
            height: 32px;
        }
        .w-9 {
            width: 36px;
        }
        .h-9 {
            height: 36px;
        }
        .w-10 {
            width: 40px;
        }
        .h-10 {
            height: 40px;
        }
        .w-11 {
            width: 44px;
        }
        .h-11 {
            height: 44px;
        }
        .w-12 {
            width: 48px;
        }
        .h-12 {
            height: 48px;
        }
        .w-14 {
            width: 56px;
        }
        .h-14 {
            height: 56px;
        }
        .w-16 {
            width: 64px;
        }
        .h-16 {
            height: 64px;
        }
        .max-h-40 {
            max-height: 10rem;
        }
        .max-h-64 {
            max-height: 16rem;
        }
        .max-h-80 {
            max-height: 20rem;
        }
        .h-48 {
            height: 12rem;
        }
        .p-1 {
            padding: 4px;
        }
        .p-2 {
            padding: 8px;
        }
        .p-3 {
            padding: 12px;
        }
        .p-4 {
            padding: 16px;
        }
        .px-1 {
            padding-left: 4px;
            padding-right: 4px;
        }
        .px-2 {
            padding-left: 8px;
            padding-right: 8px;
        }
        .px-3 {
            padding-left: 12px;
            padding-right: 12px;
        }
        .px-4 {
            padding-left: 16px;
            padding-right: 16px;
        }
        .px-5 {
            padding-left: 20px;
            padding-right: 20px;
        }
        .px-6 {
            padding-left: 24px;
            padding-right: 24px;
        }
        .px-8 {
            padding-left: 32px;
            padding-right: 32px;
        }
        .py-1\.5 {
            padding-top: 6px;
            padding-bottom: 6px;
        }
        .py-2 {
            padding-top: 8px;
            padding-bottom: 8px;
        }
        .py-2\.5 {
            padding-top: 10px;
            padding-bottom: 10px;
        }
        .py-3 {
            padding-top: 12px;
            padding-bottom: 12px;
        }
        .py-4 {
            padding-top: 16px;
            padding-bottom: 16px;
        }
        .py-5 {
            padding-top: 20px;
            padding-bottom: 20px;
        }
        .py-6 {
            padding-top: 24px;
            padding-bottom: 24px;
        }
        .pt-3 {
            padding-top: 12px;
        }
        .pt-5 {
            padding-top: 20px;
        }
        .pt-6 {
            padding-top: 24px;
        }
        .pb-2 {
            padding-bottom: 8px;
        }
        .pb-3 {
            padding-bottom: 12px;
        }
        .pb-4 {
            padding-bottom: 16px;
        }
        .pr-3 {
            padding-right: 12px;
        }
        .mt-2 {
            margin-top: 8px;
        }
        .mb-1 {
            margin-bottom: 4px;
        }
        .mb-2 {
            margin-bottom: 8px;
        }
        .ml-1 {
            margin-left: 4px;
        }
        .mx-1 {
            margin-left: 4px;
            margin-right: 4px;
        }
        .mx-4 {
            margin-left: 16px;
            margin-right: 16px;
        }
        .mx-auto {
            margin-left: auto;
            margin-right: auto;
        }
        .my-3 {
            margin-top: 12px;
            margin-bottom: 12px;
        }
        .text-center {
            text-align: center;
        }
        .truncate {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .whitespace-pre-wrap {
            white-space: pre-wrap;
        }
        .leading-6 {
            line-height: 1.5rem;
        }
        .font-medium {
            font-weight: 500;
        }
        .font-semibold {
            font-weight: 600;
        }
        .tracking-tight {
            letter-spacing: -0.015em;
        }
        .tabular-nums {
            font-variant-numeric: tabular-nums;
        }
        .tracking-wide {
            letter-spacing: 0.03em;
        }
        .uppercase {
            text-transform: uppercase;
        }
        .text-\[11px\] {
            font-size: 11px;
        }
        .text-\[12px\] {
            font-size: 12px;
        }
        .text-\[12\.5px\] {
            font-size: 12.5px;
        }
        .text-\[13px\] {
            font-size: 13px;
        }
        .text-\[14px\] {
            font-size: 14px;
        }
        .text-\[14\.5px\] {
            font-size: 14.5px;
        }
        .text-\[15px\] {
            font-size: 15px;
        }
        .text-\[16px\] {
            font-size: 16px;
        }
        .text-\[17px\] {
            font-size: 17px;
        }
        .text-\[19px\] {
            font-size: 19px;
        }
        .text-lg {
            font-size: 18px;
        }
        .text-2xl {
            font-size: 24px;
        }
        .text-3xl {
            font-size: 30px;
        }
        .line-clamp-2 {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .text-white {
            color: #ffffff;
        }
        .text-white\/80 {
            color: rgba(255, 255, 255, 0.8);
        }
        .text-slate-300 {
            color: #cbd5e1;
        }
        .text-slate-400 {
            color: #94a3b8;
        }
        .text-slate-500 {
            color: #64748b;
        }
        .text-slate-600 {
            color: #475569;
        }
        .text-slate-700 {
            color: #334155;
        }
        .text-slate-800 {
            color: #1e293b;
        }
        .text-red-500 {
            color: #ef4444;
        }
        .text-\[\#6B4F3F\] {
            color: #6B4F3F;
        }
        .bg-white {
            background-color: #ffffff;
        }
        .bg-transparent {
            background-color: transparent;
        }
        .bg-slate-50 {
            background-color: #f8fafc;
        }
        .bg-slate-100 {
            background-color: #f1f5f9;
        }
        .bg-black\/30 {
            background-color: rgba(0, 0, 0, 0.3);
        }
        .bg-black\/60 {
            background-color: rgba(0, 0, 0, 0.6);
        }
        .bg-white\/90 {
            background-color: rgba(255, 255, 255, 0.9);
        }
        .bg-\[\#FBF8F5\] {
            background-color: #FBF8F5;
        }
        .bg-\[\#FBFBFA\] {
            background-color: #EDE6DC;
        }
        .bg-beige-50 {
            background-color: #FBF8F5;
        }
        .bg-beige-100 {
            background-color: #F5EBE6;
        }
        .bg-beige-200 {
            background-color: #F0E2D9;
        }
        .bg-beige-400 {
            background-color: #D9B99F;
        }
        .bg-beige-500 {
            background-color: #C9A183;
        }
        .bg-accent {
            background-color: var(--accent);
        }
        .hover\:bg-accent-dark:hover {
            background-color: var(--accent-hover);
        }
        .text-accent {
            color: var(--accent);
        }
        .bg-app {
            background-color: var(--app-bg);
        }
        .bg-panel {
            background-color: var(--panel-bg);
        }
        .border-app {
            border-color: var(--border-app);
        }
        .hover\:bg-slate-50:hover {
            background-color: #f8fafc;
        }
        .hover\:bg-white:hover {
            background-color: #ffffff;
        }
        .hover\:bg-beige-100:hover {
            background-color: #F5EBE6;
        }
        .hover\:bg-beige-200:hover {
            background-color: #F0E2D9;
        }
        .hover\:bg-beige-500:hover {
            background-color: #C9A183;
        }
        .border {
            border-width: 1px;
            border-style: solid;
            border-color: #e2e8f0;
        }
        .border-t {
            border-top-width: 1px;
            border-top-style: solid;
            border-top-color: #e2e8f0;
        }
        .border-b {
            border-bottom-width: 1px;
            border-bottom-style: solid;
            border-bottom-color: #e2e8f0;
        }
        .border-app {
            border-color: var(--border-app);
        }
        .border-slate-200 {
            border-color: #e2e8f0;
        }
        .border-white\/90 {
            border-color: rgba(255, 255, 255, 0.9);
        }
        .focus-within\:border-beige-400:focus-within {
            border-color: #D9B99F;
        }
        .rounded-full {
            border-radius: 9999px;
        }
        .rounded-xl {
            border-radius: 12px;
        }
        .rounded-2xl {
            border-radius: 16px;
        }
        .rounded-3xl {
            border-radius: 24px;
        }
        .rounded-br-lg {
            border-bottom-right-radius: 8px;
        }
        .rounded-bl-lg {
            border-bottom-left-radius: 8px;
        }
        .shadow-soft {
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
        }
        .shadow-card {
            box-shadow: var(--shadow);
        }
        .transition {
            transition: all 0.15s ease;
        }
        .transition-colors {
            transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
        }
        .transition-transform {
            transition: transform 0.3s ease;
        }
        .transition-opacity {
            transition: opacity 0.2s ease;
        }
        .transition-all {
            transition: all 0.2s ease;
        }
        .duration-200 {
            transition-duration: 0.2s;
        }
        .duration-300 {
            transition-duration: 0.3s;
        }
        .ease-out {
            transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
        }
        .opacity-0 {
            opacity: 0;
        }
        .group:hover .group-hover\:opacity-100 {
            opacity: 1;
        }
        .group:hover .group-hover\:scale-105 {
            transform: scale(1.05);
        }
        .active\:scale-95:active {
            transform: scale(0.95);
        }
        .active\:scale-\[0\.98\]:active {
            transform: scale(0.98);
        }
        .disabled\:opacity-40:disabled {
            opacity: 0.4;
        }
        .disabled\:pointer-events-none:disabled {
            pointer-events: none;
        }
        .outline-none {
            outline: none;
        }
        .resize-none {
            resize: none;
        }
        .object-cover {
            object-fit: cover;
        }
        .pointer-events-none {
            pointer-events: none;
        }
        .placeholder\:text-slate-400::placeholder {
            color: #94a3b8;
        }
        .translate-x-0 {
            transform: translateX(0);
        }
        .-translate-x-full {
            transform: translateX(-100%);
        }
        .bg-gradient-to-t {
            background-image: linear-gradient(to top, var(--tw-gradient-from), var(--tw-gradient-to));
        }
        .from-black\/60 {
            --tw-gradient-from: rgba(0, 0, 0, 0.6);
        }
        .via-transparent {
            --tw-gradient-to: rgba(0, 0, 0, 0);
        }
        .to-transparent {
            --tw-gradient-to: rgba(0, 0, 0, 0);
        }
        .z-30 {
            z-index: 30;
        }
        .z-40 {
            z-index: 40;
        }
        .z-50 {
            z-index: 50;
        }
        .tab-active {
            background: #EFE6D8;
            color: #4A3E2E;
            font-weight: 600;
        }
        .ratio-btn,
        .duration-btn,
        .mode-btn {
            color: #64748b;
            background: #ffffff;
        }
        .ratio-btn.selected,
        .duration-btn.selected,
        .mode-btn.selected {
            background: #EFE6D8;
            border-color: #A9906F;
            color: #4A3E2E;
        }
        input[type="file"] {
            font-size: 13px;
        }
        @media (min-width: 640px) {
            .sm\:grid-cols-2 {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }
        @media (min-width: 768px) {
            .md\:flex {
                display: flex;
            }
            .md\:hidden {
                display: none !important;
            }
            .md\:flex-row {
                flex-direction: row;
            }
            .md\:static {
                position: static;
            }
            .md\:translate-x-0 {
                transform: translateX(0);
            }
            .md\:px-6 {
                padding-left: 24px;
                padding-right: 24px;
            }
            .md\:px-8 {
                padding-left: 32px;
                padding-right: 32px;
            }
            .md\:p-8 {
                padding: 32px;
            }
        }
        @media (min-width: 1024px) {
            .lg\:grid-cols-3 {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
        }
        @media (min-width: 1280px) {
            .xl\:grid-cols-4 {
                grid-template-columns: repeat(4, minmax(0, 1fr));
            }
        }
        @media (min-width: 768px) {
            #app>aside,
            #app>main {
                box-shadow: var(--shadow);
            }
            #app>aside {
                border-top-left-radius: var(--radius);
                border-bottom-left-radius: var(--radius);
                border-right: none !important;
            }
            #app>main {
                border-top-right-radius: var(--radius);
                border-bottom-right-radius: var(--radius);
            }
        }
        .topbar {
            background: #ffffff;
        }
        .settings-card {
            background: var(--card-bg);
            border-radius: var(--radius);
            border: 1px solid var(--border-app);
            padding: 20px;
            transition: all 0.2s;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
        }
        .settings-card:hover {
            box-shadow: var(--shadow);
            transform: translateY(-2px);
        }
        .settings-card .icon {
            font-size: 24px;
            width: 48px;
            height: 48px;
            border-radius: 14px;
            background: var(--panel-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 12px;
        }
        .settings-card .title {
            font-weight: 600;
            font-size: 15px;
            margin-bottom: 4px;
        }
        .settings-card .desc {
            font-size: 13px;
            color: #94a3b8;
            margin-bottom: 16px;
        }
        .settings-card .action-btn {
            background: var(--accent);
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 30px;
            font-size: 13px;
            font-weight: 500;
            transition: background 0.15s;
            cursor: pointer;
        }
        .settings-card .action-btn:hover {
            background: var(--accent-hover);
        }
        .settings-card .action-btn.outline {
            background: transparent;
            color: var(--accent);
            border: 1px solid var(--accent);
        }
        .settings-card .action-btn.outline:hover {
            background: var(--panel-bg);
        }
        .settings-card .danger-btn {
            background: transparent;
            color: #B4483A;
            border: 1px solid #F0D9D3;
            padding: 8px 20px;
            border-radius: 30px;
            font-size: 13px;
            font-weight: 500;
            transition: background 0.15s;
            cursor: pointer;
        }
        .settings-card .danger-btn:hover {
            background: #FBF1EF;
        }
        .settings-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 0;
            border-top: 1px solid var(--border-app);
        }
        .settings-row:first-child {
            border-top: none;
        }
        .settings-row .label {
            font-size: 14px;
            font-weight: 500;
        }
        .settings-row .value {
            font-size: 13px;
            color: #94a3b8;
        }
        .sr-only-toggle {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
        .theme-switch.on {
            background: var(--accent);
        }
        .theme-switch.on .theme-switch-knob {
            transform: translateX(16px);
        }
        .logo-large {
            width: 80px;
            height: 80px;
        }
        .logo-large img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
        .topbar-btn {
            width: 44px;
            height: 44px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: none;
            transition: background 0.15s;
        }
        .topbar-btn:hover {
            background: #f1f5f9;
        }
        .topbar-btn img {
            width: 24px;
            height: 24px;
            object-fit: contain;
        }
        .profile-pic {
            width: 44px;
            height: 44px;
            border-radius: 9999px;
            overflow: hidden;
            background: #F5EBE6;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }
        .profile-pic img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .profile-pic .fallback {
            display: none;
            font-size: 20px;
        }
        .profile-pic img:not([src]),
        .profile-pic img[src=""],
        .profile-pic img[src*="error"] {
            display: none;
        }
        .profile-pic img:not([src])+.fallback,
        .profile-pic img[src=""]+.fallback,
        .profile-pic img[src*="error"]+.fallback {
            display: block;
        }
        .sidebar-user {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 16px;
            border-top: 1px solid var(--border-app);
            cursor: pointer;
            transition: background 0.15s;
            border-radius: 0 0 20px 20px;
        }
        .sidebar-user:hover {
            background: rgba(0, 0, 0, 0.03);
        }
        .sidebar-user .avatar {
            width: 36px;
            height: 36px;
            border-radius: 9999px;
            background: #F5EBE6;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }
        .sidebar-user .avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .sidebar-user .avatar .fallback {
            display: none;
        }
        .sidebar-user .avatar img:not([src]),
        .sidebar-user .avatar img[src=""],
        .sidebar-user .avatar img[src*="error"] {
            display: none;
        }
        .sidebar-user .avatar img:not([src])+.fallback,
        .sidebar-user .avatar img[src=""]+.fallback,
        .sidebar-user .avatar img[src*="error"]+.fallback {
            display: block;
        }
        .sidebar-user .name {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-main);
        }
        .sidebar-user .sub {
            font-size: 11px;
            color: #94a3b8;
        }
        .speak-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: transparent;
            border: 1px solid #D9B99F;
            border-radius: 9999px;
            padding: 2px 10px 2px 6px;
            font-size: 12px;
            color: #6B4F3F;
            transition: all 0.15s;
            margin-top: 6px;
            cursor: pointer;
        }
        .speak-btn:hover {
            background: #F5EBE6;
            border-color: #C9A183;
        }
        .speak-btn.speaking {
            background: #F0E2D9;
            border-color: #B4483A;
            color: #B4483A;
        }
        .speak-btn svg {
            width: 16px;
            height: 16px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
        .typing-cursor::after {
            content: '▍';
            display: inline-block;
            animation: blink 1s step-end infinite;
            color: var(--accent);
            font-weight: 300;
        }
        @keyframes blink {
            0%,
            100% {
                opacity: 1;
            }
            50% {
                opacity: 0;
            }
        }
        .chat-container {
            display: flex;
            flex-direction: column;
            height: 100%;
            overflow: hidden;
        }
        .chat-header {
            flex-shrink: 0;
            background: #fff;
            border-bottom: 1px solid var(--border-app);
            padding: 16px 32px;
        }
        .chat-messages-area {
            flex: 1;
            overflow-y: auto;
            padding: 24px 32px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        .chat-composer {
            flex-shrink: 0;
            background: #fff;
            border-top: 1px solid var(--border-app);
            padding: 12px 24px 12px 24px;
        }
        @media (max-width: 767px) {
            .chat-header {
                padding: 12px 16px;
            }
            .chat-messages-area {
                padding: 16px 16px;
            }
            .chat-composer {
                padding: 8px 12px 8px 12px;
            }
        }
        .mobile-new-chat {
            display: none;
        }
        @media (max-width: 767px) {
            .mobile-new-chat {
                display: flex;
                align-items: center;
                gap: 6px;
                background: var(--accent);
                color: #fff;
                border: none;
                border-radius: 30px;
                padding: 6px 14px 6px 10px;
                font-size: 13px;
                font-weight: 500;
            }
            .mobile-new-chat svg {
                width: 16px;
                height: 16px;
                stroke: currentColor;
                stroke-width: 2.5;
            }
            .mobile-new-chat:active {
                transform: scale(0.95);
            }
        }
        .ad-bar {
            background: linear-gradient(90deg, #f7e9d7, #e8d5c0);
            color: #4a3e2e;
            font-size: 13px;
            font-weight: 500;
            text-align: center;
            padding: 6px 10px;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            border-bottom: 1px solid var(--border-app);
            flex-shrink: 0;
        }
        .ad-bar span {
            opacity: 0.85;
        }
        .main-header {
            display: none;
            align-items: center;
            justify-content: space-between;
            padding: 8px 24px;
            background: #ffffff;
            border-bottom: 1px solid var(--border-app);
            flex-shrink: 0;
            height: 60px;
            width: 100%;
        }
        .main-header .brand {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .main-header .brand img {
            width: 36px;
            height: 36px;
            object-fit: contain;
            border-radius: 8px;
        }
        .main-header .brand span {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-main);
            letter-spacing: -0.5px;
        }
        .main-header .actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .main-header .actions .header-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 7px 16px;
            border-radius: 30px;
            background: var(--accent);
            color: #fff;
            border: none;
            font-size: 13px;
            font-weight: 500;
            transition: background 0.15s;
            cursor: pointer;
            white-space: nowrap;
        }
        .main-header .actions .header-btn:hover {
            background: var(--accent-hover);
        }
        .main-header .actions .header-btn.icon-only {
            padding: 7px 10px;
            background: transparent;
            color: var(--text-main);
            border: 1px solid var(--border-app);
        }
        .main-header .actions .header-btn.icon-only:hover {
            background: #f1f5f9;
        }
        .main-header .actions .header-btn img {
            width: 20px;
            height: 20px;
            object-fit: contain;
        }
        .main-header .actions .stars-display {
            display: flex;
            align-items: center;
            gap: 5px;
            background: rgba(255, 215, 0, 0.15);
            padding: 4px 14px 4px 10px;
            border-radius: 30px;
            border: 1px solid rgba(255, 215, 0, 0.3);
            font-weight: 600;
            font-size: 15px;
            color: #b8860b;
            cursor: pointer;
            transition: background 0.15s;
        }
        .main-header .actions .stars-display:hover {
            background: rgba(255, 215, 0, 0.25);
        }
        .main-header .actions .stars-display img {
            width: 20px;
            height: 20px;
            object-fit: contain;
        }
        .main-header .actions .stars-display .count {
            min-width: 20px;
            text-align: center;
        }
        @media (min-width: 768px) {
            .main-header {
                display: flex;
            }
            #app>aside,
            #app>main {
                border-radius: 0 !important;
                box-shadow: none !important;
            }
            #app {
                padding: 0 !important;
            }
        }
        .shop-section {
            padding: 12px 16px;
            border-top: 1px solid var(--border-app);
            border-bottom: 1px solid var(--border-app);
            margin: 8px 0;
        }
        .shop-section .shop-title {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-main);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .shop-section .shop-title img {
            width: 18px;
            height: 18px;
            object-fit: contain;
        }
        .shop-items {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6px;
        }
        .shop-item {
            background: var(--card-bg);
            border: 1px solid var(--border-app);
            border-radius: 12px;
            padding: 8px 6px;
            text-align: center;
            cursor: pointer;
            transition: all 0.15s;
            font-size: 12px;
        }
        .shop-item:hover {
            background: var(--panel-bg);
            transform: scale(1.02);
        }
        .shop-item.promo-highlight {
            animation: promoPulse 0.9s ease-in-out 3;
            border-color: #E8B84B;
        }
        @keyframes promoPulse {
            0%,
            100% {
                box-shadow: 0 0 0 0 rgba(232, 184, 75, 0.6);
            }
            50% {
                box-shadow: 0 0 0 6px rgba(232, 184, 75, 0);
            }
        }
        .shop-item .stars {
            font-weight: 700;
            font-size: 14px;
            color: #b8860b;
        }
        .shop-item .price {
            font-size: 11px;
            color: #94a3b8;
        }
        .username-edit {
            display: flex;
            gap: 8px;
            margin-top: 10px;
            align-items: center;
            flex-wrap: wrap;
        }
        .username-edit input {
            flex: 1;
            min-width: 120px;
            padding: 8px 14px;
            border-radius: 30px;
            border: 1px solid var(--border-app);
            background: var(--card-bg);
            font-size: 14px;
            outline: none;
            transition: border-color 0.15s;
        }
        .username-edit input:focus {
            border-color: var(--accent);
        }
        .username-edit .save-btn {
            padding: 8px 20px;
            border-radius: 30px;
            background: var(--accent);
            color: #fff;
            border: none;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.15s;
        }
        .username-edit .save-btn:hover {
            background: var(--accent-hover);
        }
        .queue-status {
            color: #fff;
            font-size: 16px;
            font-weight: 500;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        }
        .payment-modal {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10001;
            backdrop-filter: blur(4px);
        }
        .payment-modal.active {
            display: flex;
        }
        .payment-modal .modal-box {
            background: var(--card-bg);
            border-radius: 24px;
            padding: 32px;
            max-width: 440px;
            width: 92%;
            text-align: center;
            box-shadow: 0 16px 64px rgba(0, 0, 0, 0.3);
            animation: popIn 0.3s ease-out;
        }
        .payment-modal .modal-box h3 {
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 6px;
        }
        .payment-modal .modal-box .subtitle {
            color: #94a3b8;
            font-size: 14px;
            margin-bottom: 20px;
        }
        .payment-modal .modal-box .price-info {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 24px;
            padding: 12px;
            background: var(--panel-bg);
            border-radius: 16px;
        }
        .payment-modal .modal-box .price-info .item {
            text-align: center;
        }
        .payment-modal .modal-box .price-info .item .label {
            font-size: 12px;
            color: #94a3b8;
        }
        .payment-modal .modal-box .price-info .item .value {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-main);
        }
        .payment-modal .modal-box .btn-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .payment-modal .modal-box .btn-group .pay-btn {
            padding: 14px;
            border-radius: 16px;
            border: none;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.15s, opacity 0.15s;
        }
        .payment-modal .modal-box .btn-group .pay-btn:active {
            transform: scale(0.97);
        }
        .payment-modal .modal-box .btn-group .pay-btn.stars {
            background: var(--accent);
            color: #fff;
        }
        .payment-modal .modal-box .btn-group .pay-btn.stars:hover {
            background: var(--accent-hover);
        }
        .payment-modal .modal-box .btn-group .pay-btn.stars:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .payment-modal .modal-box .btn-group .pay-btn.ads {
            background: #2563eb;
            color: #fff;
        }
        .payment-modal .modal-box .btn-group .pay-btn.ads:hover {
            background: #1d4ed8;
        }
        .payment-modal .modal-box .btn-group .pay-btn.cancel {
            background: transparent;
            color: #94a3b8;
            border: 1px solid var(--border-app);
        }
        .payment-modal .modal-box .btn-group .pay-btn.cancel:hover {
            background: var(--panel-bg);
        }
        .donate-modal {
            position: fixed;
            inset: 0;
            background: rgba(6, 8, 14, 0.72);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10002;
            backdrop-filter: blur(6px);
            opacity: 0;
            transition: opacity 0.2s ease-out;
        }
        .donate-modal.active {
            display: flex;
            opacity: 1;
        }
        .donate-modal .donate-box {
            position: relative;
            width: 92%;
            max-width: 420px;
            background: linear-gradient(165deg, #171018 0%, #100c14 60%, #0c0a12 100%);
            border: 1px solid rgba(201, 161, 131, 0.25);
            border-radius: 26px;
            padding: 28px 26px 24px;
            color: #F1E9DC;
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
            transform: scale(0.92);
            opacity: 0;
            animation: donateIn 0.28s cubic-bezier(.2, .8, .3, 1.1) forwards;
            max-height: 88vh;
            overflow-y: auto;
        }
        @keyframes donateIn {
            to {
                transform: scale(1);
                opacity: 1;
            }
        }
        .donate-box .donate-glow {
            position: absolute;
            top: -60px;
            left: 50%;
            transform: translateX(-50%);
            width: 220px;
            height: 140px;
            background: radial-gradient(closest-side, rgba(201, 161, 131, 0.35), transparent);
            pointer-events: none;
        }
        .donate-box h3 {
            font-size: 20px;
            font-weight: 700;
            margin: 0 0 4px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .donate-box .donate-subtitle {
            color: #A79C89;
            font-size: 13.5px;
            margin-bottom: 18px;
        }
        .donate-box .donate-tariff {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 16px;
            padding: 14px 16px;
            text-align: center;
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 16px;
            background-image: linear-gradient(90deg, rgba(201, 161, 131, 0.14), rgba(201, 161, 131, 0));
        }
        .donate-box .donate-auth-warning {
            background: rgba(180, 72, 58, 0.15);
            border: 1px solid rgba(180, 72, 58, 0.45);
            color: #ffb4a8;
            border-radius: 14px;
            padding: 14px;
            font-size: 13.5px;
            text-align: center;
            font-weight: 600;
            margin-bottom: 14px;
        }
        .donate-box .donate-id-label {
            font-size: 11.5px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #A79C89;
            margin-bottom: 6px;
        }
        .donate-box .donate-id-field {
            display: flex;
            align-items: center;
            gap: 8px;
            background: #0A0810;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
            padding: 10px 12px;
            margin-bottom: 8px;
        }
        .donate-box .donate-id-value {
            flex: 1;
            font-family: ui-monospace, "SF Mono", Menlo, monospace;
            font-size: 13px;
            color: #F1E9DC;
            word-break: break-all;
            user-select: all;
        }
        .donate-box .donate-copy-btn {
            flex-shrink: 0;
            background: var(--accent);
            color: #fff;
            border: none;
            border-radius: 10px;
            padding: 8px 12px;
            font-size: 12.5px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.15s, transform 0.15s;
            white-space: nowrap;
        }
        .donate-box .donate-copy-btn:hover {
            background: var(--accent-hover);
        }
        .donate-box .donate-copy-btn:active {
            transform: scale(0.95);
        }
        .donate-box .donate-steps {
            font-size: 13px;
            line-height: 1.6;
            color: #C9BEAC;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 14px;
            padding: 12px 14px;
            margin: 16px 0;
        }
        .donate-box .donate-steps b {
            color: #F1E9DC;
        }
        .donate-box .donate-eta-note {
            font-size: 12.5px;
            line-height: 1.55;
            color: #E4C9A8;
            background: rgba(201, 161, 131, 0.12);
            border: 1px solid rgba(201, 161, 131, 0.3);
            border-radius: 14px;
            padding: 11px 13px;
            margin-bottom: 14px;
            text-align: center;
        }
        .donate-box .donate-eta-note b {
            color: #F1E9DC;
        }
        .toast-notice {
            position: fixed;
            left: 50%;
            bottom: 28px;
            transform: translateX(-50%) translateY(20px);
            max-width: 92%;
            width: 380px;
            background: linear-gradient(165deg, #1b1420, #120e17);
            border: 1px solid rgba(201, 161, 131, 0.3);
            color: #F1E9DC;
            border-radius: 16px;
            padding: 14px 16px;
            font-size: 13.5px;
            line-height: 1.5;
            text-align: center;
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
            z-index: 10010;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.25s ease-out, transform 0.25s ease-out;
        }
        .toast-notice.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
            pointer-events: auto;
        }
        .toast-notice b {
            color: #E4C9A8;
        }
        .donate-box .donate-qr-wrap {
            display: flex;
            justify-content: center;
            margin: 14px 0;
        }
        .donate-box .donate-qr-wrap img {
            width: 150px;
            height: 150px;
            border-radius: 14px;
            background: #fff;
            padding: 8px;
            object-fit: contain;
        }
        .donate-box .donate-btn-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 18px;
        }
        .donate-box .donate-pay-btn {
            display: block;
            text-align: center;
            padding: 14px;
            border-radius: 16px;
            border: none;
            font-size: 15.5px;
            font-weight: 700;
            cursor: pointer;
            background: linear-gradient(135deg, #C9A183, #A97F5C);
            color: #1a1108;
            transition: transform 0.15s, filter 0.15s;
        }
        .donate-box .donate-pay-btn:hover {
            filter: brightness(1.08);
        }
        .donate-box .donate-pay-btn:active {
            transform: scale(0.97);
        }
        .donate-box .donate-close-btn {
            padding: 12px;
            border-radius: 16px;
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #A79C89;
            font-size: 14.5px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.15s;
        }
        .donate-box .donate-close-btn:hover {
            background: rgba(255, 255, 255, 0.05);
        }
        .ad-fullscreen {
            position: fixed;
            inset: 0;
            background: #000;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 10002;
        }
        .ad-fullscreen.active {
            display: flex;
        }
        .ad-fullscreen .ad-container {
            position: relative;
            width: 100%;
            max-width: 700px;
            background: #1a1a2e;
            border-radius: 16px;
            overflow: hidden;
            padding: 20px;
        }
        .ad-fullscreen .ad-container video {
            width: 100%;
            border-radius: 12px;
            background: #000;
        }
        .ad-fullscreen .ad-container .ad-overlay {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.5);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s;
            border-radius: 16px;
        }
        .ad-fullscreen .ad-container .ad-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }
        .ad-fullscreen .ad-container .ad-overlay .ad-close-btn {
            padding: 12px 32px;
            border-radius: 30px;
            background: #fff;
            color: #000;
            border: none;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
        }
        .ad-fullscreen .ad-container .ad-overlay .ad-close-btn:hover {
            background: #e5e5e5;
        }
        .ad-fullscreen .ad-container .ad-progress {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 12px;
            color: #fff;
            font-size: 14px;
        }
        .ad-fullscreen .ad-container .ad-progress .bar {
            flex: 1;
            height: 4px;
            background: #333;
            border-radius: 4px;
            margin: 0 12px;
            overflow: hidden;
        }
        .ad-fullscreen .ad-container .ad-progress .bar .fill {
            height: 100%;
            background: #2563eb;
            border-radius: 4px;
            transition: width 0.3s;
            width: 0%;
        }
        .loader-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            backdrop-filter: blur(4px);
        }
        .loader-overlay.active {
            display: flex;
        }
        .loader-overlay .loader-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
        }
        .loader-overlay img {
            width: 80%;
            max-width: 500px;
            height: auto;
            object-fit: contain;
            border-radius: 24px;
            background: rgba(255, 255, 255, 0.95);
            padding: 30px;
            box-shadow: 0 8px 48px rgba(0, 0, 0, 0.4);
        }
        .loader-overlay .loader-text {
            color: #fff;
            font-size: 18px;
            font-weight: 500;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
            animation: softPulse 1.8s infinite ease-in-out;
        }
        .loader-overlay .loader-progress {
            width: 60%;
            max-width: 400px;
            height: 6px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.2);
            overflow: hidden;
        }
        .loader-overlay .loader-progress .fill {
            width: 25%;
            height: 100%;
            border-radius: 999px;
            background: linear-gradient(90deg, #D9B99F, #C9A183);
            animation: progressSlide 1.4s infinite ease-in-out;
        }
        .loader-overlay .queue-status {
            color: #fff;
            font-size: 16px;
            font-weight: 400;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
            margin-top: 4px;
        }
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            backdrop-filter: blur(6px);
        }
        .modal-overlay.active {
            display: flex;
        }
        .modal-content {
            background: var(--card-bg);
            border-radius: 28px;
            padding: 48px 40px;
            max-width: 460px;
            width: 90%;
            text-align: center;
            box-shadow: 0 16px 64px rgba(0, 0, 0, 0.2);
            animation: popIn 0.3s ease-out;
        }
        .modal-content .modal-logo {
            width: 120px;
            height: 120px;
            margin: 0 auto 20px;
            border-radius: 24px;
            background: var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        .modal-content .modal-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
        .modal-content h2 {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--text-main);
        }
        .modal-content p {
            font-size: 16px;
            color: #94a3b8;
            margin-bottom: 24px;
        }
        .modal-content .close-btn {
            background: var(--accent);
            color: #fff;
            border: none;
            padding: 10px 32px;
            border-radius: 30px;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.15s;
        }
        .modal-content .close-btn:hover {
            background: var(--accent-hover);
        }

        /* History tab styles */
        .history-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-radius: 14px;
            background: var(--card-bg);
            border: 1px solid var(--border-app);
            cursor: pointer;
            transition: all 0.15s;
        }
        .history-item:hover {
            background: var(--panel-bg);
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }
        .history-item .thumb {
            width: 60px;
            height: 60px;
            border-radius: 10px;
            object-fit: cover;
            flex-shrink: 0;
            background: var(--panel-bg);
        }
        .history-item .info {
            flex: 1;
            min-width: 0;
        }
        .history-item .info .title {
            font-weight: 500;
            font-size: 14px;
            color: var(--text-main);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .history-item .info .meta {
            font-size: 12px;
            color: #94a3b8;
        }
        .history-empty {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 40px 20px;
            color: #94a3b8;
            text-align: center;
        }
        .history-empty .icon {
            font-size: 48px;
            opacity: 0.5;
        }
        .history-empty .text {
            font-size: 15px;
        }
        .history-empty .sub {
            font-size: 13px;
        }

        /* Notification improvements */
        .notif-list {
            max-height: 300px;
            overflow-y: auto;
            text-align: left;
            margin-bottom: 16px;
        }
        .notif-item {
            padding: 10px 14px;
            border-radius: 12px;
            background: var(--panel-bg);
            margin-bottom: 6px;
            font-size: 14px;
            line-height: 1.4;
            border-left: 3px solid var(--accent);
        }
        .notif-item .time {
            font-size: 11px;
            color: #94a3b8;
            margin-top: 4px;
        }
        .notif-item.success {
            border-left-color: #22c55e;
        }
        .notif-item.warning {
            border-left-color: #eab308;
        }
        .notif-item.info {
            border-left-color: #3b82f6;
        }
        .notif-item.error {
            border-left-color: #ef4444;
        }

        /* ============================================================ */
