html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
}

::selection {
  background: #ffd600;
  color: #0b0b0f;
}

/* ===== Range slider ===== */
input[type="range"].range-brand {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: linear-gradient(
    to right,
    #0b0b0f 0%,
    #0b0b0f var(--fill, 10%),
    #e5e7eb var(--fill, 10%),
    #e5e7eb 100%
  );
  outline: none;
  cursor: pointer;
}

input[type="range"].range-brand::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: #ffd600;
  border: 4px solid #0b0b0f;
  box-shadow: 0 2px 10px rgba(11, 11, 15, 0.35);
  transition: transform 0.15s ease;
}

input[type="range"].range-brand::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"].range-brand::-webkit-slider-thumb:active {
  transform: scale(0.95);
}

input[type="range"].range-brand::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: #ffd600;
  border: 4px solid #0b0b0f;
  box-shadow: 0 2px 10px rgba(11, 11, 15, 0.35);
  cursor: pointer;
}

input[type="range"].range-brand::-moz-range-track {
  height: 8px;
  border-radius: 9999px;
  background: #e5e7eb;
}

input[type="range"].range-brand::-moz-range-progress {
  height: 8px;
  border-radius: 9999px;
  background: #0b0b0f;
}

/* ===== Configurator tabs ===== */
.cfg-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  transition: all 0.25s ease;
  cursor: pointer;
}

.cfg-tab:hover {
  color: #0b0b0f;
  background: #f9fafb;
}

.cfg-tab[data-active="true"] {
  background: #0b0b0f;
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(11, 11, 15, 0.5);
}

.cfg-tab[data-active="true"]:hover {
  background: #0b0b0f;
}

.cfg-panel {
  animation: pop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Value chips ===== */
.chip-out {
  border-radius: 0.75rem;
  background: #fff7cc;
  font-weight: 700;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
}

.chip-out-muted {
  background: #f3f4f6;
}

/* ===== OS chips ===== */
.os-chip {
  padding: 0.65rem 1.1rem;
  border-radius: 9999px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.os-chip:hover {
  border-color: #0b0b0f;
  transform: translateY(-1px);
}

.os-chip[data-selected="true"] {
  background: #0b0b0f;
  color: #fff;
  border-color: #0b0b0f;
  box-shadow: 0 6px 18px -6px rgba(11, 11, 15, 0.5);
}

.os-chip[data-selected="true"] .text-brand-yellow {
  color: #ffd600;
}

/* ===== Navbar scroll state ===== */
#navbar.scrolled #nav-inner {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 40px -12px rgba(11, 11, 15, 0.2);
}

/* ===== FAQ ===== */
details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item[open] {
  border-color: #ffd600;
}

/* ===== Dashboard nav ===== */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem 0.7rem 1.2rem;
  border-radius: 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
  background: #fff;
  color: #0b0b0f;
  font-weight: 600;
  box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.45);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 55%;
  border-radius: 9999px;
  background: #ffd600;
}

/* ===== Role badge (topbar) ===== */
.role-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
}

.role-badge.admin {
  background: #ffd600;
  color: #0b0b0f;
}

.role-badge.client {
  background: #0b0b0f;
  color: #ffd600;
}

/* ===== Status badges ===== */
.status-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-active,
.status-running,
.status-paid {
  background: #ecfdf5;
  color: #059669;
}

.status-pending {
  background: #fff7cc;
  color: #92700c;
}

.status-unpaid {
  background: #fef2f2;
  color: #dc2626;
}

.status-building {
  background: #eff6ff;
  color: #2563eb;
}

.status-suspended,
.status-expired {
  background: #fef2f2;
  color: #dc2626;
}

/* ===== Renew switch ===== */
.renew-switch {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 9999px;
  background: #e5e7eb;
  transition: background 0.25s ease;
  flex-shrink: 0;
  cursor: pointer;
}

.renew-switch.on {
  background: #0b0b0f;
}

.renew-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, background 0.25s ease;
}

.renew-switch.on .renew-knob {
  transform: translateX(20px);
  background: #ffd600;
}

/* ===== Filter buttons ===== */
.filter-btn {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  border: 1.5px solid #e5e7eb;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  background: #fff;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: #0b0b0f;
  color: #0b0b0f;
}

.filter-btn.active {
  background: #0b0b0f;
  border-color: #0b0b0f;
  color: #ffd600;
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-pop {
  animation: pop 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
