* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0a0a0f;

  color: #e2e2ea;
  font-family: 'JetBrains Mono', system-ui, sans-serif;
  overflow-x: hidden;
}

img.icon-macos {
  margin-top: -4px !important;
}

.logo-text {
  font-family: 'Google Sans', system-ui, sans-serif;
}

.v-text {
  margin-left: 15.5em;
  margin-top: -0.7em;
}

.v-text-small {
  text-transform: lowercase;
}

.rounded_b {
  border-radius: 4rem;
  border: 1px solid #334;
  font-size: 0.8rem;
  line-height: 1.5rem;
}

.parent {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.parent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  background-image: url("/bg.png");
  background-size: cover;
  z-index: 0;
}

/* Animated gradient background */
.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;

}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.12) 0%, rgba(108, 92, 231, 0.03) 40%, transparent 70%);
  animation: pulseGlow 8s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(162, 155, 254, 0.08) 0%, transparent 60%);
  animation: pulseGlow 10s ease-in-out infinite reverse;
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.15);
  }
}

/* Grid pattern */
.grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(108, 92, 231, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 92, 231, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
}

/* Floating particles */
.particle {
  position: fixed;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.3);
  pointer-events: none;
  z-index: 0;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* Logo animation */
.logo-icon {
  animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Terminal cursor blink */
.cursor-blink {
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Button shine effect */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-20deg);
  animation: shine 6s ease-in-out infinite;
}

@keyframes shine {

  0%,
  100% {
    left: -60%;
  }

  50% {
    left: 120%;
  }
}

/* Typing effect */
.typing-line {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #6c5ce7;
  animation: typing 3s steps(40) forwards, blinkCaret 0.8s step-end infinite;
  width: 0;
}

.typing-line.active {
  width: 100%;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blinkCaret {
  50% {
    border-color: transparent;
  }
}

/* Fade in up */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll indicator */
.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }

  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

/* Fixed width for download buttons */
.btn-dl {
  min-width: 260px;
}

/* Wiki Styles */
.wiki-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 10;
}

.wiki-sidebar {
  width: 288px;
  border-right: 1px solid rgba(42, 42, 58, 0.5);
  background: rgba(18, 18, 26, 0.8);
  backdrop-filter: blur(20px);
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
}

.wiki-sidebar-header {
  padding: 2.5rem 1.5rem 1rem 1.5rem;
}

.wiki-content {
  flex: 1;
  padding: 1.7rem 7%;
  max-width: 1400px;
  margin: 0;
  min-height: 100vh;
  background: rgba(45, 45, 65, 0.3);
}

.wiki-logo {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding-left: 1.0rem;
}

.wiki-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1.5rem 2.5rem 1.5rem;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.wiki-nav::-webkit-scrollbar {
  display: none;
}

.wiki-nav-item-wrapper {
  margin-bottom: 0.5rem;
}

.wiki-nav-item {
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #7e8fad;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.wiki-nav-item:hover {
  background: rgba(64, 117, 234, 0.08);
  color: #e2e2ea;
}

.wiki-nav-item.active.has-sub {
  background: rgba(64, 117, 234, 0.12);
  color: white;
  border: 1px solid rgba(64, 117, 234, 0.2);
}

.wiki-nav-item.active:not(.has-sub) {
  color: #4075ea;
}

.wiki-nav-item-icon {
  width: 18px;
  height: 18px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.custom-icon {
  background-color: currentColor;
  -webkit-mask-image: var(--icon-url);
  mask-image: var(--icon-url);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  display: inline-block;
}

.wiki-nav-item:hover .wiki-nav-item-icon,
.wiki-nav-item.active .wiki-nav-item-icon {
  opacity: 1;
}

.wiki-nav-sub-items {
  margin-left: 1.5rem;
  padding-left: 1.2rem;
  border-left: 1px solid rgba(42, 42, 58, 0.8);
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: 0.4rem;
  margin-bottom: 0.8rem;
}

.wiki-nav-sub-items.open {
  display: flex;
}

.wiki-nav-sub-item {
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
  border-radius: 0.5rem;
}

.wiki-nav-sub-item:hover {
  color: #e2e2ea;
  background: rgba(255, 255, 255, 0.03);
}

.wiki-nav-sub-item.active {
  color: #4075ea;
}

.wiki-article {
  animation: wikiFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 800px;
}

@keyframes wikiFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wiki-article h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  color: #cdcdcd;
  font-family: 'Google Sans', sans-serif;
  letter-spacing: -0.02em;
}

.wiki-article h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: #cdcdcd;
}

.wiki-article p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #cdcdcd;
}

.wiki-article img, .wiki-article video {
  border-radius: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2.5rem 0;
  max-width: 100%;
  width: auto;
  box-shadow: 0 8px 16px -8px rgba(20, 20, 20, 0.5);
}

.wiki-article a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(96, 165, 250, 0.2);
  transition: all 0.2s;
}

.wiki-article a:hover {
  border-bottom-color: #60a5fa;
}

.wiki-article code {
  background: #1e1e2e;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'JetBrains Mono', monospace;
  margin:0 0.2rem;
  font-size: 0.7em;
  color: #a29bfe;
  border: 1px solid #34383d;
  white-space: nowrap;
}

.wiki-article strong {
  color: #e5e5e5;
  font-weight: 600;
}

.wiki-article ul,
.wiki-article ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: #cdcdcd;
}

.wiki-article li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.wiki-inprogress {
  color: #a29bfe !important; 
  border-radius: 0.25rem; 
  border: 1px solid #524bae; 
  padding:10px 20px;
}

.wiki-warning {
  color: #f27b7e !important;
  border-radius: 0.25rem; 
  border: 1px solid #a23b3e; 
  padding:10px 20px;
}

.wiki-button {
  color: #a6a6a6 !important;
  border-radius: 0.25rem; 
  border: 1px solid #34383d; 
  padding:10px 20px;
  background: #24282d;
  padding: 0.2rem 0.5rem;
  margin:0 0.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
}

.wiki-button-red {
  color: #cdcdcd !important;
  border-radius: 0.25rem; 
  border: 1px solid #83282a; 
  padding:10px 20px;
  background: #83282a;
  padding: 0.2rem 0.5rem;
  margin:0 0.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
}

.wiki-button-green {
  color: #cdcdcd !important;
  border-radius: 0.25rem; 
  border: 1px solid #18443c; 
  padding:10px 20px;
  background: #18443c;
  padding: 0.2rem 0.5rem;
  margin:0 0.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
}

.strat_buy {
  color: #12b887 !important;
  border-radius: 0.25rem; 
  border: 1px solid #34383d;
  padding:10px 20px;
  background: #1e1e2b;
  padding: 0.2rem 0.5rem;
  margin:0 0.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
  white-space: nowrap;
}

.strat_sell {
  color: #ee5a6a !important;
  border-radius: 0.25rem; 
  border: 1px solid #34383d;
  padding:10px 20px;
  background: #1e1e2b;
  padding: 0.2rem 0.5rem;
  margin:0 0.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
  white-space: nowrap;
}

.if {
  color: #fff !important;
  border-radius: 0.25rem; 
  border: 1px solid #c74fbf; 
  padding:10px 20px;
  background: #c74fbf;
  padding: 0.2rem 0.4rem;
  margin:0 0.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
}

.var {
  color: #fff !important;
  border-radius: 0.25rem; 
  border: 1px solid #6c37df; 
  padding:10px 20px;
  background: #6c37df;
  padding: 0.2rem 0.4rem;
  margin:0 0.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
}

.signal {
  color: #fff !important;
  border-radius: 0.25rem; 
  border: 1px solid #4a8fd9; 
  padding:10px 20px;
  background: #4a8fd9;
  padding: 0.2rem 0.4rem;
  margin:0 0.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
}

.cmd {
  color: #000 !important;
  border-radius: 0.25rem; 
  border: 1px solid #2ecc70; 
  padding:10px 20px;
  background: #2ecc70;
  padding: 0.2rem 0.4rem;
  margin:0 0.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
}

.wait {
  color: #000 !important;
  border-radius: 0.25rem; 
  border: 1px solid #e8a121; 
  padding:10px 20px;
  background: #e8a121;
  padding: 0.2rem 0.4rem;
  margin:0 0.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
}

.var_sys {
  color: #e8a121 !important;
  border-radius: 0.25rem; 
  padding:10px 20px;
  background: #24282d;
  padding: 0.2rem 0.5rem;
  margin:0 0.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
  white-space: nowrap;
}

.var_sys_order {
  color: #5a9fe9 !important;
  border-radius: 0.25rem; 
  padding:10px 20px;
  background: #24282d;
  padding: 0.2rem 0.5rem;
  margin:0 0.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
  white-space: nowrap;
}

.var_custom {
  color: #af72eb !important;
  border-radius: 0.25rem; 
  padding:10px 20px;
  background: #24282d;
  padding: 0.2rem 0.5rem;
  margin:0 0.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
  white-space: nowrap;
}

.delete {
  color: #efefef !important;
  border-radius: 0.25rem; 
  border: 1px solid #34383d;
  padding:10px 20px;
  background: #362027;
  padding: 0.2rem 0.5rem;
  margin:0 0.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .wiki-sidebar {
    width: 260px;
  }

  .wiki-content {
    padding: 4rem 5%;
  }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #e2e2ea;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .wiki-container {
    flex-direction: column;
  }

  .wiki-sidebar {
    width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 50;
    border-right: none;
    border-bottom: 1px solid #2a2a3a;
    padding: 0;
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(20px);
  }

  .wiki-sidebar-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .wiki-content {
    padding: 3rem 1.5rem;
  }

  .wiki-logo {
    margin-bottom: 0;
    padding-left: 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }

  .wiki-nav {
    display: none;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding: 0 1.5rem 1.5rem 1.5rem;
  }
  
  .wiki-nav.open {
    display: flex;
  }
}

/* Wiki Table Styles */
.wiki-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  overflow: hidden;
}

.wiki-article th {
  background: rgba(64, 117, 234, 0.1);
  color: #e2e2ea;
  font-weight: 600;
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Google Sans', sans-serif;
}

.wiki-article td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cdcdcd;
  vertical-align: top;
  line-height: 1.5;
}

.wiki-article tr:last-child td {
  border-bottom: none;
}

.wiki-article tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.wiki-article h3 {
  background: rgba(64, 117, 234, 0.1);
  color: #e2e2ea;
  font-weight: 700;
  padding: 8px 1rem;
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
  font-size: 1.15rem;
  border-left: 3px solid #4075ea;
  font-family: 'Google Sans', sans-serif;
}

/* Custom Scrollbar for License Text Box */
.license-text-box::-webkit-scrollbar {
  width: 6px;
}

.license-text-box::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.license-text-box::-webkit-scrollbar-thumb {
  background: rgba(64, 117, 234, 0.3);
  border-radius: 4px;
  transition: background 0.2s;
}

.license-text-box::-webkit-scrollbar-thumb:hover {
  background: rgba(64, 117, 234, 0.5);
}