.access-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 34;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(780px, calc(100vw - 340px));
  min-height: 70px;
  padding: 12px 14px 12px 22px;
  border: 1px solid #dedee0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.08);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.access-bar.is-hidden {
  display: none;
}

.access-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.access-copy strong {
  color: #17191c;
  font-size: 15px;
  line-height: 1.25;
}

.access-copy span {
  color: #777b86;
  font-size: 13px;
  line-height: 1.35;
}

.access-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.access-primary,
.modal-primary {
  border-radius: 12px;
  cursor: pointer;
  font-weight: 720;
}

.access-primary,
.modal-primary {
  min-height: 44px;
  padding: 0 20px;
  color: #ffffff;
  background: var(--text);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.modal-root.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 25, 28, 0.18);
  backdrop-filter: blur(8px);
}

.access-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(460px, calc(100vw - 40px));
  padding: 26px;
  border: 1px solid #dedee0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.1);
  transform: translate(-50%, -50%);
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 28px;
  height: 28px;
  color: #979799;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.verification-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.verification-layer[hidden] {
  display: none;
}

.verification-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 25, 28, 0.28);
  backdrop-filter: blur(10px);
}

.verification-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: min(390px, calc(100vw - 40px));
  gap: 20px;
  padding: 26px;
  border: 1px solid #dedee0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.14);
  transform: translate(-50%, -50%);
}

.verification-modal .turnstile-slot {
  display: grid;
  min-height: 65px;
  place-items: center;
}

.verification-modal h2:focus {
  outline: none;
}

.verification-note {
  min-height: 20px;
  margin: 0;
  color: #777b86;
  font-size: 13px;
  line-height: 1.55;
}

.verification-note[data-type="error"] {
  color: #17191c;
}

.modal-head {
  display: grid;
  gap: 8px;
  padding-right: 22px;
}

.modal-head h2 {
  margin: 0;
  color: #17191c;
  font-size: 22px;
  line-height: 1.25;
}

.modal-head p,
.modal-note,
.payment-steps p {
  margin: 0;
  color: #777b86;
  font-size: 13px;
  line-height: 1.65;
}

.phone-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.phone-form label {
  display: grid;
  gap: 7px;
  color: #777b86;
  font-size: 12px;
  font-weight: 680;
}

.phone-form input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dedee0;
  border-radius: 12px;
  outline: none;
  color: #17191c;
  background: #fafafb;
  font-size: 14px;
}

.phone-form input:focus {
  border-color: #17191c;
  background: #ffffff;
}

.sms-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
}

.sms-send-button {
  height: 42px;
  border: 1px solid #dedee0;
  border-radius: 12px;
  color: #17191c;
  background: #f2f2f3;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.sms-send-button:disabled {
  color: #979799;
  background: #f2f2f3;
  cursor: not-allowed;
}

.modal-primary {
  width: 100%;
  height: 42px;
}

.payment-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.qr-card {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  aspect-ratio: 1;
  border: 1px solid #dedee0;
  border-radius: 16px;
  background: #fafafb;
  overflow: hidden;
}

.payment-layout-wechat .qr-card {
  height: 191px;
  aspect-ratio: auto;
}

.qr-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.qr-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  color: #979799;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.payment-steps {
  display: grid;
  align-content: start;
  gap: 6px;
}

.payment-steps strong {
  color: var(--text);
  font-size: 14px;
}

@media (max-width: 520px) {
  .payment-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .payment-steps {
    width: 100%;
  }
}

.modal-note {
  min-height: 20px;
  margin-top: 14px;
}

.modal-note[data-type="success"] {
  color: #17191c;
}

.modal-note[data-type="error"] {
  color: #17191c;
}

.admin-page {
  min-height: 100vh;
  background: #fafafb;
}

.admin-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.admin-panel {
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid #dedee0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
}

.admin-head,
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-kicker {
  margin: 0 0 6px;
  color: #777b86;
  font-size: 13px;
  font-weight: 760;
}

.admin-head h1 {
  margin: 0;
  color: #17191c;
  font-size: 26px;
  line-height: 1.2;
}

.admin-login,
.admin-add-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.admin-login {
  grid-template-columns: repeat(2, minmax(0, 1fr)) 160px;
}

.admin-login label,
.admin-add-form label {
  display: grid;
  gap: 7px;
  color: #777b86;
  font-size: 12px;
  font-weight: 700;
}

.admin-login input,
.admin-add-form input,
.admin-add-form select,
.admin-toolbar input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dedee0;
  border-radius: 8px;
  outline: none;
  color: #17191c;
  background: #fafafb;
  font-size: 14px;
}

.admin-login input:focus,
.admin-add-form input:focus,
.admin-add-form select:focus,
.admin-toolbar input:focus {
  border-color: #17191c;
  background: #ffffff;
}

.admin-primary,
.admin-ghost,
.admin-row-action {
  height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 760;
}

.admin-primary {
  color: #ffffff;
  background: var(--text);
}

.admin-ghost,
.admin-row-action {
  color: #17191c;
  background: #f2f2f3;
}

.admin-workspace {
  display: grid;
  gap: 18px;
}

.admin-toolbar input {
  max-width: 360px;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid #dedee0;
  border-radius: 8px;
}

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

.admin-table th,
.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #ececec;
  color: #17191c;
  font-size: 13px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: #777b86;
  background: #fafafb;
  font-weight: 780;
}

.admin-table td:last-child {
  white-space: nowrap;
}

.admin-row-action {
  height: 32px;
  margin-right: 6px;
  padding: 0 10px;
  font-size: 12px;
}

.admin-row-action.danger {
  color: #17191c;
  background: #fafafb;
}

.admin-empty {
  text-align: center;
}

.admin-note {
  min-height: 22px;
  margin: 0;
  color: #777b86;
  font-size: 13px;
  line-height: 1.6;
}

.admin-note[data-type="success"] {
  color: #17191c;
}

.admin-note[data-type="error"] {
  color: #17191c;
}

@media (max-width: 760px) {
  .admin-shell {
    width: min(100vw - 20px, 560px);
    padding: 18px 0;
  }

  .admin-panel {
    padding: 18px;
  }

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

  .admin-login,
  .admin-add-form {
    grid-template-columns: 1fr;
  }

  .admin-toolbar input {
    max-width: none;
  }
}

.account-summary,
.contact-card {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-card {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.account-summary span,
.contact-card span {
  color: #979799;
  font-size: 12px;
  font-weight: 680;
}

.account-summary strong,
.contact-card strong {
  color: #17191c;
  font-size: 18px;
  line-height: 1.35;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.account-action {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 680;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.account-action-change {
  color: #ffffff;
  background: var(--text);
  border-color: var(--text);
}

.account-action-change:hover {
  background: #34373b;
  border-color: #34373b;
}

.account-action:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.account-action-danger {
  color: #b42318;
  background: #ffffff;
  border-color: #e8aaa4;
}

.account-action-danger:hover {
  color: #8f1b13;
  background: #fff4f2;
  border-color: #d98379;
}

.contact-card p {
  margin: 0;
  max-width: 34em;
  color: #777b86;
  font-size: 13px;
  line-height: 1.65;
}
