:root,
html[data-theme="dark"] {
  --theme-color: #c8f531;
  --bg: #070807;
  --sidebar: #0b0e0b;
  --surface: #101410;
  --surface-2: #161b16;
  --surface-3: #1c231c;
  --line: #2a3824;
  --text: #f3f6f3;
  --muted: #9aa894;
  --green: var(--theme-color);
  --gold: var(--theme-color);
  --danger: #ef4444;
  --shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  --sidebar-w: 16.25rem;
  --font: "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f4f6f1;
  --sidebar: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef2ea;
  --surface-3: #e3eadf;
  --line: #d5dece;
  --text: #161a16;
  --muted: #5c6a5b;
  --shadow: 0 12px 32px -12px rgba(20, 28, 18, 0.2);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #46543a transparent;
}

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

*::-webkit-scrollbar-track,
*::-webkit-scrollbar-corner {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: #46543a;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: #52525b;
  background-clip: padding-box;
}

*::-webkit-scrollbar-button,
*::-webkit-scrollbar-button:single-button,
*::-webkit-scrollbar-button:vertical:start:decrement,
*::-webkit-scrollbar-button:vertical:end:increment,
*::-webkit-scrollbar-button:horizontal:start:decrement,
*::-webkit-scrollbar-button:horizontal:end:increment {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 80;
  background: var(--green);
  color: #06210f;
  padding: 0.45rem 0.7rem;
  border-radius: 0.6rem;
  text-decoration: none;
  font-weight: 700;
}

.skip:focus {
  top: 0.75rem;
}

.app-boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.shell {
  height: 100vh;
  height: 100dvh;
  display: flex;
  overflow: hidden;
  background: var(--bg);
}

.shell.is-home .sidebar,
.shell.is-home .nav-toggle,
.shell.is-home .backdrop {
  display: none;
}

.sidebar {
  width: var(--sidebar-w);
  flex: none;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  height: 100%;
  z-index: 30;
}

.sidebar-scroll {
  overflow: auto;
  padding: 0 0.75rem 1.25rem;
  min-height: 0;
  flex: 1;
}

.sidebar-head {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 1.15rem;
  flex: none;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  object-fit: contain;
  border-radius: 0.6rem;
}

.brand-logo-sm {
  width: 1.85rem;
  height: 1.85rem;
  max-width: none;
  object-fit: contain;
  border-radius: 0.3rem;
  background: #050505;
}

.wordmark {
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
}

.wordmark-sub {
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  line-height: 1;
  color: #f4f6f4;
}

.sidebar-close,
.nav-toggle,
.icon-round {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.sidebar-close:hover,
.nav-toggle:hover,
.icon-round:hover {
  background: var(--surface-2);
  color: var(--text);
}

.sidebar-close .icon,
.nav-toggle .icon,
.icon-round .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-section {
  margin: 0.35rem 0.45rem 0.4rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.nav-groups,
.panel,
.sub-panel {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-groups {
  display: grid;
  gap: 0.2rem;
}

.panel {
  display: none;
  margin: 0.15rem 0 0.35rem;
}

.panel.is-open {
  display: grid;
  gap: 0.12rem;
}

.module-toggle,
.sub-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  border-radius: 0.75rem;
  padding: 0.42rem 0.55rem;
}

.module-toggle:hover,
.sub-toggle:hover,
.nav-link:hover {
  background: var(--surface-2);
}

.sub-toggle {
  color: var(--muted);
  padding-left: 0.85rem;
}

.sub-toggle[aria-expanded="true"] {
  color: var(--text);
}

.module-name {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  flex: none;
}

.icon svg {
  width: 100%;
  height: 100%;
}

.module-icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.6rem;
  background: var(--surface-2);
  color: var(--muted);
}

.module-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.module-toggle[aria-expanded="true"] .module-icon {
  background: rgba(0, 212, 90, 0.14);
  color: var(--green);
}

.chevron {
  color: var(--muted);
  transition: transform 0.15s ease;
}

[aria-expanded="true"] > .chevron {
  transform: rotate(90deg);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.05rem;
  padding: 0.35rem 0.7rem 0.35rem 0.95rem;
  border-radius: 0.7rem;
  color: var(--muted);
  text-decoration: none;
}

.nav-link.is-nested {
  padding-left: 1.65rem;
}

.nav-link.is-active {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}

.nav-link.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 1.15rem;
  transform: translateY(-50%);
  border-radius: 0 99px 99px 0;
  background: var(--green);
}

.sidebar-note {
  margin: 0;
  padding: 0.8rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.backdrop {
  display: none;
}

.workspace {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  height: 4rem;
  flex: none;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  background: rgba(7, 8, 7, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-toggle {
  display: none;
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pill,
.user-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pill {
  width: auto;
  min-width: 11rem;
  padding: 0 0.75rem 0 0.45rem;
  font-size: 0.92rem;
}

.pill-sm {
  width: auto;
  height: 2rem;
  padding: 0 0.8rem;
  font-size: 0.82rem;
  background: transparent;
}

.pill-mark,
.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  border-radius: 0.35rem;
  display: grid;
  place-items: center;
  background: var(--theme-color);
  color: #111;
  font-size: 0.72rem;
  font-weight: 800;
}

.brand-mark svg {
  width: 0.95rem;
  height: 0.95rem;
}

.vertical-pop button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.vertical-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: transparent;
}

.vertical-pop button.is-current {
  background: color-mix(in srgb, var(--theme-color) 32%, #14180c);
}

.vertical-pop button.is-current .vertical-dot {
  background: var(--theme-color);
}

.pill .chevron,
.pill-sm .chevron {
  margin-left: auto;
  width: 1rem;
  height: 1rem;
}

.user-button {
  padding: 0.2rem 0.8rem 0.2rem 0.25rem;
}

.user-meta {
  display: none;
  text-align: left;
  line-height: 1.15;
}

.user-meta span,
.user-meta small {
  display: block;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-meta span {
  font-size: 0.86rem;
  font-weight: 600;
}

.user-meta small {
  color: var(--muted);
  font-size: 0.72rem;
}

.avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
}

.pop-title,
.pop-empty {
  margin: 0;
  padding: 0.45rem 0.65rem;
}

.pop-title {
  font-size: 0.78rem;
  color: var(--muted);
}

.bell-pop {
  min-width: 16rem;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0;
  min-width: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.crumb a {
  color: var(--text);
  text-decoration: none;
}

.crumb-sep {
  opacity: 0.55;
}

.topbar-spacer {
  flex: 1;
}

.user-wrap {
  position: relative;
}

.user-button {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0.8rem;
  padding: 0.35rem 0.7rem;
  min-width: 8.5rem;
}

.user-button small {
  color: var(--muted);
  font-size: 0.72rem;
}

.user-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.35rem;
  min-width: 13rem;
  box-shadow: var(--shadow);
}

.user-pop button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0.55rem;
  padding: 0.55rem 0.65rem;
}

.user-pop button:hover {
  background: var(--surface-2);
}

.account-button {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c6f531;
  color: #14180c;
}

.account-button:hover {
  filter: brightness(1.05);
}

.account-avatar {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #c6f531;
  color: #14180c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.discord-account {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  text-align: center;
  padding: 0.2rem 0.2rem 0.4rem;
}

.discord-account p {
  margin: 0;
  color: var(--muted);
  max-width: 26rem;
}

.discord-photo {
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 999px;
  object-fit: cover;
}

.account-pop {
  min-width: 16.75rem;
  padding: 0.4rem;
  background: #171917;
  border-color: rgba(255, 255, 255, 0.08);
}

.account-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem 0.8rem;
}

.account-head strong,
.account-head small {
  display: block;
}

.account-head strong {
  font-size: 0.95rem;
}

.account-head small {
  color: var(--muted);
  font-size: 0.78rem;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--text);
}

.account-row .icon {
  width: 1rem;
  height: 1rem;
}

.account-out {
  justify-content: flex-start;
}

.account-label {
  margin: 0.45rem 0.75rem 0.2rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-langs {
  padding: 0 0.35rem 0.2rem 0.85rem;
}

.account-langs .is-current {
  color: var(--theme-color);
}

.theme-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.15rem;
  margin: 0.15rem 0.45rem 0.45rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: #101210;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-switch button {
  width: auto;
  height: 2rem;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  color: #c8cfc6;
}

.theme-switch button .icon {
  width: 1rem;
  height: 1rem;
}

.theme-switch button.is-on {
  background: #2a2e2a;
  color: #fff;
}

html[data-theme="light"] .account-pop {
  background: #ffffff;
  border-color: var(--line);
}

html[data-theme="light"] .theme-switch {
  background: #eef2ea;
  border-color: var(--line);
}

html[data-theme="light"] .theme-switch button.is-on {
  background: #ffffff;
  color: #161a16;
}

main {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1.25rem 1rem 2rem;
  scrollbar-gutter: stable;
}

main:has(.catalog) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 1rem;
}

.page {
  display: grid;
  gap: 1.5rem;
}

.page-heading {
  text-align: center;
}

.page-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.page-head h1 {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.welcome-wrap {
  container-type: inline-size;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  width: min(72rem, 100%);
  margin: 0 auto;
}

.dash-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  min-height: 20rem;
  padding: 2.4rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 1.2rem;
  background:
    linear-gradient(#060a07, #060a07) padding-box,
    linear-gradient(120deg, rgba(0, 230, 91, 0.85), rgba(245, 184, 0, 0.2) 46%, rgba(245, 184, 0, 0.9)) border-box;
  box-shadow: 0 0 28px rgba(0, 230, 91, 0.08), 0 22px 48px rgba(0, 0, 0, 0.38);
}

.dash-bg,
.dash-shade,
.dash-glow {
  position: absolute;
  pointer-events: none;
}

.dash-bg {
  inset: 0;
  background-color: #07110b;
  background-image:
    url('/img/banner-hub.jpg'),
    radial-gradient(ellipse at 50% 38%, rgba(42, 58, 24, 0.45), transparent 46%),
    radial-gradient(ellipse at 0% 0%, rgba(0, 230, 91, 0.18), transparent 42%),
    radial-gradient(ellipse at 100% 100%, rgba(245, 184, 0, 0.16), transparent 48%),
    radial-gradient(ellipse at 50% 50%, #16301c 0%, #050806 74%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.dash-shade {
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 10, 7, 0.75) 0%, rgba(6, 10, 7, 0.55) 50%, rgba(6, 10, 7, 0.85) 100%);
}

.dash-glow {
  width: 13rem;
  height: 13rem;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.28;
  z-index: 1;
}

.dash-glow-green {
  top: -8rem;
  left: -7rem;
  background: #00e65b;
}

.dash-glow-gold {
  right: -8rem;
  bottom: -8.5rem;
  background: #f5b800;
}

.dash-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem;
}

.dash-title {
  margin: 0.15rem 0 0;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.dash-title span {
  background: linear-gradient(90deg, #ffe066, #f5b800, #fff1a8, #b8860b, #ffe066);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gold-sheen 4.8s linear infinite;
}

.dash-copy p {
  margin: 0;
  max-width: 28rem;
  color: #e4ebe2;
  font-size: 0.98rem;
}

.dash-rule {
  width: 2.5rem;
  height: 2px;
  border-radius: 999px;
  background: #f5b800;
}

.dash-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
  height: 2.45rem;
  padding: 0 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(8, 12, 9, 0.62);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.dash-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, #00e65b, #f5b800);
  -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;
}

.dash-cta:hover {
  box-shadow: 0 0 18px rgba(0, 230, 91, 0.32), 0 0 16px rgba(245, 184, 0, 0.18);
}

.dash-cta .icon {
  width: 1rem;
  height: 1rem;
}

.dash-cta .icon:first-of-type {
  color: #00e65b;
}

.dash-hero .welcome-pill {
  border-color: rgba(0, 230, 91, 0.7);
  background: rgba(8, 12, 8, 0.55);
  color: #e9ffef;
  backdrop-filter: blur(8px);
}

.welcome-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid color-mix(in srgb, var(--theme-color) 35%, transparent);
  background: color-mix(in srgb, var(--theme-color) 12%, transparent);
  color: var(--theme-color);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.ping {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #00e65b;
  box-shadow: 0 0 0 0 rgba(0, 230, 91, 0.7);
  animation: dash-ping 1.8s ease-out infinite;
}

@keyframes dash-ping {
  70% { box-shadow: 0 0 0 6px rgba(0, 230, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 230, 91, 0); }
}

.lede {
  margin: 0.35rem 0 0;
  color: var(--muted);
  max-width: 42rem;
}

.page-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: end;
}

.preview {
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.preview select,
.filter,
.field input,
.field select,
.field textarea,
.gate input,
.gate select {
  width: 100%;
  background: #0c100e;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.55rem 0.7rem;
  min-width: 0;
}

.preview select {
  min-width: 11rem;
}

.filter-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0.6rem;
  padding: 0.75rem 0.9rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.search-field {
  position: relative;
  flex: 1;
  min-width: 14rem;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.filter {
  width: 100%;
  height: 2.25rem;
  padding-left: 2.2rem;
  background: transparent;
}

.filter-slot {
  position: relative;
}

.mini-pop {
  position: absolute;
  z-index: 5;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 11rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.3rem;
  box-shadow: var(--shadow);
}

.mini-pop button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 0.45rem;
  padding: 0.45rem 0.6rem;
}

.mini-pop button:hover {
  background: var(--surface-3);
}

.panel-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0.6rem;
  overflow: hidden;
  min-height: 25rem;
}

.empty-panel {
  min-height: 25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.empty-icon {
  width: 3rem;
  height: 3rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.empty-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.empty-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.filter {
  width: 100%;
}

.field textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.is-invalid {
  border-color: var(--danger) !important;
}

.source {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.stack {
  display: grid;
  gap: 0.9rem;
}

.metrics,
.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.metric,
.sector-card,
.state-card,
.form,
.profile,
.board-col {
  background: rgba(18, 24, 21, 0.92);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.metric {
  padding: 0.9rem 1rem 1rem;
}

.metric p,
.metric span,
.sector-card-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.metric strong {
  display: block;
  margin: 0.35rem 0 0.2rem;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.sector-card {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  text-decoration: none;
  color: var(--text);
}

.sector-card:hover,
.board-card:hover,
tbody tr[role="button"]:hover {
  border-color: rgba(0, 212, 90, 0.45);
  background: #18211c;
}

.sector-card .icon {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--green);
}

.sector-card-title {
  font-weight: 700;
}

.section-title {
  margin: 0.4rem 0 0;
  font-size: 1rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(18, 24, 21, 0.72);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 42rem;
}

th,
td {
  padding: 0.72rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr[role="button"] {
  cursor: pointer;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.badge[data-tone="ok"] {
  color: #b6ffd2;
  background: rgba(0, 212, 90, 0.14);
}

.badge[data-tone="warn"] {
  color: #ffe7a3;
  background: rgba(229, 181, 38, 0.16);
}

.badge[data-tone="danger"] {
  color: #ffd0d0;
  background: rgba(255, 107, 107, 0.16);
}

.btn {
  border: 1px solid transparent;
  border-radius: 0.75rem;
  padding: 0.55rem 0.9rem;
  background: var(--surface-2);
  color: var(--text);
}

.btn-primary,
.btn-theme {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--theme-color);
  color: #070807;
  font-weight: 700;
  border-radius: 999px;
  height: 2.5rem;
  padding: 0 1.15rem;
}

.btn-theme .icon {
  width: 1rem;
  height: 1rem;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form,
.profile {
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.profile .form {
  padding: 0;
  border: 0;
  background: transparent;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.78rem;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
}

.identity {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.identity p {
  margin: 0.15rem 0 0;
}

.avatar {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background: rgba(0, 212, 90, 0.14);
  color: var(--green);
  font-weight: 700;
}

.steps,
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.steps li,
.timeline li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(18, 24, 21, 0.8);
}

.steps p,
.timeline p,
.timeline time {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.step-index {
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.steps .is-done .step-index,
.steps .is-current .step-index {
  background: rgba(0, 212, 90, 0.16);
  color: var(--green);
}

.steps .is-current {
  border-color: rgba(0, 212, 90, 0.45);
}

.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(13rem, 1fr));
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
}

.board-col {
  padding: 0.75rem;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-height: 12rem;
}

.board-col header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.board-col h2 {
  margin: 0;
  font-size: 0.92rem;
}

.board-card {
  display: grid;
  gap: 0.15rem;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 0.8rem;
  padding: 0.7rem 0.75rem;
}

.muted {
  color: var(--muted);
}

.state-card {
  padding: 2rem 1.2rem;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
}

.state-card h1,
.state-card p {
  margin: 0;
}

.skeleton {
  height: 0.95rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #18211c, #243028, #18211c);
  background-size: 200% 100%;
  animation: sheen 1.1s ease infinite;
}

.skeleton.short {
  width: 55%;
}

@keyframes sheen {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.modal-back {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(7px);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal {
  width: min(34rem, 100%);
  max-height: min(86dvh, 46rem);
  overflow: auto;
  background: #121815;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1rem 1rem 1.15rem;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.modal-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.modal-plain {
  width: min(26.5rem, 100%);
  padding: 1.15rem 1.15rem 1rem;
  background: #171c17;
  border-radius: 1.15rem;
}

.assign-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.assign-icon {
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--theme-color) 16%, transparent);
  color: var(--theme-color);
}

.assign-icon .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.assign-copy {
  flex: 1;
  min-width: 0;
}

.assign-copy h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
}

.assign-copy p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.assign-section {
  margin: 1rem 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 650;
}

.assign-dialog .field select,
.assign-dialog .field input {
  background: #141417;
  border-color: #3d4a32;
  border-radius: 0.7rem;
  height: 2.45rem;
}

.assign-dialog .field select:focus,
.assign-dialog .field input:focus {
  border-color: var(--theme-color);
  outline: none;
  box-shadow: 0 0 0 1px var(--theme-color);
}

.assign-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.btn-ghost {
  height: 2.35rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 0;
  background: #2a3324;
  color: var(--text);
}

.catalog {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.catalog-top,
.cart-head,
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.catalog-top h1,
.cart-head h2 {
  margin: 0;
  font-size: 1.55rem;
}

.catalog-top p,
.cart-meta,
.product-off,
.cart-lines p,
.cart-link-label {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.cart-launch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.35rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid #3d4a32;
  background: transparent;
  color: var(--text);
}

.cart-count {
  min-width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--theme-color);
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
}

.catalog-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 17.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  position: relative;
}

.catalog-side,
.catalog-main,
.cart-drawer {
  border: 1px solid var(--line);
  background: #111611;
  border-radius: 0.85rem;
}

.catalog-side,
.catalog-main {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.catalog-side {
  padding: 0.7rem;
  gap: 0.45rem;
}

.catalog-side > .search-field,
.catalog-tools {
  flex: none;
}

.catalog-cats {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.catalog-cat {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.45rem;
  text-align: left;
  border: 0;
  background: transparent;
  color: #f4f4f5;
  border-radius: 0.6rem;
  padding: 0.4rem 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  font-size: 0.76rem;
  font-weight: 650;
}

.cat-mark {
  width: 1.2rem;
  flex: none;
  text-align: center;
  font-size: 0.95rem;
  text-transform: none;
}

.cat-label {
  flex: 1;
  min-width: 0;
}

.cat-chevron {
  width: 0.85rem;
  height: 0.85rem;
  flex: none;
  display: grid;
  place-items: center;
  color: #52525b;
}

.cat-chevron .icon {
  width: 0.85rem;
  height: 0.85rem;
}

.cat-chevron.is-open {
  transform: rotate(90deg);
  color: color-mix(in srgb, var(--theme-color) 75%, #71717a);
}

.catalog-cat:hover {
  background: #1c241c;
}

.catalog-cat.is-open {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-color) 55%, transparent);
}

.catalog-cat.is-active {
  background: color-mix(in srgb, var(--theme-color) 16%, #14140c);
  color: var(--theme-color);
}

.catalog-sub {
  width: calc(100% - 0.35rem);
  margin-left: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.15rem;
  text-align: left;
  border: 0;
  background: transparent;
  color: #e4e4e7;
  border-radius: 0.55rem;
  padding: 0.35rem 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.72rem;
  font-weight: 650;
}

.catalog-sub.ver-todos {
  color: #a1a1aa;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  padding-left: 1.15rem;
}

.catalog-sub.is-active {
  background: color-mix(in srgb, var(--theme-color) 18%, #14140c);
  color: var(--theme-color);
}

.catalog-cat.is-active .cat-chevron {
  color: var(--theme-color);
}

.catalog-main {
  padding: 0.75rem;
}

.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.catalog-selection {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  font-weight: 650;
}

.catalog-search {
  flex: 1;
  min-width: 12rem;
}

.catalog-tools select,
.pill-sm.is-on {
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 0 0.75rem;
}

.pill-sm.is-on {
  border-color: var(--theme-color);
  color: var(--theme-color);
}

.catalog-grid {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 13.5rem));
  gap: 0.7rem;
  align-content: start;
}

.product-card {
  display: grid;
  gap: 0.3rem;
  padding: 0.7rem;
  border-radius: 0.8rem;
  background: #151a15;
}

.product-card h3 {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}

.product-art {
  height: 7.5rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  background: #2a2a31;
  color: #f4f4f5;
  font-size: 2rem;
  font-weight: 800;
}

.product-art.has-photo {
  padding: 0;
  overflow: hidden;
  background: #111;
}

.product-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-manage {
  display: flex;
  gap: 0.35rem;
}

.product-manage .btn,
.product-manage .btn-ghost {
  height: 2rem;
  padding: 0 0.55rem;
  font-size: 0.78rem;
}

.catalog-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.photo-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.tone-girls { background: #3a3144; }
.tone-vip { background: #443c28; }
.tone-imoveis { background: #24343a; }
.tone-combos { background: #343028; }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.price-row strong,
.price-theme {
  color: var(--theme-color);
}

.price-row s {
  color: var(--muted);
  font-size: 0.75rem;
}

.product-card.has-discount {
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(6, 48, 32, 0.35);
}

.qty-bar {
  height: 2.25rem;
  margin-top: 0.35rem;
  border-radius: 0.7rem;
  border: 1px solid color-mix(in srgb, var(--theme-color) 35%, transparent);
  background: color-mix(in srgb, var(--theme-color) 12%, transparent);
  padding: 0 0.35rem;
}

.admin-grid {
  display: grid;
  gap: 0.55rem;
}

.admin-card {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #131813;
}

.admin-card .product-art {
  width: 4.5rem;
  height: 4.5rem;
}

.admin-copy h3 {
  margin: 0;
  font-size: 0.95rem;
}

.admin-copy p {
  margin: 0.15rem 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.product-sheet-grid {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.photo-drop {
  height: 11rem;
  border: 1px dashed #46543a;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.2rem;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
  color: var(--muted);
  background: #111611;
}

.photo-drop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-file {
  display: none;
}

.sheet-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.modal-plain:has(.product-sheet),
.modal-plain:has(.link-sheet),
.modal-plain:has(.budget-sheet) {
  width: min(42rem, 100%);
  background: #131813;
}

.budget-sheet {
  display: grid;
  gap: 0.9rem;
}

.budget-summary,
.budget-products {
  border: 1px solid #2a3324;
  border-radius: 0.85rem;
  background: #111611;
}

.budget-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.2rem;
  padding: 1rem;
}

.budget-summary .span-2 {
  grid-column: 1 / -1;
}

.budget-kicker {
  margin: 0;
  color: #a1a1aa;
  font-size: 0.78rem;
}

.budget-summary strong {
  display: block;
  margin-top: 0.2rem;
}

.budget-products h3 {
  margin: 0;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #2a3324;
  font-size: 1rem;
}

.budget-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #2a3324;
}

.budget-line p {
  margin: 0.2rem 0 0;
  color: #a1a1aa;
  font-size: 0.8rem;
}

.budget-line-side {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
}

.who-pill {
  display: inline-flex;
  align-items: center;
  height: 1.35rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-color) 18%, transparent);
  color: var(--theme-color);
  font-size: 0.75rem;
  font-weight: 650;
}

.budget-totals {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 1rem 1rem;
}

.budget-totals p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: #d4d4d8;
}

.budget-totals .is-total strong {
  color: var(--theme-color);
  font-size: 1.05rem;
}

.budget-sheet-foot {
  display: flex;
  justify-content: flex-end;
}

.link-sheet {
  display: grid;
  gap: 0.85rem;
}

.link-list,
.link-board {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.link-list {
  max-height: min(52dvh, 24rem);
  overflow: auto;
}

.link-board {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.link-row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #131813;
}

.link-row .product-art {
  width: 3.2rem;
  height: 3.2rem;
  font-size: 1.1rem;
}

.link-heading h2 {
  margin: 0;
  font-size: 1.15rem;
}

.link-heading p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.cat-count {
  min-width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #2a2a31;
  color: var(--muted);
  font-size: 0.72rem;
}

.catalog-cat.is-active .cat-count {
  background: color-mix(in srgb, var(--theme-color) 22%, #111);
  color: var(--theme-color);
}

.product-remove {
  justify-self: start;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #71717a;
  font-size: 0.75rem;
}

.product-remove:hover,
.product-remove[data-armed='1'] {
  color: #f4f4f5;
}

.product-add {
  width: 100%;
  justify-content: center;
  margin-top: 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.success-room .page-head {
  align-items: flex-start;
}

.success-room .page-heading {
  text-align: left;
}

.success-room .page-head h1 {
  font-size: 1.7rem;
  font-weight: 750;
}

.success-room .lede {
  margin-top: 0.2rem;
  color: #a1a1aa;
  font-size: 0.95rem;
}

.guide-title {
  margin: 0.2rem 0 0;
  font-size: 0.98rem;
  font-weight: 650;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  min-height: 11.5rem;
  padding: 1.05rem 1.05rem 0.9rem;
  border: 1px solid #2a3324;
  border-radius: 0.85rem;
  background: #131813;
}

.guide-top {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.guide-top h3 {
  margin: 0.15rem 0 0;
  font-size: 0.98rem;
  font-weight: 650;
}

.guide-top p {
  margin: 0.28rem 0 0;
  color: #a1a1aa;
  font-size: 0.84rem;
  line-height: 1.35;
}

.guide-icon {
  width: 2.55rem;
  height: 2.55rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-color) 18%, #14140c);
  color: var(--theme-color);
}

.guide-icon .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.guide-foot {
  display: flex;
  justify-content: flex-end;
}

.guide-btn {
  height: 2.15rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid #3d4a32;
  background: #171c17;
  color: #f4f4f5;
  font-size: 0.84rem;
}

.guide-btn:hover {
  background: #26262b;
}

.guide-edit {
  height: 2.15rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid #3d4a32;
  background: transparent;
  color: #d4d4d8;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

.budget-page .budget-head,
.budget-page .page-heading {
  align-items: flex-start;
  text-align: left;
}

.budget-head {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.budget-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.budget-metric {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem 0.85rem;
  border: 1px solid #2a3324;
  border-radius: 0.85rem;
  background: #111611;
}

.budget-metric p {
  margin: 0.35rem 0 0;
  color: #a1a1aa;
  font-size: 0.82rem;
}

.budget-metric strong {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.budget-metric-icon {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  color: #d4d4d8;
}

.budget-metric-icon.is-accent {
  color: #34d399;
}

.budget-board {
  display: grid;
  gap: 0.85rem;
}

.budget-tools {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.budget-search input {
  width: 100%;
  height: 2.45rem;
  padding-left: 2.2rem;
  border-radius: 999px;
  border: 1px solid #3d4a32;
  background: #111611;
}

.budget-search {
  flex: 1;
}

.budget-tools select {
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid #3d4a32;
  background: #111611;
  color: var(--text);
  padding: 0 0.8rem;
}

.budget-table-wrap {
  overflow: auto;
  border: 1px solid #2a3324;
  border-radius: 0.85rem;
  background: #0e120e;
}

.budget-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 58rem;
}

.budget-table th {
  text-align: left;
  padding: 0.75rem 0.8rem;
  color: #8d8d96;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid #243024;
}

.budget-table td {
  padding: 0.72rem 0.8rem;
  border-bottom: 1px solid #243024;
  font-size: 0.9rem;
}

.budget-money {
  font-weight: 700;
}

.budget-table .badge {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
}

.budget-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.budget-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid #3d4a32;
  background: transparent;
  color: #f4f4f5;
  display: grid;
  place-items: center;
}

.budget-checkout {
  height: 2.15rem;
  padding: 0 0.75rem;
  font-size: 0.82rem;
}

.budget-checkout .icon {
  width: 0.95rem;
  height: 0.95rem;
}

@media (max-width: 1100px) {
  .budget-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .budget-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.catalog-empty {
  margin: 1rem 0;
  color: var(--muted);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.45);
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(26rem, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.15rem 1.1rem;
  background: #0e120e;
  border-left: 1px solid #243024;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.35);
}

.cart-panel .cart-head h2 {
  font-size: 1.35rem;
  font-weight: 700;
}

.cart-main {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.cart-empty {
  margin: auto;
  text-align: center;
  display: grid;
  gap: 0.28rem;
}

.cart-empty p {
  margin: 0;
  color: #bdbdc5;
  font-size: 0.95rem;
}

.cart-empty p + p {
  color: #8d8d96;
  font-size: 0.9rem;
}

.cart-actions {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.85rem;
}

.cart-continue,
.cart-go {
  width: 100%;
  height: 2.75rem;
  border-radius: 999px;
}

.cart-continue {
  border: 1px solid #3d4a32;
  background: transparent;
  color: #f4f4f5;
}

.cart-continue:hover {
  background: #171c17;
}

.cart-lines {
  list-style: none;
  margin: 0.8rem 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.cart-lines li,
.qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.qty button {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.cart-total {
  margin: 0.4rem 0 0.8rem;
}

.cart-link,
.cart-checkout {
  width: 100%;
}

.cart-link {
  margin: 0.35rem 0 0.5rem;
}

.receipt {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

@media (max-width: 860px) {
  main:has(.catalog) {
    overflow: auto;
  }

  .catalog,
  .catalog-body,
  .catalog-side,
  .catalog-main {
    height: auto;
    overflow: visible;
  }

  .catalog-body {
    grid-template-columns: 1fr;
  }

  .catalog-side {
    max-height: 22rem;
  }

  .catalog-cats,
  .catalog-grid {
    overflow: auto;
  }

  .catalog-main {
    min-height: 28rem;
  }
}

.icon-btn {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
  padding: 0.1rem 0.35rem;
}

.toast-root {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  display: grid;
  gap: 0.5rem;
  width: min(22rem, calc(100% - 2rem));
}

.toast {
  background: #18211c;
  border: 1px solid rgba(0, 212, 90, 0.35);
  border-radius: 0.85rem;
  padding: 0.75rem 0.85rem;
  box-shadow: var(--shadow);
}

.gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.gate-card {
  width: min(28rem, 100%);
  background: rgba(18, 24, 21, 0.95);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.3rem 1.2rem 1.4rem;
  display: grid;
  gap: 0.85rem;
}

.gate-card h1 {
  margin: 0;
  letter-spacing: -0.03em;
}

.gate-card p,
.gate-actions {
  margin: 0;
}

.gate-card p {
  color: var(--muted);
}

.gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gate-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.gate-tabs button {
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.gate-tabs button.is-on {
  background: var(--theme-color);
  color: #14180c;
  font-weight: 700;
}

.access-board {
  display: grid;
  gap: 1rem;
}

.access-table {
  display: grid;
  gap: 0.75rem;
}

.access-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
}

.access-areas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.access-id {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.35rem;
}

.access-id span,
.access-card .field span {
  color: var(--muted);
  font-size: 0.75rem;
}

.access-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.4rem;
  font-size: 0.82rem;
}

.access-card select {
  width: 100%;
  background: #0c100e;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.55rem 0.7rem;
}

@media (max-width: 1100px) {
  .access-areas {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .metrics,
  .sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .user-meta { display: grid; }
  .pill { width: 14rem; }
  .page-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .page-heading { text-align: left; }
  main { padding: 1.5rem 1.5rem 2.5rem; }
}

@container (max-width: 760px) {
  .dash-hero {
    padding: 1.6rem 1rem 1.5rem;
  }

  .dash-copy { padding: 0; }
}

@media (max-width: 1023px) {
  .nav-toggle,
  .sidebar-close {
    display: inline-flex;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform 0.18s ease;
    box-shadow: var(--shadow);
  }

  .sidebar.is-open {
    transform: none;
  }

  .backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
  }

  .backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 1024px) {
  .nav-toggle,
  .sidebar-close,
  .backdrop {
    display: none;
  }

  .sidebar {
    position: static;
    transform: none;
  }
}

@media (max-width: 640px) {
  .metrics,
  .sector-grid {
    grid-template-columns: 1fr;
  }

  .page {
    padding: 1rem 0.85rem 2rem;
  }

  .topbar {
    padding-inline: 0.75rem;
  }

  .user-button {
    min-width: 0;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 230, 91, 0.11), transparent 26%),
    radial-gradient(circle at 84% 88%, rgba(245, 184, 0, 0.1), transparent 24%);
  animation: ambience 16s ease-in-out infinite alternate;
}

#app {
  position: relative;
  z-index: 1;
  height: 100%;
}

.shell {
  position: relative;
  z-index: 1;
}

.topbar {
  position: relative;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00e65b, #f5b800, transparent);
  background-size: 200% 100%;
  animation: gold-sheen 7s linear infinite;
}

.dash-glow-green,
.dash-glow-gold {
  animation: glow-drift 8s ease-in-out infinite;
}

.dash-glow-gold {
  animation-duration: 10s;
  animation-direction: reverse;
}

.budget-metric::after {
  animation: glow-breathe 3.4s ease-in-out infinite;
}

main > * {
  animation: rise 0.48s ease backwards;
}

.guide-card,
.budget-metric {
  animation: rise 0.55s ease backwards;
}

.guide-card:nth-child(2),
.budget-metric:nth-child(2) { animation-delay: 0.06s; }

.guide-card:nth-child(3),
.budget-metric:nth-child(3) { animation-delay: 0.12s; }

.budget-metric:nth-child(4) { animation-delay: 0.18s; }

.btn,
.dash-cta,
.pill,
.module-toggle,
.nav-link,
.catalog-cat,
.catalog-sub,
.product-card,
.guide-card,
.budget-metric,
.admin-card,
.budget-icon,
.icon-round,
.user-button {
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.pill:hover,
.icon-round:hover,
.user-button:hover,
.budget-icon:hover {
  transform: translateY(-2px);
}

.nav-link:hover,
.catalog-sub:hover {
  transform: translateX(4px);
}

.product-card:hover,
.guide-card:hover,
.budget-metric:hover,
.admin-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 230, 91, 0.38);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28), 0 0 18px rgba(0, 230, 91, 0.08);
}

.module-toggle:hover .module-icon {
  transform: scale(1.08);
}

tbody tr {
  transition: background 0.18s ease;
}

tbody tr:hover {
  background: rgba(0, 230, 91, 0.05);
}

.modal-back,
.cart-backdrop {
  animation: fade-in 0.22s ease;
}

.modal,
.modal-plain {
  animation: pop 0.28s ease;
}

.cart-panel {
  animation: drawer 0.32s ease;
}

.user-pop {
  animation: pop 0.18s ease;
}

.toast {
  animation: toast-in 0.32s ease;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes glow-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(14px, 10px, 0); }
}

@keyframes gold-sheen {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

@keyframes ambience {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 1.4%, 0) scale(1.08); }
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.14; }
  50% { opacity: 0.4; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes drawer {
  from { transform: translateX(28px); }
  to { transform: none; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
