:root {
  color-scheme: dark;
  --bg: #09090f;
  --bg-raised: #0e0e17;
  --panel: rgba(19, 19, 31, 0.9);
  --panel-solid: #13131f;
  --panel-hover: #191927;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f4f3fb;
  --muted: #9a98aa;
  --faint: #686677;
  --violet: #9271ff;
  --violet-bright: #ae97ff;
  --violet-dark: #6545dd;
  --cyan: #66d9ff;
  --green: #6ee7a7;
  --green-dark: #163d2c;
  --amber: #ffc76b;
  --red: #ff7a8a;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 16% 5%, rgba(95, 65, 184, 0.13), transparent 26rem),
    radial-gradient(circle at 88% 30%, rgba(58, 132, 171, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
strong {
  letter-spacing: -0.02em;
}

.is-hidden,
[hidden] {
  display: none !important;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: 0.15;
}

.ambient-one {
  top: -230px;
  left: -160px;
  background: #7652f4;
}

.ambient-two {
  top: 360px;
  right: -300px;
  background: #3fa8d4;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 40px));
  min-height: var(--header-height);
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand strong {
  font-size: 16px;
  letter-spacing: -0.035em;
}

.brand small {
  margin-top: 5px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(174, 151, 255, 0.34);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(146, 113, 255, 0.28), rgba(102, 217, 255, 0.08));
  box-shadow: inset 0 0 18px rgba(146, 113, 255, 0.12);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  position: absolute;
  width: 12px;
  height: 12px;
  content: "";
  transform: rotate(45deg);
  border: 2px solid var(--violet-bright);
  border-radius: 3px;
}

.brand-mark::before {
  left: 8px;
  opacity: 0.45;
}

.brand-mark::after {
  right: 8px;
  border-color: var(--cyan);
  opacity: 0.6;
}

.brand-mark span {
  z-index: 1;
  width: 8px;
  height: 8px;
  border-width: 1px;
  background: var(--panel-solid);
}

.header-actions,
.deal-toolbar-actions,
.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.quiet-link,
.back-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 160ms ease;
}

.quiet-link:hover,
.back-link:hover,
.site-footer a:hover {
  color: var(--text);
}

.connection-pill,
.live-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(16, 16, 27, 0.72);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.status-dot,
.live-label i,
.console-topline i {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(110, 231, 167, 0.7);
}

.status-dot.is-busy {
  background: var(--amber);
  box-shadow: 0 0 12px rgba(255, 199, 107, 0.65);
}

.status-dot.is-offline,
.status-dot.is-muted {
  background: var(--faint);
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.72fr);
  gap: clamp(52px, 8vw, 108px);
  align-items: center;
  min-height: 700px;
  padding-block: 68px 80px;
}

.eyebrow,
.section-kicker {
  color: var(--violet-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid rgba(146, 113, 255, 0.23);
  border-radius: 99px;
  background: rgba(146, 113, 255, 0.07);
}

.eyebrow span {
  width: 15px;
  height: 1px;
  background: var(--violet-bright);
}

.hero h1 {
  max-width: 720px;
  margin: 24px 0 22px;
  font-size: clamp(46px, 5.2vw, 76px);
  font-weight: 780;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero h1 span {
  background: linear-gradient(100deg, var(--violet-bright), #cfbfff 50%, var(--cyan));
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 590px;
  margin-bottom: 31px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.username-card,
.profile-confirmation {
  max-width: 660px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(17, 17, 28, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.username-card > label,
.field-label {
  display: block;
  margin: 0 0 9px 2px;
  color: #d7d5e1;
  font-size: 12px;
  font-weight: 700;
}

.field-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.input-shell,
.search-field,
.select-shell {
  display: flex;
  align-items: center;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 7, 13, 0.68);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.input-shell:focus-within,
.search-field:focus-within,
.select-shell:focus-within {
  border-color: rgba(146, 113, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(146, 113, 255, 0.1);
}

.input-shell > span,
.search-field > span {
  padding-left: 15px;
  color: var(--faint);
  font-weight: 750;
}

.input-shell input,
.search-field input,
.select-shell select,
.settings-fields input,
.dialog-form-grid input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.input-shell input,
.search-field input {
  min-height: 48px;
  padding: 0 14px 0 8px;
}

input::placeholder {
  color: #5f5d6d;
}

.field-hint {
  margin: 10px 2px 0;
  color: var(--faint);
  font-size: 11px;
}

.form-error {
  margin: 11px 2px 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    opacity 140ms ease;
}

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

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button-primary {
  background: linear-gradient(135deg, #9c80ff, #7151e8);
  color: white;
  box-shadow: 0 10px 28px rgba(108, 75, 220, 0.27);
}

.button-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #ab93ff, #7b5bef);
}

.button-secondary {
  border-color: rgba(146, 113, 255, 0.24);
  background: rgba(146, 113, 255, 0.1);
  color: #cfc2ff;
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: #c5c2cf;
}

.button-ghost:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.button-danger {
  border-color: rgba(255, 122, 138, 0.22);
  background: rgba(255, 122, 138, 0.08);
  color: #ff9fab;
}

.button-small {
  min-height: 36px;
  padding-inline: 13px;
  border-radius: 10px;
  font-size: 11px;
}

.button-wide {
  width: 100%;
}

.button.is-loading {
  color: transparent;
  pointer-events: none;
}

.button.is-loading::after {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-top-color: white;
  border-radius: 50%;
  content: "";
  animation: spin 700ms linear infinite;
}

.profile-confirmation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: linear-gradient(145deg, #29243e, #161522);
  color: var(--violet-bright);
  font-weight: 800;
}

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

.avatar-large {
  width: 58px;
  height: 58px;
}

.profile-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.profile-copy span {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.profile-copy strong {
  overflow: hidden;
  margin-top: 2px;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-actions {
  display: flex;
  gap: 8px;
}

.hero-console {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(27, 26, 42, 0.96), rgba(12, 12, 20, 0.96));
  box-shadow: 0 42px 100px rgba(0, 0, 0, 0.45);
}

.hero-console::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 24px 24px;
  content: "";
  pointer-events: none;
}

.console-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.console-topline > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.console-topline > span:last-child {
  color: var(--green);
}

.console-visual {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 100%, rgba(146, 113, 255, 0.24), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
}

.abstract-item {
  position: absolute;
  bottom: 55px;
  left: 50%;
  width: 34px;
  height: 128px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px 10px 18px 18px;
  background: linear-gradient(145deg, rgba(174, 151, 255, 0.62), rgba(68, 49, 136, 0.3));
  box-shadow:
    inset 0 0 15px rgba(255, 255, 255, 0.12),
    0 20px 55px rgba(82, 51, 192, 0.28);
  transform: translateX(-50%) rotate(31deg);
}

.abstract-item::before {
  position: absolute;
  bottom: -31px;
  left: 50%;
  width: 13px;
  height: 35px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: #242034;
  content: "";
  transform: translateX(-50%);
}

.abstract-item::after {
  position: absolute;
  bottom: -40px;
  left: 50%;
  width: 46px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: #191723;
  content: "";
  transform: translateX(-50%);
}

.abstract-item span {
  position: absolute;
  top: 14px;
  left: 8px;
  width: 4px;
  height: 76%;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.26);
  filter: blur(1px);
}

.abstract-item.item-a {
  margin-left: -93px;
  transform: translateX(-50%) rotate(-35deg) scale(0.74);
  opacity: 0.34;
}

.abstract-item.item-b {
  z-index: 2;
}

.abstract-item.item-c {
  margin-left: 98px;
  background: linear-gradient(145deg, rgba(102, 217, 255, 0.56), rgba(32, 88, 120, 0.28));
  transform: translateX(-50%) rotate(58deg) scale(0.72);
  opacity: 0.4;
}

.scan-line {
  position: absolute;
  z-index: 4;
  top: 42px;
  right: 20px;
  left: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 14px rgba(102, 217, 255, 0.55);
  opacity: 0.65;
  animation: scan 3.6s ease-in-out infinite;
}

.console-list {
  position: relative;
  z-index: 1;
  padding: 10px 18px 17px;
}

.console-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 4px;
  color: var(--faint);
}

.console-row + .console-row {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.console-row.is-active,
.console-row.is-complete {
  color: var(--text);
}

.console-number {
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.console-row div {
  display: flex;
  flex-direction: column;
}

.console-row strong {
  font-size: 12px;
}

.console-row small {
  color: var(--faint);
  font-size: 10px;
}

.console-check {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: rgba(110, 231, 167, 0.1);
  color: var(--green);
  font-size: 11px;
}

.console-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet-bright);
  box-shadow: 0 0 0 5px rgba(146, 113, 255, 0.1);
  animation: pulse 1.8s ease-in-out infinite;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2,
.section-toolbar h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.split-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.split-heading p {
  max-width: 500px;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
}

.estimator-section,
.process-section {
  padding-block: 80px;
}

.estimator-section {
  border-top: 1px solid var(--line);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.estimator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.catalog-panel,
.estimate-cart {
  padding: 21px;
}

.estimate-cart {
  position: sticky;
  top: 20px;
}

.panel-heading,
.section-toolbar,
.dialog-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.panel-heading {
  margin-bottom: 18px;
}

.panel-heading h2,
.panel-heading h3 {
  margin: 0;
  font-size: 16px;
}

.panel-heading p,
.section-toolbar p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.soft-badge {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.search-field {
  width: 100%;
  min-height: 44px;
  margin-bottom: 12px;
}

.search-field input {
  min-height: 42px;
  font-size: 12px;
}

.catalog-list {
  display: grid;
  max-height: 370px;
  gap: 7px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-color: #363344 transparent;
  scrollbar-width: thin;
}

.catalog-row,
.estimate-item-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 62px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
  transition:
    border-color 140ms ease,
    background 140ms ease;
}

.catalog-row:hover {
  border-color: rgba(146, 113, 255, 0.22);
  background: rgba(146, 113, 255, 0.035);
}

.item-thumb {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(146, 113, 255, 0.16), rgba(102, 217, 255, 0.05)),
    #0e0e17;
  color: var(--violet-bright);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-row-copy,
.estimate-item-copy,
.offer-item-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.catalog-row-copy strong,
.estimate-item-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-row-copy small,
.estimate-item-copy small {
  color: var(--muted);
  font-size: 10px;
}

.add-item-button,
.quantity-button,
.text-button {
  cursor: pointer;
  background: transparent;
  color: var(--violet-bright);
  font-size: 11px;
  font-weight: 750;
}

.add-item-button {
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid rgba(146, 113, 255, 0.19);
  border-radius: 9px;
  background: rgba(146, 113, 255, 0.07);
}

.add-item-button:hover,
.text-button:hover {
  color: #d4c9ff;
}

.estimate-items {
  display: grid;
  min-height: 180px;
  max-height: 310px;
  gap: 7px;
  overflow: auto;
  padding-right: 3px;
}

.estimate-item-row {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 56px;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 28px 28px 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.15);
}

.quantity-button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--muted);
  font-size: 15px;
}

.quantity-control span {
  text-align: center;
  font-size: 11px;
  font-weight: 750;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  flex-direction: column;
  padding: 28px;
  text-align: center;
}

.compact-empty {
  min-height: 180px;
}

.empty-glyph {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 11px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--faint);
  font-size: 20px;
}

.empty-state strong {
  font-size: 13px;
}

.empty-state p {
  max-width: 280px;
  margin: 3px 0 0;
  color: var(--faint);
  font-size: 11px;
}

.estimate-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 13px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.estimate-total > div {
  display: flex;
  flex-direction: column;
}

.estimate-total > div > span {
  color: var(--muted);
  font-size: 10px;
}

.estimate-total strong {
  color: var(--green);
  font-size: 31px;
  line-height: 1.1;
}

.estimate-total strong small {
  font-size: 14px;
}

.estimate-note {
  max-width: 120px;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.4;
  text-align: right;
}

.skeleton-row {
  height: 62px;
  border-radius: 13px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

.process-section {
  border-top: 1px solid var(--line);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.process-card {
  position: relative;
  min-height: 235px;
  padding: 21px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 18, 29, 0.65);
}

.process-card::after {
  position: absolute;
  right: -50px;
  bottom: -60px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(146, 113, 255, 0.07);
  content: "";
  filter: blur(30px);
}

.process-index {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #3f3d4b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.process-icon {
  position: relative;
  width: 46px;
  height: 46px;
  margin-bottom: 42px;
  border: 1px solid rgba(146, 113, 255, 0.2);
  border-radius: 14px;
  background: rgba(146, 113, 255, 0.07);
}

.process-icon::before,
.process-icon::after {
  position: absolute;
  content: "";
}

.icon-user::before {
  top: 10px;
  left: 17px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--violet-bright);
  border-radius: 50%;
}

.icon-user::after {
  right: 10px;
  bottom: 8px;
  left: 10px;
  height: 11px;
  border: 2px solid var(--violet-bright);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.icon-link::before,
.icon-link::after {
  top: 13px;
  width: 17px;
  height: 9px;
  border: 2px solid var(--violet-bright);
  border-radius: 10px;
  transform: rotate(-38deg);
}

.icon-link::before {
  left: 7px;
}

.icon-link::after {
  right: 7px;
  bottom: 13px;
  top: auto;
}

.icon-scan::before {
  inset: 10px;
  border: 2px solid var(--violet-bright);
  border-top-color: transparent;
  border-bottom-color: transparent;
}

.icon-scan::after {
  top: 21px;
  left: 8px;
  width: 28px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 7px rgba(102, 217, 255, 0.6);
}

.icon-ticket::before {
  inset: 12px 8px;
  border: 2px solid var(--violet-bright);
  border-radius: 4px;
  transform: rotate(-8deg);
}

.icon-ticket::after {
  top: 13px;
  bottom: 13px;
  left: 22px;
  border-left: 1px dashed rgba(174, 151, 255, 0.6);
  transform: rotate(-8deg);
}

.process-card h3 {
  margin-bottom: 7px;
  font-size: 16px;
}

.process-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.notice-section {
  padding-bottom: 90px;
}

.notice-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  border: 1px solid rgba(255, 199, 107, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 199, 107, 0.04);
}

.notice-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 199, 107, 0.25);
  border-radius: 50%;
  color: var(--amber);
  font-family: serif;
  font-weight: 800;
}

.notice-card strong {
  font-size: 12px;
}

.notice-card p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding-block: 25px 32px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 10px;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.brand-small .brand-mark {
  width: 27px;
  height: 27px;
  border-radius: 9px;
}

.brand-small strong {
  font-size: 12px;
}

/* Deal page */
.deal-view {
  min-height: calc(100vh - var(--header-height));
  padding-block: 34px 80px;
}

.deal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.live-label {
  border: 0;
  background: transparent;
  font-size: 10px;
}

.live-label i {
  width: 6px;
  height: 6px;
  animation: pulse 2s ease-in-out infinite;
}

.deal-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.deal-heading h1 {
  margin: 7px 0 0;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.status-badge,
.table-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 780;
  white-space: nowrap;
}

.status-muted {
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

.status-waiting {
  border-color: rgba(255, 199, 107, 0.2);
  background: rgba(255, 199, 107, 0.07);
  color: var(--amber);
}

.status-active {
  border-color: rgba(146, 113, 255, 0.23);
  background: rgba(146, 113, 255, 0.08);
  color: var(--violet-bright);
}

.status-success {
  border-color: rgba(110, 231, 167, 0.2);
  background: rgba(110, 231, 167, 0.07);
  color: var(--green);
}

.status-danger {
  border-color: rgba(255, 122, 138, 0.2);
  background: rgba(255, 122, 138, 0.07);
  color: var(--red);
}

.deal-stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.deal-stepper li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
}

.deal-stepper li:not(:last-child)::after {
  position: absolute;
  z-index: -1;
  top: 13px;
  right: 13px;
  left: 31px;
  height: 1px;
  background: var(--line);
  content: "";
}

.deal-stepper li span {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  font-size: 9px;
  font-weight: 800;
}

.deal-stepper li small {
  padding-right: 8px;
  background: var(--bg);
  font-size: 10px;
  font-weight: 700;
}

.deal-stepper li.is-current {
  color: var(--violet-bright);
}

.deal-stepper li.is-current span {
  border-color: var(--violet);
  background: rgba(146, 113, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(146, 113, 255, 0.06);
}

.deal-stepper li.is-complete {
  color: var(--green);
}

.deal-stepper li.is-complete span {
  border-color: rgba(110, 231, 167, 0.25);
  background: rgba(110, 231, 167, 0.08);
}

.deal-stepper li.is-complete:not(:last-child)::after {
  background: rgba(110, 231, 167, 0.2);
}

.deal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.58fr);
  gap: 16px;
  align-items: start;
}

.deal-main {
  min-height: 410px;
  padding: 27px;
}

.deal-sidebar {
  display: grid;
  gap: 12px;
}

.account-card,
.secret-card {
  padding: 18px;
}

.account-card-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.account-card .avatar {
  width: 48px;
  height: 48px;
}

.account-meta {
  display: grid;
  margin-top: 16px;
  gap: 8px;
}

.account-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.account-meta strong {
  overflow: hidden;
  max-width: 130px;
  color: var(--text);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secret-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 199, 107, 0.035);
}

.secret-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 199, 107, 0.17);
  border-radius: 9px;
  color: var(--amber);
}

.secret-card strong {
  font-size: 11px;
}

.secret-card p {
  margin: 2px 0 0;
  color: var(--faint);
  font-size: 9px;
}

.loading-state,
.state-message {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  flex-direction: column;
  text-align: center;
}

.spinner {
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--violet-bright);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.loading-state strong,
.state-message h2 {
  margin: 0;
  font-size: 20px;
}

.loading-state p,
.state-message > p {
  max-width: 480px;
  margin: 6px auto 0;
  color: var(--muted);
  font-size: 12px;
}

.state-glyph {
  position: relative;
  display: grid;
  width: 65px;
  height: 65px;
  margin-bottom: 21px;
  place-items: center;
  border: 1px solid rgba(146, 113, 255, 0.23);
  border-radius: 20px;
  background: rgba(146, 113, 255, 0.075);
  color: var(--violet-bright);
  font-size: 25px;
  font-weight: 750;
}

.state-glyph.glyph-success {
  border-color: rgba(110, 231, 167, 0.2);
  background: rgba(110, 231, 167, 0.07);
  color: var(--green);
}

.state-glyph.glyph-warning {
  border-color: rgba(255, 199, 107, 0.2);
  background: rgba(255, 199, 107, 0.07);
  color: var(--amber);
}

.state-glyph.glyph-danger {
  border-color: rgba(255, 122, 138, 0.2);
  background: rgba(255, 122, 138, 0.07);
  color: var(--red);
}

.state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
}

.queue-position {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.queue-position strong {
  color: var(--text);
  font-size: 34px;
}

.deadline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  color: var(--amber);
  font-size: 10px;
  font-weight: 700;
}

.status-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
}

.status-callout.is-warning {
  border-color: rgba(255, 199, 107, 0.16);
  background: rgba(255, 199, 107, 0.04);
}

.status-callout.is-danger {
  border-color: rgba(255, 122, 138, 0.16);
  background: rgba(255, 122, 138, 0.04);
}

.status-callout span:first-child {
  color: var(--amber);
  font-weight: 850;
}

.status-callout strong {
  display: block;
  font-size: 11px;
}

.status-callout p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.vip-link-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(100%, 540px);
  margin: 21px auto 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.17);
}

.vip-link-box span {
  overflow: hidden;
  padding: 9px 10px;
  color: var(--muted);
  font-size: 10px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-view {
  display: flex;
  min-height: 355px;
  flex-direction: column;
}

.offer-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.offer-heading h2 {
  margin: 0;
  font-size: 21px;
}

.offer-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.offer-version {
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.offer-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.offer-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}

.offer-item.is-unsupported {
  border-color: rgba(255, 122, 138, 0.15);
  background: rgba(255, 122, 138, 0.025);
}

.offer-item .item-thumb {
  width: 48px;
  height: 48px;
}

.offer-item-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-item-copy small {
  color: var(--muted);
  font-size: 9px;
}

.offer-item-price {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.offer-item-price small {
  color: var(--faint);
  font-size: 8px;
  font-weight: 600;
}

.offer-item.is-unsupported .offer-item-price {
  color: var(--red);
  font-size: 9px;
}

.offer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 22px;
}

.offer-total {
  display: flex;
  flex-direction: column;
}

.offer-total span {
  color: var(--muted);
  font-size: 10px;
}

.offer-total strong {
  color: var(--green);
  font-size: 34px;
  line-height: 1.15;
}

.offer-total small {
  color: var(--muted);
  font-size: 11px;
}

.offer-actions {
  display: flex;
  gap: 8px;
}

.gamepass-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.64fr);
  gap: 25px;
  min-height: 355px;
  align-items: center;
}

.gamepass-copy h2 {
  margin: 0 0 8px;
  font-size: 25px;
}

.gamepass-copy > p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
}

.gamepass-steps {
  display: grid;
  gap: 11px;
  margin-bottom: 21px;
}

.gamepass-step {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.gamepass-step > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(146, 113, 255, 0.23);
  border-radius: 8px;
  color: var(--violet-bright);
  font-size: 9px;
  font-weight: 800;
}

.gamepass-step strong {
  display: block;
  font-size: 11px;
}

.gamepass-step p {
  margin: 1px 0 0;
  color: var(--faint);
  font-size: 9px;
}

.gamepass-form {
  display: grid;
  gap: 9px;
}

.gamepass-form label {
  color: #d3d0dd;
  font-size: 10px;
  font-weight: 700;
}

.gamepass-form .input-shell {
  min-height: 46px;
}

.payout-card {
  position: relative;
  overflow: hidden;
  padding: 23px;
  border: 1px solid rgba(146, 113, 255, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(102, 217, 255, 0.12), transparent 60%),
    rgba(146, 113, 255, 0.065);
}

.payout-card span {
  color: var(--muted);
  font-size: 10px;
}

.payout-card strong {
  display: block;
  margin: 5px 0 14px;
  color: var(--green);
  font-size: 42px;
  line-height: 1;
}

.payout-card strong small {
  font-size: 17px;
}

.payout-divider {
  height: 1px;
  margin: 13px 0;
  background: var(--line);
}

.payout-card-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
}

.payout-card-row b {
  color: var(--text);
}

dialog {
  max-width: calc(100% - 30px);
  border: 1px solid var(--line-strong);
  color: var(--text);
  box-shadow: 0 35px 120px rgba(0, 0, 0, 0.65);
}

dialog::backdrop {
  background: rgba(3, 3, 8, 0.75);
  backdrop-filter: blur(8px);
}

.confirm-dialog {
  width: 450px;
  padding: 0;
  border-radius: 23px;
  background: #151521;
}

.confirm-dialog form {
  position: relative;
  padding: 29px;
  text-align: center;
}

.dialog-close {
  display: grid;
  width: 31px;
  height: 31px;
  cursor: pointer;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 20px;
}

.confirm-dialog .dialog-close {
  position: absolute;
  top: 15px;
  right: 15px;
}

.dialog-glyph {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 15px;
  place-items: center;
  border: 1px solid rgba(110, 231, 167, 0.22);
  border-radius: 16px;
  background: rgba(110, 231, 167, 0.07);
  color: var(--green);
  font-size: 20px;
}

.confirm-dialog h2 {
  margin-bottom: 7px;
  font-size: 23px;
}

.confirm-dialog > form > p {
  margin-bottom: 19px;
  color: var(--muted);
  font-size: 11px;
}

.dialog-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
  text-align: left;
}

.dialog-summary span {
  color: var(--muted);
  font-size: 10px;
}

.dialog-summary strong {
  color: var(--green);
  font-size: 17px;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 20px;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: min(370px, calc(100% - 40px));
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #1b1a28;
  box-shadow: var(--shadow);
  color: #dcd9e6;
  font-size: 11px;
  font-weight: 650;
  animation: toast-in 180ms ease-out both;
}

.toast.is-error {
  border-color: rgba(255, 122, 138, 0.3);
  color: #ffb1ba;
}

/* Admin */
.admin-body {
  overflow-x: hidden;
  background: #0a0a10;
}

.admin-login-wrap {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.admin-login-card {
  width: min(430px, 100%);
  padding: 29px;
}

.login-heading {
  margin: 48px 0 25px;
}

.login-heading h1 {
  margin: 7px 0 7px;
  font-size: 31px;
  line-height: 1.1;
}

.login-heading p {
  color: var(--muted);
  font-size: 12px;
}

.input-shell-full {
  width: 100%;
  margin-bottom: 12px;
}

.admin-login-card .button-wide {
  margin-top: 14px;
}

.login-back {
  display: inline-block;
  margin-top: 22px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: fixed;
  z-index: 40;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: 225px;
  flex-direction: column;
  padding: 24px 15px 17px;
  border-right: 1px solid var(--line);
  background: #0d0d15;
}

.admin-brand {
  margin: 0 7px 38px;
}

.admin-nav {
  display: grid;
  gap: 4px;
}

.admin-nav-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 43px;
  gap: 11px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  background: transparent;
  color: #858394;
  font-size: 11px;
  font-weight: 680;
  text-align: left;
  transition:
    color 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

.admin-nav-button:hover,
.admin-nav-button.is-active {
  border-color: rgba(146, 113, 255, 0.13);
  background: rgba(146, 113, 255, 0.07);
  color: #d3c9f7;
}

.nav-icon {
  position: relative;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  opacity: 0.9;
}

.nav-dashboard::before {
  position: absolute;
  inset: 2px;
  border: 1.5px solid currentcolor;
  border-radius: 4px;
  box-shadow: inset 6px 0 transparent;
  content: "";
}

.nav-dashboard::after {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 8px;
  border-left: 1px solid currentcolor;
  content: "";
}

.nav-catalog::before {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 5px;
  height: 5px;
  border: 1.5px solid currentcolor;
  border-radius: 2px;
  box-shadow: 8px 0 0 -1.5px #0d0d15, 8px 0 0 0 currentcolor, 0 8px 0 -1.5px #0d0d15, 0 8px 0 0 currentcolor, 8px 8px 0 -1.5px #0d0d15, 8px 8px 0 0 currentcolor;
  content: "";
}

.nav-orders::before {
  position: absolute;
  inset: 2px 3px;
  border: 1.5px solid currentcolor;
  border-radius: 3px;
  content: "";
}

.nav-orders::after {
  position: absolute;
  top: 6px;
  right: 6px;
  left: 6px;
  height: 1px;
  background: currentcolor;
  box-shadow: 0 4px currentcolor;
  content: "";
}

.nav-settings::before {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 7px;
  height: 7px;
  border: 1.5px solid currentcolor;
  border-radius: 50%;
  box-shadow: 0 -4px 0 -2px currentcolor, 0 4px 0 -2px currentcolor, 4px 0 0 -2px currentcolor, -4px 0 0 -2px currentcolor;
  content: "";
}

.admin-sidebar-bottom {
  display: grid;
  gap: 3px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.admin-workspace {
  grid-column: 2;
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 16px 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 16, 0.88);
  backdrop-filter: blur(16px);
}

.admin-breadcrumb {
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-topbar h1 {
  margin: 1px 0 0;
  font-size: 20px;
}

.mobile-menu-button {
  display: none;
}

.admin-content {
  width: min(1320px, 100%);
  padding: 28px 30px 70px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 14px;
}

.metric-card {
  display: flex;
  min-height: 135px;
  flex-direction: column;
  padding: 18px;
  border-radius: var(--radius);
}

.metric-card > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.metric-card strong {
  margin: 12px 0 2px;
  font-size: 33px;
  line-height: 1;
}

.metric-card small {
  margin-top: auto;
  color: var(--faint);
  font-size: 9px;
}

.metric-warning strong {
  color: var(--amber);
}

.admin-two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 14px;
  margin-bottom: 14px;
}

.admin-panel {
  padding: 19px;
  border-radius: var(--radius);
}

.bot-list {
  display: grid;
  gap: 8px;
}

.bot-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.bot-glyph {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(146, 113, 255, 0.18);
  border-radius: 11px;
  background: rgba(146, 113, 255, 0.06);
  color: var(--violet-bright);
  font-size: 11px;
  font-weight: 850;
}

.bot-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.bot-copy strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bot-copy small,
.bot-last-seen {
  color: var(--faint);
  font-size: 9px;
}

.status-distribution {
  display: grid;
  gap: 9px;
}

.distribution-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: center;
}

.distribution-copy {
  display: grid;
  grid-template-columns: 105px minmax(40px, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 9px;
}

.distribution-copy progress {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  appearance: none;
  background: rgba(255, 255, 255, 0.05);
}

.distribution-copy progress::-webkit-progress-bar {
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
}

.distribution-copy progress::-webkit-progress-value {
  border-radius: 99px;
  background: var(--violet);
}

.distribution-copy progress::-moz-progress-bar {
  border-radius: 99px;
  background: var(--violet);
}

.distribution-track {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
}

.distribution-track span {
  display: block;
  width: var(--fill, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--violet);
}

.distribution-row > strong {
  font-size: 10px;
  text-align: right;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  text-align: left;
}

.data-table th {
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  padding: 11px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: #c4c1ce;
  vertical-align: middle;
}

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

.data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.012);
}

.table-primary {
  display: flex;
  flex-direction: column;
}

.table-primary strong {
  color: var(--text);
  font-size: 10px;
}

.table-primary small {
  color: var(--faint);
  font-size: 8px;
}

.table-empty {
  padding: 32px !important;
  color: var(--faint) !important;
  text-align: center;
}

.section-toolbar {
  margin-bottom: 22px;
}

.section-toolbar h2 {
  font-size: 31px;
}

.catalog-admin-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 9px;
  margin-bottom: 14px;
}

.admin-search {
  max-width: 400px;
  margin: 0;
}

.select-shell {
  min-height: 44px;
  padding-inline: 10px;
}

.select-shell select {
  min-width: 150px;
  cursor: pointer;
  color: var(--muted);
  font-size: 10px;
}

.select-shell option {
  background: var(--panel-solid);
}

.catalog-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.catalog-cell .item-thumb {
  width: 35px;
  height: 35px;
  border-radius: 9px;
}

.table-actions {
  display: flex;
  justify-content: flex-end;
}

.icon-button {
  display: grid;
  width: 31px;
  height: 31px;
  cursor: pointer;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 12px;
}

.icon-button:hover {
  border-color: rgba(146, 113, 255, 0.25);
  color: var(--violet-bright);
}

.settings-form {
  display: grid;
  gap: 12px;
}

.settings-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.settings-card-heading {
  display: flex;
  gap: 10px;
}

.settings-card-heading > span {
  color: var(--violet-bright);
  font-size: 9px;
  font-weight: 800;
}

.settings-card-heading h3 {
  margin: 0;
  font-size: 13px;
}

.settings-card-heading p {
  margin: 3px 0 0;
  color: var(--faint);
  font-size: 9px;
}

.settings-fields {
  display: grid;
  gap: 12px;
}

.settings-fields-two {
  grid-template-columns: 1fr 1fr;
}

.settings-fields-four {
  grid-template-columns: repeat(4, 1fr);
}

.settings-fields label,
.dialog-form-grid label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.settings-fields label > span,
.dialog-form-grid label > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.settings-fields input,
.dialog-form-grid input {
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
  font-size: 11px;
}

.settings-fields input:focus,
.dialog-form-grid input:focus {
  border-color: rgba(146, 113, 255, 0.5);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(146, 113, 255, 0.08);
}

.settings-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  padding-top: 8px;
}

.settings-actions span {
  color: var(--green);
  font-size: 10px;
}

.editor-dialog,
.events-dialog {
  width: min(650px, calc(100% - 30px));
  padding: 25px;
  border-radius: 21px;
  background: #15151f;
}

.events-dialog {
  width: min(760px, calc(100% - 30px));
}

.dialog-topline h2 {
  margin: 4px 0 0;
  font-size: 21px;
}

.dialog-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.dialog-form-grid label small {
  color: var(--faint);
  font-size: 8px;
}

.dialog-full {
  grid-column: 1 / -1;
}

.toggle-label {
  display: flex !important;
  align-items: center;
  flex-direction: row !important;
  gap: 9px !important;
  cursor: pointer;
}

.toggle-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toggle-control {
  position: relative;
  width: 35px;
  height: 20px;
  border-radius: 99px;
  background: #343340;
  transition: background 150ms ease;
}

.toggle-control::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #aaa8b4;
  content: "";
  transition:
    transform 150ms ease,
    background 150ms ease;
}

.toggle-label input:checked + .toggle-control {
  background: rgba(146, 113, 255, 0.35);
}

.toggle-label input:checked + .toggle-control::after {
  background: var(--violet-bright);
  transform: translateX(15px);
}

.dialog-actions-right {
  display: flex;
  justify-content: flex-end;
}

.order-events {
  display: grid;
  max-height: 570px;
  gap: 0;
  overflow: auto;
  margin-top: 24px;
}

.event-row {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 0 0 20px;
}

.event-row:not(:last-child)::before {
  position: absolute;
  top: 13px;
  bottom: 0;
  left: 7px;
  width: 1px;
  background: var(--line);
  content: "";
}

.event-dot {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  border: 4px solid #15151f;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 1px rgba(146, 113, 255, 0.3);
}

.event-copy strong {
  display: block;
  font-size: 11px;
}

.event-copy pre {
  max-width: 520px;
  margin: 6px 0 0;
  overflow: auto;
  color: var(--faint);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

.event-row time {
  color: var(--faint);
  font-size: 8px;
  white-space: nowrap;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes scan {
  0%, 100% { transform: translateY(0); opacity: 0.25; }
  50% { transform: translateY(165px); opacity: 0.75; }
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(7px); }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 42px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .profile-confirmation {
    grid-template-columns: auto 1fr;
  }

  .profile-actions {
    grid-column: 1 / -1;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-card {
    min-height: 200px;
  }

  .process-icon {
    margin-bottom: 30px;
  }

  .settings-card {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .settings-fields-four {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 70px;
  }

  .hero-console {
    display: none;
  }

  .hero-copy,
  .username-card,
  .profile-confirmation {
    max-width: none;
  }

  .estimator-grid,
  .deal-layout,
  .gamepass-layout {
    grid-template-columns: 1fr;
  }

  .estimate-cart {
    position: static;
  }

  .deal-sidebar {
    grid-template-columns: 1fr 1fr;
    grid-row: 1;
  }

  .deal-main {
    grid-row: 2;
  }

  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    width: 240px;
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 20px 0 70px rgba(0, 0, 0, 0.5);
  }

  .admin-workspace {
    width: 100%;
  }

  .mobile-menu-button {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 10px;
    place-content: center;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
  }

  .mobile-menu-button span {
    display: block;
    width: 16px;
    height: 1px;
    background: var(--muted);
  }

  .admin-topbar > div:nth-child(2) {
    margin-right: auto;
    margin-left: 12px;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .settings-card {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 70px;
  }

  .shell,
  .site-header {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: var(--header-height);
  }

  .desktop-only {
    display: none;
  }

  .connection-pill {
    max-width: 170px;
  }

  .hero {
    padding-block: 55px 65px;
  }

  .hero h1 {
    margin-block: 19px 17px;
    font-size: clamp(40px, 12vw, 55px);
  }

  .hero-lead {
    font-size: 14px;
  }

  .field-action-row {
    grid-template-columns: 1fr;
  }

  .profile-confirmation {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .profile-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .split-heading {
    display: block;
  }

  .split-heading p {
    margin-top: 14px;
  }

  .estimator-section,
  .process-section {
    padding-block: 62px;
  }

  .catalog-panel,
  .estimate-cart,
  .deal-main {
    padding: 17px;
    border-radius: var(--radius);
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-card {
    min-height: 185px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer p {
    display: none;
  }

  .deal-view {
    padding-top: 22px;
  }

  .deal-toolbar,
  .deal-heading {
    align-items: flex-start;
  }

  .deal-toolbar .live-label {
    display: none;
  }

  .deal-heading {
    flex-direction: column;
    margin-bottom: 24px;
  }

  .deal-heading h1 {
    font-size: 34px;
  }

  .deal-stepper li {
    gap: 0;
  }

  .deal-stepper li small {
    position: absolute;
    top: 32px;
    left: 0;
    display: none;
  }

  .deal-stepper li.is-current small {
    display: block;
  }

  .deal-stepper {
    margin-bottom: 32px;
  }

  .deal-sidebar {
    grid-template-columns: 1fr;
  }

  .secret-card {
    display: none;
  }

  .state-message,
  .loading-state {
    min-height: 330px;
  }

  .vip-link-box {
    grid-template-columns: 1fr;
  }

  .vip-link-box span {
    display: none;
  }

  .offer-heading,
  .offer-footer {
    flex-direction: column;
  }

  .offer-items {
    grid-template-columns: 1fr;
  }

  .offer-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .offer-actions .button {
    width: 100%;
  }

  .gamepass-layout {
    gap: 28px;
  }

  .payout-card {
    grid-row: 1;
  }

  .dialog-actions {
    grid-template-columns: 1fr;
  }

  .toast-region {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }

  .admin-topbar {
    min-height: 70px;
    padding: 12px 15px;
  }

  .admin-topbar h1 {
    font-size: 16px;
  }

  .admin-breadcrumb,
  .admin-topbar .connection-pill {
    display: none;
  }

  .admin-topbar-actions {
    gap: 7px;
  }

  .admin-content {
    padding: 19px 14px 60px;
  }

  .metrics-grid,
  .admin-two-columns {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 115px;
  }

  .section-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-toolbar .button {
    width: 100%;
  }

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

  .admin-search {
    max-width: none;
  }

  .settings-fields-two,
  .settings-fields-four,
  .dialog-form-grid {
    grid-template-columns: 1fr;
  }

  .dialog-full {
    grid-column: auto;
  }

  .editor-dialog,
  .events-dialog {
    padding: 19px;
  }

  .event-row {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .event-row time {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
