﻿:root {
  --accent-color: #d7d9dd;
  --vr-border: rgba(215, 217, 221, 0.2);
  --vr-border-strong: rgba(235, 237, 240, 0.34);
  --vr-bg-1: #111214;
  --vr-bg-2: #0a0b0d;
  --vr-text-soft: rgba(208, 215, 217, 0.78);
}

body {
  overflow: auto !important;
}

.main-content {
  padding: 24px 24px 0 !important;
}

.content-section {
  min-height: calc(100vh + 260px);
  display: none;
  flex-direction: column;
  padding-bottom: 0 !important;
}

.content-section.active {
  display: flex !important;
}

#home {
  padding-top: 0;
}

.home-hero {
  min-height: calc(100vh - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 20px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 47%),
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.05), transparent 48%),
    linear-gradient(158deg, #17181b 0%, #0c0d0f 52%, #09090a 100%);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5);
  margin: 0;
}

.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.92) 56%, transparent 100%);
  pointer-events: none;
}

.home-hero-inner {
  max-width: 940px;
  padding: 30px 24px;
  position: relative;
  z-index: 2;
}

.home-hero-logo {
  margin: 0 0 14px;
  font-size: clamp(58px, 10.3vw, 124px);
  line-height: 0.94;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-family: 'Arial Black', 'Segoe UI Black', 'Impact', sans-serif;
  background: linear-gradient(180deg, #f7f8fa 0%, #a4adb6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 15px 38px rgba(0, 0, 0, 0.5);
}

.home-hero-script {
  margin: 0 auto 20px;
  min-height: 84px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.04;
  font-family: 'Brush Script MT', 'Segoe Script', cursive;
  color: #eceef1;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.15);
}

.hero-script-typed {
  border-right: 2px solid rgba(230, 232, 235, 0.85);
  padding-right: 2px;
  animation: hero-caret 0.9s steps(2, end) infinite;
}

@keyframes hero-caret {
  0%, 45% { border-right-color: transparent; }
  46%, 100% { border-right-color: rgba(230, 232, 235, 0.85); }
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-btn {
  border: none;
  background: rgba(10, 10, 10, 0.9);
  color: #edf0f2;
  border-radius: 12px;
  padding: 13px 28px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-btn.primary {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(173, 180, 188, 0.15));
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
  border-color: var(--vr-border-strong);
}

.hero-code-lines {
  margin-top: 24px;
  display: grid;
  gap: 8px;
  justify-content: center;
}

.hero-code-lines span {
  position: relative;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  color: rgba(214, 220, 226, 0.58);
  font-size: 12px;
  letter-spacing: 0.05em;
  min-height: 18px;
  animation: code-glitch 5.6s ease-in-out infinite;
}

.hero-code-lines span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
  transform: translateX(-120%);
  animation: code-scan 4.2s linear infinite;
  pointer-events: none;
}

.hero-code-lines span:nth-child(2) { animation-delay: 1.1s; }
.hero-code-lines span:nth-child(3) { animation-delay: 2.2s; }
.hero-code-lines span:nth-child(2)::after { animation-delay: 0.8s; }
.hero-code-lines span:nth-child(3)::after { animation-delay: 1.6s; }

@keyframes code-glitch {
  0%, 100% { opacity: 0.46; transform: translateX(0); }
  10% { opacity: 0.84; transform: translateX(3px); }
  11% { transform: translateX(-2px); }
  12% { transform: translateX(1px); }
  38% { opacity: 0.72; }
  62% { opacity: 0.95; }
}

@keyframes code-scan {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* Products */
#products .products-shell {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.product-card {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  background: #222222;
  box-shadow: 0 24px 35px rgba(0, 0, 0, 0.48);
}

.product-cover {
  height: 166px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.08), transparent 45%), linear-gradient(160deg, #1b1d20, #111214);
  display: grid;
  place-items: center;
}

.product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15);
}

.product-cover.icon-only i {
  font-size: 46px;
  color: rgba(227, 232, 238, 0.82);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.product-cover .product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: rgba(8, 8, 8, 0.65);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-content {
  padding: 15px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-title {
  font-size: 18px;
  letter-spacing: 0.03em;
  margin: 0;
}

.product-desc {
  color: var(--vr-text-soft);
  font-size: 12px;
  line-height: 1.5;
  flex: 1;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.product-actions .form-btn,
.product-actions a.form-btn {
  width: 100%;
  font-size: 11px;
  padding: 10px 12px;
  text-decoration: none !important;
}

.product-actions .form-btn.secondary {
  background: transparent;
  border: none;
}

.product-dev-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #dfe3e8;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 5px 10px;
  width: fit-content;
}

.product-actions .form-btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Footer */
.global-site-footer {
  margin: auto -24px 0;
  padding: 56px 24px 24px;
  margin-top: auto;
  border-top: none;
  background: var(--dark-gray) !important;
  background-image: none !important;
  opacity: 1 !important;
}

.footer-wrap {
  max-width: 1200px;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 20px;
  justify-items: start;
  text-align: left;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
}

.footer-logo i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: none;
  background: rgba(255, 255, 255, 0.05);
}

.footer-copy,
.footer-column a,
.footer-column button {
  color: rgba(208, 215, 217, 0.78);
  font-size: 12px;
}

.footer-title {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(236, 239, 242, 0.96);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-links.sections-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 6px 2px;
  align-items: start;
}

.footer-links a,
.footer-links button {
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.footer-link-icon {
  font-size: 0.78em;
  opacity: 0.9;
}

.footer-links a:hover,
.footer-links button:hover {
  color: #fff;
}

.footer-stats {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.footer-stat {
  border: none;
  border-radius: 12px;
  padding: 14px 14px 12px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 18px rgba(0,0,0,0.3);
}

.footer-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-stat-label {
  color: rgba(208, 215, 217, 0.66);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-stat-icon {
  font-size: 13px;
  color: rgba(234, 239, 244, 0.64);
}

.footer-stat-value {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 700;
  color: #f1f4f7;
}

/* Chat widget */
.terminal-chat-container.chat-widget {
  position: fixed !important;
  right: 18px;
  bottom: 18px;
  top: auto;
  width: min(320px, calc(100vw - 22px));
  height: min(66vh, 560px);
  aspect-ratio: 9 / 16;
  margin: 0 !important;
  z-index: 1200;
  border-radius: 16px;
  border: none;
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.82);
  overflow: hidden;
  transition: transform 0.26s ease, opacity 0.26s ease;
  background: rgba(3, 3, 3, 1);
}

.chat-widget-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-widget-btn {
  width: 22px;
  height: 22px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--light-gray);
  cursor: pointer;
  opacity: 0.8;
}

.chat-widget-collapsed {
  transform: translateY(14px) scale(0.97);
  opacity: 0;
  pointer-events: none;
}

.chat-widget-toggle {
  position: fixed;
  bottom: 18px;
  right: 18px;
  top: auto;
  z-index: 1201;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  border: none;
  background: rgba(10, 10, 10, 0.99);
  color: var(--light-gray);
  cursor: pointer;
  display: none;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.44);
}

.chat-widget-toggle.show {
  display: grid;
  place-items: center;
}

/* Product modal */
#productPreviewModal .modal-content {
  max-width: 860px;
  width: min(94vw, 860px);
  border: none;
}

.product-preview-gallery {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: min(42vh, 360px);
  margin-bottom: 14px;
}

.product-preview-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 10, 10, 0.72);
  color: #fff;
  cursor: pointer;
}

.product-preview-nav.prev { left: 12px; }
.product-preview-nav.next { right: 12px; }

.product-preview-title {
  font-size: 24px;
  margin-bottom: 8px;
}

.product-preview-text {
  color: rgba(208, 215, 217, 0.84);
  line-height: 1.56;
}

#account #installerDownloadSection {
  display: none !important;
}

/* Minimize borders across interface */
.site-sidebar,
.site-sidebar .menu-item,
.main-content .terminal-block,
.main-content .grid-item,
.main-content .tariff-card,
.main-content .profile-card,
.main-content .purchase-card,
.main-content .form-input,
.main-content .search-input,
.main-content .filter-select,
.main-content .filter-tab,
.main-content .chat-input,
.main-content .chat-input-wrapper,
.main-content .form-btn,
.main-content .toolbar-btn {
  border: none !important;
}

@media (max-width: 1180px) {
  .terminal-chat-container.chat-widget {
    width: 300px;
    height: 64vh;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-stats {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .main-content {
    padding: 14px !important;
  }

  .content-section {
    min-height: calc(100vh + 220px);
  }

  .terminal-chat-container.chat-widget {
    right: 10px;
    bottom: 10px;
    width: min(84vw, 300px);
    height: min(64vh, 520px);
  }

  .chat-widget-toggle {
    bottom: 10px;
    right: 10px;
  }

  .home-hero {
    min-height: calc(100vh - 28px);
    border-radius: 16px;
  }

  .home-hero-inner {
    padding: 30px 16px;
  }

  .global-site-footer {
    margin: auto -14px 0;
    margin-top: auto;
    padding: 40px 14px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links.sections-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 6px 2px;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* ===== Dynamic navigation and motion pack ===== */
html {
  scroll-behavior: smooth;
}

.main-content {
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  transform: translateZ(0);
}

.content-section {
  position: relative;
  transform-origin: 50% 50%;
  will-change: transform, opacity, filter;
}

.content-section.section-transition-in,
.content-section.section-transition-out {
  display: flex !important;
  pointer-events: none;
}

.content-section.section-transition-in.from-down {
  animation: sectionEnterFromDown 0.72s cubic-bezier(0.18, 0.88, 0.22, 1);
}

.content-section.section-transition-in.from-up {
  animation: sectionEnterFromUp 0.72s cubic-bezier(0.18, 0.88, 0.22, 1);
}

.content-section.section-transition-out.to-up {
  animation: sectionExitToUp 0.68s cubic-bezier(0.2, 0.05, 0.18, 1) forwards;
}

.content-section.section-transition-out.to-down {
  animation: sectionExitToDown 0.68s cubic-bezier(0.2, 0.05, 0.18, 1) forwards;
}

@keyframes sectionEnterFromDown {
  0% {
    opacity: 0;
    transform: translate3d(0, 78px, 0) scale(0.97);
    filter: blur(8px);
  }
  65% {
    opacity: 1;
    transform: translate3d(0, -4px, 0) scale(1.008);
    filter: blur(0);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes sectionEnterFromUp {
  0% {
    opacity: 0;
    transform: translate3d(0, -78px, 0) scale(0.97);
    filter: blur(8px);
  }
  65% {
    opacity: 1;
    transform: translate3d(0, 4px, 0) scale(1.008);
    filter: blur(0);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes sectionExitToUp {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -86px, 0) scale(0.982);
    filter: blur(9px);
  }
}

@keyframes sectionExitToDown {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 86px, 0) scale(0.982);
    filter: blur(9px);
  }
}

.site-sidebar .menu-item,
.header-nav .nav-item {
  --mx: 50%;
  --my: 50%;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.34s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.34s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.34s ease;
}

.site-sidebar .menu-item::after,
.header-nav .nav-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(160px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.22), transparent 68%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.site-sidebar .menu-item:hover,
.header-nav .nav-item:hover {
  transform: translateY(-3px) translateX(2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.site-sidebar .menu-item:hover::after,
.header-nav .nav-item:hover::before,
.site-sidebar .menu-item.active::after,
.header-nav .nav-item.active::before {
  opacity: 1;
}

.site-sidebar .menu-item.active,
.header-nav .nav-item.active {
  animation: selectedItemBreath 2.6s ease-in-out infinite;
}

.menu-item-switch-anim {
  animation: menuSwitchSnap 0.56s cubic-bezier(0.16, 0.84, 0.22, 1);
}

@keyframes menuSwitchSnap {
  0% { transform: translateY(14px) scale(0.95); opacity: 0.66; }
  55% { transform: translateY(-4px) scale(1.02); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes selectedItemBreath {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.11); }
}

.main-content::-webkit-scrollbar,
.terminal-chat-history::-webkit-scrollbar {
  width: 11px;
}

.main-content::-webkit-scrollbar-track,
.terminal-chat-history::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.main-content::-webkit-scrollbar-thumb,
.terminal-chat-history::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(240, 242, 245, 0.5), rgba(170, 180, 190, 0.38));
  border-radius: 999px;
  border: 2px solid rgba(5, 5, 5, 0.45);
}

.main-content::-webkit-scrollbar-thumb:hover,
.terminal-chat-history::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(246, 248, 251, 0.7), rgba(195, 205, 216, 0.56));
}

.terminal-chat-container.chat-widget {
  background: rgba(2, 2, 2, 0.97) !important;
  backdrop-filter: blur(12px) saturate(1.08);
}

.terminal-chat-container.chat-widget::before {
  opacity: 0.26;
}

.terminal-chat-container.chat-widget .terminal-chat-header {
  background: rgba(0, 0, 0, 0.8);
}

.terminal-chat-container.chat-widget .terminal-chat-history {
  background: rgba(4, 4, 4, 0.92);
}

.astral-cursor-chain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1500;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.astral-cursor-chain.active {
  opacity: 1;
}

.astral-cursor-glow {
  display: none !important;
}

.astral-cursor-letter {
  position: fixed;
  left: 0;
  top: 0;
  font-family: 'Consolas', 'Monaco', monospace;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: rgba(236, 241, 247, 0.95);
  text-shadow: none;
  transform-origin: center center;
  will-change: transform;
}

.astral-cursor-letter:nth-child(2) { opacity: 0.98; }
.astral-cursor-letter:nth-child(3) { opacity: 0.93; }
.astral-cursor-letter:nth-child(4) { opacity: 0.88; }
.astral-cursor-letter:nth-child(5) { opacity: 0.84; }
.astral-cursor-letter:nth-child(6) { opacity: 0.8; }
.astral-cursor-letter:nth-child(7) { opacity: 0.76; }

@media (prefers-reduced-motion: reduce) {
  .content-section.section-transition-in,
  .content-section.section-transition-out,
  .menu-item-switch-anim,
  .site-sidebar .menu-item.active,
  .header-nav .nav-item.active {
    animation: none !important;
  }

  .astral-cursor-chain {
    display: none;
  }
}

/* ===== Motion tuning v2 ===== */
.main-content {
  perspective: 1200px;
}

.content-section.section-transition-in {
  transform-style: preserve-3d;
}

.content-section.section-transition-in::after,
.content-section.section-transition-out::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), transparent 26%, transparent 74%, rgba(0,0,0,0.22));
  opacity: 0;
  animation: sectionGlassFlash 0.72s ease;
}

@keyframes sectionGlassFlash {
  0% { opacity: 0.45; }
  100% { opacity: 0; }
}

@keyframes sectionEnterFromDown {
  0% {
    opacity: 0;
    transform: translate3d(0, 120px, 0) rotateX(-18deg) scale(0.93);
    filter: blur(10px);
  }
  62% {
    opacity: 1;
    transform: translate3d(0, -10px, 0) rotateX(4deg) scale(1.012);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
    filter: blur(0);
  }
}

@keyframes sectionEnterFromUp {
  0% {
    opacity: 0;
    transform: translate3d(0, -120px, 0) rotateX(18deg) scale(0.93);
    filter: blur(10px);
  }
  62% {
    opacity: 1;
    transform: translate3d(0, 10px, 0) rotateX(-4deg) scale(1.012);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
    filter: blur(0);
  }
}

@keyframes sectionExitToUp {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -130px, 0) rotateX(15deg) scale(0.95);
    filter: blur(10px);
  }
}

@keyframes sectionExitToDown {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 130px, 0) rotateX(-15deg) scale(0.95);
    filter: blur(10px);
  }
}

.terminal-chat-container.chat-widget {
  background: rgba(3, 3, 3, 0.88) !important;
  backdrop-filter: blur(16px) saturate(1.04);
}

.terminal-chat-container.chat-widget .terminal-chat-header {
  background: rgba(0, 0, 0, 0.62);
}

.terminal-chat-container.chat-widget .terminal-chat-history {
  background: rgba(5, 5, 5, 0.76);
}

.astral-cursor-svg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: visible;
}

.astral-cursor-path {
  fill: none;
  stroke: rgba(235, 242, 250, 0.84);
  stroke-width: 4.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
  transition: stroke-dasharray 0.15s ease, opacity 0.15s ease;
}

.astral-cursor-letter {
  font-size: 15px;
  letter-spacing: 0.01em;
  color: rgba(244, 247, 252, 0.98);
  text-shadow: 0 0 10px rgba(215, 230, 246, 0.6);
}

.astral-cursor-chain > .astral-cursor-letter:nth-of-type(2) { opacity: 0.98; }
.astral-cursor-chain > .astral-cursor-letter:nth-of-type(3) { opacity: 0.94; }
.astral-cursor-chain > .astral-cursor-letter:nth-of-type(4) { opacity: 0.9; }
.astral-cursor-chain > .astral-cursor-letter:nth-of-type(5) { opacity: 0.86; }
.astral-cursor-chain > .astral-cursor-letter:nth-of-type(6) { opacity: 0.82; }
.astral-cursor-chain > .astral-cursor-letter:nth-of-type(7) { opacity: 0.78; }

/* ===== Chat glass no-border mode ===== */
.terminal-chat-container.chat-widget {
  background: rgba(5, 5, 5, 0.56) !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  backdrop-filter: blur(14px) saturate(1.02) !important;
}

.terminal-chat-container.chat-widget::before,
.terminal-chat-container.chat-widget::after {
  display: none !important;
  content: none !important;
}

.terminal-chat-container.chat-widget .terminal-chat-header,
.terminal-chat-container.chat-widget .terminal-chat-history,
.terminal-chat-container.chat-widget .terminal-chat-input,
.terminal-chat-container.chat-widget .terminal-chat-input-wrapper,
.terminal-chat-container.chat-widget .chat-input,
.terminal-chat-container.chat-widget .chat-input-area,
.terminal-chat-container.chat-widget .chat-widget-controls,
.terminal-chat-container.chat-widget .chat-widget-btn,
.terminal-chat-container.chat-widget .chat-widget-toggle,
.terminal-chat-container.chat-widget .form-btn,
.terminal-chat-container.chat-widget .terminal-line,
.terminal-chat-container.chat-widget .terminal-output,
.terminal-chat-container.chat-widget .terminal-prompt,
.terminal-chat-container.chat-widget * {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.terminal-chat-container.chat-widget .terminal-chat-header {
  background: rgba(0, 0, 0, 0.34) !important;
}

.terminal-chat-container.chat-widget .terminal-chat-history {
  background: rgba(0, 0, 0, 0.26) !important;
}




/* Native scroll mode */
html, .main-content { scroll-behavior: auto !important; }


/* Cursor text-only mode */
.astral-cursor-svg,
.astral-cursor-path,
.astral-cursor-glow { display: none !important; }
.astral-cursor-letter { letter-spacing: 0 !important; text-shadow: none !important; background: transparent !important; }


/* Download button loading state */
.form-btn.download-loading {
  position: relative !important;
  color: transparent !important;
  filter: brightness(0.62) saturate(0.8);
  cursor: progress !important;
}
.form-btn.download-loading i,
.form-btn.download-loading span {
  opacity: 0 !important;
}
.form-btn.download-loading::after {
  content: '';
  position: absolute;
  top: 46%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: rgba(255, 255, 255, 0.96);
  animation: dlSpinner 0.75s linear infinite;
}
@keyframes dlSpinner {
  to { transform: rotate(360deg); }
}

