* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "Segoe UI", sans-serif;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: #050816;
  overscroll-behavior: none;
}

:root {
  --primary-color: #c6c3c3;
  --second-color: #ffffff;
  --black-color: #000000;
  --panel-border: rgba(255, 255, 255, 0.92);
}

body {
  min-height: 100vh;
  background: #050816;
  overflow-x: hidden;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(111, 92, 255, 0.14), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(43, 121, 255, 0.1), transparent 34%),
    #050816;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  background: transparent;
  pointer-events: none;
}

#tsparticles {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

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

a:hover {
  text-decoration: underline;
}

.brand {
  position: fixed;
  top: 24px;
  left: 28px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--second-color);
  text-decoration: none;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.brand-mark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: block;
  width: auto;
  height: 42px;
  max-width: min(240px, calc(100vw - 92px));
  object-fit: contain;
  filter:
    drop-shadow(0 0 7px rgba(255, 255, 255, 0.62))
    drop-shadow(0 0 20px rgba(111, 92, 255, 0.42));
  animation: logoGlow 2.6s ease-in-out infinite;
}

@keyframes logoGlow {
  0%,
  100% {
    opacity: 0.92;
    transform: translateZ(0) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateZ(0) scale(1.018);
  }
}

.wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100svh;
  padding: 96px 20px 64px;
  background: transparent;
}

.signin-page .wrapper {
  min-height: 100svh;
  padding: 76px 20px;
}

.signin-page .site-footer {
  bottom: 54px;
  color: rgba(190, 199, 216, 0.78);
  font-size: 16px;
}

.signin-page .site-footer a {
  color: #fff4d8;
  font-weight: 900;
  text-decoration: none;
}

.signin-page .site-footer a:hover {
  color: #ffffff;
}

.signin-card {
  width: min(462px, 100%);
  padding: 36px 30px 30px;
  border: 1px solid rgba(121, 132, 159, 0.24);
  border-radius: 32px;
  transform: translateY(54px);
  background:
    linear-gradient(180deg, rgba(22, 27, 43, 0.9), rgba(9, 13, 25, 0.92)),
    rgba(9, 13, 25, 0.92);
  color: #fff4c8;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.44),
    inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.signin-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.signin-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.025),
    0 14px 34px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.signin-avatar img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.signin-heading h1 {
  color: #fff4d8;
  font-size: 29px;
  line-height: 1.04;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(255, 244, 216, 0.12);
}

.signin-heading p {
  margin-top: 8px;
  color: rgba(202, 210, 229, 0.78);
  font-size: 19px;
  font-weight: 700;
}

.signin-field {
  padding: 16px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.signin-field + .signin-field {
  margin-top: 24px;
}

.signin-field label {
  display: block;
  margin-bottom: 13px;
  color: #fff4d8;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.signin-field input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(30, 36, 54, 0.2);
  border-radius: 15px;
  outline: none;
  background: #fff4d8;
  color: #141722;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.signin-field input::placeholder {
  color: rgba(20, 23, 34, 0.62);
}

.signin-submit {
  width: 100%;
  height: 60px;
  margin-top: 28px;
  border: 1px solid rgba(226, 240, 255, 0.42);
  border-radius: 18px;
  background: linear-gradient(180deg, #a9c2dc, #86a4c4);
  color: #141722;
  font-size: 19px;
  font-weight: 950;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 18px 42px rgba(40, 86, 132, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.18s, filter 0.18s;
}

.signin-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.signin-page .form-message {
  margin: 18px 0 0;
}

.auth-box {
  position: relative;
  width: min(450px, 100%);
  padding: 7.5em 2.5em 4em;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
  border: 2px solid var(--panel-border);
  border-radius: 15px;
  color: var(--second-color);
  box-shadow:
    0 0 10px 2px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 0 22px rgba(255, 255, 255, 0.24);
  overflow: hidden;
}

.auth-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.12),
    0 0 18px rgba(255, 255, 255, 0.18);
}

.register-box {
  width: min(480px, 100%);
  padding-bottom: 3.2em;
}

.reset-box {
  width: min(460px, 100%);
  padding-bottom: 3.2em;
}

.login-header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  height: 70px;
  width: 140px;
  border-radius: 0 0 20px 20px;
}

.register-header {
  width: 180px;
}

.reset-header {
  width: 150px;
}

.login-header span {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: var(--black-color);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.login-header span::after {
  content: "";
  display: block;
  width: 38px;
  height: 2px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.login-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -30px;
  width: 30px;
  height: 30px;
  border-top-right-radius: 50%;
  box-shadow: 15px 0 0 0 var(--primary-color);
  background: transparent;
}

.login-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: -30px;
  width: 30px;
  height: 30px;
  border-top-left-radius: 50%;
  box-shadow: -15px 0 0 0 var(--primary-color);
  background: transparent;
}

.input-box {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 20px 0;
}

.input-field {
  width: 100%;
  height: 55px;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.08);
  color: var(--second-color);
  padding-inline: 20px 50px;
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  outline: none;
}

.label {
  position: absolute;
  top: 15px;
  left: 20px;
  transition: 0.2s;
}

.input-field:focus ~ .label,
.input-field:valid ~ .label {
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 14px;
  border-radius: 30px;
  padding: 0 10px;
  background-color: var(--primary-color);
  color: var(--black-color);
}

.icon {
  position: absolute;
  top: 18px;
  right: 25px;
  font-size: 20px;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 15px;
}

.register-options {
  justify-content: flex-start;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-copy {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

.input-submit {
  width: 100%;
  background: #ececec;
  color: #111111;
  font-size: 16px;
  font-weight: 500;
  height: 50px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

.input-submit:hover {
  background: var(--second-color);
  transform: translateY(-1px);
}

.register {
  text-align: center;
}

.register a {
  font-weight: 500;
}

.form-message {
  min-height: 22px;
  margin: -4px 0 18px;
  color: #ffffff;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.2s, transform 0.2s;
}

.form-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.form-message[data-type="success"] {
  color: #8dffd3;
}

.form-message[data-type="error"] {
  color: #ffb8c5;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.telegram-link {
  position: fixed;
  right: 22px;
  bottom: 50px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(111, 92, 255, 0.56);
  border-radius: 999px;
  background: rgba(5, 8, 22, 0.46);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow:
    0 0 18px rgba(111, 92, 255, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.telegram-link:hover {
  border-color: rgba(111, 92, 255, 0.9);
  box-shadow:
    0 0 24px rgba(111, 92, 255, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transform: translateY(-2px);
}

.telegram-link i {
  color: #6f5cff;
  font-size: 20px;
}

.store-page {
  color: #ffffff;
  overflow-y: auto;
}

.manage-page {
  height: 100svh;
  overflow: hidden;
}

.menu-fab {
  display: none;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 22;
  border: 0;
  background: rgba(0, 0, 0, 0.56);
  cursor: pointer;
}

.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 24;
  width: min(390px, calc(100vw - 26px));
  height: 100vh;
  padding: 22px;
  overflow-y: auto;
  border-right: 1px solid rgba(111, 92, 255, 0.52);
  background:
    linear-gradient(180deg, rgba(10, 13, 34, 0.96), rgba(5, 8, 22, 0.94)),
    #050816;
  box-shadow:
    24px 0 70px rgba(0, 0, 0, 0.48),
    inset -1px 0 0 rgba(255, 255, 255, 0.08);
  transform: translateX(-104%);
  transition: transform 0.24s ease;
}

.drawer-open .side-drawer {
  transform: translateX(0);
}

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

.drawer-head h2 {
  margin-top: 6px;
  font-size: 26px;
  line-height: 1.1;
}

.drawer-head span {
  display: inline-flex;
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(141, 255, 211, 0.42);
  border-radius: 999px;
  color: #dfffee;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.drawer-nav {
  display: grid;
  gap: 8px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.drawer-link:hover,
.drawer-link.is-active {
  border-color: rgba(141, 255, 211, 0.52);
  background: rgba(111, 92, 255, 0.18);
  text-decoration: none;
  transform: translateX(2px);
}

.drawer-link i {
  color: #8dffd3;
  font-size: 21px;
}

.drawer-divider {
  height: 1px;
  margin: 20px 0;
  background: linear-gradient(90deg, transparent, rgba(111, 92, 255, 0.76), transparent);
}

.drawer-admin {
  margin-top: 18px;
}

.drawer-form {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.drawer-form h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.drawer-form input,
.drawer-form select,
.drawer-form textarea {
  width: 100%;
  min-height: 42px;
  margin-top: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  outline: none;
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  font-size: 14px;
}

.drawer-form textarea {
  resize: vertical;
}

.drawer-form input::placeholder,
.drawer-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.logout-link {
  margin-top: 18px;
}

.store-shell {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 118px 0 92px;
}

.manage-page .store-shell {
  width: min(1120px, calc(100% - 32px));
  height: 100svh;
  min-height: 0;
  padding: 104px 0 28px;
  overflow: hidden;
}

.manage-page .store-topbar {
  margin-bottom: 14px;
  padding: 16px 18px;
}

.store-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(5, 8, 22, 0.36);
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.eyebrow {
  color: #8dffd3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.store-topbar h1,
.section-head h2,
.key-card h2 {
  margin-top: 6px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.1;
}

.store-actions,
.store-title,
.product-info-row,
.product-buy-row,
.section-head {
  display: flex;
  align-items: center;
}

.store-title {
  gap: 14px;
}

.store-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.user-pill,
.status-dot,
.balance-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(141, 255, 211, 0.42);
  border-radius: 999px;
  background: rgba(141, 255, 211, 0.08);
  color: #dfffee;
  font-size: 13px;
  font-weight: 700;
}

.balance-pill {
  border-color: rgba(111, 92, 255, 0.62);
  background: rgba(111, 92, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 0 22px rgba(111, 92, 255, 0.16);
}

.client-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.account-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(5, 8, 22, 0.34);
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.account-card p {
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-card strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
  line-height: 1;
}

.account-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(141, 255, 211, 0.36);
  border-radius: 8px;
  background: rgba(141, 255, 211, 0.08);
  color: #8dffd3;
  font-size: 24px;
}

.ghost-button,
.icon-button,
.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(111, 92, 255, 0.55);
  background: rgba(111, 92, 255, 0.14);
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.ghost-button {
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 800;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 20px;
}

.top-menu-button {
  flex: 0 0 auto;
  border-color: rgba(141, 255, 211, 0.44);
  background: rgba(141, 255, 211, 0.08);
}

.ghost-button:hover,
.icon-button:hover,
.buy-button:hover {
  border-color: rgba(141, 255, 211, 0.75);
  background: rgba(141, 255, 211, 0.12);
  box-shadow: 0 0 22px rgba(111, 92, 255, 0.24);
  transform: translateY(-1px);
}

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

.stat-card,
.panel-section,
.product-card,
.manager-box,
.key-card {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(5, 8, 22, 0.34);
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.stat-card {
  padding: 18px;
}

.stat-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 7px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
}

.panel-section {
  margin-top: 18px;
  padding: 20px;
}

.section-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 22px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 318px;
  padding: 18px;
  overflow: hidden;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.product-card:hover {
  border-color: rgba(141, 255, 211, 0.46);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.36),
    0 0 28px rgba(111, 92, 255, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border: 1px solid rgba(141, 255, 211, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(111, 92, 255, 0.28), rgba(141, 255, 211, 0.16));
  color: #8dffd3;
  font-size: 26px;
  box-shadow: 0 0 24px rgba(111, 92, 255, 0.22);
}

.product-meta {
  flex: 1;
}

.product-meta span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-meta h3 {
  margin-top: 8px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
  text-transform: uppercase;
}

.product-meta p {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.45;
}

.product-info-row {
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.product-type-select {
  width: 100%;
  min-height: 40px;
  margin-top: 16px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  outline: none;
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  font-size: 13px;
}

.product-info-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.product-buy-row {
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.product-buy-row strong {
  color: #8dffd3;
  font-size: 22px;
}

.buy-button {
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 800;
}

.shop-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 26px;
  text-align: center;
}

.shop-empty i {
  color: #8dffd3;
  font-size: 34px;
}

.shop-empty strong {
  font-size: 18px;
}

.shop-empty span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.buy-button:disabled,
.input-submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.loading-card {
  grid-column: 1 / -1;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.manager-box {
  padding: 18px;
}

.manager-box h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.manager-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.manager-box input,
.manager-box select,
.manager-box textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  outline: none;
  background: rgba(0, 0, 0, 0.18);
  color: #ffffff;
  font-size: 14px;
}

.manager-box textarea {
  margin-top: 10px;
  resize: vertical;
}

.manager-box input::placeholder,
.manager-box textarea::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.compact-submit {
  height: 44px;
  margin-top: 12px;
  border-radius: 999px;
  font-weight: 800;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.orders-table th,
.orders-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  font-size: 14px;
}

.orders-table th {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  text-transform: uppercase;
}

.orders-table code,
.key-card code {
  display: inline-block;
  padding: 7px 9px;
  border: 1px solid rgba(141, 255, 211, 0.34);
  border-radius: 8px;
  background: rgba(141, 255, 211, 0.08);
  color: #dfffee;
}

.key-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
}

.key-modal[hidden] {
  display: none;
}

.key-card {
  position: relative;
  width: min(480px, 100%);
  padding: 26px;
}

.close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
}

.key-card code {
  width: 100%;
  margin-top: 18px;
  padding: 15px;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.store-footer {
  position: fixed;
}

.manage-section {
  scroll-margin-top: 94px;
  min-height: calc(100svh - 176px);
  display: flex;
  flex-direction: column;
}

.manage-page .manage-section {
  height: calc(100svh - 186px);
  min-height: 0;
  margin-top: 0;
  overflow: hidden;
}

.manage-page .section-head {
  flex: 0 0 auto;
  margin-bottom: 14px;
}

.manage-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-content: center;
  flex: 1;
}

.manage-page .manage-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-content: center;
  min-height: 0;
  overflow: hidden;
}

.manage-card {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #ffffff;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
}

.manage-page .manage-card {
  min-height: 132px;
  padding: 18px;
}

.manage-page .manage-card i {
  font-size: 32px;
}

.manage-card i {
  color: #8dffd3;
  font-size: 26px;
}

.manage-card span {
  font-size: 14px;
  font-weight: 800;
}

.manage-card:hover,
.manage-card.is-active {
  border-color: rgba(141, 255, 211, 0.58);
  background: rgba(111, 92, 255, 0.15);
  box-shadow: 0 0 24px rgba(111, 92, 255, 0.18);
  transform: translateY(-1px);
}

.manage-workspace {
  margin-top: 18px;
  max-height: calc(100svh - 310px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(111, 92, 255, 0.65) rgba(255, 255, 255, 0.06);
}

.manage-page .manage-workspace {
  flex: 1;
  min-height: 0;
  max-height: none;
  margin-top: 0;
  overflow: hidden;
  padding-right: 0;
}

.manage-panel {
  display: none;
}

.manage-panel.is-active {
  display: block;
}

.manage-page .manage-panel.is-active {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

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

.section-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.manage-back {
  min-width: 88px;
}

.manager-title h3 {
  font-size: 20px;
}

.manage-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.manage-page .manage-form {
  flex: 0 0 auto;
  margin-bottom: 12px;
  padding: 12px;
}

.manage-form input,
.manage-form select,
.manage-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  outline: none;
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  font-size: 14px;
}

.manage-form textarea {
  grid-column: 1 / -1;
  resize: vertical;
}

.manage-form input::placeholder,
.manage-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.inline-check input {
  width: auto;
  min-height: auto;
}

.manage-list {
  display: grid;
  gap: 10px;
}

.manage-page .manage-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(111, 92, 255, 0.65) rgba(255, 255, 255, 0.06);
}

.manage-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.manage-row.compact-row {
  padding: 11px 14px;
}

.manage-row.is-muted {
  opacity: 0.58;
}

.manage-row strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 15px;
}

.manage-row p {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.rank-badge {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid rgba(141, 255, 211, 0.46);
  border-radius: 999px;
  color: #8dffd3;
  font-size: 11px;
  font-weight: 900;
}

.mini-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 430px;
}

.mini-actions button,
.mini-actions a {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(111, 92, 255, 0.48);
  border-radius: 999px;
  background: rgba(111, 92, 255, 0.13);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.mini-actions button:hover,
.mini-actions a:hover {
  border-color: rgba(141, 255, 211, 0.58);
  background: rgba(141, 255, 211, 0.1);
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 97, 124, 0.7);
  border-radius: 999px;
  background: rgba(255, 97, 124, 0.16);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 34;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
}

.confirm-card {
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #070b20;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.confirm-card h2 {
  font-size: 22px;
}

.confirm-card p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 40;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 32px));
}

.toast {
  padding: 12px 14px;
  border: 1px solid rgba(141, 255, 211, 0.36);
  border-radius: 8px;
  background: rgba(5, 8, 22, 0.94);
  color: #ffffff;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
}

.toast.error {
  border-color: rgba(255, 97, 124, 0.55);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media only screen and (max-width: 510px) {
  .brand {
    top: 18px;
    left: 18px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-mark img {
    width: 42px;
    height: 42px;
  }

  .brand-text {
    height: 36px;
    max-width: calc(100vw - 86px);
  }

  .wrapper {
    align-items: flex-start;
    padding-top: 112px;
  }

  .auth-box {
    padding: 6.5em 30px 3em;
  }

  .remember-forgot {
    flex-direction: column;
    gap: 10px;
  }

  .telegram-link {
    right: 16px;
    bottom: 48px;
    padding: 8px 11px;
  }

  .signin-page .wrapper {
    padding: 64px 18px 84px;
  }

  .signin-card {
    padding: 28px 18px 24px;
    border-radius: 28px;
    transform: translateY(34px);
  }

  .signin-heading {
    gap: 13px;
    margin-bottom: 28px;
  }

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

  .signin-avatar img {
    width: 48px;
    height: 48px;
  }

  .signin-heading h1 {
    font-size: 26px;
  }

  .signin-heading p {
    font-size: 15px;
  }

  .signin-field {
    padding: 16px;
    border-radius: 18px;
  }

  .signin-field + .signin-field {
    margin-top: 22px;
  }

  .signin-submit {
    height: 56px;
    font-size: 18px;
  }

  .signin-page .site-footer {
    bottom: 58px;
    font-size: 13px;
  }
}

@media only screen and (max-width: 1050px) {
  .product-grid,
  .stats-grid,
  .manage-grid,
  .client-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media only screen and (max-width: 760px) {
  .store-shell {
    width: min(100% - 28px, 1180px);
    padding-top: 106px;
  }

  .store-topbar,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .store-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-grid,
  .manager-fields,
  .manage-form {
    grid-template-columns: 1fr;
  }

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

  .mini-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .manage-workspace {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media only screen and (max-width: 620px) {
  .product-grid,
  .stats-grid,
  .manage-grid,
  .client-overview {
    grid-template-columns: 1fr;
  }

  .store-topbar h1 {
    font-size: 26px;
  }
}

@media only screen and (max-width: 415px) {
  .auth-box {
    padding-inline: 25px;
  }
}
