@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800&display=swap');pre code.hljs {
  display: block;
  overflow-x: auto;
  padding: 1em
}
code.hljs {
  padding: 3px 5px
}
/*!
  Theme: GitHub Dark
  Description: Dark theme as seen on github.com
  Author: github.com
  Maintainer: @Hirse
  Updated: 2021-05-15

  Outdated base version: https://github.com/primer/github-syntax-dark
  Current colors taken from GitHub's CSS
*/
.hljs {
  color: #c9d1d9;
  background: #0d1117
}
.hljs-doctag,
.hljs-keyword,
.hljs-meta .hljs-keyword,
.hljs-template-tag,
.hljs-template-variable,
.hljs-type,
.hljs-variable.language_ {
  /* prettylights-syntax-keyword */
  color: #ff7b72
}
.hljs-title,
.hljs-title.class_,
.hljs-title.class_.inherited__,
.hljs-title.function_ {
  /* prettylights-syntax-entity */
  color: #d2a8ff
}
.hljs-attr,
.hljs-attribute,
.hljs-literal,
.hljs-meta,
.hljs-number,
.hljs-operator,
.hljs-variable,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-id {
  /* prettylights-syntax-constant */
  color: #79c0ff
}
.hljs-regexp,
.hljs-string,
.hljs-meta .hljs-string {
  /* prettylights-syntax-string */
  color: #a5d6ff
}
.hljs-built_in,
.hljs-symbol {
  /* prettylights-syntax-variable */
  color: #ffa657
}
.hljs-comment,
.hljs-code,
.hljs-formula {
  /* prettylights-syntax-comment */
  color: #8b949e
}
.hljs-name,
.hljs-quote,
.hljs-selector-tag,
.hljs-selector-pseudo {
  /* prettylights-syntax-entity-tag */
  color: #7ee787
}
.hljs-subst {
  /* prettylights-syntax-storage-modifier-import */
  color: #c9d1d9
}
.hljs-section {
  /* prettylights-syntax-markup-heading */
  color: #1f6feb;
  font-weight: bold
}
.hljs-bullet {
  /* prettylights-syntax-markup-list */
  color: #f2cc60
}
.hljs-emphasis {
  /* prettylights-syntax-markup-italic */
  color: #c9d1d9;
  font-style: italic
}
.hljs-strong {
  /* prettylights-syntax-markup-bold */
  color: #c9d1d9;
  font-weight: bold
}
.hljs-addition {
  /* prettylights-syntax-markup-inserted */
  color: #aff5b4;
  background-color: #033a16
}
.hljs-deletion {
  /* prettylights-syntax-markup-deleted */
  color: #ffdcd7;
  background-color: #67060c
}
.hljs-char.escape_,
.hljs-link,
.hljs-params,
.hljs-property,
.hljs-punctuation,
.hljs-tag {
  /* purposely ignored */
  
}

/* landing.css - Clean, Minimalist "Vercel/Stripe" SaaS Aesthetic */
:root {
    --landing-bg: #ffffff;
    --landing-surface: #fafafa;
    --landing-text-main: #000000;
    --landing-text-muted: #666666;
    --landing-border: #eaeaea;
    --landing-accent: #000000;
    --landing-shadow: 0 5px 25px rgba(0, 0, 0, 0.03);
}
[data-theme="dark"] {
    --landing-bg: #0a0a0a;
    --landing-surface: #111111;
    --landing-text-main: #ffffff;
    --landing-text-muted: #888888;
    --landing-border: #333333;
    --landing-accent: #ffffff;
    --landing-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}
body {
    background-color: var(--landing-bg);
    color: var(--landing-text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
}
.landing-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, sans-serif;
    overflow-x: hidden;
    background-color: var(--landing-bg);
}
/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* Base UI Elements */
.glass-card {
    background: var(--landing-bg);
    border: 1px solid var(--landing-border);
    border-radius: 12px;
    box-shadow: var(--landing-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--landing-text-muted);
}
/* Buttons */
.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-black {
    background: var(--landing-accent);
    color: var(--landing-bg);
    border: 1px solid var(--landing-accent);
}
.btn-black:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}
.btn-white {
    background: transparent;
    color: var(--landing-text-main);
    border: 1px solid var(--landing-border);
}
.btn-white:hover {
    background: var(--landing-surface);
    border-color: var(--landing-text-muted);
}
.icon-btn {
    background: transparent;
    border: 1px solid var(--landing-border);
    color: var(--landing-text-main);
    padding: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}
.icon-btn:hover {
    background: var(--landing-surface);
    border-color: var(--landing-text-main);
}
/* NavBar */
.landing-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--landing-bg);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
.landing-nav-bar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--landing-border);
}
[data-theme="dark"] .landing-nav-bar.scrolled {
    background: rgba(10, 10, 10, 0.85);
}
.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--landing-text-main);
    letter-spacing: -0.5px;
}
.nav-links {
    display: flex;
    gap: 2.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.nav-links a {
    text-decoration: none;
    color: var(--landing-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}
.nav-links a:hover {
    color: var(--landing-text-main);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
/* Hero Section */
.hero {
    text-align: center;
    padding: 8rem 5% 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}
/* Hero Carousel Background */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
/* Top/Bottom and Left/Right fading edges so it blends into the page */
.hero-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--landing-bg) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 80%, var(--landing-bg) 100%),
        linear-gradient(90deg, var(--landing-bg) 0%, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 0) 85%, var(--landing-bg) 100%);
    z-index: 2;
}
[data-theme="dark"] .hero-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.75);
    z-index: 1;
}
[data-theme="light"] .hero-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.45);
    z-index: 1;
}
.hero-content {
    max-width: 800px;
    z-index: 2;
}
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    color: var(--landing-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}
.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin: 0 0 1.5rem;
    max-width: 900px;
}
.hero h1 span {
    background: linear-gradient(135deg, var(--landing-text-main) 30%, var(--landing-text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.15rem !important;
    color: var(--landing-text-muted) !important;
    font-weight: 400;
    max-width: 650px;
    line-height: 1.6;
    margin: 0 auto 3rem auto;
}
[data-theme="light"] .hero-subtitle {
    color: #444444 !important;
    /* Sharper visibility on light theme */
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.demo-btn {
    border: 1px solid var(--landing-text-main) !important;
    font-weight: 600 !important;
}
[data-theme="light"] .demo-btn {
    background: rgba(0, 0, 0, 0.03) !important;
}
/* UI Mockup */
.mockup-wrapper {
    margin-top: 5rem;
    width: 100%;
    max-width: 1000px;
}
.mockup-window {
    background: var(--landing-bg);
    border: 1px solid var(--landing-border);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
[data-theme="dark"] .mockup-window {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.mockup-header {
    height: 40px;
    background: var(--landing-surface);
    border-bottom: 1px solid var(--landing-border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}
.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.mockup-body {
    padding: 2rem;
    display: flex;
    gap: 2rem;
    height: 400px;
}
.mockup-sidebar {
    flex: 1;
    border-right: 1px solid var(--landing-border);
    padding-right: 2rem;
}
.mockup-main {
    flex: 3;
}
.skeleton-line {
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    border-radius: 4px;
    height: 16px;
    margin-bottom: 1rem;
}
/* Sections */
.section {
    padding: 8rem 5%;
    border-top: 1px solid var(--landing-border);
}
.section-alt {
    padding: 8rem 5%;
    background: var(--landing-surface);
    border-top: 1px solid var(--landing-border);
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    font-size: 2.8rem;
    letter-spacing: -1px;
    font-weight: 700;
    margin: 0 0 1rem;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--landing-text-muted);
}
/* Steps */
.step-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}
.step-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    background: var(--landing-text-main);
    color: var(--landing-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}
/* Pricing */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.pricing-card {
    padding: 3rem 2rem;
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
}
.pricing-card.premium {
    border: 2px solid var(--landing-text-main);
}
/* Footer */
.footer {
    padding: 4rem 5%;
    border-top: 1px solid var(--landing-border);
    text-align: center;
    color: var(--landing-text-muted);
}
/* Use Cases */
.use-cases-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.use-case-card {
    flex: 1 1 300px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.use-case-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    color: var(--landing-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}
.use-case-card:hover .use-case-icon {
    background: var(--landing-text-main);
    color: var(--landing-bg);
}
.use-case-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.use-case-card p {
    color: var(--landing-text-muted);
    line-height: 1.6;
}
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .mockup-body {
        flex-direction: column;
        height: auto;
    }

    .step-item {
        flex-direction: column;
        gap: 1rem;
    }
}
@media (max-width: 600px) {
    .hero {
        padding: 5rem 5% 3rem;
    }

    .hero h1 {
        font-size: 2.4rem;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .hero-buttons .landing-btn {
        width: 100%;
    }

    .section,
    .section-alt {
        padding: 4rem 5%;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .mockup-header {
        padding: 0 10px;
    }

    .mockup-body {
        padding: 1rem;
        gap: 1rem;
    }

    .mockup-sidebar {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--landing-border);
        padding-bottom: 1rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    /* Fixed Header Overflow on Mobile */
    .landing-nav-bar {
        padding: 1rem 5%;
    }

    .nav-brand {
        font-size: 1rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .landing-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .icon-btn {
        width: 34px;
        height: 34px;
        font-size: 0.75rem;
    }
}:root {

  /* Radius */
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  /* Layout */
  --container-width: 1200px;
  --chat-height: 600px;

  /* Blur */
  --blur-sm: 8px;
  --blur-md: 16px;
  --blur-lg: 24px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);

  /* Transitions */
  --transition-fast: 120ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 350ms ease;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, "Inter", sans-serif;

  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.75rem;
}:root[data-theme="light"] {

  --bg-primary: #ffffff;
  --bg-surface: #fafafa;
  --bg-elevated: #f0f0f0;
  --bg-page: radial-gradient(1200px 600px at 50% -200px,
      rgba(0, 0, 0, 0.02),
      transparent),
    linear-gradient(180deg,
      #ffffff 0%,
      #f9f9f9 100%);

  --text-primary: #000000;
  --text-secondary: #666666;
  --text-muted: #999999;

  --border-subtle: #eaeaea;

  --gradient-accent: linear-gradient(135deg,
      #000000,
      #444444);

  --gradient-soft: linear-gradient(180deg,
      rgba(0, 0, 0, 0.03),
      rgba(0, 0, 0, 0));
}

:root[data-theme="dark"] {

  --bg-primary: #0a0a0a;
  --bg-surface: #111111;
  --bg-elevated: #1a1a1a;
  --bg-page: radial-gradient(1200px 600px at 50% -200px,
      rgba(255, 255, 255, 0.05),
      transparent),
    linear-gradient(180deg,
      #0a0a0a 0%,
      #111111 100%);

  --text-primary: #ffffff;
  --text-secondary: #888888;
  --text-muted: #666666;

  --border-subtle: #333333;

  --gradient-accent: linear-gradient(135deg,
      #ffffff,
      #aaaaaa);

  --gradient-soft: linear-gradient(180deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0));
}*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255,255,255,0.04),
      transparent 40%
    ),
    var(--bg-primary);

  color: var(--text-primary);
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal);
}

/* Typography */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
}

p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Lists */

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Buttons reset */

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

/* Inputs */

textarea,
input {
  font-family: inherit;
  font-size: var(--font-size-md);
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
}

/* Scrollbar (subtle mono style) */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: var(--radius-sm);
}@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes overlayFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideDown {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

@keyframes blurIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(var(--blur-md));
  }
}

@keyframes blink {
  0% { opacity: 0.2; }
  20% { opacity: 1; }
  100% { opacity: 0.2; }
}

@keyframes systemMessageFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* Utility animation classes */

.fade-in {
  animation: fadeIn var(--transition-normal);
}

.fade-out {
  animation: fadeOut var(--transition-normal);
}

.slide-up {
  animation: slideUp var(--transition-normal);
}

/* =========================================
   MOBILE OVERLAY
========================================= */

@media (max-width: 600px) {

  .chat-overlay__card {
    padding: 22px;
  }

  .chat-overlay__title {
    font-size: 18px;
  }

  .chat-overlay__subtitle {
    font-size: 14px;
  }

}/* =========================================
   PAGE LAYOUT
========================================= */

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg-page);
}

/* =========================================
   CARD STRUCTURE
========================================= */

.card {
  width: 100%;
  max-width: var(--container-width);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =========================================
   HEADER
========================================= */

.card__header {
  display: flex;
  flex-direction: column;
  /* 👈 главное */
  align-items: center;
  /* центрируем */
  gap: 16px;
  text-align: center;
}

.card__title {
  font-size: var(--font-size-xl);
  font-weight: 600;
}

.card__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  /* кнопки по центру */
  gap: 12px;
  flex-wrap: wrap;
  /* если станет тесно — аккуратно перенесутся */
}

/* =========================================
   CONTENT
========================================= */

.card__content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {
  .card__content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {

  .page {
    padding: 16px 10px;
  }

  .card__header {
    gap: 12px;
  }

  .card__actions {
    gap: 10px;
    flex-direction: column;
    width: 100%;
  }

  .logout-btn {
    width: 100%;
  }

  .card__title {
    font-size: 1.25rem;
  }
}

/* =========================================
   DASHBOARD LAYOUT
========================================= */

.dashboard-top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  padding: 16px 32px;
  background: var(--bg-primary);
  /* fallback */
  background: color-mix(in srgb, var(--bg-primary) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.dashboard-top-nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 16px;
}

.dashboard-top-nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

@media (max-width: 768px) {
  .dashboard-top-nav-inner {
    flex-wrap: wrap;
  }

  .dashboard-top-nav-center {
    position: static;
    transform: none;
    width: 100%;
    justify-content: center;
    order: 3;
    margin-top: 8px;
  }
}

/* =========================================
   DASHBOARD WORKSPACE (VERTICAL TABS)
========================================= */

.dashboard-workspace {
  display: grid;
  grid-template-columns: 240px 1fr;
  width: 100%;
  min-height: calc(100vh - 61px);
}

.dashboard-sidebar {
  position: sticky;
  top: 61px;
  height: calc(100vh - 61px);
  padding: 32px 0;
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
}

.dashboard-tabs-vertical {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 24px;
}

.dashboard-main-content {
  padding: 32px 0 32px 40px;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width: 900px) {
  .dashboard-workspace {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: relative;
    top: 0;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 24px;
  }

  .dashboard-tabs-vertical {
    flex-direction: row;
    overflow-x: auto;
    padding-right: 0;
    padding-bottom: 8px;
    gap: 16px;
    scrollbar-width: none;
  }

  .dashboard-tabs-vertical::-webkit-scrollbar {
    display: none;
  }

  .dashboard-main-content {
    padding: 24px 24px;
    width: 100%;
    box-sizing: border-box;
  }
}/* =========================================
   SURFACE BASE
========================================= */

.surface {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);

  transition:
    background-color var(--transition-normal),
    border var(--transition-normal),
    box-shadow var(--transition-normal);
}

/* Elevated surface */

.surface--elevated {
  background: var(--bg-elevated);
}

/* =========================================
   CARD SURFACE
========================================= */

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);

  padding: 32px;
}

/* =========================================
   CHAT SURFACE
========================================= */

.chat {
  display: flex;
  flex-direction: column;
  height: var(--chat-height);

  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);

  overflow: hidden;
}

/* =========================================
   OVERLAY SURFACES
========================================= */

.overlay__box,
.chat-overlay__card,
.welcome__content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);

  padding: 32px;
}/* =========================================
   BASE BUTTON
========================================= */

.button,
.overlay__button,
.logout-btn {

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;
  border-radius: var(--radius-md);

  font-size: var(--font-size-sm);
  font-weight: 500;

  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    opacity var(--transition-fast);

  cursor: pointer;
}


/* =========================================
   ROUND CHAT BUTTON (MENU + SEND)
========================================= */

.chat__button {
  width: 36px;
  height: 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);

  color: var(--text-secondary);

  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

/* subtle hover lift */

.button:hover,
.chat__button:hover,
.overlay__button:hover,
.logout-btn:hover {
  transform: translateY(-2px);
}


/* disabled */

.chat__button:disabled,
.overlay__button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}


/* =========================================
   PRIMARY
========================================= */

.button--primary,
.chat__button--primary,
.overlay__button--primary {

  background: var(--gradient-accent);
  color: var(--bg-primary);

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  border: none;
}

.button--primary:hover,
.chat__button--primary:hover,
.overlay__button--primary:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}


/* =========================================
   NEUTRAL BUTTON
========================================= */

.logout-btn {

  background: var(--bg-elevated);
  color: var(--text-secondary);

  border: 1px solid var(--border-subtle);
}

.logout-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* =========================================
   GOOGLE BUTTON
========================================= */

.button--google,
.overlay__button--google {
  background: #ffffff;
  color: #1f2937;
  /* Dark gray text */
  border: 1px solid #e5e7eb;
  position: relative;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.button--google:hover,
.overlay__button--google:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #1f2937 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}/* =========================================
   CHAT STRUCTURE
========================================= */

.chat__messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;

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

/* =========================================
   MESSAGE BASE
========================================= */

.chat__message {
  max-width: 75%;
  padding: 12px 16px;

  border-radius: var(--radius-md);

  font-size: var(--font-size-sm);
  line-height: 1.5;

  animation: slideUp var(--transition-normal);

  word-break: break-word;
}

/* =========================================
   ASSISTANT MESSAGE
========================================= */

.chat__message--assistant {
  align-self: flex-start;

  background: var(--bg-elevated);
  color: var(--text-primary);

  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 6px;
}

/* =========================================
   USER MESSAGE
========================================= */

.chat__message--user {
  align-self: flex-end;

  background: var(--bg-elevated);
  color: var(--text-primary);

  border: 1px solid var(--border-subtle);
  border-bottom-right-radius: 6px;
}

/* =========================================
   SYSTEM MESSAGE
========================================= */

.chat__message--system {
  align-self: center;

  background: transparent;
  color: var(--text-muted);

  font-size: 12px;
}

.chat__message--fade-out {
  animation: systemMessageFadeOut var(--transition-normal) forwards;
}

/* =========================================
   TYPING
========================================= */

.chat__message--typing {
  opacity: 0.7;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
}

.typing-dots span {
  animation: blink 1.4s infinite both;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

/* =========================================
   INPUT AREA
========================================= */

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

  padding: 16px;
  border-top: 1px solid var(--border-subtle);

  background: var(--bg-surface);
}

.chat__textarea {
  flex: 1;
  resize: none;

  max-height: 120px;

  padding: 10px 14px;

  border-radius: var(--radius-md);
  background: var(--bg-elevated);

  border: 1px solid var(--border-subtle);

  color: var(--text-primary);

  transition:
    border var(--transition-fast),
    background-color var(--transition-fast);
}

.chat__textarea:focus {
  border: 1px solid var(--text-secondary);
}

/* =========================================
   MENU
========================================= */

.chat__menu-wrapper {
  position: relative;
}

.chat__menu {
  position: absolute;
  left: 0;
  bottom: 60px;

  min-width: 160px;

  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);

  box-shadow: var(--shadow-md);

  padding: 8px;

  display: none;
}

.chat__menu.is-open {
  display: block;
}

.chat__menu-item {
  width: 100%;
  padding: 8px 10px;

  border-radius: var(--radius-sm);

  text-align: center;
  font-size: 13px;

  color: var(--text-secondary);

  transition: background-color var(--transition-fast);
}

.chat__menu-item:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.chat__menu-item--danger {
  color: #c44;
}

/* =========================================
   BLUR STATE
========================================= */

.chat--blurred {
  filter: blur(3px);
  pointer-events: none;
}

/* =========================================
   CHAT OVERLAY
========================================= */

.chat__overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  backdrop-filter: blur(var(--blur-md));
  animation: fadeIn var(--transition-normal);
}

.chat__overlay--hidden {
  animation: fadeOut var(--transition-normal);
}

/* MARKDOWN*/

.message {
  font-size: 14px;
  line-height: 1.6;
}

.message strong {
  font-weight: 600;
}

.message em {
  font-style: italic;
}

.message code {
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
}

.message pre {
  background: var(--bg-elevated);
  padding: 14px;
  border-radius: 12px;
  overflow-x: auto;
}

.message pre code {
  background: none;
  padding: 0;
}

.message ul,
.message ol {
  padding-left: 20px;
}

.message h1,
.message h2,
.message h3 {
  margin-top: 12px;
  margin-bottom: 6px;
}

/* =========================================
   CUSTOM CODE BLOCKS (WITH COPY BUTTON)
========================================= */

.code-block-wrapper {
  background: var(--bg-elevated, #1e2026);
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 0;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
}

.code-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
}

.code-block-lang {
  font-size: 12px;
  color: var(--text-muted, #9ca3af);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.code-block-copy {
  background: transparent;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  color: var(--text-secondary, #cbd5e1);
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast, 0.2s);
}

.code-block-copy:hover {
  background: var(--text-primary, #f8fafc);
  color: var(--bg-surface, #121418);
}

.message pre {
  margin: 0;
  border-radius: 0;
  background: transparent;
  padding: 14px;
  overflow-x: auto;
}

/* =========================================
   RESPONSIVE (MOBILE)
========================================= */

@media (max-width: 600px) {
  .chat__messages {
    padding: 16px 10px;
  }

  .chat__message {
    max-width: 90%;
    padding: 10px 14px;
    font-size: 13.5px;
  }

  .chat__input {
    padding: 12px 10px;
    gap: 8px;
  }

  .chat__textarea {
    padding: 10px 12px;
  }
}/* =========================================
   TOGGLE BASE
========================================= */

.ui-toggle {

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border-radius: 50%;

  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);

  color: var(--text-secondary);

  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.ui-toggle:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.ui-toggle__text,
.ui-toggle__icon {
  font-size: 14px;
}
/* =========================================
   BASE OVERLAY LAYER (AUTH / WELCOME)
========================================= */

.overlay,
.welcome {
  position: fixed;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(var(--blur-md));

  z-index: 1000;

  opacity: 0;
  pointer-events: none;
}

/* SHOW STATE */
.overlay.is-visible,
.welcome.is-visible {
  animation: fadeIn var(--transition-normal) forwards;
  pointer-events: auto;
}

/* HIDE STATE */
.overlay.is-hiding,
.welcome.is-hiding {
  animation: fadeOut var(--transition-normal) forwards;
  pointer-events: none;
}

/* =========================================
   OVERLAY CONTENT (CARD)
========================================= */

.overlay__box {
  max-width: 480px;
  width: 100%;

  padding: 40px;

  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);

  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);

  text-align: center;

  display: flex;
  flex-direction: column;
  gap: 24px;

  transform: translateY(20px) scale(0.98);
  opacity: 0;
}

.overlay.is-visible .overlay__box,
.welcome.is-visible .overlay__box {
  animation: slideUp 0.3s ease forwards;
}

.overlay.is-hiding .overlay__box,
.welcome.is-hiding .overlay__box {
  animation: slideDown 0.2s ease forwards;
}

/* =========================================
   TITLES
========================================= */

.overlay__title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
}

/* =========================================
   AUTH FORM
========================================= */

.overlay__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* =========================================
   INPUTS
========================================= */

.overlay__input {
  width: 100%;
  padding: 12px 14px;

  border-radius: var(--radius-md);

  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);

  color: var(--text-primary);

  transition:
    border var(--transition-fast),
    background-color var(--transition-fast);
}

.overlay__input:focus {
  border-color: var(--text-secondary);
  outline: none;
}

/* =========================================
   BUTTON GROUP
========================================= */

.overlay__actions {
  display: flex;
  gap: 12px;
}

/* =========================================
   BUTTONS
========================================= */

.overlay__button {
  flex: 1;

  padding: 10px 18px;

  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);

  background: var(--bg-elevated);
  color: var(--text-primary);

  font-size: 14px;
  font-weight: 500;

  cursor: pointer;

  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.overlay__button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.overlay__button--primary {
  background: var(--text-primary);
  color: var(--bg-surface);
  border: none;
}

.overlay__button--primary:hover {
  box-shadow: var(--shadow-lg);
}

/* =========================================
   ERROR
========================================= */

.overlay__error {
  font-size: 13px;
  color: var(--text-muted);
  min-height: 16px;
}

/* =========================================
   CHAT CONTAINER
========================================= */

.chat {
  position: relative;
}

/* =========================================
   CHAT OVERLAY BASE
========================================= */

.chat__overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);

  z-index: 5;

  opacity: 0;
  pointer-events: none;
}

/* SHOW */
.chat__overlay.is-visible {
  animation: overlayFadeIn 0.25s ease forwards;
  pointer-events: auto;
}

/* HIDE */
.chat__overlay.is-hiding {
  animation: overlayFadeOut 0.2s ease forwards;
  pointer-events: none;
}

/* =========================================
   CHAT OVERLAY CARD
========================================= */

.chat-overlay__card {
  max-width: 420px;
  width: 100%;

  padding: 28px;

  border-radius: var(--radius-lg);

  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);

  box-shadow: var(--shadow-lg);

  text-align: center;

  transform: translateY(16px) scale(0.98);
  opacity: 0;
}

.chat__overlay.is-visible .chat-overlay__card {
  animation: slideUp 0.3s ease forwards;
}

.chat__overlay.is-hiding .chat-overlay__card {
  animation: slideDown 0.2s ease forwards;
}

.chat-overlay__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.chat-overlay__subtitle {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  line-height: 1.5;
}/* =========================================
   AUTH FORM
========================================= */

.overlay__input {

  padding: 12px 14px;

  border-radius: var(--radius-md);

  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);

  color: var(--text-primary);

  transition:
    border var(--transition-fast),
    background-color var(--transition-fast);
}

.overlay__input:focus {
  border: 1px solid var(--text-secondary);
}

/* Error */

.overlay__error {
  font-size: 13px;
  color: var(--text-muted);
}

/* =========================================
   PROFILE LAYOUT
========================================= */

.profile__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}


/* =========================================
   INTRO
========================================= */

.profile__intro {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  line-height: 1.7;

  max-width: 420px;
}


/* =========================================
   SKILLS BLOCK
========================================= */

.profile__skills-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.profile__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.profile__skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;

  max-width: 420px;
}


/* =========================================
   SKILL ITEM
========================================= */

.profile__skill {

  padding: 6px 12px;

  font-size: 13px;
  font-weight: 500;

  border-radius: var(--radius-sm);

  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);

  color: var(--text-secondary);

  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.profile__skill:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
  transform: translateY(-2px);
}


/* =========================================
   IMAGE
========================================= */

.profile__image {
  width: 220px;

  display: flex;
  justify-content: center;
}

.profile__image .img {
  width: 100%;
  height: auto;

  border-radius: var(--radius-lg);

  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);

  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
}

.profile__image .img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

  .profile__image {
    width: 100%;
  }

  .profile__image .img {
    max-width: 300px;
  }
}.ui-toggle--lang {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;

    background: var(--bg-toggle);
    border: none;
    border-radius: 999px;

    color: var(--text-main);
    cursor: pointer;

    box-shadow: var(--shadow-toggle);
    backdrop-filter: blur(6px);

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.ui-toggle--lang:hover {
    background: var(--bg-toggle-hover);
}

.ui-toggle--lang:active {
    transform: scale(0.92);
}

.ui-toggle__text {
    display: inline-block;
    transform-origin: center;
}

.ui-toggle--lang.is-animating .ui-toggle__text {
    animation: langFlip 0.45s ease-in-out;
}