select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

select::-ms-expand {
  display: none; /* Edge/IE */
}

:root {
  --primary-bg: #0a0a0f;
  --secondary-bg: #131318;
  --panel-bg: rgba(19, 19, 24, 0.78);
  --panel-border: rgba(148, 163, 184, 0.18);
  --accent-cyan: #00d9ff;
  --accent-green: #00ff88;
  --accent-purple: #8b5cf6;
  --text-primary: #ffffff;
  --text-secondary: #a0a0ab;
}

body {
  background: var(--primary-bg);
  color: var(--text-primary);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 14% -10%, rgba(56, 189, 248, 0.14), transparent 62%),
    radial-gradient(680px 380px at 84% -14%, rgba(129, 140, 248, 0.12), transparent 62%);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0) 0%, rgba(7, 11, 20, 0.68) 72%, rgba(7, 11, 20, 0.9) 100%);
  z-index: -1;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, 0.35) rgba(5, 6, 12, 0.35);
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: rgba(5, 6, 12, 0.4);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(125, 211, 252, 0.35);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(125, 211, 252, 0.5);
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, rgba(55, 65, 81, 0.0), rgba(55, 65, 81, 0.75), rgba(148, 163, 184, 0.7), rgba(55, 65, 81, 0.0));
  opacity: 1;
}

.glow-cyan {
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.28);
}

.glow-purple {
  box-shadow: 0 0 18px rgba(124, 132, 255, 0.24);
}

.glow-green {
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.24);
}

.glass-card {
  background: var(--panel-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--panel-border);
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.35);
}

.gradient-cyber {
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.07) 0%,
    rgba(129, 140, 248, 0.05) 100%
  );
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.68rem 1.05rem;
  font-weight: 600;
  color: #06101e;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  border: 1px solid rgba(191, 219, 254, 0.22);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.2);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(56, 189, 248, 0.24);
  filter: brightness(1.04);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.68rem 1.05rem;
  font-weight: 600;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.28);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.52);
  background: rgba(56, 189, 248, 0.16);
  box-shadow: 0 14px 28px rgba(56, 189, 248, 0.16);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0.62rem 0.95rem;
  font-weight: 600;
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.32);
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.btn-ghost:hover {
  border-color: rgba(56, 189, 248, 0.48);
  background: rgba(56, 189, 248, 0.1);
  color: #f8fafc;
}

.heading-gradient {
  background-image: linear-gradient(92deg, #a78bfa 0%, #f5f3ff 52%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Tab styles for Getting Started page */
.tab-button {
  background: rgba(255, 255, 255, 0.05);
  color: #a0a0ab;
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.tab-button.active {
  background: rgba(34, 211, 238, 0.14);
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.integration-card {
  min-height: 260px;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.integration-card--official {
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.16);
}

.integration-card--official::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  border: 1px solid rgba(45, 212, 191, 0.42);
  box-shadow:
    0 0 0 0 rgba(45, 212, 191, 0.28),
    0 0 0 0 rgba(34, 211, 238, 0.2);
  pointer-events: none;
  animation: official-border-pulse 2.8s ease-out infinite;
  opacity: 0.9;
}

.integration-card--official::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 18px;
  border: 1px solid rgba(45, 212, 191, 0.18);
  pointer-events: none;
}

@keyframes official-border-pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(45, 212, 191, 0.28),
      0 0 0 0 rgba(34, 211, 238, 0.2);
    opacity: 0.95;
  }
  60% {
    box-shadow:
      0 0 0 10px rgba(45, 212, 191, 0),
      0 0 0 22px rgba(34, 211, 238, 0);
    opacity: 0.6;
  }
  100% {
    box-shadow:
      0 0 0 18px rgba(45, 212, 191, 0),
      0 0 0 32px rgba(34, 211, 238, 0);
    opacity: 0;
  }
}

.integration-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow: 0 10px 34px rgba(34, 211, 238, 0.08);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(129, 140, 248, 0.12));
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #dbeafe;
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}


.filter-chip {
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  font-size: 0.8rem;
  transition: all 150ms ease;
}

.filter-chip:hover {
  border-color: rgba(34, 211, 238, 0.35);
  color: #ecfeff;
}

.filter-chip.active {
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.45);
  color: #a5f3fc;
}

.connect-disabled-button {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  padding: 0.75rem 1.2rem;
  border-radius: 0.75rem;
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  text-decoration: none;
}

.connect-disabled-button:hover {
  transform: translateY(-1px);
}

.connect-button {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  padding: 0.75rem 1.2rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #030712;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.22);
  border: none;
  text-decoration: none;
}

.connect-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(56, 189, 248, 0.28);
}

.markdown-body {
  color: #e5e7eb;
  line-height: 1.7;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  color: #ffffff;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.markdown-body h1 {
  font-size: 1.6rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.4rem;
  background: linear-gradient(90deg, #22d3ee, #a855f7);
  -webkit-background-clip: text;
  color: transparent;
}
.markdown-body h2 {
  font-size: 1.35rem;
  font-weight: 400;
  color: rgba(199, 210, 254, 0.95);
  letter-spacing: 0.01em;
}
.markdown-body h3 { font-size: 1.15rem; }
.markdown-body h4 { font-size: 1.05rem; }

.markdown-body p {
  margin-bottom: 0.75rem;
}

.markdown-body a {
  color: #7dd3fc;
  text-decoration: underline;
}

.markdown-body code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.9em;
}

.markdown-body pre code {
  display: block;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 0.8rem 0;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: none;
}

.code-block-wrapper {
  position: relative;
  margin: 0.8rem 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.code-block-wrapper pre {
  margin: 0;
}

.code-copy-btn {
  position: sticky;
  top: 8px;
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 150ms ease;
  backdrop-filter: none;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.code-copy-btn:hover {
  background: rgba(34, 211, 238, 0.16);
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.4);
}

.code-block-wrapper:hover .code-copy-btn,
.code-block-wrapper:focus-within .code-copy-btn {
  opacity: 1;
  pointer-events: auto;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
}

.markdown-body ul { list-style: disc; }
.markdown-body ol { list-style: decimal; }

.markdown-body li {
  margin-bottom: 0.35rem;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.markdown-body th, .markdown-body td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.markdown-body th {
  background: rgba(34, 211, 238, 0.08);
  color: #e0f2fe;
  font-weight: 600;
}

.markdown-body tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.01);
}

.markdown-body blockquote {
  margin: 0 0 1rem 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid #22d3ee;
  background: rgba(34, 211, 238, 0.06);
  color: #cfeafc;
  border-radius: 8px;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Form controls on dark surfaces */
#vendor-select,
form select,
form input,
form textarea {
  background-color: #0e1a30;
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.35);
  caret-color: #f8fafc;
}

form input[type="checkbox"],
.ui-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 0.32rem;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background-color: #0b1426;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

form input[type="checkbox"]::before,
.ui-checkbox::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  transform: scale(0);
  transition: transform 120ms ease;
  background: #03111f;
  clip-path: polygon(14% 54%, 0 69%, 42% 100%, 100% 24%, 84% 10%, 41% 67%);
}

form input[type="checkbox"]:hover,
.ui-checkbox:hover {
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

form input[type="checkbox"]:checked,
.ui-checkbox:checked {
  border-color: rgba(45, 212, 191, 0.8);
  background: linear-gradient(135deg, #22d3ee, #2dd4bf);
}

form input[type="checkbox"]:checked::before,
.ui-checkbox:checked::before {
  transform: scale(1);
}

form input[type="checkbox"]:focus-visible,
.ui-checkbox:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25);
}

.checkbox-field {
  padding: 0.25rem 0.5rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.35);
}

form input::placeholder,
form textarea::placeholder {
  color: rgba(226, 232, 240, 0.7);
}

form select option {
  background-color: #0b1426;
  color: #f8fafc;
}

#vendor-select:focus,
form select:focus,
form input:focus,
form textarea:focus {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
  outline: none;
}

.btn-pulse {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 rgba(34, 211, 238, 0.3);
  animation: pulse-ring 1.5s infinite;
}

/* Tagify sizing tweaks */
.tagify {
  --tagify-dd-color-primary: #22d3ee;
  --tagify-dd-bg-color: #0b0f19;
  --tagify-dd-text-color: #f8fafc;
  --tagify-dd-border-color: rgba(148, 163, 184, 0.35);
  background-color: #111827;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.75rem;
  min-height: 36px;
}

.tagify__input {
  min-height: 28px;
  padding: 0.15rem 0.4rem;
  color: #f8fafc;
}

.tagify__tag {
  margin: 0.1rem 0.2rem 0.1rem 0;
}

/* Toast UI Editor dark theme overrides */
.toastui-editor-defaultUI {
  background-color: #0b0f19;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.75rem;
  color: #f8fafc;
}

.toastui-editor-defaultUI .toastui-editor-toolbar {
  background-color: #111827;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.toastui-editor-defaultUI .toastui-editor-toolbar-icons,
.toastui-editor-defaultUI .toastui-editor-toolbar-divider {
  filter: brightness(0.85);
}

.toastui-editor-defaultUI .toastui-editor-main {
  background-color: #0b0f19;
}

.toastui-editor-defaultUI .toastui-editor-md-container,
.toastui-editor-defaultUI .toastui-editor-ww-container {
  background-color: #0b0f19;
  color: #f8fafc;
}

.toastui-editor-defaultUI .toastui-editor-contents {
  color: #e2e8f0;
}

.toastui-editor-defaultUI .toastui-editor-contents p,
.toastui-editor-defaultUI .toastui-editor-contents li,
.toastui-editor-defaultUI .toastui-editor-contents h1,
.toastui-editor-defaultUI .toastui-editor-contents h2,
.toastui-editor-defaultUI .toastui-editor-contents h3,
.toastui-editor-defaultUI .toastui-editor-contents h4 {
  color: #e2e8f0;
}

.toastui-editor-defaultUI .toastui-editor-contents code,
.toastui-editor-defaultUI .toastui-editor-contents pre {
  background-color: rgba(15, 23, 42, 0.8);
  color: #f8fafc;
}

.toastui-editor-defaultUI .toastui-editor-contents blockquote {
  background-color: rgba(34, 211, 238, 0.08);
  border-left-color: #22d3ee;
  color: #cbd5f5;
}

.toastui-editor-defaultUI .toastui-editor-contents table {
  background-color: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
}

.toastui-editor-defaultUI .toastui-editor-contents th,
.toastui-editor-defaultUI .toastui-editor-contents td {
  border-color: rgba(148, 163, 184, 0.25);
}

.toastui-editor-defaultUI .toastui-editor-popup,
.toastui-editor-defaultUI .toastui-editor-dropdown-toolbar {
  background-color: #0b0f19;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #f8fafc;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.3);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(34, 211, 238, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
  }
}

.font-mono,
code,
pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  color: #000 !important;
  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  border-radius: 0.4rem !important;
  padding: 0.08rem 0.35rem !important;
}

pre code {
  display: block;
  padding: 0.75rem 0.9rem !important;
}
