  html { overflow-anchor: none; }
  .scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
  .scrollbar-hide::-webkit-scrollbar { display: none; }

  /* Product panel templates: only active one is shown, rest are hidden (used as clone sources) */
  .product-panel { display: none; }
  .product-panel.active { display: block; }

  /* ── Modal overlay ── */
  .mcbot-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: flex-start;
    justify-content: center;
    padding: 5vh 1rem;
    overflow-y: auto;
  }
  .mcbot-modal-overlay.active {
    display: flex;
  }
  .mcbot-modal {
    background: var(--bg-elevated, #222224);
    border: 1px solid var(--border-color, #3f3f46);
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
  }
  .mcbot-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color, #3f3f46);
    position: sticky;
    top: 0;
    background: var(--bg-elevated, #222224);
    z-index: 1;
  }
  .mcbot-modal-body {
    padding: 2rem;
  }
  .mcbot-modal-close {
    font-size: 1.25rem;
    color: var(--text-muted, #a1a1aa);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    transition: color 0.2s;
  }
  .mcbot-modal-close:hover {
    color: var(--text-color, #e2e2e7);
  }
  .modal-section {
    margin-bottom: 1.5rem;
  }
  .modal-section:last-child {
    margin-bottom: 0;
  }

  /* ══════════════════════════════════
     DARK THEME (default)
  ══════════════════════════════════ */
  :root {
    --bg-color:        #1a1a1c;
    --bg-elevated:     #222224;
    --text-color:      #e2e2e7;
    --text-muted:      #a1a1aa;
    --text-faint:      #71717a;
    --border-color:    #3f3f46;
    --border-subtle:   #27272a;
    --glass-bg:        rgba(39,39,42,0.4);
    --glass-border:    rgba(255,255,255,0.08);
    --surface-hover:   rgba(255,255,255,0.04);
    --overlay-bg:      rgba(0,0,0,0.75);
    --input-bg:        rgba(0,0,0,0.35);
    --result-bg:       rgba(0,0,0,0.2);
    --card-shadow:     rgba(0,0,0,0.2);
    --card-shadow-hover: rgba(0,0,0,0.35);
    --loader-border:   rgba(255,255,255,0.15);
    --dot-pattern:     rgba(255,255,255,0.05);
    --shimmer:         rgba(255,255,255,0.22);
    --glow-color:      rgba(255,255,255,0.05);

    /* Section backgrounds */
    --section-mcpravo:   linear-gradient(135deg, #1a1a1c 0%, #1a202a 25%, #1a1a1c 50%, #1a1f28 75%, #1a1a1c 100%);
    --section-mcstyle:   linear-gradient(135deg, #1a1a1c 0%, #2a1a2a 25%, #1a1a1c 50%, #251a2a 75%, #1a1a1c 100%);
    --section-mcstar:    linear-gradient(135deg, #1a1a1c 0%, #2a1f1a 25%, #1a1a1c 50%, #281f1a 75%, #1a1a1c 100%);
    --section-dark:      linear-gradient(180deg, #1a1a1c 0%, #191819 50%, #1a1a1c 100%);
    --section-dark-spot: rgba(255,255,255,0.03);

    /* Switcher */
    --sw-active-bg:    #e2e2e7;
    --sw-active-text:  #111;

    /* Modal */
    --modal-bg:        #1a1a1c;

    /* Premium button */
    --btn-premium-bg:  linear-gradient(135deg,#f4f4f5 0%,#a1a1aa 100%);
    --btn-premium-text:#111827;

    /* Text stroke */
    --stroke-color:    rgba(226,226,231,0.3);

    /* Footer dropdown */
    --footer-drop-bg:  #1a1a1c;
    --footer-drop-hover: rgba(255,255,255,0.04);

    color-scheme: dark;
  }

  /* ══════════════════════════════════
     LIGHT THEME
  ══════════════════════════════════ */
  html.light {
    --bg-color:        #f5f5f7;
    --bg-elevated:     #ffffff;
    --text-color:      #1a1a1c;
    --text-muted:      #52525b;
    --text-faint:      #71717a;
    --border-color:    #d4d4d8;
    --border-subtle:   #e4e4e7;
    --glass-bg:        rgba(255,255,255,0.7);
    --glass-border:    rgba(0,0,0,0.08);
    --surface-hover:   rgba(0,0,0,0.04);
    --overlay-bg:      rgba(0,0,0,0.4);
    --input-bg:        rgba(0,0,0,0.04);
    --result-bg:       rgba(0,0,0,0.03);
    --card-shadow:     rgba(0,0,0,0.06);
    --card-shadow-hover: rgba(0,0,0,0.12);
    --loader-border:   rgba(0,0,0,0.1);
    --dot-pattern:     rgba(0,0,0,0.04);
    --shimmer:         rgba(0,0,0,0.08);
    --glow-color:      rgba(0,0,0,0.03);

    /* Section backgrounds */
    --section-mcpravo:   linear-gradient(135deg, #f5f5f7 0%, #eff6ff 25%, #f5f5f7 50%, #dbeafe 75%, #f5f5f7 100%);
    --section-mcstyle:   linear-gradient(135deg, #f5f5f7 0%, #fdf2f8 25%, #f5f5f7 50%, #fce7f3 75%, #f5f5f7 100%);
    --section-mcstar:    linear-gradient(135deg, #f5f5f7 0%, #fffbeb 25%, #f5f5f7 50%, #fef3c7 75%, #f5f5f7 100%);
    --section-dark:      linear-gradient(180deg, #f5f5f7 0%, #efefef 50%, #f5f5f7 100%);
    --section-dark-spot: rgba(0,0,0,0.02);

    /* Switcher */
    --sw-active-bg:    #1a1a1c;
    --sw-active-text:  #f5f5f7;

    /* Modal */
    --modal-bg:        #ffffff;

    /* Premium button */
    --btn-premium-bg:  linear-gradient(135deg, #1a1a1c 0%, #3f3f46 100%);
    --btn-premium-text:#f5f5f7;

    /* Text stroke */
    --stroke-color:    rgba(26,26,28,0.2);

    /* Footer dropdown */
    --footer-drop-bg:  #ffffff;
    --footer-drop-hover: rgba(0,0,0,0.04);

    color-scheme: light;
  }

  /* ── Transition for theme switch ── */
  body, .glass-card, .industrial-border, .mcbot-modal,
  .mcbot-modal-header, .sw-btn, .product-menu-btn,
  .tab-link, .ai-input, .ai-result, .check-row,
  .footer-drop-item, footer, nav {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  }

  /* ══════════════════════════════════
     BASE STYLES (using variables)
  ══════════════════════════════════ */
  body {
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
  }
  .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--card-shadow);
  }
  .industrial-border { border: 1px solid var(--border-color); }
  .btn-premium {
    background: var(--btn-premium-bg);
    color: var(--btn-premium-text);
    transition: all 0.3s ease;
  }
  .btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--card-shadow-hover);
    filter: brightness(1.1);
  }
  @keyframes float {
    0%  { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100%{ transform: translateY(0px); }
  }
  .hero-visual-container { animation: float 6s ease-in-out infinite; }
  .dot-pattern {
    background-image: radial-gradient(var(--dot-pattern) 1px, transparent 1px);
    background-size: 40px 40px;
  }

  /* ── Background patterns per product ── */
  .bg-mcpravo-section {
    background: var(--section-mcpravo);
    background-size: 200% 200%;
    position: relative;
  }
  .bg-mcpravo-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(ellipse at 15% 30%, rgba(59,130,246,0.08) 0%, transparent 40%),
      radial-gradient(ellipse at 85% 70%, rgba(59,130,246,0.05) 0%, transparent 35%);
    pointer-events: none;
  }

  .bg-mcstyle-section {
    background: var(--section-mcstyle);
    background-size: 200% 200%;
    position: relative;
  }
  .bg-mcstyle-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(ellipse at 15% 30%, rgba(219,39,119,0.08) 0%, transparent 40%),
      radial-gradient(ellipse at 85% 70%, rgba(219,39,119,0.05) 0%, transparent 35%);
    pointer-events: none;
  }

  .bg-mcstar-section {
    background: var(--section-mcstar);
    background-size: 200% 200%;
    position: relative;
  }
  .bg-mcstar-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(ellipse at 25% 35%, rgba(217,119,6,0.08) 0%, transparent 40%),
      radial-gradient(ellipse at 75% 65%, rgba(217,119,6,0.05) 0%, transparent 35%);
    pointer-events: none;
  }

  .bg-mcbase-section {
    background: var(--section-mcstar);
    background-size: 200% 200%;
    position: relative;
  }
  .bg-mcbase-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(ellipse at 25% 35%, rgba(217,119,6,0.08) 0%, transparent 40%),
      radial-gradient(ellipse at 75% 65%, rgba(217,119,6,0.05) 0%, transparent 35%);
    pointer-events: none;
  }

  .bg-dark-subtle {
    background: var(--section-dark);
    position: relative;
  }
  .bg-dark-subtle::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, var(--section-dark-spot) 0%, transparent 50%);
    pointer-events: none;
  }

  .text-stroke-white {
    -webkit-text-stroke: 1px var(--stroke-color);
    color: transparent;
  }

  /* ── Panel system ── */
  .panel { display: none; }
  .panel.active { display: block; animation: panelIn 0.45s cubic-bezier(0.2,0.8,0.2,1); }
  @keyframes panelIn {
    from { opacity:0; transform:translateY(18px); filter:blur(4px); }
    to   { opacity:1; transform:none; filter:none; }
  }

  /* ── Switcher ── */
  .sw-btn {
    padding: 10px 20px;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    border: 1px solid transparent; border-radius: 0;
    cursor: pointer; transition: all 0.2s;
    background: transparent; color: var(--text-muted);
  }
  .sw-btn:hover { color: var(--text-color); background: var(--surface-hover); }
  .sw-btn.active { background: var(--sw-active-bg); color: var(--sw-active-text); }
  .sw-btn.overview-btn.active { border-bottom: 2px solid var(--text-color); }
  .sw-btn.star-btn.active  { border-bottom: 2px solid #d97706; }
  .sw-btn.style-btn.active { border-bottom: 2px solid #db2777; }

  /* ── Product panels ── */
  .product-panel { display: none; }
  .product-panel.active { display: block; animation: panelIn 0.45s cubic-bezier(0.2,0.8,0.2,1); }

  /* ── Product end sentinel (invisible trigger for infinite scroll) ── */
  .product-end-sentinel { height: 1px; visibility: hidden; }

  /* ── Product menu buttons ── */
  .product-menu-btn {
    padding: 8px 10px; height: 36px;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    border: none; border-bottom: 2px solid transparent;
    cursor: pointer; transition: all 0.2s;
    background: transparent; color: var(--text-muted);
    display: inline-flex; align-items: center; gap: 5px;
    white-space: nowrap; flex-shrink: 0;
  }
  @media (min-width: 640px) {
    .product-menu-btn {
      padding: 8px 20px; height: 40px;
      font-size: 11px; letter-spacing: 0.1em; gap: 7px;
    }
  }
  .product-menu-btn:hover { color: var(--text-color); background: var(--surface-hover); }
  .product-menu-btn .product-code { font-size: 9px; font-weight: 900; }
.product-menu-btn.pravo-menu.active { color: #3b82f6; border-bottom-color: #3b82f6; }
  .product-menu-btn.style-menu.active { color: #db2777; border-bottom-color: #db2777; }
  .product-menu-btn.star-menu.active  { color: #d97706; border-bottom-color: #d97706; }
  .product-menu-btn.lite-menu.active  { color: #14b8a6; border-bottom-color: #14b8a6; }

  /* ── Tabs ── */
  .tab-link {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    padding: 10px 18px; cursor: pointer; color: var(--text-muted);
    border: none; border-bottom: 2px solid transparent; transition: all 0.2s;
    background: none;
  }
  .tab-link:hover { color: var(--text-color); }
  .tab-link.active { color: var(--text-color); border-bottom-color: var(--text-color); }
  .tab-pane { display: none; }
  .tab-pane.active { display: block; animation: panelIn 0.3s ease; }

  /* ── Checklist ── */
  .check-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; border-bottom: 1px solid var(--border-color);
    cursor: pointer; transition: opacity 0.2s;
  }
  .check-row.done { opacity: 0.3; text-decoration: line-through; }

  /* ── AI Tool ── */
  .ai-input {
    width: 100%; padding: 12px 14px; margin-bottom: 12px;
    background: var(--input-bg); border: 1px solid var(--border-color);
    color: var(--text-color); font-size: 13px; outline: none;
    transition: border-color 0.2s;
  }
  .ai-input:focus { border-color: var(--text-faint); }
  .ai-input::placeholder { color: var(--text-faint); }
  .ai-result {
    margin-top: 16px; padding: 16px; background: var(--result-bg);
    border-left: 2px solid var(--border-color); font-size: 13px; white-space: pre-line;
    display: none; color: var(--text-muted); line-height: 1.7;
  }
  .dossier-box {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    font-family: Inter, Avenir Next, ui-sans-serif, system-ui, sans-serif;
  }
  .dossier-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 8px;
    margin-bottom: 12px;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
  }
  .tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  .tag-1c {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
  }
  .tag-crm {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
  }
  .tag-law {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
  }
  .tag-warn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
  }
  .loader {
    border: 2px solid var(--loader-border); border-radius: 50%;
    border-top: 2px solid var(--text-color); width: 14px; height: 14px;
    animation: spin 0.8s linear infinite; display: none; flex-shrink: 0;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* ── Interaction: reveal on scroll ── */
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1), transform 0.55s cubic-bezier(0.16,1,0.3,1);
  }
  .reveal.visible { opacity: 1; transform: none; }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }

  /* ── Interaction: stat counter ── */
  .stat-counter { display: inline-block; }

  /* ── Interaction: hero entrance ── */
  @keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); filter: blur(4px); }
    to   { opacity: 1; transform: none; filter: none; }
  }
  .hero-entrance { animation: heroFadeUp 0.7s cubic-bezier(0.16,1,0.3,1) both; }
  .hero-entrance-1 { animation-delay: 0.05s; }
  .hero-entrance-2 { animation-delay: 0.18s; }
  .hero-entrance-3 { animation-delay: 0.32s; }
  .hero-entrance-4 { animation-delay: 0.44s; }

  /* ── Interaction: product row hover ── */
  .product-row {
    transition: background 0.2s, transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
  }
  .product-row:hover { transform: translateX(4px); }

  /* ── Interaction: button click feedback ── */
  .btn-tap { transition: transform 0.1s cubic-bezier(0.55,0,1,0.45); }
  .btn-tap:active { transform: scale(0.96); }

  /* ── Interaction: stats count-up glow ── */
  @keyframes statPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.08); }
    100% { transform: scale(1); }
  }
  .stat-popped { animation: statPop 0.45s cubic-bezier(0.34,1.56,0.64,1); }

  /* ── Interaction: glowing border pulse on overview terminal ── */
  @keyframes borderGlow {
    0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
    50%     { box-shadow: 0 0 18px 2px var(--glow-color); }
  }
  #overview-section .industrial-border {
    animation: borderGlow 4s ease-in-out infinite;
  }

  /* Live terminal feed styling for McBase */
  .terminal-feed {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 10px;
    line-height: 1.6;
    color: var(--text-faint);
    height: 104px;
    overflow: hidden;
    position: relative;
  }
  .terminal-feed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 34px;
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
    pointer-events: none;
  }
  .terminal-stream {
    display: flex;
    flex-direction: column;
    gap: 2px;
    will-change: transform;
  }
  .terminal-entry {
    white-space: nowrap;
    min-height: 16px;
    opacity: 0;
    animation: terminalEntryIn 0.35s ease forwards;
  }
  @keyframes terminalEntryIn {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .blinking-cursor {
    display: inline-block;
    width: 6px;
    height: 12px;
    background: #d97706;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 4px;
  }
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }

  /* ── Modals ── */
  .mcbot-modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: var(--overlay-bg); backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center; padding: 24px;
  }
  .mcbot-modal-overlay.open { display: flex; animation: panelIn 0.3s ease; }
  .mcbot-modal {
    background: var(--modal-bg); border: 1px solid var(--border-color);
    width: 100%; max-width: 640px; max-height: 85vh;
    overflow-y: auto; position: relative;
  }
  .mcbot-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 28px; border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; background: var(--modal-bg); z-index: 1;
  }
  .mcbot-modal-body { padding: 28px; }
  .mcbot-modal-close {
    width: 32px; height: 32px; border: 1px solid var(--border-color);
    background: transparent; color: var(--text-muted); cursor: pointer;
    font-size: 16px; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; flex-shrink: 0;
  }
  .mcbot-modal-close:hover { background: var(--surface-hover); color: var(--text-color); }
  .modal-section { margin-bottom: 24px; }
  .modal-section h3 {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 10px;
    padding-bottom: 8px; border-bottom: 1px solid var(--border-subtle);
  }
  .modal-section p, .modal-section li {
    font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 6px;
  }
  .modal-section ul { padding-left: 16px; }
  .status-dot {
    display: inline-block; width: 8px; height: 8px;
    border-radius: 50%; margin-right: 8px;
  }
  .status-dot.green { background: #22c55e; box-shadow: 0 0 6px #22c55e88; }
  .status-dot.yellow { background: #eab308; }
  .status-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid var(--border-subtle); font-size: 13px;
  }
  .status-row:last-child { border-bottom: none; }

  .mclite-chat-shell {
    display: flex;
    flex-direction: column;
    min-height: 380px;
  }
  .mclite-chat-shell-hero {
    min-height: 360px;
  }
  .mclite-chat-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }
  .mclite-chat-chip {
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
    color: var(--text-muted);
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }
  .mclite-chat-chip:hover {
    border-color: #14b8a6;
    color: var(--text-color);
    transform: translateY(-1px);
  }
  .mclite-route-card {
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
    padding: 10px 12px;
    min-height: 88px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }
  .mclite-route-card.is-active {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(20,184,166,0.12);
  }
  .mclite-route-card[data-route="McBase"].is-active {
    border-color: rgba(217,119,6,0.7);
    background: rgba(217,119,6,0.08);
  }
  .mclite-route-card[data-route="McPravo"].is-active {
    border-color: rgba(59,130,246,0.7);
    background: rgba(59,130,246,0.08);
  }
  .mclite-route-card[data-route="McStyle"].is-active {
    border-color: rgba(219,39,119,0.7);
    background: rgba(219,39,119,0.08);
  }
  .mclite-route-code {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .mclite-route-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-color);
  }
  .mclite-route-meta {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }
  .mclite-chat-messages {
    border: 1px solid var(--border-color);
    background: rgba(0,0,0,0.32);
    flex: 1 1 auto;
    min-height: 210px;
    max-height: 310px;
    overflow: auto;
    padding: 14px;
  }
  .mclite-chat-shell-hero .mclite-chat-messages {
    min-height: 250px;
    max-height: 250px;
  }
  .mclite-message {
    display: flex;
    margin-bottom: 12px;
  }
  .mclite-message:last-child {
    margin-bottom: 0;
  }
  .mclite-message.is-user {
    justify-content: flex-end;
  }
  .mclite-message.is-log {
    justify-content: center;
  }
  .mclite-message-bubble {
    max-width: 92%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.03);
  }
  .mclite-message.is-user .mclite-message-bubble {
    border-color: rgba(20,184,166,0.35);
    background: rgba(20,184,166,0.10);
  }
  .mclite-message.is-assistant .mclite-message-bubble {
    border-color: rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
  }
  .mclite-message.is-log .mclite-message-bubble {
    width: 100%;
    max-width: 100%;
    padding: 9px 12px;
    background: rgba(0,0,0,0.24);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 11px;
    line-height: 1.55;
    color: var(--text-faint);
  }
  .mclite-message.is-log.log-lite .mclite-message-bubble { color: #14b8a6; }
  .mclite-message.is-log.log-base .mclite-message-bubble { color: #d97706; }
  .mclite-message.is-log.log-pravo .mclite-message-bubble { color: #60a5fa; }
  .mclite-message.is-log.log-style .mclite-message-bubble { color: #f472b6; }
  .mclite-message.is-log.log-sys .mclite-message-bubble { color: var(--text-muted); }
  .mclite-message-role {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--text-faint);
  }
  .mclite-message.is-user .mclite-message-role {
    color: #5eead4;
  }
  .mclite-message.is-assistant .mclite-message-role {
    color: #e2e8f0;
  }
  .mclite-message-title {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 8px;
  }
  .mclite-message-body,
  .mclite-result-copy,
  .mclite-result-body,
  .mclite-result-list {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
  }
  .mclite-message-body strong {
    color: var(--text-color);
  }
  .mclite-question-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
  }
  .mclite-question-list li + li {
    margin-top: 8px;
  }
  .mclite-result-list {
    margin-top: 14px;
    padding-left: 18px;
  }
  .mclite-result-list li + li {
    margin-top: 8px;
  }
  .mclite-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
  }
  .mclite-result-tag {
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-color);
  }
  .mclite-chat-input {
    width: 100%;
    resize: none;
    min-height: 88px;
    padding: 16px 120px 16px 16px;
    border: 1px solid var(--border-color);
    background: rgba(0,0,0,0.34);
    color: var(--text-color);
    font-size: 13px;
    line-height: 1.6;
  }
  .mclite-chat-input:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 1px rgba(20,184,166,0.35);
  }
  .mclite-send-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border: none;
    background: #14b8a6;
    color: #101214;
    padding: 10px 16px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
  }
  .mclite-send-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
  }
  .mclite-send-btn:disabled {
    opacity: 0.6;
    cursor: wait;
  }
  .mobile-break-safe {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  @media (max-width: 640px) {
    #overview-section > section {
      min-height: auto !important;
      padding-top: 108px !important;
      padding-bottom: 56px !important;
    }
    #overview-section .hero-visual-container {
      animation: none !important;
    }
    .mclite-chat-shell,
    .mclite-chat-shell-hero {
      min-height: 0;
    }
    .mclite-route-grid {
      grid-template-columns: 1fr !important;
    }
    .mclite-route-card {
      min-height: 0;
      padding: 12px;
    }
    .mclite-route-code {
      margin-bottom: 6px;
    }
    .mclite-chat-messages,
    .mclite-chat-shell-hero .mclite-chat-messages {
      min-height: 220px;
      max-height: 220px;
    }
    .mclite-chat-chip {
      font-size: 9px;
      padding: 8px 10px;
    }
    .mclite-message-bubble {
      max-width: 100%;
    }
    .mclite-chat-input {
      padding-right: 16px;
      min-height: 110px;
    }
    .mclite-send-btn {
      position: static;
      width: 100%;
      margin-top: 12px;
    }
    .mclite-chat-header {
      flex-direction: column;
    }
    .mclite-chat-header > button {
      width: 100%;
      text-align: center;
    }
  }
  @media (max-width: 360px) {
    #products-menu {
      overflow-x: hidden;
    }
    #products-menu > div {
      justify-content: flex-start;
      overflow-x: auto;
      padding-left: 8px;
      padding-right: 8px;
      scrollbar-width: none;
    }
    #products-menu > div::-webkit-scrollbar {
      display: none;
    }
    #products-menu > div > div {
      width: max-content;
      min-width: max-content;
    }
    .product-menu-btn {
      padding: 8px 6px;
      font-size: 8px;
      letter-spacing: 0.04em;
      gap: 3px;
    }
    .product-menu-btn::before {
      left: 8px;
      right: 8px;
    }
    .product-menu-btn .product-code {
      font-size: 8px;
    }
    .tab-link {
      font-size: 10px;
      letter-spacing: 0.06em;
      padding: 10px 12px;
    }
  }
  @media (max-width: 900px) {
    footer > div.hidden.sm\:flex {
      display: none !important;
    }
    footer > div.flex.flex-col.sm\:hidden {
      display: flex !important;
    }
  }

  /* ── Scroll progress bar ── */
  #scroll-progress {
    position: fixed; top: 0; left: 0; z-index: 9999;
    height: 2px; width: 0%;
    background: linear-gradient(90deg, #db2777 0%, #7c3aed 50%, #d97706 100%);
    transition: width 0.08s linear;
    pointer-events: none;
  }

  /* ── Product panel stagger reveal ── */
  @keyframes cardStaggerIn {
    from { opacity: 0; transform: translateY(22px); filter: blur(3px); }
    to   { opacity: 1; transform: none; filter: none; }
  }
  .card-stagger { animation: cardStaggerIn 0.5s cubic-bezier(0.16,1,0.3,1) both; }

  /* ── Modal spring entrance ── */
  @keyframes modalSpringIn {
    from { opacity: 0; transform: translateY(32px) scale(0.96); }
    to   { opacity: 1; transform: none; }
  }
  .mcbot-modal-overlay.open .mcbot-modal {
    animation: modalSpringIn 0.38s cubic-bezier(0.16,1,0.3,1);
  }

  /* ── CTA Telegram button shimmer ── */
  .cta-tg-btn { position: relative; overflow: hidden; }
  .cta-tg-btn::after {
    content: '';
    position: absolute; top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, var(--shimmer), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
  }
  .cta-tg-btn:hover::after { animation: shimmerSweep 0.65s cubic-bezier(0.16,1,0.3,1); }
  @keyframes shimmerSweep {
    from { left: -75%; }
    to   { left: 125%; }
  }

  /* ── Product menu active pill ── */
  .product-menu-btn { position: relative; }
  .product-menu-btn::before {
    content: '';
    position: absolute; bottom: -1px; left: 20px; right: 20px; height: 2px;
    background: currentColor; opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.2s, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  }
  .product-menu-btn.active::before { opacity: 1; transform: scaleX(1); }
  .product-menu-btn { border-bottom: none !important; }

  /* ── Status dot live pulse ── */
  @keyframes livePulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
    60%     { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
  }
  .status-dot.green { animation: livePulse 2.2s ease-in-out infinite; }

  /* ── Card hover tilt (JS sets vars) ── */
  .glass-card {
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    transform-style: preserve-3d;
  }
  .glass-card:hover { box-shadow: 0 20px 40px var(--card-shadow-hover); }

  /* ── Check-row done strikethrough animate ── */
  .check-row.done { transition: opacity 0.3s ease; }

  /* ── Tab link indicator slide ── */
  .tab-link { transition: color 0.2s, border-bottom-color 0.25s cubic-bezier(0.34,1.56,0.64,1); }

  /* ── Glitch flash on product title switch ── */
  @keyframes titleFlash {
    0%   { opacity: 0; transform: translateX(-6px); filter: blur(4px); }
    100% { opacity: 1; transform: none; filter: none; }
  }
  .title-flash { animation: titleFlash 0.35s cubic-bezier(0.16,1,0.3,1); }

  /* ── McStyle synthesis pipeline ── */
  .synth-node { position: relative; }
  .synth-line {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 20px;
    height: 2px;
    background: var(--border-color);
    transform: translateY(-50%);
  }
  @keyframes dataFlow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }
  .synth-line-active {
    background: linear-gradient(90deg, var(--border-color) 0%, #db2777 50%, var(--border-color) 100%);
    background-size: 200% 100%;
    animation: dataFlow 1.5s linear infinite;
  }

  /* ── Respect reduced motion ── */
  @media (prefers-reduced-motion: reduce) {
    .reveal, .hero-entrance, .hero-visual-container,
    .product-row, .btn-tap { animation: none !important; transition: none !important; }
    .cta-tg-btn::after, #scroll-progress { display: none; }
    .synth-line-active { animation: none !important; }
  }

  /* ── Infinite stream (бесконечная прокрутка) ── */
  footer {
    position: fixed !important;
    bottom: 0 !important; left: 0 !important; right: 0 !important;
    z-index: 35 !important;
    width: 100% !important;
  }
  main { padding-bottom: 48px; }
  @media (max-width: 639px) {
    main { padding-bottom: 68px; }
    footer .footer-drop-btn {
      font-size: 8px !important;
      letter-spacing: 0.08em !important;
    }
  }

  .product-block {
    animation: panelIn 0.45s cubic-bezier(0.2,0.8,0.2,1);
  }

  .stream-loader {
    display: flex; align-items: center; justify-content: center;
    padding: 60px 0; gap: 12px;
    color: var(--text-faint); font-size: 11px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
  }

  .stream-loader-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: currentColor; animation: loaderPulse 0.8s ease-in-out infinite;
  }

  .stream-loader-dot:nth-child(2) { animation-delay: 0.15s; }
  .stream-loader-dot:nth-child(3) { animation-delay: 0.30s; }

  @keyframes loaderPulse {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50%       { opacity: 1;   transform: scale(1.2); }
  }

  /* ── Footer dropdown ── */
  .footer-drop-item {
    display: block;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
  }
  .footer-drop-item:hover {
    background: var(--footer-drop-hover);
    color: var(--text-color);
  }
  .footer-drop-btn.open .footer-drop-arrow {
    transform: rotate(180deg);
  }
  .footer-dropdown {
    z-index: 9999 !important;
  }

  /* ══════════════════════════════════
     LIGHT THEME — Tailwind overrides
     (elements using hardcoded Tailwind
      classes that need inversion)
  ══════════════════════════════════ */
  html.light nav {
    background: rgba(245,245,247,0.85) !important;
    border-bottom-color: var(--border-color) !important;
  }
  html.light footer.bg-dark-subtle {
    background: linear-gradient(180deg, #f5f5f7 0%, #efefef 50%, #f5f5f7 100%) !important;
    border-top-color: var(--border-color) !important;
  }
  html.light .bg-mcbot-text { background-color: #1a1a1c !important; }
  html.light .text-mcbot-bg { color: #f5f5f7 !important; }
  html.light .text-mcbot-text { color: #1a1a1c !important; }
  html.light .text-mcbot-text\/70 { color: rgba(26,26,28,0.7) !important; }
  html.light .text-mcbot-text\/80 { color: rgba(26,26,28,0.8) !important; }
  html.light .text-mcbot-muted { color: #52525b !important; }
  html.light .border-mcbot-border { border-color: var(--border-color) !important; }
  html.light .bg-mcbot-dark-accent { background-color: #e4e4e7 !important; }
  html.light .bg-\[\#1a1a1c\]\/80 { background: rgba(245,245,247,0.85) !important; }
  html.light .bg-\[\#1a1a1c\] { background-color: #ffffff !important; }

  /* Footer logo inversion */
  html.light footer .bg-white { background-color: #1a1a1c !important; }
  html.light footer .text-black { color: #f5f5f7 !important; }

  /* Nav CTA button inversion */
  html.light .bg-mcbot-text.text-mcbot-bg {
    background-color: #1a1a1c !important;
    color: #f5f5f7 !important;
  }

  /* Zinc overrides for footer */
  html.light .text-zinc-500 { color: #71717a !important; }
  html.light .text-zinc-600 { color: #52525b !important; }
  html.light .text-zinc-700 { color: #a1a1aa !important; }
  html.light .bg-zinc-700 { background-color: #d4d4d8 !important; }
  html.light .bg-zinc-800 { background-color: #d4d4d8 !important; }
  html.light .border-zinc-800 { border-color: #d4d4d8 !important; }
  html.light .hover\:text-zinc-300:hover { color: #1a1a1c !important; }

  /* Product menu bar */
  html.light #products-menu {
    background: transparent !important;
  }
  html.light #products-menu > div > div {
    background: rgba(255,255,255,0.7) !important;
    border-color: var(--border-color) !important;
  }

  /* Inline rgba backgrounds in HTML */
  html.light .bg-mcbot-dark-accent\/30 { background-color: rgba(228,228,231,0.3) !important; }
  html.light .bg-mcbot-dark-accent\/50 { background-color: rgba(228,228,231,0.5) !important; }
  html.light .bg-mcbot-bg\/60 { background-color: rgba(245,245,247,0.6) !important; }
  html.light .border-mcbot-border { border-color: var(--border-color) !important; }

  /* Window chrome dots — keep as-is, they look good in both themes */

  /* Footer dropdown panels */
  html.light .footer-dropdown {
    background: var(--footer-drop-bg) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.08) !important;
  }

  /* Glass card in light */
  html.light .glass-card {
    background: rgba(255,255,255,0.7);
    border-color: rgba(0,0,0,0.06);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  }
  html.light .glass-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  }

  /* hover:text-white в light — сделать hover:text-black */
  html.light .hover\:text-white:hover { color: #1a1a1c !important; }

/* ═══════════════════════════
   COOKIE BANNER
═══════════════════════════ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
#cookie-banner.visible {
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner-inner {
  max-width: 720px;
  margin: 0 auto 20px;
  padding: 24px 28px;
  background: rgba(26, 26, 28, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.4);
}
html.light .cookie-banner-inner {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.1);
}
.cookie-banner-inner h4 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.cookie-banner-inner p {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.cookie-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.cookie-btn-accept {
  background: #3b82f6;
  color: #fff;
}
.cookie-btn-accept:hover { background: #2563eb; }
.cookie-btn-reject {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--border-color);
}
.cookie-btn-reject:hover {
  border-color: var(--color-text);
}
.cookie-btn-settings {
  background: transparent;
  color: var(--color-muted);
  border: 1px solid transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-btn-settings:hover { color: var(--color-text); }

/* Cookie settings panel inside banner */
.cookie-settings-panel {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}
.cookie-settings-panel.open { display: block; }
.cookie-opt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
html.light .cookie-opt-row {
  border-bottom-color: rgba(0,0,0,0.06);
}
.cookie-opt-row:last-child { border-bottom: none; }
.cookie-opt-label {
  font-size: 12px;
  font-weight: 600;
}
.cookie-opt-desc {
  font-size: 10px;
  color: var(--color-muted);
}
/* Toggle switch */
.cookie-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle .slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.2s;
}
html.light .cookie-toggle .slider {
  background: rgba(0,0,0,0.12);
}
.cookie-toggle .slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.cookie-toggle input:checked + .slider {
  background: #3b82f6;
}
.cookie-toggle input:checked + .slider::before {
  transform: translateX(18px);
}
.cookie-toggle input:disabled + .slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── McPravo Contract — light theme ── */
html.light #roadmap-default {
  color: #3f3f46 !important;
}
html.light #roadmap-default > div[style*="border:1px solid"] {
  background: rgba(255,255,255,0.85) !important;
  border-color: #d4d4d8 !important;
}
html.light #roadmap-default [style*="color:#e2e2e7"],
html.light #roadmap-default [style*="color: #e2e2e7"] {
  color: #1a1a1c !important;
}
html.light #roadmap-default [style*="color:#a1a1aa"],
html.light #roadmap-default [style*="color: #a1a1aa"] {
  color: #52525b !important;
}
html.light #roadmap-default [style*="border-top:1px solid #3f3f46"],
html.light #roadmap-default [style*="border-top:2px solid #3f3f46"] {
  border-color: #d4d4d8 !important;
}
html.light #roadmap-default svg g[fill="#e2e2e7"] {
  fill: #1a1a1c !important;
}
