:root {
  --accent: #823fff;
  --accent-2: #a85cff;
  --text: #f5f5f5;
  --muted: rgba(255, 255, 255, 0.58);
  --dim: rgba(255, 255, 255, 0.34);
  --field: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.09);
  --panel: rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, sans-serif;
  color: var(--text);
  background: #000;
  font-size: 14px;
}

body {
  --page-bg: url('image/main.png?v=2');
  min-height: 100vh;
  overflow-x: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-bottom: 0;
}

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

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

.bg-photo,
.bg-metal,
.bg-ribs,
.bg-rings,
.bg-grid {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.bg-photo {
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)), var(--page-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-metal {
  width: 560px;
  height: 560px;
  opacity: 0.72;
  filter: contrast(1.15) brightness(0.78) blur(0.3px);
  background:
    linear-gradient(126deg, transparent 0 20%, rgba(255,255,255,.18) 21%, transparent 33%),
    linear-gradient(22deg, transparent 0 25%, rgba(255,255,255,.22) 26%, transparent 40%),
    radial-gradient(ellipse at 34% 24%, rgba(255,255,255,.48), transparent 18%),
    radial-gradient(ellipse at 68% 66%, rgba(255,255,255,.28), transparent 24%),
    conic-gradient(from 34deg at 48% 50%, #020202, #242424, #050505, #515151, #000, #1b1b1b, #020202);
  clip-path: polygon(0 12%, 72% 0, 100% 28%, 78% 80%, 26% 100%, 0 64%);
  mix-blend-mode: screen;
}

.bg-metal,
.bg-ribs,
.bg-rings {
  display: none;
}

.bg-metal-left {
  left: -210px;
  top: -90px;
  transform: rotate(-14deg);
}

.bg-metal-right {
  right: -190px;
  top: 255px;
  transform: rotate(16deg) scale(1.04);
}

.bg-ribs {
  left: 50%;
  top: -45px;
  width: 620px;
  height: 260px;
  transform: translateX(22%);
  opacity: 0.25;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.12), transparent 62%);
}

.bg-rings {
  left: 50%;
  top: -26px;
  width: 520px;
  height: 210px;
  transform: translateX(36%);
  opacity: 0.28;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 20px, rgba(255,255,255,.18) 22px 24px, transparent 26px 54px, rgba(255,255,255,.18) 56px 58px, transparent 60px 90px, rgba(255,255,255,.16) 92px 95px, transparent 97px 132px, rgba(255,255,255,.14) 134px 136px, transparent 138px);
}

.bg-grid {
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 92%, transparent 100%);
}

body.page-home,
body.page-reviews,
body.page-login,
body.page-register {
  --page-bg: url('image/main.png?v=2');
}

body.page-products {
  --page-bg: url('image/products.png?v=2');
}

body.page-profile,
body.page-tickets,
body.page-admin {
  --page-bg: url('image/cabinet.png?v=2');
}

.topbar {
  position: relative;
  z-index: 2;
  width: 1320px;
  max-width: calc(100% - 32px);
  height: 58px;
  margin: 10px auto 0;
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  align-items: center;
}

.brand {
  font-size: 12px;
  font-weight: 700;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 29px;
  font-size: 12px;
  font-weight: 600;
}

.nav-link {
  color: #fff;
  line-height: 1;
  transition: color .16s ease;
}

.nav-link.active,
.nav-link:hover {
  color: var(--accent-2);
}

.topbar-auth {
  display: flex;
  justify-content: flex-end;
}

.login-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 26px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(180deg, #aa69ff, #6d28f5);
  box-shadow: 0 10px 22px rgba(117, 45, 255, .28);
}

.site-shell {
  position: relative;
  z-index: 1;
  width: 1320px;
  max-width: calc(100% - 32px);
  min-height: calc(100vh - 180px);
  margin: 16px auto 0;
}

.page-section {
  animation: pageIn .22s ease both;
  min-height: auto;
  padding-bottom: 12px;
}

.client-stage {
  width: 1220px;
  margin: 0 auto;
}

.client-window {
  width: 1220px;
  height: 680px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(0,0,0,.66);
  box-shadow: 0 24px 70px rgba(0,0,0,.7);
}

.client-sidebar,
.client-main {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.62);
}

.client-sidebar {
  position: relative;
  padding: 12px;
  border-radius: 6px;
}

.client-main {
  padding: 12px;
  border-radius: 6px;
  overflow: hidden;
}

.client-label {
  margin-bottom: 7px;
  color: rgba(255,255,255,.42);
  font-size: 10px;
}

.client-label.gap {
  margin-top: 11px;
}

.side-item {
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  margin-bottom: 4px;
  border-radius: 4px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
}

.side-item.active {
  color: #fff;
  background: rgba(255,255,255,.13);
}

.side-profile {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}

.side-profile span {
  display: block;
  color: rgba(255,255,255,.55);
  font-size: 10px;
  margin-top: 2px;
}

.mini-avatar,
.profile-avatar {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.24), transparent 18%),
    radial-gradient(circle at 62% 58%, rgba(0,0,0,.32), transparent 28%),
    linear-gradient(135deg, #7b245f, #251137);
}

.mini-avatar {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.client-toolbar {
  height: 40px;
  display: grid;
  grid-template-columns: 92px 1fr 22px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 5px;
  padding: 0 11px;
  margin-bottom: 8px;
}

.client-toolbar b {
  font-size: 12px;
}

.client-toolbar span {
  color: rgba(255,255,255,.55);
  font-size: 10px;
}

.client-toolbar i {
  width: 13px;
  height: 13px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
}

.modules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.module-card {
  min-height: 55px;
  margin-bottom: 7px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  background: rgba(0,0,0,.24);
}

.module-card.big {
  min-height: 370px;
}

.module-card h4,
.color-popover h4 {
  margin: 0 0 5px;
  font-size: 13px;
}

.module-card p {
  margin: 0;
  color: rgba(255,255,255,.55);
  font-size: 10px;
  line-height: 1.25;
}

.check-line {
  height: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.switch {
  width: 24px;
  height: 15px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  position: relative;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
}

.switch.on {
  background: var(--accent);
}

.switch.on::after {
  left: 12px;
}

.purple-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
}

.items-title {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.select-row {
  height: 24px;
  margin: 6px 0 4px;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 4px;
  color: rgba(255,255,255,.62);
  font-size: 10px;
}

.link-purple {
  display: block;
  color: #9c55ff;
  font-size: 10px;
  margin: 4px 0;
}

.module-stack.right {
  position: relative;
}

.color-popover {
  position: absolute;
  left: -12px;
  top: 178px;
  width: 188px;
  height: 205px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 6px;
  background: rgba(0,0,0,.9);
  box-shadow: 0 12px 42px rgba(0,0,0,.7);
}

.site-color-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.color-popover .switch {
  position: absolute;
  right: -62px;
  top: 25px;
}

.color-box {
  display: block;
  cursor: pointer;
  height: 95px;
  border-radius: 4px;
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background:
    linear-gradient(90deg, #fff, var(--accent)),
    linear-gradient(180deg, transparent, #000);
  background-blend-mode: multiply;
}

.color-meta {
  display: flex;
  gap: 9px;
  align-items: center;
  color: rgba(255,255,255,.56);
  font-size: 11px;
  margin-top: 7px;
}

.color-meta b {
  color: #fff;
  width: 33px;
}

.color-popover small {
  display: block;
  color: rgba(255,255,255,.28);
  margin-top: 10px;
  font-size: 10px;
}

.wide-purple,
.outline-wide {
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.wide-purple {
  margin-top: 12px;
  background: linear-gradient(180deg, #a967ff, #7625fb);
  box-shadow: 0 16px 34px rgba(118,37,251,.28);
}

.outline-wide {
  border: 1px solid rgba(255,255,255,.82);
  background: rgba(0,0,0,.22);
}

.product-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.product-copy h1 {
  margin: 0 0 10px;
  font-size: 34px;
}

.product-copy p {
  width: 360px;
  max-width: 100%;
  margin: 0 auto;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.tariffs-section {
  width: 1220px;
  max-width: 100%;
  margin: 14px auto 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(0, 0, 0, .58);
}

.tariffs-section h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.product-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
}

.product-card h3 {
  margin: 0;
  font-size: 18px;
}

.product-price {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}

.product-description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.center-title {
  margin: 44px 0 20px;
  text-align: center;
  color: var(--accent-2);
  font-size: 18px;
  font-weight: 700;
}

.review-frame {
  position: relative;
  width: 1220px;
  max-width: 100%;
  height: 560px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 9px;
  background: #111;
}

.review-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.72) saturate(.86);
}

.watch-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translate(-50%, -50%);
  height: 35px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.watch-btn span {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fff;
}

.profile-top {
  text-align: center;
  margin: 2px 0 24px;
}

.profile-avatar {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
}

.profile-top h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1;
}

.profile-top span {
  color: #7fff2a;
  font-size: 11px;
  font-weight: 700;
}

.profile-form {
  width: min(1220px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  padding: 0 17px 19px;
  background: rgba(0,0,0,.62);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
}

#page-profile .profile-form {
  gap: 12px 12px;
  padding: 14px;
  background: rgba(0,0,0,.6);
  box-shadow: 0 16px 40px rgba(0,0,0,.42);
}

#page-profile .form-col {
  gap: 7px;
}

#page-profile .form-col label {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

#page-profile .form-col label:not(:first-child) {
  margin-top: 8px;
}

#page-profile .profile-form input,
#page-profile .profile-form .fake-input,
#page-profile .profile-form .admin-input {
  height: 34px;
  font-size: 13px;
}

#page-profile #activate-key-form {
  display: grid;
  gap: 7px;
}

#page-profile #change-password-form {
  display: grid;
  gap: 7px;
}

#page-profile #change-password-form .form-error,
#page-profile #change-password-form .form-success {
  margin-top: 0;
}

#page-profile .profile-change-password-btn {
  width: 100%;
  margin-top: 2px;
}

#page-profile .profile-form > .outline-wide,
#page-profile .profile-form > .wide-purple {
  margin-top: 2px;
  height: 36px;
}

.form-col {
  display: flex;
  flex-direction: column;
}

label {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.form-col label:not(:first-child) {
  margin-top: 12px;
}

input,
textarea,
select,
.fake-input,
.admin-input {
  width: 100%;
  height: 33px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  outline: none;
  color: rgba(255,255,255,.78);
  background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.08));
  font-size: 12px;
}

textarea {
  height: auto;
  min-height: 84px;
  padding: 12px 14px;
  border-radius: 12px;
}

.fake-input {
  display: flex;
  align-items: center;
}

.mono {
  font-family: Consolas, monospace;
}

.hidden-field {
  display: none;
}

.auth-card,
.admin-card {
  width: 520px;
  max-width: 100%;
  margin: 0 auto;
  padding: 22px;
  border-radius: 8px;
  background: rgba(0,0,0,.7);
  border: 1px solid rgba(255,255,255,.08);
}

.admin-card {
  width: 1220px;
}

.auth-card h2,
.section-line h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.auth-switch {
  color: var(--muted);
  text-align: center;
}

.auth-switch a {
  color: var(--accent-2);
}

.form-error,
.form-success {
  min-height: 28px;
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 12px;
}

.form-error {
  color: #ff7b93;
  background: rgba(255, 71, 103, .12);
  border: 1px solid rgba(255, 71, 103, .25);
}

.form-success {
  color: #89ff9d;
  background: rgba(89,255,120,.1);
  border: 1px solid rgba(89,255,120,.22);
}

.section-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ticket-form,
.ticket-card {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.ticket-header {
  display: flex;
  justify-content: space-between;
}

.ticket-status {
  color: var(--accent-2);
}

.admin-tabs,
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-tab {
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.7);
  cursor: pointer;
}

.admin-tab.active {
  color: #fff;
  border-color: var(--accent);
}

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

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: left;
  font-size: 12px;
}

.admin-table th {
  color: rgba(255,255,255,.48);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.admin-stats-card,
.admin-chart,
.dashboard-card {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.admin-chart {
  min-height: 160px;
  margin-top: 10px;
  display: flex;
  align-items: end;
  gap: 8px;
}

.admin-chart-bar {
  flex: 1;
  min-height: 10px;
  background: linear-gradient(180deg, #a35cff, #7130fb);
  border-radius: 4px 4px 0 0;
  position: relative;
}

.admin-chart-count,
.admin-chart-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
}

.admin-chart-count {
  top: -17px;
}

.admin-chart-label {
  bottom: -16px;
  color: rgba(255,255,255,.48);
}

.role-badge {
  color: var(--accent-2);
}

.btn-primary,
.btn-danger,
.button-primary,
.button-secondary {
  min-height: 30px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary,
.button-primary {
  background: linear-gradient(180deg, #a967ff, #7625fb);
}

.btn-danger {
  background: rgba(255, 77, 105, .18);
  color: #ff8da0;
  border: 1px solid rgba(255, 77, 105, .25);
}

.button-secondary {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}

.ticket-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.75);
  z-index: 10;
}

.ticket-modal-card {
  width: 620px;
  max-width: calc(100% - 24px);
  padding: 18px;
  border-radius: 8px;
  background: #050505;
  border: 1px solid rgba(255,255,255,.1);
}

.footer {
  position: relative;
  z-index: 1;
  width: 1320px;
  max-width: calc(100% - 32px);
  margin: 16px auto 22px;
  display: grid;
  grid-template-columns: 1fr 94px 94px;
  gap: 30px;
  color: #fff;
  font-size: 11px;
}

.footer span,
.footer a {
  display: block;
  margin-top: 7px;
  color: rgba(255,255,255,.58);
  font-size: 10px;
}

.footer-links b {
  font-size: 12px;
}

#page-login,
#page-register {
  display: grid;
  place-items: center;
}

#page-login .auth-card,
#page-register .auth-card {
  width: 600px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.52);
  box-shadow: 0 14px 44px rgba(0,0,0,.64);
  padding: 18px 18px 14px;
}

#page-login .auth-card h2,
#page-register .auth-card h2 {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

#page-login label,
#page-register label {
  margin: 7px 0 5px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

#page-login input,
#page-register input {
  height: 40px;
  font-size: 15px;
  background: linear-gradient(90deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
}

#page-login .wide-purple,
#page-register .wide-purple {
  height: 40px;
  margin-top: 10px;
  font-size: 13px;
}

#page-login .auth-switch,
#page-register .auth-switch {
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.2;
}

#page-login .auth-switch a,
#page-register .auth-switch a {
  font-size: 13px;
}

.footer {
  align-items: start;
}

.footer > div {
  line-height: 1.25;
}

.footer span,
.footer a {
  margin-top: 4px;
}

.home-review-frame {
  margin-top: 0;
}

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

@media (max-width: 760px) {
  .topbar {
    height: auto;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 14px;
  }

  .topbar-auth {
    justify-content: center;
  }

  .site-shell {
    margin-top: 34px;
  }

  .client-stage,
  .client-window {
    width: 100%;
  }

  .client-window {
    height: auto;
    grid-template-columns: 1fr;
  }

  .client-sidebar {
    display: none;
  }

  .modules-grid,
  .profile-form {
    grid-template-columns: 1fr;
  }

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

  .tariffs-section {
    padding: 10px;
  }

  .color-popover {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
  }

  .review-frame {
    height: 280px;
  }

  .footer,
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes floatBg {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.03) translate3d(0, -8px, 0);
  }
  100% {
    transform: scale(1) translate3d(0, 0, 0);
  }
}

@keyframes gridShift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 26px 22px, 22px 26px;
  }
}

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

@keyframes softPulse {
  0% {
    box-shadow: 0 10px 22px rgba(117, 45, 255, .18);
  }
  50% {
    box-shadow: 0 16px 34px rgba(117, 45, 255, .35);
  }
  100% {
    box-shadow: 0 10px 22px rgba(117, 45, 255, .18);
  }
}

.bg-photo {
  transform-origin: center;
  animation: floatBg 24s ease-in-out infinite;
  transition: background-image .45s ease, opacity .45s ease;
}

.bg-grid {
  animation: gridShift 18s linear infinite;
}

.topbar,
.footer,
.profile-top,
.review-frame,
.client-window,
.auth-card,
.admin-card,
.ticket-modal-card {
  animation: fadeUp .38s ease both;
}

.footer {
  animation-delay: .12s;
}

.nav-link,
.login-pill,
.wide-purple,
.outline-wide,
.btn-primary,
.btn-danger,
.button-primary,
.button-secondary,
.admin-tab,
.side-item,
.module-card,
.client-sidebar,
.client-main,
.ticket-form,
.ticket-card,
.admin-stats-card,
.admin-chart,
.dashboard-card,
.auth-card,
.admin-card,
.ticket-modal-card,
input,
textarea,
select,
.fake-input,
.admin-input {
  transition:
    transform .18s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background-color .22s ease,
    color .22s ease,
    opacity .22s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.login-pill,
.wide-purple,
.btn-primary,
.button-primary {
  animation: softPulse 3.2s ease-in-out infinite;
}

.login-pill:hover,
.wide-purple:hover,
.btn-primary:hover,
.button-primary:hover {
  transform: translateY(-1px) scale(1.01);
}

.outline-wide:hover,
.button-secondary:hover,
.admin-tab:hover,
.side-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .09);
}

.module-card:hover,
.client-sidebar:hover,
.client-main:hover,
.ticket-form:hover,
.ticket-card:hover,
.admin-stats-card:hover,
.admin-chart:hover,
.dashboard-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .36);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(149, 94, 255, .52);
  box-shadow: 0 0 0 1px rgba(149, 94, 255, .28), 0 8px 22px rgba(86, 44, 186, .26);
  transform: translateY(-1px);
}

.form-error,
.form-success {
  animation: fadeUp .24s ease both;
}

.admin-table tbody tr {
  transition: background-color .16s ease;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, .04);
}

.modules-grid .module-card:nth-child(1),
.modules-grid .module-card:nth-child(2) {
  animation: fadeUp .34s ease both;
}

.modules-grid .module-card:nth-child(3),
.modules-grid .module-card:nth-child(4) {
  animation: fadeUp .34s ease .04s both;
}

.modules-grid .module-card:nth-child(5),
.modules-grid .module-card:nth-child(6) {
  animation: fadeUp .34s ease .08s both;
}

.review-frame img {
  transition: transform .55s ease, filter .28s ease;
}

.review-frame:hover img {
  transform: scale(1.03);
  filter: brightness(.78) saturate(.92);
}

.watch-btn {
  transition: transform .2s ease, background-color .2s ease;
}

.watch-btn:hover {
  transform: translate(-50%, -50%) scale(1.03);
  background: rgba(0, 0, 0, .88);
}

.ticket-modal {
  animation: fadeUp .18s ease both;
}

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