:root {
  color-scheme: light;
  --md-primary: #006d67;
  --md-on-primary: #ffffff;
  --md-primary-container: #7df8e8;
  --md-on-primary-container: #002020;
  --md-secondary: #4a6363;
  --md-tertiary: #7b5ba7;
  --md-error: #ba1a1a;
  --md-surface: #fbfdfc;
  --md-surface-dim: #d9dddb;
  --md-surface-container: #edf1ef;
  --md-surface-container-high: #e7ebe9;
  --md-outline: #6f7978;
  --md-outline-variant: #bec9c7;
  --md-text: #191c1c;
  --md-text-soft: #3f4948;
  --md-shadow: 0 22px 60px rgba(0, 65, 60, 0.16);
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--md-surface);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--md-text);
  background:
    radial-gradient(circle at 12% 8%, rgba(125, 248, 232, 0.44), rgba(255, 251, 254, 0) 28%),
    radial-gradient(circle at 88% 18%, rgba(255, 211, 145, 0.36), rgba(255, 251, 254, 0) 26%),
    linear-gradient(115deg, rgba(111, 247, 246, 0.16), rgba(255, 251, 254, 0) 34%),
    linear-gradient(220deg, rgba(184, 193, 255, 0.22), rgba(255, 251, 254, 0) 38%),
    var(--md-surface);
  font-family: "Inter", "Roboto", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.material-symbols-rounded {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  min-width: 1em;
  overflow: hidden;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 24px;
  line-height: 1;
}

.material-symbols-rounded svg {
  display: block;
  width: 1em;
  height: 1em;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

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

.rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  height: 100vh;
  padding: 22px 12px;
  background: rgba(251, 253, 252, 0.78);
  border-right: 1px solid rgba(190, 201, 199, 0.7);
  backdrop-filter: blur(24px);
}

.brand-mark,
.rail-item,
.bottom-item,
.icon-button,
.chip,
.filled-button,
.tonal-button {
  border: 0;
  cursor: pointer;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--md-on-primary);
  background: var(--md-primary);
  border-radius: 18px;
  box-shadow: var(--md-shadow);
}

.rail-item {
  display: grid;
  gap: 5px;
  place-items: center;
  width: 76px;
  min-height: 64px;
  color: var(--md-text-soft);
  background: transparent;
  border-radius: 20px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.rail-item span:last-child,
.bottom-item span:last-child {
  font-size: 12px;
  font-weight: 700;
}

.rail-item.active,
.bottom-item.active {
  color: var(--md-on-primary-container);
  background: var(--md-primary-container);
}

.rail-item:hover,
.bottom-item:hover,
.icon-button:hover,
.chip:hover,
.tonal-button:hover {
  transform: translateY(-2px);
}

.page {
  min-width: 0;
  padding: 22px clamp(18px, 4vw, 46px) 34px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 720px) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0 18px;
  background: linear-gradient(180deg, rgba(251, 253, 252, 0.94), rgba(251, 253, 252, 0));
  backdrop-filter: blur(16px);
}

.search-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 0 18px;
  background: var(--md-surface-container-high);
  border: 1px solid transparent;
  border-radius: 28px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.search-wrap:focus-within {
  background: #ffffff;
  border-color: var(--md-primary);
  box-shadow: 0 0 0 4px rgba(0, 106, 106, 0.11);
}

.search-wrap input {
  width: 100%;
  min-width: 0;
  color: var(--md-text);
  background: transparent;
  border: 0;
  outline: 0;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--md-primary);
  background: var(--md-surface-container);
  border-radius: 18px;
  transition: transform 180ms ease, background 180ms ease;
}

.icon-button.compact {
  width: 44px;
  height: 44px;
  visibility: hidden;
}

.view {
  animation: viewIn 360ms cubic-bezier(0.2, 0, 0, 1);
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: stretch;
  min-height: 430px;
  overflow: hidden;
  color: var(--md-on-primary-container);
  background:
    linear-gradient(135deg, rgba(111, 247, 246, 0.88), rgba(255, 225, 186, 0.86)),
    #d6fffb;
  border-radius: var(--radius-lg);
  box-shadow: var(--md-shadow);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(0, 109, 103, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 109, 103, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.hero::after {
  position: absolute;
  inset: auto -80px -120px 34%;
  height: 240px;
  content: "";
  background: linear-gradient(90deg, rgba(0, 109, 103, 0.14), rgba(123, 91, 167, 0.22));
  filter: blur(36px);
  transform: rotate(-4deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
}

.hero-art {
  position: absolute;
  inset: 24px 26px auto auto;
  width: min(58vw, 720px);
  height: 86%;
  object-fit: cover;
  border-radius: 26px;
  opacity: 0.28;
  mix-blend-mode: multiply;
  animation: artDrift 9s ease-in-out infinite;
}

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

.eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #244b4a;
  background: rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

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

h1 {
  max-width: 780px;
  margin-top: 22px;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 580px;
  margin-top: 18px;
  color: #264342;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.filled-button,
.tonal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 24px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.filled-button {
  color: var(--md-on-primary);
  background: var(--md-primary);
  box-shadow: 0 12px 28px rgba(0, 106, 106, 0.26);
}

.tonal-button {
  color: var(--md-on-primary-container);
  background: rgba(255, 255, 255, 0.65);
}

.hero-visual {
  position: relative;
  min-height: 320px;
}

.ticket-stack {
  position: absolute;
  inset: 34px 34px 34px 0;
  display: grid;
  align-content: center;
  gap: 18px;
  z-index: 2;
}

.ticket {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  padding: 20px;
  color: #102020;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 24px;
  box-shadow: 0 22px 46px rgba(0, 60, 60, 0.16);
  animation: floatTicket 5.2s ease-in-out infinite;
}

.ticket:nth-child(2) {
  margin-left: 42px;
  animation-delay: -1.6s;
}

.ticket:nth-child(3) {
  margin-left: 12px;
  animation-delay: -3.2s;
}

.ticket::before,
.ticket::after {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  content: "";
  background: rgba(111, 247, 246, 0.95);
  border-radius: 50%;
  transform: translateY(-50%);
}

.ticket::before {
  left: -12px;
}

.ticket::after {
  right: -12px;
}

.ticket strong {
  display: block;
  font-size: 20px;
}

.ticket span {
  display: block;
  margin-top: 8px;
  color: #516160;
  font-weight: 700;
}

@keyframes floatTicket {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

.section-head {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin: 30px 0 16px;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.section-head p {
  color: var(--md-text-soft);
}

.chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  color: var(--md-text-soft);
  background: var(--md-surface-container);
  border-radius: 20px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.chip.active {
  color: var(--md-on-primary);
  background: var(--md-primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(190, 201, 199, 0.72);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 32px rgba(0, 60, 60, 0.08);
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.2, 0, 0, 1), box-shadow 220ms ease, border-color 220ms ease;
}

.product-card:hover {
  border-color: rgba(0, 106, 106, 0.4);
  box-shadow: 0 22px 46px rgba(0, 60, 60, 0.14);
  transform: translateY(-6px);
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(224, 255, 251, 0.82), rgba(255, 240, 223, 0.9)),
    url("./media/theme-1.webp") center / cover;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fallback-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  color: var(--md-primary);
  background: rgba(255, 255, 255, 0.68);
  border-radius: 24px;
}

.product-body {
  padding: 16px;
}

.product-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.price {
  color: #9c4146;
  font-size: 22px;
  font-weight: 950;
}

.tag {
  padding: 5px 9px;
  color: var(--md-secondary);
  background: var(--md-surface-container);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

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

.info-panel,
.service-card,
.empty-state,
.order-row,
.profile-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(190, 201, 199, 0.72);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 32px rgba(0, 60, 60, 0.08);
}

.info-panel {
  padding: 20px;
}

.info-panel .material-symbols-rounded,
.service-card .material-symbols-rounded {
  width: 46px;
  height: 46px;
  color: var(--md-primary);
  background: var(--md-primary-container);
  border-radius: 16px;
}

.info-panel h3 {
  margin-top: 16px;
  font-size: 18px;
}

.info-panel p {
  margin-top: 8px;
  color: var(--md-text-soft);
  line-height: 1.65;
}

.service-card {
  display: grid;
  gap: 14px;
  min-height: 220px;
  padding: 22px;
  overflow: hidden;
  text-align: left;
  transition: transform 220ms cubic-bezier(0.2, 0, 0, 1), box-shadow 220ms ease, border-color 220ms ease;
}

.service-poster {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 60, 60, 0.12);
}

.service-card:hover {
  border-color: rgba(0, 106, 106, 0.4);
  box-shadow: 0 22px 46px rgba(0, 60, 60, 0.14);
  transform: translateY(-5px);
}

.service-card h3 {
  font-size: 20px;
}

.service-card p {
  color: var(--md-text-soft);
  line-height: 1.65;
}

.service-card strong {
  margin-top: auto;
  color: var(--md-primary);
}

.poster-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.poster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.poster-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-height: min(78vh, 860px);
  overflow: auto;
  padding-right: 4px;
}

.poster-scroll figure {
  margin: 0;
}

.poster-scroll img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 60, 60, 0.14);
}

.poster-scroll figcaption {
  padding: 10px 4px 0;
  color: var(--md-text-soft);
  font-weight: 900;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 34px;
  text-align: center;
}

.empty-state .material-symbols-rounded {
  width: 76px;
  height: 76px;
  color: var(--md-primary);
  background: var(--md-primary-container);
  border-radius: 24px;
}

.empty-state h2 {
  margin-top: 18px;
}

.empty-state p {
  max-width: 540px;
  margin-top: 10px;
  color: var(--md-text-soft);
  line-height: 1.7;
}

.order-list {
  display: grid;
  gap: 12px;
}

.order-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(190, 201, 199, 0.72);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 32px rgba(0, 60, 60, 0.08);
}

.order-tab {
  position: relative;
  display: grid;
  gap: 10px;
  place-items: center;
  min-height: 96px;
  color: var(--md-text);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.order-tab span {
  font-size: 18px;
}

.order-tab strong {
  font-size: 22px;
}

.order-tab::after {
  position: absolute;
  right: 18%;
  bottom: 0;
  left: 18%;
  height: 3px;
  content: "";
  background: transparent;
  border-radius: 999px 999px 0 0;
}

.order-tab.active {
  color: var(--md-primary);
  background: rgba(125, 248, 232, 0.18);
}

.order-tab.active::after {
  background: #32c857;
}

.compact-tabs {
  margin-top: 16px;
}

.compact-tabs .order-tab {
  min-height: 78px;
}

.order-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.order-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(190, 201, 199, 0.72);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 32px rgba(0, 60, 60, 0.08);
}

.order-card-head,
.order-card-body,
.order-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.order-card-head {
  justify-content: space-between;
}

.order-card-head strong {
  color: #9c4146;
  font-size: 20px;
}

.order-card-body {
  align-items: stretch;
}

.order-thumb {
  display: grid;
  flex: 0 0 86px;
  place-items: center;
  width: 86px;
  height: 86px;
  overflow: hidden;
  color: var(--md-primary);
  background:
    linear-gradient(135deg, rgba(224, 255, 251, 0.88), rgba(255, 240, 223, 0.92)),
    url("./media/theme-1.webp") center / cover;
  border-radius: 18px;
}

.order-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-card-body h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.order-card-body p {
  margin-top: 6px;
  color: var(--md-text-soft);
  font-size: 13px;
}

.order-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filled-button.small,
.tonal-button.small {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 19px;
  font-size: 14px;
}

.order-row .material-symbols-rounded {
  width: 46px;
  height: 46px;
  color: var(--md-tertiary);
  background: #e1e5ff;
  border-radius: 16px;
}

.profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  overflow: hidden;
  position: relative;
}

.profile-card::after {
  position: absolute;
  inset: auto 0 0 auto;
  width: 260px;
  height: 140px;
  content: "";
  background: url("./media/theme-1.webp") center / contain no-repeat;
  opacity: 0.13;
}

.avatar {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  color: var(--md-on-primary);
  background: linear-gradient(135deg, var(--md-primary), var(--md-tertiary));
  border-radius: 50%;
  overflow: hidden;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.profile-stats {
  margin-top: 16px;
}

.product-dialog,
.login-dialog,
.settings-dialog,
.poster-dialog {
  width: min(1160px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: hidden;
  background: var(--md-surface);
  border: 0;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.product-dialog::backdrop,
.login-dialog::backdrop,
.settings-dialog::backdrop,
.poster-dialog::backdrop {
  background: rgba(0, 28, 28, 0.42);
  backdrop-filter: blur(8px);
}

.login-dialog {
  width: min(460px, calc(100vw - 28px));
}

.settings-dialog {
  width: min(680px, calc(100vw - 28px));
}

.poster-dialog {
  width: min(920px, calc(100vw - 28px));
}

.login-panel {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.settings-panel {
  max-height: min(86vh, 920px);
  overflow: auto;
}

.settings-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(190, 201, 199, 0.72);
  border-radius: 18px;
}

.settings-section h3 {
  font-size: 18px;
}

.avatar-editor {
  display: flex;
  gap: 14px;
  align-items: center;
}

.preview-avatar {
  overflow: hidden;
}

.preview-avatar img,
.profile-card .avatar img,
.support-person .avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-fallback::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.22;
}

.mini-avatar {
  width: 48px;
  height: 48px;
  font-size: 22px;
  flex: 0 0 auto;
}

.file-button {
  position: relative;
}

.avatar-cropper {
  display: grid;
  gap: 12px;
}

.avatar-cropper[hidden] {
  display: none;
}

.crop-stage {
  position: relative;
  width: min(280px, 100%);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 28px;
  background: #eef4f2;
  border: 1px solid rgba(190, 201, 199, 0.78);
}

.crop-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

.crop-frame {
  position: absolute;
  inset: 18px;
  border: 2px solid rgba(0, 106, 106, 0.95);
  border-radius: 24px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.24);
  pointer-events: none;
}

.crop-zoom input {
  accent-color: #006a6a;
}

.helper-text {
  color: #51615e;
  font-size: 13px;
  margin: 0;
}

.support-loading,
.support-note,
.support-person {
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(190, 201, 199, 0.72);
}

.support-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--md-primary);
  font-weight: 800;
}

.support-note {
  color: var(--md-text-soft);
  line-height: 1.65;
}

.support-list {
  display: grid;
  gap: 12px;
}

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

.support-person strong {
  display: block;
  margin-bottom: 4px;
}

.support-person p {
  margin: 0;
  color: var(--md-text-soft);
  font-size: 13px;
}

.empty-state.compact {
  min-height: auto;
  padding: 18px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

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

.login-title {
  display: grid;
  gap: 6px;
}

.login-title h2 {
  font-size: 28px;
}

.login-title p {
  color: var(--md-text-soft);
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  background: var(--md-surface-container);
  border-radius: 18px;
}

.login-tab {
  min-height: 40px;
  color: var(--md-text-soft);
  background: transparent;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
}

.login-tab.active {
  color: var(--md-on-primary);
  background: var(--md-primary);
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--md-text-soft);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  color: var(--md-text);
  background: var(--md-surface-container);
  border: 1px solid transparent;
  border-radius: 16px;
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field textarea {
  padding-top: 14px;
  line-height: 1.5;
}

.field input:focus,
.field textarea:focus {
  background: #fff;
  border-color: var(--md-primary);
  box-shadow: 0 0 0 4px rgba(0, 106, 106, 0.11);
}

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

.code-row .tonal-button {
  min-width: 118px;
  padding: 0 16px;
}

.password-fields {
  display: grid;
  gap: 14px;
}

.login-note {
  color: var(--md-text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.login-error {
  display: none;
  padding: 10px 12px;
  color: var(--md-error);
  background: #ffedea;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.login-error.show {
  display: block;
}

.detail {
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(420px, 0.92fr);
  min-height: min(760px, calc(100vh - 28px));
}

.detail-media {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(224, 255, 251, 0.92), rgba(255, 240, 223, 0.86)),
    url("./media/hero-collage.webp") center / cover;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-float {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  color: var(--md-on-primary-container);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(0, 60, 60, 0.14);
  backdrop-filter: blur(16px);
}

.detail-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(26px, 4vw, 42px);
}

.detail-top,
.detail-price-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.detail-body h2 {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.08;
}

.detail-price-row .price {
  font-size: clamp(30px, 3vw, 42px);
}

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

.detail-info-grid div {
  display: grid;
  gap: 6px;
  min-height: 84px;
  padding: 14px;
  background: var(--md-surface-container);
  border-radius: 16px;
}

.detail-info-grid span {
  color: var(--md-text-soft);
  font-size: 12px;
  font-weight: 800;
}

.detail-info-grid strong {
  font-size: 15px;
}

.detail-desc {
  max-height: 260px;
  overflow: auto;
  color: var(--md-text-soft);
  line-height: 1.7;
  padding: 16px;
  background: rgba(237, 241, 239, 0.68);
  border-radius: 18px;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 48px));
  padding: 12px 16px;
  color: #ffffff;
  pointer-events: none;
  background: #263331;
  border-radius: 14px;
  box-shadow: var(--md-shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.skeleton {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  background: var(--md-surface-container);
  border-radius: var(--radius-md);
}

.skeleton::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

.bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
    padding-bottom: 78px;
  }

  .rail {
    display: none;
  }

  .page {
    padding: 12px 14px 24px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .topbar .compact {
    display: none;
  }

  .hero,
  .detail {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding: 28px;
  }

  .hero-visual {
    min-height: 220px;
  }

  .hero-art {
    inset: auto 18px 18px;
    width: calc(100% - 36px);
    height: 210px;
    opacity: 0.2;
  }

  .ticket-stack {
    inset: 0 18px 22px;
  }

  .ticket {
    min-height: 86px;
  }

  .panel-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

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

  .product-body {
    padding: 12px;
  }

  .price {
    font-size: 18px;
  }

  .bottom-nav {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 8px;
    background: rgba(251, 253, 252, 0.9);
    border: 1px solid rgba(190, 201, 199, 0.8);
    border-radius: 26px;
    box-shadow: var(--md-shadow);
    backdrop-filter: blur(22px);
  }

  .order-tabs {
    border-radius: 18px;
  }

  .order-tab {
    min-height: 76px;
  }

  .order-tab span {
    font-size: 14px;
  }

  .order-tab strong {
    font-size: 18px;
  }

  .bottom-item {
    display: grid;
    gap: 2px;
    place-items: center;
    min-height: 54px;
    color: var(--md-text-soft);
    background: transparent;
    border-radius: 18px;
  }

  .detail-media {
    min-height: 280px;
  }

  .detail-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 42px;
  }

  .product-title {
    min-height: 42px;
    font-size: 14px;
  }

  .tag {
    display: none;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
.brand-mark img{width:36px;height:36px;object-fit:contain;display:block}
