:root {
  color-scheme: light;
  --bg: #edf3f5;
  --sidebar: rgba(26, 43, 51, 0.72);
  --sidebar-soft: rgba(255, 255, 255, 0.12);
  --panel: rgba(255, 255, 255, 0.68);
  --panel-strong: rgba(255, 255, 255, 0.82);
  --line: rgba(146, 169, 178, 0.32);
  --text: #17242a;
  --muted: #687980;
  --accent: #1287bd;
  --accent-dark: #0a6f9b;
  --danger: #b45146;
  --danger-dark: #943b32;
  --ok: #277448;
  --ok-bg: #e8f6ee;
  --warn: #95620d;
  --warn-bg: #fff4d8;
  --glass-shadow: 0 18px 48px rgba(30, 54, 65, 0.14);
  --button-shadow: 0 10px 22px rgba(15, 84, 113, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(231, 241, 244, 0.92), rgba(246, 249, 247, 0.88) 48%, rgba(226, 237, 241, 0.9)),
    var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  color: #f5fafb;
  background: var(--sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 16px 0 42px rgba(31, 49, 58, 0.12);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-dark);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.brand h1 {
  font-size: 18px;
  line-height: 1.25;
}

.brand p,
.session-card small,
.session-card span {
  color: #c6d4d9;
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.nav button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  color: #dce8eb;
  background: transparent;
  text-align: left;
  border: 1px solid transparent;
}

.nav button[hidden] {
  display: none;
}

.nav button.active,
.nav button:hover {
  color: #ffffff;
  background: var(--sidebar-soft);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.session-card {
  display: grid;
  gap: 6px;
  margin-top: 28px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.session-card strong {
  font-size: 20px;
}

.session-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.session-actions button {
  width: 100%;
  height: 34px;
  color: #edf6f8;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  font-size: 13px;
}

.session-actions button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.is-logged-in .session-card strong {
  color: #8fe0ae;
}

.main {
  min-width: 0;
  padding: 28px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.panel,
.log-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px) saturate(1.18);
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
}

.section-title span,
.table-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.actions,
.captcha-box,
.table-head,
.log-head {
  display: flex;
  align-items: center;
}

.actions,
.captcha-box {
  gap: 10px;
}

.page {
  display: none;
}

.page.active {
  display: grid;
  gap: 16px;
  animation: pageFadeIn 260ms ease-out both;
}

.panel {
  padding: 22px;
}

[data-page="login"],
[data-page="order"],
[data-page="hotels"] {
  justify-items: center;
}

[data-page="login"] .panel,
[data-page="order"] .panel,
[data-page="hotels"] .panel {
  width: min(760px, 100%);
}

body[data-current-page="order"][data-order-stage="picker"] .log-panel {
  display: none;
}

body[data-current-page="order"][data-order-stage="picker"] [data-page="order"] {
  justify-items: stretch;
}

body[data-current-page="order"][data-order-stage="picker"] .ticket-picker-panel {
  width: 100%;
  min-height: calc(100vh - 56px);
}

body[data-current-page="order"][data-order-stage="picker"] .ticket-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

body[data-current-page="hotels"][data-order-stage="hotel-picker"] .log-panel {
  display: none;
}

body[data-current-page="hotels"][data-order-stage="hotel-picker"] [data-page="hotels"] {
  justify-items: stretch;
}

body[data-current-page="hotels"][data-order-stage="hotel-picker"] .ticket-picker-panel {
  width: 100%;
  min-height: calc(100vh - 56px);
}

body[data-current-page="hotels"][data-order-stage="hotel-picker"] .ticket-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.login-panel {
  margin-top: 12px;
}

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

.order-toolbar {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.order-search {
  display: grid;
  min-width: 260px;
}

.order-search span {
  margin-bottom: 6px;
}

.order-search input {
  height: 34px;
  min-width: 260px;
  background: rgba(255, 255, 255, 0.72);
}

.section-title h3,
.table-head h3,
.log-head h3 {
  font-size: 17px;
}

.login-form,
.order-form {
  display: grid;
  gap: 16px;
}

.ticket-picker-panel,
.order-form-panel {
  animation: pageFadeIn 220ms ease-out both;
}

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

.ticket-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(66px, auto);
  align-items: center;
  min-height: 106px;
  gap: 12px;
  padding: 16px;
  color: var(--text);
  text-align: left;
  white-space: normal;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 16px 34px rgba(30, 54, 65, 0.1);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.ticket-card:hover {
  border-color: rgba(18, 135, 189, 0.28);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 38px rgba(15, 84, 113, 0.14);
}

.ticket-card.selected,
.ticket-card.selected:hover {
  border-color: rgba(18, 135, 189, 0.66);
  background: rgba(232, 246, 252, 0.82);
  box-shadow: 0 18px 38px rgba(15, 84, 113, 0.18), inset 0 0 0 2px rgba(18, 135, 189, 0.18);
}

.ticket-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(145deg, #1287bd, #277448);
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(15, 84, 113, 0.16);
}

.ticket-mark.wetland {
  background: linear-gradient(145deg, #2f8d77, #95620d);
}

.ticket-mark.park {
  background: linear-gradient(145deg, #2f8d77, #0a6f9b);
}

.ticket-mark.train {
  background: linear-gradient(145deg, #5f6f45, #95620d);
}

.ticket-mark.lake {
  background: linear-gradient(145deg, #1287bd, #2f8d77);
}

.ticket-mark.reindeer,
.ticket-mark.reindeer-yard {
  background: linear-gradient(145deg, #277448, #7b6a2a);
}

.ticket-mark.manor {
  background: linear-gradient(145deg, #6e7f8b, #277448);
}

.ticket-mark.mammoth,
.ticket-mark.mammoth-package {
  background: linear-gradient(145deg, #7a756c, #b45146);
}

.ticket-mark.wetland-manor {
  background: linear-gradient(145deg, #263f48, #2f8d77);
}

.ticket-mark.grassland {
  background: linear-gradient(145deg, #2f8d77, #5f8f3b);
}

.ticket-mark.grassland-slide {
  background: linear-gradient(145deg, #1287bd, #5f8f3b);
}

.ticket-mark.hotel {
  background: linear-gradient(145deg, #1f6e7c, #95620d);
}

.ticket-card-main {
  min-width: 0;
}

.ticket-card-main strong,
.ticket-card-main small {
  display: block;
}

.ticket-card-main strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
}

.ticket-card-main small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.ticket-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  height: 36px;
  border-radius: 6px;
  color: #0a6f9b;
  background: rgba(232, 246, 252, 0.78);
  border: 1px solid rgba(18, 135, 189, 0.18);
  font-size: 18px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.ticket-price.muted {
  color: var(--muted);
  background: rgba(104, 121, 128, 0.08);
  border-color: rgba(104, 121, 128, 0.12);
}

.hotel-price-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 16px;
}

.hotel-price-bar label {
  min-width: 0;
}

.hotel-booking-panel {
  animation: pageFadeIn 220ms ease-out both;
}

.hotel-room-section {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.section-title.compact {
  margin-bottom: 0;
}

.hotel-room-card {
  min-height: 94px;
}

.payment-method-box {
  display: grid;
  gap: 12px;
}

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

.payment-option {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(146, 169, 178, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 12px 28px rgba(30, 54, 65, 0.08);
  cursor: pointer;
}

.payment-option:has(input:checked) {
  border-color: rgba(18, 135, 189, 0.58);
  background: rgba(232, 246, 252, 0.82);
  box-shadow: 0 14px 30px rgba(15, 84, 113, 0.14), inset 0 0 0 2px rgba(18, 135, 189, 0.16);
}

.payment-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-dark);
}

.payment-option span {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

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

label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
}

input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(140, 164, 173, 0.42);
  border-radius: 6px;
  padding: 0 11px;
  outline: none;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(15, 143, 200, 0.12), 0 10px 24px rgba(20, 84, 112, 0.08);
}

button {
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 0 16px;
  color: #fff;
  background: rgba(83, 102, 109, 0.92);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(45, 64, 72, 0.12);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(45, 64, 72, 0.18);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(45, 64, 72, 0.14);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.primary {
  background: linear-gradient(180deg, #1a9dd3, var(--accent-dark));
  box-shadow: var(--button-shadow);
}

.primary:hover {
  background: var(--accent-dark);
}

.danger {
  background: linear-gradient(180deg, #c96355, var(--danger-dark));
  box-shadow: 0 10px 22px rgba(144, 54, 45, 0.18);
}

.danger:hover {
  background: var(--danger-dark);
}

.captcha-box {
  align-self: end;
}

.captcha-box img {
  width: 112px;
  height: 42px;
  border: 1px solid rgba(140, 164, 173, 0.42);
  border-radius: 6px;
  background: rgba(240, 243, 244, 0.68);
  object-fit: cover;
  cursor: pointer;
}

.orders-panel {
  overflow: hidden;
}

.orders-scroll {
  overflow: auto;
  border: 1px solid rgba(237, 241, 242, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
}

.orders-table {
  width: 100%;
  min-width: 1160px;
  border-collapse: collapse;
  font-size: 13px;
}

.orders-table th,
.orders-table td {
  border-bottom: 1px solid #edf1f2;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.orders-table tbody tr:last-child td {
  border-bottom: 0;
}

.orders-table th {
  color: var(--muted);
  font-weight: 600;
  background: rgba(251, 252, 252, 0.74);
}

.orders-table .link-cell {
  max-width: 250px;
  word-break: break-all;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qr-open-button {
  height: 30px;
  margin: 0 0 6px;
  padding: 0 12px;
  color: #0a6f9b;
  background: rgba(232, 246, 252, 0.8);
  border-color: rgba(18, 135, 189, 0.18);
  box-shadow: none;
}

.qr-open-button:hover {
  color: #ffffff;
  background: var(--accent-dark);
  box-shadow: 0 8px 18px rgba(15, 84, 113, 0.14);
}

.assist-code {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--accent-dark);
  background: rgba(232, 246, 252, 0.8);
  border: 1px solid rgba(18, 135, 189, 0.18);
  font-size: 15px;
  letter-spacing: 0;
}

.orders-table a {
  color: var(--accent-dark);
}

.refund-button {
  background: rgba(180, 81, 70, 0.92);
  box-shadow: 0 8px 18px rgba(144, 54, 45, 0.12);
}

.refund-button:hover {
  background: var(--danger-dark);
  box-shadow: 0 12px 26px rgba(144, 54, 45, 0.18);
}

.refund-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(104, 121, 128, 0.08);
  font-size: 12px;
  font-weight: 600;
}

.refund-status.ok {
  color: var(--ok);
  background: var(--ok-bg);
}

.refund-status.error {
  color: var(--danger);
  background: rgba(180, 81, 70, 0.1);
}

td small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
}

.orders-table button,
.table-head button,
.log-head button {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.log-panel {
  overflow: hidden;
  width: min(760px, 100%);
  justify-self: center;
}

body[data-current-page="orders"] .log-panel,
body[data-current-page="hotelOrders"] .log-panel {
  display: none;
}

.log-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.22);
}

.log {
  min-height: 150px;
  max-height: 280px;
  overflow: auto;
  padding: 12px 16px;
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.entry {
  padding: 8px 0;
  border-bottom: 1px solid #edf1f2;
}

.entry:last-child {
  border-bottom: 0;
}

.entry strong {
  color: var(--accent-dark);
}

.entry.ok strong {
  color: var(--ok);
}

.entry.error strong {
  color: var(--danger);
}

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

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}

.qr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 28, 34, 0.34);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
}

.qr-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 22px;
  width: min(820px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(248, 252, 252, 0.84);
  box-shadow: 0 30px 80px rgba(16, 44, 56, 0.26);
  backdrop-filter: blur(24px) saturate(1.18);
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
  animation: modalFadeIn 180ms ease-out both;
}

.qr-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: #5e7279;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  font-size: 24px;
  line-height: 1;
}

.qr-close:hover {
  color: #ffffff;
  background: var(--danger);
  box-shadow: 0 10px 24px rgba(144, 54, 45, 0.18);
}

.qr-visual {
  display: grid;
  gap: 14px;
  align-content: start;
}

.qr-artwork {
  display: grid;
  min-height: 270px;
  place-items: center;
  border: 1px solid rgba(146, 169, 178, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 36px rgba(33, 63, 73, 0.12);
}

.qr-artwork svg {
  width: min(236px, 80vw);
  height: auto;
}

.qr-artwork img {
  width: min(260px, 80vw);
  height: auto;
}

.qr-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(18, 135, 189, 0.18);
  border-radius: 6px;
  color: var(--accent-dark);
  background: rgba(232, 246, 252, 0.72);
  text-decoration: none;
  font-size: 14px;
}

.qr-info {
  min-width: 0;
  padding: 8px 12px 4px 0;
}

.qr-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

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

.qr-details div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(146, 169, 178, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.qr-details span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.qr-details strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  word-break: break-all;
}

.qr-error {
  color: var(--danger);
  font-size: 14px;
}

.qr-loading {
  color: var(--muted);
  font-size: 14px;
}

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

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 32;
  display: grid;
  place-items: center;
  padding: 24px;
}

.confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 28, 34, 0.34);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
}

.confirm-dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(248, 252, 252, 0.88);
  box-shadow: 0 30px 80px rgba(16, 44, 56, 0.26);
  backdrop-filter: blur(24px) saturate(1.18);
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
  animation: modalFadeIn 180ms ease-out both;
}

.confirm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: #5e7279;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  font-size: 24px;
  line-height: 1;
}

.confirm-close:hover {
  color: #ffffff;
  background: var(--danger);
  box-shadow: 0 10px 24px rgba(144, 54, 45, 0.18);
}

.confirm-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.confirm-dialog h3 {
  margin-bottom: 8px;
  font-size: 26px;
}

.confirm-note {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.confirm-summary div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(146, 169, 178, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.confirm-summary span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.confirm-summary strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  word-break: break-all;
}

.refund-quantity-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(180, 81, 70, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.refund-quantity-box input {
  width: 150px;
}

.refund-quantity-box small {
  margin: 0 0 10px;
  color: var(--muted);
  white-space: nowrap;
}

.refund-quantity-box small strong {
  color: var(--text);
}

.refund-progress {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 14px 34px rgba(16, 44, 56, 0.08);
  backdrop-filter: blur(18px) saturate(1.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  animation: pageFadeIn 180ms ease-out both;
}

.refund-progress[hidden] {
  display: none;
}

.refund-progress-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-dark);
  background: rgba(10, 145, 202, 0.1);
  font-size: 20px;
  font-weight: 800;
}

.refund-progress[data-state="loading"] .refund-progress-icon::before {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(10, 145, 202, 0.18);
  border-top-color: var(--accent-dark);
  border-radius: 50%;
  content: "";
  animation: spin 800ms linear infinite;
}

.refund-progress[data-state="success"] .refund-progress-icon {
  color: var(--ok);
  background: var(--ok-bg);
}

.refund-progress[data-state="error"] .refund-progress-icon {
  color: var(--danger);
  background: rgba(180, 81, 70, 0.1);
}

.refund-progress strong,
.refund-progress span {
  display: block;
}

.refund-progress strong {
  color: var(--text);
  font-size: 15px;
}

.refund-progress span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .nav button {
    text-align: center;
    justify-content: center;
  }

  .login-grid,
  .ticket-grid,
  .order-grid,
  .hotel-price-bar,
  .payment-method-options {
    grid-template-columns: 1fr;
  }

  .qr-dialog {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 48px);
    overflow: auto;
  }

  .qr-info {
    padding: 0;
  }

  .confirm-dialog {
    max-height: calc(100vh - 48px);
    overflow: auto;
  }
}

@media (max-width: 640px) {
  .main {
    padding: 12px;
  }

  .panel {
    padding: 16px;
  }

  .brand {
    align-items: flex-start;
  }

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

  .section-title,
  .table-head {
    align-items: stretch;
    flex-direction: column;
  }

  .order-toolbar,
  .order-search,
  .order-search input {
    width: 100%;
    min-width: 0;
  }

  .captcha-box {
    align-items: stretch;
  }

  .ticket-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .ticket-mark {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .ticket-price {
    grid-column: 1 / -1;
    width: 100%;
  }

  .captcha-box img {
    flex: 1;
  }

  .qr-modal {
    padding: 12px;
  }

  .qr-dialog {
    padding: 18px;
  }

  .qr-details {
    grid-template-columns: 1fr;
  }

  .confirm-modal {
    padding: 12px;
  }

  .confirm-dialog {
    padding: 18px;
  }

  .confirm-summary {
    grid-template-columns: 1fr;
  }

  .refund-quantity-box {
    grid-template-columns: 1fr;
  }

  .refund-quantity-box input {
    width: 100%;
  }

  .confirm-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
