/* ChatGPTi — тёмно-серый + зелёный, анимации */
:root {
    --bg: #0d0e12;
    --bg-2: #13141a;
    --bg-card: #1a1b22;
    --bg-card-hover: #22232d;
    --border: #2a2b35;
    --text: #e8e9ec;
    --text-muted: #8b8d99;
    --accent: #22c55e;
    --accent-dim: #16a34a;
    --accent-glow: rgba(34, 197, 94, 0.25);
    --green-soft: #34d399;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --radius: 14px;
    --radius-sm: 10px;
}

/* Светлая тема для ЛК */
.lk-page.lk-theme-light {
    --bg: #f4f5f7;
    --bg-2: #eef0f3;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f2f5;
    --border: #e2e5ea;
    --text: #1a1c22;
    --text-muted: #5f6574;
}
.lk-page.lk-theme-light .lk-main-bg {
    background: radial-gradient(ellipse 100% 80% at 20% 0%, rgba(34, 197, 94, 0.08) 0%, transparent 50%);
}
.lk-page.lk-theme-light .lk-msg--user {
    color: #fff;
}
.lk-page.lk-theme-light .lk-account-dropdown-item--logout:hover {
    color: #dc2626;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Анимации появления */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes lineRun {
    0%, 100% { left: 0; }
    50% { left: calc(100% - 56px); }
}

.animate-in {
    animation: fadeUp 0.7s ease-out forwards;
    opacity: 0;
}
.animate-in.delay-1 { animation-delay: 0.1s; }
.animate-in.delay-2 { animation-delay: 0.2s; }
.animate-in.delay-3 { animation-delay: 0.35s; }
.animate-in.delay-4 { animation-delay: 0.5s; }

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-outline:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}
.btn-ghost:hover {
    color: var(--accent);
}
.btn-lg {
    padding: 16px 32px;
    font-size: 1.15rem;
}

/* Шапка */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 14, 18, 0.85);
    backdrop-filter: blur(14px);
    transition: box-shadow 0.3s ease;
}
.header:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}
.header-inner .nav {
    justify-content: flex-end;
    gap: 8px;
}
.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}
.logo:hover {
    color: var(--accent);
}
.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}
.nav a:hover {
    color: var(--accent);
    background: rgba(34, 197, 94, 0.08);
}

/* Hero */
.hero {
    position: relative;
    padding: 100px 0 120px;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 197, 94, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(34, 197, 94, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(34, 197, 94, 0.05) 0%, transparent 45%);
    pointer-events: none;
}
.hero-title {
    display: inline-block;
    position: relative;
    padding-bottom: 28px;
    font-size: clamp(2.5rem, 6vw, 4rem);
    white-space: nowrap;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.03em;
    line-height: 1.15;
    background: linear-gradient(180deg, var(--text) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-title::after {
    content: '';
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 14px;
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--green-soft));
    border-radius: 2px;
    -webkit-text-fill-color: initial;
    animation: lineRun 5s ease-in-out infinite;
}
.hero-lead {
    font-size: 1.65rem;
    color: var(--accent);
    margin: 0 0 16px;
    font-weight: 600;
}
.hero-desc {
    max-width: 660px;
    margin: 0 auto 40px;
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-bottom: 64px;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 36px;
    background: rgba(26, 27, 34, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}
.stat:hover {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.08);
    transform: translateY(-4px);
}
.stat-num {
    font-size: 2.9rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
}
.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Секции */
.section {
    padding: 80px 0;
}
.section-title {
    font-size: 1.9rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    color: var(--text);
}
.section-desc {
    text-align: center;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
}

/* Карточки фич */
.section-features {
    background: var(--bg);
}
.section-cta-top {
    text-align: center;
    margin: 0 0 36px;
}
.section-cta-top .btn {
    margin: 0;
    padding: 18px 40px;
    font-size: 1.2rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--green-soft));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.feature-card:hover {
    border-color: rgba(34, 197, 94, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-card h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: var(--text);
}
.feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Как это работает */
.section-how {
    background: var(--bg);
}
.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.how-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.35s ease;
}
.how-block:hover {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.how-block h3 {
    margin: 0 0 6px;
    font-size: 1.22rem;
    color: var(--text);
}
.how-sub {
    color: var(--accent);
    font-size: 0.9rem;
    margin: 0 0 14px;
    font-weight: 500;
}
.how-block p {
    color: var(--text-muted);
    margin: 0 0 14px;
    font-size: 0.95rem;
    line-height: 1.6;
}
.how-block ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}
.how-block li {
    margin-bottom: 6px;
}

/* Шаги */
.section-steps {
    background: var(--bg);
}
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.step {
    text-align: center;
    padding: 28px 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.35s ease;
}
.step:hover {
    border-color: rgba(34, 197, 94, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}
.step-num {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.step h3 {
    margin: 0 0 10px;
    font-size: 1.12rem;
    color: var(--text);
}
.step p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* MCP */
.section-mcp {
    background: var(--bg);
}
.mcp-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    max-width: 720px;
    margin: 0 auto;
}
.mcp-item {
    padding: 16px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    transition: all 0.3s ease;
}
.mcp-item:hover {
    border-color: rgba(34, 197, 94, 0.5);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
}
@media (max-width: 700px) {
    .mcp-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

/* Тарифы */
.section-pricing {
    background: var(--bg);
}
.pricing-placeholder {
    text-align: center;
    padding: 56px 24px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    transition: border-color 0.3s ease;
}
.pricing-placeholder:hover {
    border-color: rgba(34, 197, 94, 0.3);
}

/* FAQ */
.section-faq {
    background: var(--bg);
}
.faq-list {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item:hover {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.15);
}
.faq-item[open] {
    border-color: rgba(34, 197, 94, 0.35);
    border-radius: 24px;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.1);
}
.faq-item summary {
    padding: 18px 28px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    transition: color 0.25s ease;
}
.faq-item summary:hover {
    color: var(--accent);
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--accent);
    margin-left: 12px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-item p {
    margin: 0 28px 22px;
    padding: 0 0 4px;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* CTA */
.section-cta {
    background: var(--bg);
    text-align: center;
}
.cta-note {
    margin-top: 20px;
}
.cta-note a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.cta-note a:hover {
    text-decoration: underline;
}

/* Футер */
.footer {
    padding: 56px 0 28px;
    background: var(--bg);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}
.footer-contacts p,
.footer-legal p {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.footer a {
    color: var(--accent);
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
    color: var(--green-soft);
}
.footer-copy {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 10px;
}
.footer-disclaimer,
.footer-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.85;
    margin: 0;
}

/* Формы входа/регистрации */
.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.auth-card h1 {
    margin: 0 0 8px;
    font-size: 1.75rem;
    text-align: center;
    color: var(--text);
}
.auth-card .auth-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 28px;
}
.auth-form .form-group {
    margin-bottom: 20px;
}
.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.auth-form input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}
.auth-form .btn-submit {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    font-size: 1rem;
}
.auth-form .auth-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.auth-form .auth-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: var(--green-soft);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.auth-links {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.auth-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
}
.auth-links a:hover {
    text-decoration: underline;
}

/* Личный кабинет */
body.account-page {
    min-height: 100vh;
}
.account-header .header-inner {
    max-width: 1200px;
}
.account-wrap {
    position: relative;
}
.account-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.account-trigger:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}
.account-avatar,
.account-dropdown-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--green-soft));
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}
.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    z-index: 200;
    overflow: hidden;
}
.account-dropdown[hidden] {
    display: none !important;
}
.account-dropdown-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
}
.account-dropdown-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.account-dropdown-name {
    font-size: 1rem;
    color: var(--text);
}
.account-dropdown-email {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.account-dropdown-divider {
    height: 1px;
    background: var(--border);
}
.account-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.account-dropdown-item:hover {
    background: var(--bg-card-hover);
}
.account-dropdown-item--logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}
.account-dropdown-icon {
    font-size: 1.1rem;
    opacity: 0.9;
}
.account-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 150;
}
.account-overlay[hidden] {
    display: none !important;
}

.account-main {
    padding: 48px 0 80px;
}
.account-welcome .container {
    max-width: 720px;
}
.account-title {
    font-size: 1.85rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text);
    letter-spacing: -0.02em;
}
.account-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0 0 36px;
}
.account-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.account-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all 0.25s ease;
}
.account-card:hover {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.account-card--active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}
.account-card-icon {
    font-size: 1.75rem;
}
.account-card-title {
    font-weight: 600;
    font-size: 1.1rem;
}
.account-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.account-home {
    margin: 0;
}

/* ЛК — боковая панель + чат (как на макете) */
.lk-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    background: var(--bg);
}
.lk-sidebar {
    width: 280px;
    min-width: 280px;
    height: 100vh;
    background: var(--bg-2);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    font-family: var(--font);
}
.lk-sidebar-top {
    padding: 24px 20px;
}
.lk-logo {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
}
.lk-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.lk-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: background 0.2s, color 0.2s;
}
.lk-nav-item:hover {
    color: var(--text);
    background: var(--bg-card);
}
.lk-nav-item--active {
    color: var(--accent);
    background: rgba(34, 197, 94, 0.12);
}
.lk-nav-icon {
    font-size: 1.15rem;
    opacity: 0.9;
}
.lk-sidebar-block {
    padding: 20px;
    border-top: 1px solid var(--border);
}
.lk-sidebar-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 14px;
}
.lk-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lk-history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.2s, color 0.2s;
}
.lk-history-item:hover {
    color: var(--text);
    background: var(--bg-card);
}
.lk-history-icon {
    font-size: 1rem;
    opacity: 0.85;
    flex-shrink: 0;
}
.lk-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 24px;
    z-index: 10;
}
.lk-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lk-topbar-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1.2rem;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.lk-topbar-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.lk-theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
}
.lk-theme-toggle .lk-theme-icon {
    display: none;
}
.lk-theme-toggle .lk-theme-icon--sun {
    display: inline;
}
.lk-page.lk-theme-light .lk-theme-toggle .lk-theme-icon--sun {
    display: none;
}
.lk-page.lk-theme-light .lk-theme-toggle .lk-theme-icon--moon {
    display: inline;
}
.lk-account-wrap {
    position: relative;
}
.lk-account-wrap--top {
    position: relative;
}
.lk-account-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s;
    text-align: left;
}
.lk-account-trigger:hover {
    border-color: var(--accent);
}
.lk-account-trigger--icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
}
.lk-account-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--green-soft));
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lk-account-trigger--icon .lk-account-avatar {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}
.lk-account-email {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-muted);
}
.lk-account-arrow {
    color: var(--text-muted);
    font-size: 0.7rem;
}
.lk-account-dropdown {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    z-index: 100;
    overflow: hidden;
}
.lk-account-dropdown--down {
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
}
.lk-account-dropdown[hidden] {
    display: none !important;
}
.lk-account-dropdown-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}
.lk-account-dropdown-head strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
}
.lk-account-dropdown-email {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.lk-account-dropdown-divider {
    height: 1px;
    background: var(--border);
}
.lk-account-dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.lk-account-dropdown-item:hover {
    background: var(--bg-card-hover);
}
.lk-account-dropdown-item--logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.lk-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}
.lk-main-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 80% at 20% 0%, rgba(34, 197, 94, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.02) 0%, transparent 1px);
    background-size: 100% 100%, 24px 24px;
    pointer-events: none;
}
.lk-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}
.lk-welcome {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}
.lk-welcome-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.02em;
}
.lk-messages {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}
.lk-msg {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 0.98rem;
    line-height: 1.5;
    max-width: 85%;
}
.lk-msg--user {
    align-self: flex-end;
    background: var(--accent);
    color: #fff;
}
.lk-msg--bot {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
}
.lk-chat-bar-wrap {
    padding: 20px 24px;
    position: relative;
    z-index: 1;
}
.lk-chat-bar {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s;
}
.lk-chat-bar:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}
.lk-chat-bar-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s, background 0.2s;
}
.lk-chat-bar-btn:hover {
    color: var(--accent);
    background: rgba(34, 197, 94, 0.1);
}
.lk-chat-form {
    flex: 1;
    min-width: 0;
}
.lk-chat-input {
    width: 100%;
    padding: 10px 0;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    outline: none;
}
.lk-chat-input::placeholder {
    color: var(--text-muted);
}
.lk-chat-bar-send {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.lk-chat-bar-send:hover {
    background: var(--green-soft);
    transform: translateX(2px);
}
.lk-chat-bar-select {
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
}
.lk-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 50;
}
.lk-overlay[hidden] {
    display: none !important;
}

.lk-burger {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 70;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: border-color 0.2s;
}
.lk-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}
.lk-burger:hover {
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .lk-burger {
        display: flex;
    }
    .lk-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 60;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }
    .lk-sidebar.is-open {
        transform: translateX(0);
    }
    .lk-main {
        min-width: 0;
    }
}

@media (max-width: 700px) {
    .hero-title {
        white-space: normal;
    }
}

@media (max-width: 600px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
    }
    .header-inner .nav {
        flex: none;
        margin: 0;
        width: auto;
        justify-content: flex-end;
    }
    .hero {
        padding: 64px 0 80px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    .hero-stats {
        gap: 16px;
    }
    .stat {
        padding: 20px 28px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
