.guru-code {
  position: relative;
  margin: 1.5rem 0;
  border: 1px solid #2d3548;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
}

.guru-code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: #172036;
  border-bottom: 1px solid #2d3548;
}

.guru-code__dots {
  display: flex;
  gap: 6px;
  margin-right: 10px;
}

.guru-code__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #475569;
}

.guru-code__dots i:nth-child(1) {
  background: #ff5f57;
}

.guru-code__dots i:nth-child(2) {
  background: #febc2e;
}

.guru-code__dots i:nth-child(3) {
  background: #28c840;
}

.guru-code__left {
  display: flex;
  align-items: center;
}

.guru-code__lang {
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.guru-code__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: transparent;
  color: #cbd5e1;
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.guru-code__copy:hover {
  background: #1e293b;
  color: #fff;
}

.guru-code__copy.is-copied {
  color: #4ade80;
  border-color: #4ade80;
}

.guru-code pre {
  margin: 0;
  padding: 16px 0;
  background: transparent;
  overflow-x: auto;
  tab-size: 4;
}

.guru-code code {
  display: block;
  min-width: max-content;
  padding: 0 18px;
  background: transparent;
  color: inherit;
  font-family: "JetBrains Mono", "Fira Code", Consolas, "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.75;
  white-space: pre;
}

.guru-code--inline code {
  padding: 0 18px;
}

.guru-code pre::-webkit-scrollbar {
  height: 8px;
}

.guru-code pre::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

.guru-code .tok-kw {
  color: #c792ea;
}

.guru-code .tok-type {
  color: #4ec9b0;
}

.guru-code .tok-fn {
  color: #82aaff;
}

.guru-code .tok-str {
  color: #c3e88d;
}

.guru-code .tok-num {
  color: #f78c6c;
}

.guru-code .tok-com {
  color: #64748b;
  font-style: italic;
}

.guru-code .tok-tag {
  color: #f07178;
}

.guru-code .tok-attr {
  color: #ffcb6b;
}

@media (max-width: 576px) {
  .guru-code code {
    font-size: 0.78rem;
  }
}