.toppers-page {
  min-height: 100vh;
  color: #172033;
  background:
    radial-gradient(circle at 20% 10%, rgba(242, 151, 255, 0.32), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(125, 93, 255, 0.28), transparent 30%),
    linear-gradient(135deg, #34145c 0%, #5b2586 46%, #2d164c 100%);
}

.toppers-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 28px 0;
}

.toppers-card,
.toppers-app {
  width: min(470px, 100%);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(20, 7, 38, 0.38);
}

.toppers-card {
  padding: 32px 36px 36px;
}

.toppers-app {
  width: 100%;
  align-self: stretch;
  display: grid;
  gap: 18px;
  padding: 24px;
}

.toppers-brand {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 26px;
  text-align: center;
}

.toppers-logo {
  width: min(290px, 90%);
  max-height: 118px;
  object-fit: contain;
}

.toppers-eyebrow {
  margin: 0;
  color: #8a196d;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.toppers-form,
.toppers-order-form {
  display: grid;
  gap: 15px;
}

.toppers-form label,
.toppers-order-form label {
  display: grid;
  gap: 7px;
  color: #43506a;
  font-weight: 850;
}

.toppers-form input,
.toppers-order-form input,
.toppers-form select,
.toppers-order-form select,
.toppers-order-form textarea {
  width: 100%;
  min-height: 46px;
  color: #172033;
  background: #ffffff;
  border: 1px solid #c8d1e3;
  border-radius: 7px;
  padding: 0 12px;
  outline: none;
  font: inherit;
  font-weight: 750;
}

.toppers-order-form textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.toppers-form input:focus,
.toppers-order-form input:focus,
.toppers-form select:focus,
.toppers-order-form select:focus,
.toppers-order-form textarea:focus {
  border-color: #d7389c;
  box-shadow: 0 0 0 3px rgba(215, 56, 156, 0.16);
}

.toppers-password-field {
  position: relative;
  display: block;
}

.toppers-password-field input {
  padding-right: 48px;
}

.toppers-form .toppers-password-eye {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  color: #8a196d;
  background: transparent;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  cursor: pointer;
  transform: translateY(-50%);
}

.toppers-form .toppers-password-eye:hover,
.toppers-form .toppers-password-eye:active {
  color: #ffffff;
  background: rgba(215, 56, 156, 0.18);
}

.toppers-password-eye svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.toppers-form button,
.toppers-order-form button,
.toppers-create-button {
  min-height: 50px;
  color: #ffffff;
  background: linear-gradient(135deg, #e344a5, #8925ad);
  border-radius: 7px;
  box-shadow: 0 14px 30px rgba(137, 37, 173, 0.23);
  font-size: 1rem;
  font-weight: 950;
}

.toppers-form button:hover,
.toppers-order-form button:hover,
.toppers-create-button:hover {
  background: linear-gradient(135deg, #f052b3, #9d30c4);
}

.toppers-form button:disabled,
.toppers-form button[aria-disabled="true"],
.toppers-order-form button:disabled,
.toppers-order-form button[aria-disabled="true"],
.toppers-create-button:disabled,
.toppers-create-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
}

.toppers-top-message {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 10000;
  min-width: min(92vw, 520px);
  transform: translate(-50%, -18px);
  padding: 12px 18px;
  color: #ffffff;
  background: #9b1748;
  border: 2px solid #f0a8c6;
  border-radius: 13px;
  box-shadow: 0 16px 34px rgba(70, 22, 83, 0.24);
  font-weight: 950;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toppers-top-message.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toppers-secondary,
.toppers-form .toppers-secondary,
.toppers-order-form .toppers-secondary {
  color: #5f366d;
  background: #f3e8f8;
  border: 1px solid #d8b7e5;
  box-shadow: none;
}

.toppers-secondary:hover,
.toppers-form .toppers-secondary:hover,
.toppers-order-form .toppers-secondary:hover {
  background: #ead7f4;
}

.toppers-register-link {
  width: 100%;
  margin-top: 14px;
  color: #5f366d;
  background: #f7edf9;
  border: 1px solid #debce9;
  box-shadow: none;
}

.toppers-register-link:hover {
  background: #efdaf5;
}

.toppers-error {
  margin: 0;
  padding: 10px 12px;
  color: #8b0d2e;
  background: #ffe6ef;
  border: 1px solid #f2a7c2;
  border-radius: 7px;
  font-weight: 850;
}

.toppers-copy,
.toppers-hint {
  margin: 0;
  color: #5b6780;
  font-weight: 750;
}

.toppers-hint {
  font-size: 0.9rem;
}

.toppers-form-header,
.toppers-modal-header,
.toppers-app-header,
.toppers-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toppers-form-header h1,
.toppers-modal-header h2,
.toppers-app-header h1,
.toppers-section-title h2 {
  margin: 0;
  color: #172033;
}

.toppers-app-header p:not(.toppers-eyebrow) {
  margin: 6px 0 0;
  color: #61708a;
  font-weight: 800;
}

.toppers-phone-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
}

.toppers-actions {
  display: flex;
  gap: 12px;
}

.toppers-actions > * {
  flex: 1;
}

.toppers-create-button {
  width: min(360px, 100%);
  justify-self: center;
  min-height: 72px;
  font-size: 1.35rem;
}

.toppers-orders-section {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.toppers-section-title span {
  color: #8a196d;
  font-weight: 950;
}

.toppers-table-wrap {
  max-width: 100%;
  max-height: calc(100vh - 260px);
  overflow: auto;
  border: 1px solid #ccd5e5;
  border-radius: 8px;
  background: #ffffff;
}

.toppers-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  color: #172033;
}

.toppers-table th,
.toppers-table td {
  height: 38px;
  padding: 7px 10px;
  border: 1px solid #d8deeb;
  white-space: nowrap;
  text-align: center;
  font-size: 0.9rem;
}

.toppers-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #ffffff;
  background: #0f1728;
}

.toppers-table tbody tr:nth-child(even) {
  background: #f5f7fb;
}

.toppers-table td:nth-child(5),
.toppers-table td:nth-child(10),
.toppers-table td:nth-child(12) {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.toppers-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 16, 28, 0.66);
}

.toppers-modal-card {
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #ffffff;
  border: 2px solid rgba(227, 68, 165, 0.6);
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

.toppers-modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 22px 24px;
  background: #111a2c;
  border-radius: 6px 6px 0 0;
}

.toppers-modal-header h2 {
  color: #ffffff;
}

.toppers-modal-header .toppers-eyebrow {
  color: #ff8ed1;
}

.toppers-close {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  color: #ffffff;
  background: #ef3d53;
  box-shadow: none;
}

.toppers-order-form {
  padding: 24px;
}

.toppers-form-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #f8faff;
  border: 1px solid #d5deee;
  border-radius: 8px;
}

.toppers-form-section h3 {
  margin: 0;
  color: #8a196d;
  font-size: 1.1rem;
}

.toppers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.toppers-measure {
  align-content: start;
}

.toppers-measure-input {
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: center;
}

.toppers-measure-input input {
  border-radius: 7px 0 0 7px;
}

.toppers-measure-input span {
  min-height: 46px;
  display: grid;
  place-items: center;
  color: #60708a;
  background: #edf2fb;
  border: 1px solid #c8d1e3;
  border-left: 0;
  border-radius: 0 7px 7px 0;
  font-weight: 900;
}

.toppers-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: #5b6780;
  font-size: 0.88rem;
}

.toppers-check input {
  width: 16px;
  min-height: 16px;
  height: 16px;
}

.toppers-comment {
  grid-column: 1 / -1;
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .toppers-shell {
    width: min(100% - 20px, 1180px);
    padding: 16px 0;
  }

  .toppers-card,
  .toppers-app {
    padding: 22px;
  }

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

  .toppers-form-header,
  .toppers-modal-header,
  .toppers-app-header,
  .toppers-section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .toppers-actions {
    flex-direction: column;
  }

  .toppers-modal {
    padding: 10px;
  }
}
