:root {
  --text: #e6edf3;
  --muted: #b4bec9; /* Lightened from #9aa7b2 for better contrast */
  --brand: #6ba3ff; /* Lightened from #4f8cff for better contrast */
  --success: #22c55e;
  --shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.2);
}

* { box-sizing: border-box; }
html { font-size: 18px; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(180deg, #0b0d10 0%, #0b0d10 50%, #0d1014 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--brand); }
p { line-height: 1.6; }
ul,
ol { color: var(--muted); }

.btn {
  padding: 0.5rem 1rem;
  border-radius: 0.325rem;
  border: 0.0625rem solid rgba(255,255,255,0.1);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: transform .08s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn-ghost { background: transparent; }
.btn-primary { 
  background: linear-gradient(180deg, #6ba3ff, #5b9bff); 
  border-color: rgba(107, 163, 255, .5); 
  box-shadow: 0 0.125rem 1rem rgba(107, 163, 255, .2);
  color: #0b0d10; /* Dark text for better contrast on light blue background */
}
.btn-primary:hover { box-shadow: 0 0.125rem 1rem rgba(107, 163, 255, .4); filter: brightness(1.05); }
.btn-lg {padding: 0.625rem 1.25rem; font-weight: 600; }

.badge { background: rgba(255,255,255,0.1); padding: 0.25rem 0.625rem; border-radius: 1rem; font-size: 0.875rem; font-weight: 600; }

.container {
  width: min(80rem, 100%);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(11, 13, 16, 0.5);
  backdrop-filter: blur(0.5rem);
  border-bottom: 0.0625rem solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.header-inner .btn { font-size: 0.75rem; }
.brand { font-weight: 700; letter-spacing: 0.0125rem; }
.nav { display: flex; gap: 0.625rem; align-items: center; }

.hero {
  padding: 7.5rem 0 3.5rem; /* extra top padding to account for fixed header */
  position: relative;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 1.75rem; align-items: center; position: relative; z-index: 1; }
.hero-badges { display: flex; gap: 0.625rem; align-items: center; margin: 0 0 0.75rem; }
.hero-copy h1 { font-size: clamp(1.75rem, 5vw, 2.625rem); line-height: 1.2; margin: 0 0 0.5rem; }
.hero-copy p { font-size: clamp(1rem, 2.2vw, 1.125rem); color: var(--muted); margin: 0 0 1.125rem; line-height: 1.6; }
.hero-copy p.lead { font-size: clamp(1.25rem, 3vw, 1.5rem); margin: 0 0 1.125rem; line-height: 1.3; }
.cta-row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.subtext { color: var(--muted); font-size: 0.875rem; }
.hero-media { display: none; place-items: center; }
.hero-media img { width: 100%; height: auto; background-size: contain; border-radius: 0.75rem; box-shadow: var(--shadow); border: 0.0625rem solid rgba(255,255,255,.06); aspect-ratio: 417 / 342; max-width: 417px; }

/* Animated hero background pattern */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(107,163,255,.06) 0 0.0625rem, transparent 0.0625rem 3.75rem),
    repeating-linear-gradient(0deg, rgba(107,163,255,.06) 0 0.0625rem, transparent 0.0625rem 3.75rem);
  opacity: .28;
  animation: grid-pan 28s linear infinite;
  will-change: background-position;
  background-position: center top;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(closest-side at 30% 40%, rgba(107,163,255,.18), transparent 60%),
    radial-gradient(closest-side at 70% 60%, rgba(107,163,255,.12), transparent 60%);
  filter: blur(3rem);
  opacity: .8;
  animation: float-blob 18s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes grid-pan {
  from { background-position: 0 0, 0 0; }
  to { background-position: 3.75rem 3.75rem, 3.75rem 3.75rem; }
}

@keyframes float-blob {
  0% { transform: translate(-10%, -8%) scale(1); }
  100% { transform: translate(8%, 6%) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after, .hero::before { animation: none; }
}

.section { padding: 2.5rem 0; position: relative; }
.section.alt { background: rgba(255,255,255,0.02); border-top: 0.0625rem solid rgba(255,255,255,0.06); border-bottom: 0.0625rem solid rgba(255,255,255,0.06); }
.section h2 { margin: 0 0 0.875rem; font-size: 1.375rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0 0 0.875rem; }
.section-header h2 { margin: 0; display: inline-flex; align-items: center; gap: 0.625rem; }
.section-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 0.625rem; }

/* Static grid background for non-alt sections */
.section:not(.alt)::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(107,163,255,.05) 0 0.0625rem, transparent 0.0625rem 3.75rem),
    repeating-linear-gradient(0deg, rgba(107,163,255,.05) 0 0.0625rem, transparent 0.0625rem 3.75rem);
  opacity: .22;
  background-position: center top;
}

.features-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.feature {
  position: relative;
  padding: 1rem 1rem 1rem 1.125rem;
  border-radius: 0.875rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 0.0625rem solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .12s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature::before {
  content: "";
  position: absolute;
  inset: -0.0625rem;
  border-radius: 0.875rem;
  padding: 0.0625rem;
  background: linear-gradient(135deg, rgba(107,163,255,.5), rgba(107,163,255,0) 40%, rgba(255,255,255,0) 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.feature:hover { transform: translateY(-0.125rem); border-color: rgba(107, 163, 255, .35); box-shadow: 0 0.75rem 1.75rem rgba(107,163,255,.16); }
.feature h3 { margin: 0.5rem 0 0.375rem; font-size: 1rem; }
.feature p { margin: 0; color: var(--muted); }
.feature-icon {
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border-radius: 0.625rem;
  color: #cfe0ff;
  background: radial-gradient(7.5rem 3.75rem at -20% -10%, rgba(107,163,255,.35), transparent 60%),
              linear-gradient(180deg, rgba(107,163,255,.15), rgba(107,163,255,.05));
  border: 0.0625rem solid rgba(107,163,255,.2);
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,.06);
}

/* Requirements Box */
.requirements-box {
  background: linear-gradient(135deg, rgba(107,163,255,0.04), rgba(107,163,255,0.02));
  border: 0.0625rem solid rgba(107,163,255,0.15);
  border-radius: 0.875rem;
  padding: 1.5rem;
  margin: 1.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.requirements-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0.25rem;
  height: 100%;
  background: linear-gradient(180deg, var(--brand), rgba(107,163,255,0.3));
}

.requirements-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.requirements-header h3 {
  margin: 0;
  font-size: 1.125rem;
}

.requirements-icon {
  color: var(--brand);
}

.requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.325rem;
}

.requirements-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  line-height: 1.5;
}

.requirements-list li::before {
  display: none;
}

.check-icon {
  color: var(--success);
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
}

.info-icon {
  color: var(--muted);
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.requirements-list .muted-item {
  margin-top: 1rem;
  align-items: start;
  color: var(--muted);
}

.requirements-list .muted-item svg {
  position: relative;
  top: 0.25rem;
}

/* Numbered Step Cards - Generic (used for installation & getting started) */
.steps-title {
  margin: 2.5rem 0 1.5rem;
  font-size: 1.25rem;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.step-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 0.0625rem solid rgba(255,255,255,0.08);
  border-radius: 0.875rem;
  transition: all 0.25s ease;
  overflow: hidden;
}

.step-content p:only-child {
  margin: 0.5rem 0 0;
}

.step-card:hover {
  border-color: rgba(107,163,255,0.3);
  background: linear-gradient(135deg, rgba(107,163,255,0.06), rgba(107,163,255,0.03));
  transform: translateX(0.25rem);
}

.step-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0.1875rem;
  height: 100%;
  background: linear-gradient(180deg, var(--brand), rgba(107,163,255,0.2));
  border-radius: 0.875rem 0 0 0.875rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.step-card:hover::before {
  opacity: 1;
}

.step-badge {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 0.625rem;
  color: #cfe0ff;
  background: radial-gradient(7.5rem 3.75rem at -20% -10%, rgba(107,163,255,.35), transparent 60%),
              linear-gradient(180deg, rgba(107,163,255,.15), rgba(107,163,255,.05));
  border: 0.0625rem solid rgba(107,163,255,.2);
  box-shadow: inset 0 0.0625rem 0 rgba(255,255,255,.06);
  flex-shrink: 0;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-title {
  margin: 0 0 0.375rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.step-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.step-description code {
  background: rgba(0,0,0,0.3);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  border: 0.0625rem solid rgba(255,255,255,0.08);
}

.step-icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  color: var(--brand);
  opacity: 0.8; /* Increased from 0.6 for better contrast */
  flex-shrink: 0;
}

.step-card:hover .step-icon {
  opacity: 1;
}

.step-content .code-block {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
}

.install-note {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(107,163,255,0.06);
  border: 0.0625rem solid rgba(107,163,255,0.2);
  border-radius: 0.625rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.note-icon {
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Usage Section */
.usage-section {
  margin-bottom: 2.5rem;
}

/* Section Titles */
.steps-title,
.section-subtitle {
  margin: 2rem 0 1.25rem;
  font-size: 1.25rem;
}

.section-subtitle:first-of-type {
  margin-top: 0;
}

.code-block { background: #0b1118; padding: 0.875rem; border-radius: 0.75rem; border: 0.0625rem solid rgba(255,255,255,0.08); overflow: auto; }

details { background: #111418; border: 0.0625rem solid rgba(255,255,255,0.06); border-radius: 0.75rem; margin: 0.625rem 0; padding: 1rem 1.125rem; }
details summary { cursor: pointer; font-weight: 600; user-select: none; padding: 1rem 1.125rem; margin: -1rem -1.125rem; border-radius: 0.75rem; }
details[open] summary { margin-bottom: 0.25rem; padding-bottom: 0.25rem; }
details p { color: var(--muted); margin: 0.5rem 0.125rem 0.25rem; }

/* Troubleshooting Section - Unique vertical list design */
.troubleshoot-list {
  position: relative;
  padding: 1rem 0;
}

.troubleshoot-list::before {
  content: "";
  position: absolute;
  left: calc(1.25rem - 0.0625rem);
  top: 2rem;
  bottom: 0.125rem;
  width: 0.125rem;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(239, 68, 68, 0.3) 10%,
    rgba(239, 68, 68, 0.3) 90%,
    transparent 100%);
}

.troubleshoot-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  position: relative;
}

.troubleshoot-item:last-child {
  margin-bottom: 0;
}

.troubleshoot-marker {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
  border: 0.125rem solid rgba(239, 68, 68, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 0.25rem rgba(239, 68, 68, 0.1);
}

.troubleshoot-marker svg {
  filter: drop-shadow(0 0 0.25rem rgba(239, 68, 68, 0.4));
}

.troubleshoot-content {
  flex: 1;
  padding-top: 0.25rem;
}

.troubleshoot-content strong {
  display: block;
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  color: #fff;
  font-weight: 600;
}

.troubleshoot-content p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.troubleshoot-content code {
  background: rgba(239, 68, 68, 0.1);
  border: 0.0625rem solid rgba(239, 68, 68, 0.2);
}

.troubleshoot-content a {
  color: #fca5a5;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 0.0625rem solid rgba(252, 165, 165, 0.4);
  transition: all 0.2s ease;
}

.troubleshoot-content a:hover {
  color: #fecaca;
  border-bottom-color: #fca5a5;
}

.site-footer { 
  padding: 3rem 0 1.5rem; 
  color: var(--muted); 
  font-size: 0.875rem; 
  border-top: 0.0625rem solid rgba(255,255,255,0.06);
  background: rgba(0, 0, 0, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-section {
  min-width: 0;
}

.footer-brand-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand {
  font-weight: 700;
  letter-spacing: 0.0125rem;
  font-size: 1rem;
  color: var(--text);
}

.footer-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin: 0 0 1rem;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-nav-list li {
  margin: 0;
}

.footer-nav-list a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.footer-nav-list a:hover {
  color: var(--text);
}

.external-icon {
  opacity: 0.5;
  flex-shrink: 0;
  margin-left: 0.125rem;
}

.footer-nav-list a:hover .external-icon {
  opacity: 1;
}

.scroll-to-top {
  font-weight: 600;
}

.footer-license {
  margin: 0.25rem 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  background: linear-gradient(180deg, #6ba3ff, #5b9bff);
  color: #0b0d10;
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: 0.325rem;
  border: 0.0625rem solid rgba(107, 163, 255, .5);
  box-shadow: 0 0.125rem 0.75rem rgba(107, 163, 255, .2);
  text-decoration: none;
  transition: transform .08s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.footer-download-btn:hover {
  box-shadow: 0 0.125rem 1rem rgba(107, 163, 255, .4);
  filter: brightness(1.05);
}

.footer-download-btn svg {
  position: relative;
  top: 0.0625rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* Mobile responsiveness */
@media (max-width: 48rem) {
  /* Header navigation - stack vertically on small screens */
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    height: auto;
  }
  
  .brand {
    width: 100%;
    text-align: center;
  }
  
  .nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .header-inner .btn {
    flex: 1;
    min-width: 0;
    font-size: 0.6875rem;
    padding: 0.5rem 0.75rem;
    text-align: center;
  }
  
  /* Section header - stack vertically on small screens */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .section-actions {
    width: 100%;
  }
  
  .section-actions .btn {
    width: 100%;
    text-align: center;
  }
  
  /* Adjust hero padding for taller header */
  .hero {
    padding-top: 9rem;
  }
  
  /* Footer - stack on mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-nav-list {
    align-items: center;
  }
  
  /* Step cards - vertical layout on mobile */
  .step-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1rem 1rem 1.125rem;
  }
  
  .step-icon {
    display: none;
  }
  
  .step-content {
    width: 100%;
  }
  
  .step-content p:only-child {
    margin-top: 0;
  }
  
  /* Make all buttons smaller on mobile */
  .btn {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
  }
  
  .btn-lg {
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
  }
  
  .footer-download-btn {
    font-size: 0.6875rem;
    padding: 0.5rem 0.75rem;
  }
}

/* Extra small screens - stack header buttons vertically */
@media (max-width: 25rem) {
  .nav {
    flex-direction: column;
    width: 100%;
  }
  
  .header-inner .btn {
    width: 100%;
  }
  
  .footer-download-btn {
    width: 100%;
  }
  
  .hero {
    padding-top: 11rem;
  }
}

@media (min-width: 56.25rem) {
  .hero-inner { grid-template-columns: 1.1fr .9fr; }
  .hero-media { display: grid; place-items: center; }
}

@media (min-width: 48rem) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 75rem) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Plugin UI Demo Component */
.plugin-ui-demo {
  width: 100%;
  max-width: 26rem;
  background: #2b2f38;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1.25rem 3.125rem rgba(0, 0, 0, 0.5);
  border: 0.0625rem solid rgba(0, 0, 0, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.plugin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  background: #1e2229;
  border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.3);
}

.plugin-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #d4d8de;
  letter-spacing: 0.00625rem;
}

.plugin-controls {
  display: flex;
  gap: 0.375rem;
  align-items: center;
}

.plugin-control-btn {
  padding: 0.1875rem;
  background: transparent;
  border: none;
  color: #b4bec9; /* Lightened from #9aa0aa for better contrast */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.1875rem;
  transition: all 0.15s ease;
}

.plugin-control-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #d4d8de;
}

.plugin-body {
  padding: 0.875rem;
}

.plugin-section {
  margin-bottom: 1rem;
}

.plugin-section:last-child {
  margin-bottom: 0;
}

.plugin-section-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #d4d8de;
  margin: 0 0 0.75rem 0;
  letter-spacing: 0.00625rem;
}

/* Slider Styles */
.slider-container {
  margin-bottom: 0.625rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #b4bec9; /* Lightened from #9aa0aa for better contrast */
  margin-bottom: 0.5rem;
}

.slider-value-wrapper {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #d4d8de;
  font-weight: 500;
  background: #3a3f4a;
  padding: 0.1875rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.6875rem;
}

.slider-value-input {
  background: transparent;
  border: none;
  color: #d4d8de;
  font-weight: 500;
  font-size: 0.6875rem;
  width: 2rem;
  text-align: right;
  outline: none;
  padding: 0;
  font-family: inherit;
  appearance: textfield;
  -moz-appearance: textfield;
}

.slider-value-input::-webkit-outer-spin-button,
.slider-value-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.slider-value-unit {
  color: #d4d8de;
  font-weight: 500;
}

.slider-wrapper {
  position: relative;
  margin-bottom: 0.375rem;
  height: 0.375rem;
  background: #3a3f4a;
  border-radius: 0.1875rem;
  display: flex;
  align-items: center;
}

.buffer-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 0.875rem;
  background: transparent;
  border-radius: 0.1875rem;
  outline: none;
  position: absolute;
  left: 0;
  z-index: 2;
  cursor: pointer;
}

.buffer-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0.875rem;
  height: 0.875rem;
  background: linear-gradient(180deg, #ffffff, #e8eaed);
  border: 0.125rem solid #5b6370;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.3);
  transition: all 0.15s ease;
}

.buffer-slider::-moz-range-thumb {
  -moz-appearance: none;
  appearance: none;
  width: 0.875rem;
  height: 0.875rem;
  background: linear-gradient(180deg, #ffffff, #e8eaed);
  border: 0.125rem solid #5b6370;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.3);
  transition: all 0.15s ease;
}

.buffer-slider::-webkit-slider-thumb:hover {
  background: #ffffff;
}

.buffer-slider::-moz-range-thumb:hover {
  background: #ffffff;
}

.buffer-slider::-webkit-slider-runnable-track,
.buffer-slider::-moz-range-track {
  width: 100%;
  height: 0.375rem;
  background: transparent;
  border-radius: 0.1875rem;
}

.slider-track-fill {
  height: 0.375rem;
  background: linear-gradient(90deg, #5b8fd8, #4a7bc4);
  border-radius: 0.1875rem 0 0 0.1875rem;
  pointer-events: none;
  z-index: 1;
  width: 33.33%;
}

.slider-markers {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: #9aa7b2; /* Lightened from #7e8490 for better contrast */
  padding: 0 0.125rem;
  user-select: none;
}

.slider-marker {
  background: none;
  border: none;
  color: #9aa7b2; /* Lightened from #7e8490 for better contrast */
  font-size: 0.6875rem;
  cursor: pointer;
  padding: 0.125rem 0.25rem;
  margin: -0.125rem -0.25rem;
  transition: color 0.15s ease;
  font-family: inherit;
}

.slider-marker:hover {
  color: #c4cdd6; /* Lightened for better hover contrast */
}

/* Clip Buttons Grid */
.clip-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}

/* Plugin Demo Buttons - Shared Styles */
.clip-btn,
.save-buffer-btn {
  padding: 0.5rem 0.75rem;
  background: #4a5060;
  border: 0.0625rem solid rgba(0, 0, 0, 0.3);
  border-radius: 0.25rem;
  color: #e8eaed;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.clip-btn:hover,
.save-buffer-btn:hover {
  background: #555c6e;
  border-color: rgba(255, 255, 255, 0.1);
}

.clip-btn:active,
.save-buffer-btn:active {
  opacity: 0.9;
}

.save-buffer-btn {
  width: 100%;
}

/* Responsive adjustments for plugin demo */
@media (max-width: 56.25rem) {
  .plugin-ui-demo {
    max-width: 100%;
  }
}

/* ============================================
   Easter Egg: Clip Toast Notifications
   ============================================ */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 360px;
  max-height: 80vh;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px;
  
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.toast-container::-webkit-scrollbar {
  width: 6px;
}

.toast-container::-webkit-scrollbar-track {
  background: transparent;
}

.toast-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.toast-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.clip-toast {
  background: linear-gradient(135deg, rgba(40, 40, 40, 0.98) 0%, rgba(30, 30, 30, 0.98) 100%);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  opacity: 0;
  transform: translateX(20px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
  min-width: 280px;
  max-width: 360px;
}

.clip-toast.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.clip-toast.fade-out {
  opacity: 0;
  transform: translateX(20px) scale(0.9);
}

.clip-toast.achievement-toast {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.95) 0%, rgba(99, 102, 241, 0.95) 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: achievement-pulse 0.6s ease-out;
}

@keyframes achievement-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #10b981;
}

.achievement-toast .toast-icon {
  font-size: 24px;
  color: #fff;
}

.toast-icon svg {
  display: block;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}

.toast-subtitle {
  font-size: 12px;
  opacity: 0.85;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Courier New', monospace;
  word-break: break-all;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    max-height: 50vh;
  }
  
  .clip-toast {
    min-width: auto;
  }
}

/* Add subtle button press effect */
.clip-btn, .save-buffer-btn {
  transition: transform 0.1s ease, background-color 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.clip-btn:active, .save-buffer-btn:active {
  transform: scale(0.95);
}

/* Disabled clip button state */
.clip-btn:disabled,
.clip-btn.disabled {
  opacity: 1; /* Changed from 0.4 for better text contrast */
  cursor: not-allowed;
  background: #2d3139; /* Changed from rgba(255, 255, 255, 0.05) for better contrast */
  color: #7e8490; /* Changed from rgba(255, 255, 255, 0.5) for better contrast */
  border-color: rgba(0, 0, 0, 0.2);
}

.clip-btn:disabled:hover,
.clip-btn.disabled:hover {
  background: #2d3139;
  border-color: rgba(0, 0, 0, 0.2);
  transform: none;
}

.clip-btn:disabled:active,
.clip-btn.disabled:active {
  transform: none;
}


