:root {
  --primary: #AE00FF;
  --secondary: #1B002D;
  --accent: #6D00A8;
  --primary-rgb: 174, 0, 255;
  --secondary-rgb: 27, 0, 45;
  --accent-rgb: 109, 0, 168;
  --theme-angle: 135deg;
  --theme-gradient: linear-gradient(135deg, #AE00FF, #1B002D 52%, #6D00A8);
  --bg: #030305;
  --bg-soft: #08080d;
  --panel: rgba(13, 13, 19, 0.82);
  --panel-strong: rgba(18, 18, 26, 0.94);
  --panel-border: rgba(255, 255, 255, 0.11);
  --text: #f6f6f7;
  --muted: #a9a9b5;
  --muted-2: #747481;
  --white: #ffffff;
  --danger: #ff4d6d;
  --success: #54f0b1;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 28px 100px rgba(0, 0, 0, 0.55);
  --purple-shadow: 0 0 52px rgba(var(--primary-rgb), 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 5%, rgba(var(--primary-rgb), 0.18), transparent 30%),
    radial-gradient(circle at 90% 15%, rgba(var(--secondary-rgb), 0.34), transparent 32%),
    linear-gradient(180deg, #050507 0%, #020204 55%, #000 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

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

img {
  display: block;
}

.site-noise {
  position: fixed;
  inset: 0;
  z-index: -4;
  opacity: 0.055;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.7) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: screen;
}

.background-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.spotlight {
  position: fixed;
  width: 520px;
  height: 520px;
  z-index: -2;
  pointer-events: none;
  filter: blur(30px);
  border-radius: 999px;
  opacity: 0.5;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.32), transparent 62%);
  animation: floatGlow 9s ease-in-out infinite;
}

.spotlight--left {
  top: 110px;
  left: -220px;
}

.spotlight--right {
  right: -250px;
  bottom: 60px;
  background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.42), transparent 66%);
  animation-delay: -3s;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 50;
  width: min(1180px, calc(100% - 34px));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(7, 7, 11, 0.72);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
}

.brand,
.card-title-row,
.secondary-button,
.primary-button,
.ghost-button,
.logout-button,
.account-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand {
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--white);
}

.brand__mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.24), rgba(255,255,255,0.08));
  border: 1px solid rgba(var(--primary-rgb), 0.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 0 32px rgba(var(--primary-rgb), 0.16);
}

.brand__mark img,
.card-title-row img,
.secondary-button img,
.primary-button img,
.feature-card img,
.input-with-icon img,
.modal__close img {
  width: 20px;
  height: 20px;
}

.brand__text {
  font-size: 18px;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255,255,255,0.06);
}

.topbar__nav a,
button.account-link {
  font-family: inherit;
  cursor: pointer;
}

.account-link,
.logout-button {
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  transition: 0.22s ease;
}

.topbar__nav a:hover,
.account-link:hover,
.logout-button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.account-link,
.logout-button {
  border: 1px solid rgba(var(--primary-rgb), 0.36);
  color: var(--white);
  background: rgba(var(--primary-rgb), 0.1);
}

.logout-button {
  cursor: pointer;
}

main {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 42px;
  padding: 72px 0 48px;
}

.hero__content {
  position: relative;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 900;
  opacity: 0.86;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 999px;
  background: var(--theme-gradient);
  box-shadow: 0 0 22px rgba(var(--primary-rgb), 0.78);
}

.hero h1,
.page-title,
.process h2 {
  margin: 0;
  letter-spacing: -0.075em;
  line-height: 0.93;
  color: var(--white);
}

.hero h1 {
  max-width: 790px;
  font-size: clamp(46px, 8vw, 98px);
}

.hero h1::after,
.page-title::after {
  content: "";
  display: block;
  width: 144px;
  height: 2px;
  margin-top: 24px;
  background: var(--theme-gradient);
  box-shadow: var(--purple-shadow);
}

.hero-text {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.primary-button,
.secondary-button,
.ghost-button,
.archive-button,
.restore-button,
.danger-button,
.tab-button {
  border: 0;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.primary-button {
  justify-content: center;
  padding: 15px 22px;
  color: var(--white);
  border-radius: 999px;
  background: var(--theme-gradient);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset, var(--purple-shadow);
}

.primary-button--hero {
  min-width: 186px;
  min-height: 58px;
  font-size: 16px;
}

.primary-button--wide {
  width: 100%;
  justify-content: center;
}

.secondary-button,
.ghost-button {
  padding: 14px 18px;
  color: var(--white);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

.secondary-button:hover,
.ghost-button:hover,
.primary-button:hover,
.archive-button:hover,
.restore-button:hover,
.danger-button:hover,
.tab-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset, 0 0 72px rgba(var(--primary-rgb), 0.34);
}

.primary-button:disabled,
.secondary-button:disabled,
.archive-button:disabled,
.restore-button:disabled,
.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.hero-panel {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.1);
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--primary-rgb), 0.22), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.54));
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: 60px;
  right: 48px;
  border-radius: 44px;
  background: var(--theme-gradient);
  filter: blur(1px);
  transform: rotate(24deg);
  opacity: 0.78;
  box-shadow: 0 0 90px rgba(var(--primary-rgb), 0.36);
  animation: rotateCube 10s linear infinite;
}

.code-card {
  position: absolute;
  z-index: 1;
  left: 30px;
  right: 30px;
  bottom: 30px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.13);
  background: rgba(5, 5, 8, 0.78);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.42);
}

.code-card__top {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.code-card__top span {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: rgba(255,255,255,0.2);
}

.code-card__top span:first-child {
  background: var(--primary);
  box-shadow: 0 0 18px rgba(var(--primary-rgb), 0.6);
}

.code-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
}

.code-line b {
  color: var(--white);
}

.code-line span {
  color: rgba(var(--primary-rgb), 0.95);
}

.code-pulse {
  height: 3px;
  margin-top: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: scan 2.6s ease-in-out infinite;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 22px 0 58px;
}

.feature-card,
.admin-card,
.orders-card,
.auth-card,
.modal__window,
.process,
.order-item {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 232px;
  padding: 26px;
  border-radius: var(--radius-lg);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--primary-rgb), 0.44);
  background: rgba(18, 18, 28, 0.9);
}

.feature-card img {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(var(--primary-rgb), 0.13);
  border: 1px solid rgba(var(--primary-rgb), 0.22);
}

.feature-card h2,
.process h2,
.modal__window h2,
.admin-card h3,
.orders-card h3 {
  margin: 18px 0 10px;
  letter-spacing: -0.04em;
  color: var(--white);
}

.feature-card p,
.process p,
.modal__hint,
.admin-subtitle,
.auth-subtitle,
.small-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.process {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  margin: 0 0 80px;
  padding: 30px;
  border-radius: var(--radius-xl);
}

.process h2 {
  font-size: clamp(32px, 4vw, 54px);
}

.process-grid {
  display: grid;
  gap: 12px;
}

.process-grid article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.process-grid span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 950;
  background: var(--theme-gradient);
  color: var(--white);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(18px);
}

.modal__window {
  position: relative;
  width: min(740px, 100%);
  max-height: min(860px, 92vh);
  overflow: auto;
  border-radius: var(--radius-xl);
  padding: 30px;
  background:
    radial-gradient(circle at 20% 0%, rgba(var(--primary-rgb), 0.2), transparent 34%),
    rgba(10, 10, 15, 0.96);
  animation: modalPop 0.24s ease both;
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
}

.form-grid,
.theme-form,
.auth-card form,
#passwordForm,
.rate-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field--full,
.form-message,
.primary-button--wide {
  grid-column: 1 / -1;
}

.label {
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  color: var(--white);
  outline: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.055);
  padding: 15px 16px;
  transition: 0.2s ease;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

input:focus,
textarea:focus {
  border-color: rgba(var(--primary-rgb), 0.74);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
  background: rgba(255,255,255,0.075);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,0.34);
}

.field small {
  color: var(--muted-2);
}

.input-with-icon {
  position: relative;
  display: block;
}

.input-with-icon img {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.86;
}

.input-with-icon input {
  padding-left: 46px;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-card {
  cursor: pointer;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 62px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  font-weight: 900;
  transition: 0.2s ease;
}

.choice-card span img {
  width: 22px;
  height: 22px;
}

.choice-card input:checked + span {
  color: var(--white);
  border-color: rgba(var(--primary-rgb), 0.56);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.18), rgba(255,255,255,0.06));
  box-shadow: 0 0 38px rgba(var(--primary-rgb), 0.14);
}

.form-message {
  display: none;
  padding: 13px 15px;
  border-radius: 16px;
  font-weight: 750;
  line-height: 1.45;
}

.form-message.is-visible {
  display: block;
}

.form-message.is-error {
  color: #ffd7df;
  border: 1px solid rgba(255, 77, 109, 0.34);
  background: rgba(255, 77, 109, 0.1);
}

.form-message.is-success {
  color: #d9ffef;
  border: 1px solid rgba(84, 240, 177, 0.28);
  background: rgba(84, 240, 177, 0.1);
}

.auth-page,
.admin-page {
  min-height: 100vh;
}

.auth-card {
  width: min(480px, calc(100% - 34px));
  margin: 90px auto 0;
  padding: 30px;
  border-radius: var(--radius-xl);
}

.page-title {
  font-size: clamp(38px, 5vw, 70px);
}

.auth-subtitle,
.admin-subtitle {
  margin-top: 20px;
}

.admin-shell {
  padding: 54px 0 80px;
}

.admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.button-fit {
  flex: 0 0 auto;
}

.admin-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.settings-column {
  display: grid;
  gap: 18px;
}

.admin-card,
.orders-card {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.card-title-row {
  gap: 12px;
}

.card-title-row img {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 11px;
  background: rgba(var(--primary-rgb), 0.12);
}

.admin-card h3,
.orders-card h3 {
  margin: 0;
}

.theme-mini-preview,
.theme-preview {
  min-height: 74px;
  display: grid;
  place-items: center;
  margin: 18px 0;
  border-radius: 20px;
  color: var(--white);
  font-weight: 950;
  background: var(--theme-gradient);
  box-shadow: var(--purple-shadow);
}

.theme-preview {
  min-height: 130px;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.theme-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.color-field input[type="color"] {
  padding: 6px;
  height: 54px;
  cursor: pointer;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--primary);
}

.switch-field {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--white);
}

.switch-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-field span {
  width: 52px;
  height: 30px;
  position: relative;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.08);
  transition: 0.2s ease;
}

.switch-field span::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  top: 3px;
  left: 4px;
  border-radius: 999px;
  background: var(--white);
  transition: 0.2s ease;
}

.switch-field input:checked + span {
  background: var(--theme-gradient);
  border-color: rgba(var(--primary-rgb), 0.45);
}

.switch-field input:checked + span::after {
  transform: translateX(21px);
}

.orders-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.small-text {
  font-size: 14px;
  margin-top: 8px;
}

.orders-tabs {
  display: flex;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.tab-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
}

.tab-button.is-active {
  color: var(--white);
  background: var(--theme-gradient);
}

.tab-button span {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}

.orders-list {
  display: grid;
  gap: 14px;
}

.empty-state {
  padding: 30px;
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.13);
}

.order-item {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.045);
  box-shadow: none;
  animation: itemIn 0.25s ease both;
}

.order-item__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.order-item__top strong {
  color: var(--white);
}

.badge {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  background: rgba(var(--primary-rgb), 0.16);
  border: 1px solid rgba(var(--primary-rgb), 0.34);
}

.order-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.order-meta b {
  color: var(--white);
}

.order-description {
  margin: 16px 0;
  padding: 16px;
  border-radius: 18px;
  color: var(--text);
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.08);
}

.order-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.archive-button,
.restore-button,
.danger-button {
  padding: 12px 15px;
  border-radius: 999px;
  color: var(--white);
}

.archive-button {
  background: rgba(var(--primary-rgb), 0.18);
  border: 1px solid rgba(var(--primary-rgb), 0.34);
}

.restore-button {
  background: rgba(84, 240, 177, 0.14);
  border: 1px solid rgba(84, 240, 177, 0.28);
}

.danger-button {
  background: rgba(255, 77, 109, 0.13);
  border: 1px solid rgba(255, 77, 109, 0.32);
}

@keyframes modalPop {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes itemIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, -24px, 0) scale(1.08); }
}

@keyframes rotateCube {
  to { transform: rotate(384deg); }
}

@keyframes scan {
  0%, 100% { opacity: 0.4; transform: translateX(-8px); }
  50% { opacity: 1; transform: translateX(8px); }
}

.animate-drop {
  animation: dropIn 0.55s ease both;
}

.animate-pop {
  animation: popIn 0.68s ease both;
}

.animate-rise {
  animation: riseIn 0.72s ease both;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 980px) {
  .topbar__nav {
    display: none;
  }

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

  .hero {
    padding-top: 56px;
  }

  .hero-panel {
    min-height: 360px;
  }

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

  .admin-header,
  .orders-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .orders-tabs {
    width: 100%;
  }

  .tab-button {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .topbar {
    top: 10px;
    width: min(100% - 20px, 1180px);
    margin-top: 10px;
  }

  .brand__text {
    font-size: 16px;
  }

  .account-link,
  .logout-button {
    padding: 9px 12px;
  }

  main {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    min-height: auto;
    padding: 54px 0 30px;
  }

  .hero h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .form-grid,
  .choice-row,
  .theme-form,
  .order-meta {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 10px;
  }

  .modal__window,
  .auth-card,
  .admin-card,
  .orders-card,
  .process {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-panel::after {
    right: 18px;
  }
}

.ghost-button--wide {
  justify-content: center;
  width: 100%;
}

.code-step {
  display: grid;
  gap: 14px;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.modal,
.modal__window,
.form-grid,
.admin-shell,
.hero,
.process,
.orders-card,
.auth-card {
  max-width: 100%;
}

.modal__window {
  overflow-x: hidden;
}


/* Login/verify hard fix */
[hidden] {
  display: none !important;
}

.auth-card form {
  gap: 16px;
}

.auth-card input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}
