:root {
  color-scheme: dark;
  --ink: #edf8f6;
  --muted: #98aaa7;
  --line: rgba(126, 232, 216, 0.2);
  --paper: #07100f;
  --surface: rgba(13, 26, 24, 0.86);
  --teal: #20e0c4;
  --teal-dark: #78f6e4;
  --coral: #ff6d52;
  --gold: #f4b947;
  --leaf: #91d76f;
  --violet: #9f7cff;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

.buddy-screen {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(32, 224, 196, 0.14), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(255, 214, 112, 0.14), transparent 28%),
    linear-gradient(180deg, #07100f 0%, #0c1714 48%, #08100f 100%);
}

.buddy-page {
  display: grid;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding-top: 58px;
}

.buddy-toolbar {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 132px minmax(260px, 1fr) 132px 104px;
  gap: 8px;
  align-items: end;
  width: min(1240px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(42, 128, 214, 0.35);
  border-radius: 8px;
  background: #b9dfff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.42) inset;
}

.buddy-toolbar label,
.buddy-side label {
  display: grid;
  gap: 3px;
  color: #dffcf7;
  font-weight: 900;
}

.buddy-toolbar label {
  color: #0c2238;
}

.buddy-toolbar span {
  color: rgba(18, 43, 70, 0.78);
  font-size: 11px;
}

.buddy-toolbar input,
.buddy-toolbar select {
  min-height: 32px;
  border: 1px solid rgba(42, 128, 214, 0.25);
  border-radius: 8px;
  color: #0c2238;
  background: #edf7ff;
  padding: 0 12px;
  font: inherit;
}

.buddy-side input,
.buddy-side textarea {
  min-height: 32px;
  border: 1px solid rgba(32, 224, 196, 0.2);
  border-radius: 8px;
  color: #f8fbff;
  background: rgba(3, 15, 18, 0.82);
  padding: 0 12px;
  font: inherit;
}

.buddy-toolbar .primary-button {
  min-height: 32px;
  padding: 0 10px;
  color: #06110f;
  background: linear-gradient(135deg, #5dc8ff, #ffdd70);
}

.buddy-side textarea {
  padding: 10px 12px;
  resize: vertical;
}

.buddy-side input,
.buddy-side textarea,
.buddy-location-field input,
.buddy-location-field select {
  min-width: 0;
  width: 100%;
}

.buddy-location-field div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 6px;
}

.buddy-location-field button {
  min-height: 32px;
  border: 1px solid rgba(32, 224, 196, 0.28);
  border-radius: 8px;
  color: #06110f;
  background: linear-gradient(135deg, #20e0c4, #ffdd70);
  font-weight: 900;
}

.buddy-location-field small {
  color: rgba(255, 241, 168, 0.78);
  font-size: 12px;
  line-height: 1.45;
}

.buddy-map-modal[aria-hidden="true"] {
  display: none;
}

.buddy-map-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
}

.buddy-map-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.buddy-map-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(860px, 96vw);
  max-height: min(720px, 92vh);
  padding: 16px;
  border: 1px solid rgba(32, 224, 196, 0.32);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(32, 224, 196, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(7, 16, 15, 0.98), rgba(2, 8, 18, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 221, 112, 0.08) inset;
}

.buddy-map-head,
.buddy-map-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.buddy-map-head span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.buddy-map-head h2 {
  margin: 2px 0 0;
  color: #f8fbff;
  font-size: 24px;
}

.buddy-map-close {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #dffcf7;
  background: rgba(255, 255, 255, 0.06);
  padding: 0 14px;
  font-weight: 900;
}

.buddy-map-tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.buddy-map-tools button {
  min-height: 34px;
  border: 1px solid rgba(32, 224, 196, 0.2);
  border-radius: 8px;
  color: #fff8c7;
  background: rgba(255, 221, 112, 0.08);
  font-weight: 900;
}

.buddy-map-setup {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 221, 112, 0.32);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 221, 112, 0.12), rgba(32, 224, 196, 0.08)),
    rgba(3, 15, 18, 0.9);
}

.buddy-map-setup[hidden] {
  display: none;
}

.buddy-map-setup strong {
  color: #fff8c7;
  font-size: 16px;
}

.buddy-map-setup p {
  margin: 0;
  color: rgba(239, 247, 245, 0.72);
  line-height: 1.55;
}

.buddy-map-setup div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 8px;
}

.buddy-map-setup input {
  min-height: 38px;
  border: 1px solid rgba(32, 224, 196, 0.22);
  border-radius: 8px;
  color: #f8fbff;
  background: rgba(0, 0, 0, 0.24);
  padding: 0 12px;
}

.buddy-map-setup button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  color: #06110f;
  background: linear-gradient(135deg, #20e0c4, #ffdd70);
  font-weight: 900;
}

.buddy-google-map {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(32, 224, 196, 0.24);
  border-radius: 10px;
  background:
    radial-gradient(circle at 52% 40%, rgba(32, 224, 196, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(15, 48, 47, 0.94), rgba(8, 16, 26, 0.98));
}

.buddy-google-map.is-disabled {
  min-height: 240px;
}

.buddy-map-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(248, 251, 255, 0.78);
  font-weight: 900;
}

.buddy-map-canvas {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border: 1px solid rgba(32, 224, 196, 0.24);
  border-radius: 10px;
  background:
    radial-gradient(circle at 54% 44%, rgba(32, 224, 196, 0.2), transparent 18%),
    radial-gradient(circle at 66% 64%, rgba(255, 221, 112, 0.18), transparent 18%),
    linear-gradient(135deg, rgba(15, 48, 47, 0.94), rgba(8, 16, 26, 0.98));
  cursor: crosshair;
  user-select: none;
}

.buddy-map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(32, 224, 196, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 224, 196, 0.1) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle, black 52%, transparent 100%);
}

.buddy-map-road {
  position: absolute;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 18px rgba(32, 224, 196, 0.18);
}

.buddy-map-road.road-a {
  top: 42%;
  left: -8%;
  width: 118%;
  transform: rotate(-7deg);
}

.buddy-map-road.road-b {
  top: 58%;
  left: 8%;
  width: 92%;
  transform: rotate(21deg);
}

.buddy-map-road.road-c {
  top: 10%;
  left: 48%;
  width: 18px;
  height: 86%;
  transform: rotate(6deg);
}

.buddy-map-zone {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(248, 251, 255, 0.76);
  background: rgba(3, 15, 18, 0.46);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.buddy-map-zone.zone-a {
  top: 38%;
  left: 49%;
}

.buddy-map-zone.zone-b {
  top: 58%;
  left: 60%;
}

.buddy-map-zone.zone-c {
  top: 18%;
  left: 32%;
}

.buddy-map-zone.zone-d {
  top: 76%;
  left: 28%;
}

.buddy-map-pin {
  position: absolute;
  left: 55%;
  top: 46%;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50% 50% 50% 8px;
  background: linear-gradient(135deg, #ff4fd8, #20e0c4);
  box-shadow: 0 0 0 9px rgba(255, 79, 216, 0.18), 0 18px 36px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -100%) rotate(-45deg);
  cursor: grab;
  touch-action: none;
}

.buddy-map-pin:active {
  cursor: grabbing;
}

.buddy-map-pin span {
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: #07100f;
  transform: rotate(45deg);
}

.buddy-map-bottom p {
  margin: 0;
  color: #dffcf7;
  font-weight: 900;
}

.buddy-map-bottom .primary-button {
  min-width: 150px;
}

body.modal-open {
  overflow: hidden;
}

.buddy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 18px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid rgba(32, 224, 196, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(32, 224, 196, 0.16), transparent 44%),
    linear-gradient(120deg, rgba(255, 214, 112, 0.1), rgba(2, 8, 18, 0.72)),
    rgba(2, 8, 18, 0.64);
}

.buddy-hero p,
.buddy-hero span,
.buddy-side > section > span {
  color: var(--teal);
  font-weight: 900;
}

.buddy-hero h1 {
  max-width: 680px;
  margin: 6px 0 10px;
  color: #f8fbff;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
}

.buddy-hero > div > span {
  display: block;
  max-width: 760px;
  color: rgba(239, 247, 245, 0.78);
  line-height: 1.75;
}

.buddy-hero aside {
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 214, 112, 0.24);
  border-radius: 8px;
  background: rgba(255, 214, 112, 0.08);
  text-align: center;
}

.buddy-hero aside strong,
.buddy-hero aside small {
  color: #fff1a8;
}

.buddy-hero aside b {
  color: #ffffff;
  font-size: 48px;
}

.buddy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 24vw, 330px);
  gap: 14px;
  align-items: start;
  width: min(1240px, calc(100vw - 36px));
  margin: 0 auto;
  padding-left: 100px;
}

@media (max-width: 1100px) {
  .buddy-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    padding-left: 92px;
  }

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

  .buddy-side > section {
    padding: 12px;
  }
}

@media (max-width: 760px) {
  .buddy-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .buddy-layout {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .buddy-category-panel {
    position: sticky;
    top: 134px;
    left: auto;
    width: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .buddy-card-grid {
    grid-template-columns: 1fr;
  }

  .buddy-bottom-safety {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .buddy-bottom-safety p {
    white-space: normal;
  }
}

.buddy-feed {
  grid-column: 1;
  grid-row: 1;
}

.buddy-side {
  grid-column: 2;
  grid-row: 1;
}

.buddy-category-panel,
.buddy-side > section {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(32, 224, 196, 0.16);
  border-radius: 8px;
  background: rgba(2, 8, 18, 0.62);
}

.buddy-category-panel {
  position: fixed;
  top: 132px;
  bottom: 62px;
  left: 0;
  width: 86px;
  grid-template-rows: repeat(13, minmax(0, 1fr));
  gap: 3px;
  padding: 6px;
  z-index: 19;
  border-color: rgba(42, 128, 214, 0.35);
  background: #b9dfff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.42) inset;
}

.buddy-category-panel button {
  min-height: 0;
  border: 1px solid rgba(42, 128, 214, 0.22);
  border-radius: 8px;
  color: #0c2238;
  background: #edf7ff;
  font-weight: 900;
  text-align: left;
  padding: 0 7px;
  font-size: 13px;
}

.buddy-category-panel button.active,
.buddy-category-panel button:hover {
  color: #06110f;
  background: linear-gradient(135deg, #20e0c4, #ffdd70);
}

.buddy-feed {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.buddy-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(32, 224, 196, 0.14);
  border-radius: 8px;
  background: rgba(2, 8, 18, 0.54);
}

.buddy-feed-head p {
  margin: 0;
  color: #fff1a8;
  font-weight: 900;
}

.buddy-feed-head div {
  display: flex;
  gap: 8px;
}

.buddy-feed-head button {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(239, 247, 245, 0.78);
  background: rgba(255, 255, 255, 0.045);
  font-weight: 900;
  padding: 0 10px;
}

.buddy-feed-head button.active {
  color: #06110f;
  background: var(--gold);
}

.buddy-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-height: calc((260px * 2) + 12px);
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-color: #ffdd70 rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.buddy-card-grid::-webkit-scrollbar {
  width: 12px;
}

.buddy-card-grid::-webkit-scrollbar-track {
  border: 1px solid rgba(32, 224, 196, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.buddy-card-grid::-webkit-scrollbar-thumb {
  border: 2px solid rgba(7, 22, 19, 0.9);
  border-radius: 999px;
  background: linear-gradient(180deg, #20e0c4, #ffdd70);
}

.buddy-card {
  display: grid;
  grid-template-rows: 92px auto auto minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 260px;
  padding: 10px;
  border: 1px solid rgba(32, 224, 196, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(32, 224, 196, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.055);
}

.buddy-card > img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border: 1px solid rgba(32, 224, 196, 0.16);
  border-radius: 8px;
}

.buddy-card[hidden] {
  display: none;
}

.buddy-card span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 8px;
  color: #06110f;
  background: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.buddy-card h2 {
  margin: 0;
  color: #f8fbff;
  font-size: 17px;
  line-height: 1.25;
}

.buddy-card p {
  margin: 0;
  color: rgba(239, 247, 245, 0.72);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.45;
}

.buddy-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.buddy-card b {
  color: #fff1a8;
}

.buddy-card small {
  color: var(--teal);
  font-weight: 900;
}

.buddy-side {
  display: grid;
  gap: 14px;
}

.buddy-side:empty {
  display: none;
}

.buddy-side h2 {
  margin: 0;
  color: #f8fbff;
  font-size: 22px;
}

.buddy-safety p {
  margin: 0;
  color: rgba(239, 247, 245, 0.75);
  line-height: 1.7;
}

@media (max-width: 980px) {
  .buddy-toolbar,
  .buddy-hero,
  .buddy-layout {
    grid-template-columns: 1fr;
  }

  .buddy-layout {
    padding-left: 0;
  }

  .buddy-feed,
  .buddy-side {
    grid-column: auto;
    grid-row: auto;
  }

  .buddy-category-panel {
    position: static;
    width: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .buddy-card-grid {
    grid-template-columns: 1fr;
  }

  .buddy-map-modal {
    padding: 12px;
  }

  .buddy-map-panel {
    padding: 12px;
  }

  .buddy-map-head,
  .buddy-map-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .buddy-map-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .buddy-map-setup div {
    grid-template-columns: 1fr;
  }

.buddy-google-map {
  min-height: 340px;
}

  .buddy-map-canvas {
    min-height: 330px;
  }
}

.buddy-post-modal[aria-hidden="true"] {
  display: none;
}

.buddy-preview-modal[aria-hidden="true"] {
  display: none;
}

.buddy-post-modal {
  position: fixed;
  inset: 0;
  z-index: 76;
  display: grid;
  align-items: start;
  justify-items: center;
  overflow: hidden;
  padding: 4px 12px 4px;
}

.buddy-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 78;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 10px;
}

.buddy-post-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
}

.buddy-post-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 6px;
  width: min(700px, 96vw);
  height: calc(100vh - 8px);
  height: calc(100dvh - 8px);
  max-height: calc(100vh - 8px);
  max-height: calc(100dvh - 8px);
  overflow: hidden;
  padding: 10px 20px;
  border: 1px solid rgba(32, 224, 196, 0.3);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(32, 224, 196, 0.14), transparent 42%),
    #071613;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 221, 112, 0.08) inset;
}

.buddy-preview-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(780px, 96vw);
  max-height: calc(100vh - 20px);
  max-height: calc(100dvh - 20px);
  overflow-y: auto;
  padding: 16px 18px;
  border: 1px solid rgba(32, 224, 196, 0.3);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(32, 224, 196, 0.12), transparent 40%),
    #071613;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 221, 112, 0.08) inset;
}

.buddy-post-head {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 12px;
}

.buddy-post-head span {
  color: var(--teal);
  font-weight: 900;
  white-space: nowrap;
}

.buddy-post-head h2 {
  margin: 0;
  color: #fff8c7;
  font-family: "站酷酷黑", "ZCOOL KuHei", "ZCOOL KuaiLe", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-shadow:
    0 0 10px rgba(255, 221, 112, 0.85),
    0 0 22px rgba(32, 224, 196, 0.55),
    0 2px 0 rgba(255, 109, 82, 0.35);
}

.buddy-post-body {
  display: grid;
  gap: 6px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.buddy-post-body::-webkit-scrollbar {
  width: 8px;
}

.buddy-post-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.buddy-post-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #20e0c4, #ffdd70);
  border-radius: 999px;
}

.buddy-post-panel label {
  display: grid;
  gap: 4px;
  color: #dffcf7;
  font-weight: 900;
}

.buddy-post-panel input,
.buddy-post-panel textarea,
.buddy-post-panel select {
  min-height: 32px;
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(32, 224, 196, 0.22);
  border-radius: 8px;
  color: #f8fbff;
  background: rgba(3, 15, 18, 0.88);
  padding: 0 12px;
  font: inherit;
}

.buddy-post-panel select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #ffdd70 50%) right 15px center / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(4, 28, 42, 0.96), rgba(8, 35, 42, 0.94));
  padding-right: 34px;
  font-weight: 800;
}

.buddy-post-pair {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr);
  gap: 10px;
}

@media (max-width: 640px) {
  .buddy-post-pair {
    grid-template-columns: 1fr;
  }
}

.buddy-post-panel textarea {
  padding: 10px 12px;
  resize: vertical;
  min-height: clamp(110px, 22vh, 190px);
  max-height: 30vh;
}

.buddy-post-panel .buddy-location-field div {
  grid-template-columns: minmax(0, 1fr) 82px;
}

.buddy-post-panel .buddy-location-field small {
  font-size: 11px;
  line-height: 1.25;
}

.buddy-post-panel label > small {
  color: rgba(255, 241, 168, 0.76);
  font-size: 11px;
  line-height: 1.25;
}

.buddy-photo-preview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  min-height: clamp(64px, 11vh, 82px);
  padding: 8px;
  border: 1px dashed rgba(32, 224, 196, 0.28);
  border-radius: 8px;
  background: rgba(3, 15, 18, 0.58);
}

.buddy-photo-preview:empty::before {
  content: "照片预览";
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  color: rgba(239, 247, 245, 0.5);
  font-weight: 900;
}

.buddy-photo-preview[data-hint]:not([data-hint=""])::after {
  content: attr(data-hint);
  grid-column: 1 / -1;
  color: rgba(255, 241, 168, 0.76);
  font-size: 12px;
  font-weight: 900;
}

.buddy-photo-preview img {
  width: 100%;
  height: clamp(48px, 9vh, 74px);
  object-fit: cover;
  border: 1px solid rgba(32, 224, 196, 0.18);
  border-radius: 8px;
}

.buddy-post-actions {
  display: grid;
  padding-top: 4px;
  border-top: 1px solid rgba(32, 224, 196, 0.16);
  background: linear-gradient(180deg, rgba(7, 22, 19, 0.84), #071613);
}

.buddy-preview-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(32, 224, 196, 0.18);
  border-radius: 10px;
  background: rgba(2, 8, 18, 0.66);
}

.buddy-preview-cover {
  position: relative;
  min-height: 430px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 221, 112, 0.22), transparent 30%),
    radial-gradient(circle at 80% 12%, rgba(32, 224, 196, 0.2), transparent 28%),
    rgba(1, 10, 15, 0.92);
}

.buddy-preview-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: minmax(270px, 1fr) 86px;
  gap: 8px;
  height: 100%;
  padding: 10px;
}

.buddy-preview-gallery div {
  grid-column: 1 / -1;
  display: grid;
  min-height: 360px;
  place-items: center;
  color: rgba(239, 247, 245, 0.56);
  font-weight: 900;
  text-align: center;
  border: 1px dashed rgba(32, 224, 196, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.buddy-preview-gallery img {
  width: 100%;
  height: 86px;
  object-fit: cover;
  border-radius: 8px;
}

.buddy-preview-gallery img:first-child {
  grid-column: 1 / -1;
  height: 100%;
  min-height: 270px;
}

.buddy-preview-cover > span {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 8px;
  color: #04110f;
  background: linear-gradient(135deg, #20e0c4, #ffdd70);
  font-weight: 950;
  box-shadow: 0 10px 28px rgba(32, 224, 196, 0.26);
}

.buddy-preview-content {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.buddy-preview-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.buddy-preview-kicker span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 8px;
  color: #06110f;
  background: #ffdd70;
  font-weight: 900;
}

.buddy-preview-kicker small {
  color: rgba(239, 247, 245, 0.62);
  font-weight: 800;
}

.buddy-preview-content h3 {
  margin: 0;
  color: #fff8c7;
  font-size: clamp(24px, 3.1vw, 34px);
  line-height: 1.2;
}

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

.buddy-preview-info div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(32, 224, 196, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.buddy-preview-info small {
  color: rgba(255, 221, 112, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.buddy-preview-info b {
  overflow-wrap: anywhere;
  color: #dffcf7;
  font-size: 15px;
  line-height: 1.35;
}

.buddy-preview-desc {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(32, 224, 196, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.buddy-preview-desc strong {
  color: #20e0c4;
  font-size: 15px;
}

.buddy-preview-desc p {
  margin: 0;
  min-height: 150px;
  max-height: 210px;
  overflow-y: auto;
  white-space: pre-wrap;
  color: rgba(239, 247, 245, 0.78);
  line-height: 1.7;
}

.buddy-preview-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.buddy-preview-actions button {
  min-height: 42px;
}

@media (max-width: 760px) {
  .buddy-preview-card {
    grid-template-columns: 1fr;
  }

  .buddy-preview-cover {
    min-height: 310px;
  }

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

@media (max-height: 760px) {
  .buddy-post-modal {
    padding: 3px 10px;
  }

  .buddy-post-panel {
    height: calc(100vh - 6px);
    height: calc(100dvh - 6px);
    max-height: calc(100vh - 6px);
    max-height: calc(100dvh - 6px);
    padding: 8px 18px;
  }

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

  .buddy-post-panel input {
    min-height: 30px;
  }

  .buddy-post-panel textarea {
    min-height: 96px;
  }

  .buddy-photo-preview {
    min-height: 58px;
  }

  .buddy-photo-preview img {
    height: 52px;
  }
}

@media (max-height: 620px) {
  .buddy-post-modal {
    padding: 2px 8px;
  }

  .buddy-post-panel {
    width: min(760px, 97vw);
    height: calc(100vh - 4px);
    height: calc(100dvh - 4px);
    max-height: calc(100vh - 4px);
    max-height: calc(100dvh - 4px);
    padding: 7px 16px;
  }

  .buddy-post-head h2 {
    font-size: 20px;
  }

  .buddy-post-body {
    gap: 6px;
  }

  .buddy-post-panel input {
    min-height: 28px;
  }

  .buddy-post-panel textarea {
    min-height: 78px;
  }

  .buddy-photo-preview {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 48px;
    padding: 6px;
  }

  .buddy-photo-preview img {
    height: 42px;
  }
}

.buddy-safety {
  align-content: start;
}

.buddy-safety h2 {
  margin: 0;
  color: #f8fbff;
  font-size: 22px;
}

.buddy-safety .ghost-button {
  justify-self: start;
  margin-top: 2px;
}

.buddy-bottom-safety {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 18;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 14px;
  align-items: center;
  width: min(1240px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(255, 221, 112, 0.22);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #071613;
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(32, 224, 196, 0.08) inset;
}

.buddy-bottom-safety div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.buddy-bottom-safety strong {
  color: var(--teal);
  font-size: 13px;
}

.buddy-bottom-safety p {
  margin: 0;
  overflow: hidden;
  color: rgba(239, 247, 245, 0.76);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buddy-bottom-safety .ghost-button {
  min-height: 38px;
  white-space: nowrap;
}

.buddy-toolbar,
.buddy-category-panel {
  background: #092124;
  border-color: rgba(32, 224, 196, 0.26);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(32, 224, 196, 0.08) inset;
}

.buddy-toolbar {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  z-index: 20;
  width: min(1240px, calc(100vw - 36px));
  margin: 0 auto;
}

.buddy-toolbar label {
  color: #dffcf7;
}

.buddy-toolbar span {
  color: rgba(143, 255, 240, 0.72);
}

.buddy-toolbar input,
.buddy-toolbar select {
  color: #f8fbff;
  background: #061213;
  border-color: rgba(32, 224, 196, 0.22);
}

.buddy-toolbar .primary-button {
  background: linear-gradient(135deg, #20e0c4, #ffdd70);
}

.buddy-category-panel {
  position: fixed;
  top: 134px;
  bottom: 0;
  left: max(18px, calc((100vw - 1240px) / 2));
  width: 86px;
  z-index: 19;
}

.buddy-category-panel button {
  color: #dffcf7;
  background: #0d3133;
  border-color: rgba(32, 224, 196, 0.2);
}

.buddy-layout {
  width: min(1240px, calc(100vw - 36px));
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
  padding-left: 100px;
  padding-bottom: 94px;
}

.buddy-feed,
.buddy-side,
.buddy-side > section {
  min-width: 0;
}

@media (max-width: 1100px) {
  .buddy-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 92px;
  }

  .buddy-feed {
    grid-column: 1;
    grid-row: 1;
  }

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

  .buddy-side > section {
    padding: 12px;
  }

  .buddy-category-panel {
    position: fixed;
    top: 134px;
    bottom: 0;
    left: max(18px, calc((100vw - 1240px) / 2));
    width: 86px;
    grid-template-columns: none;
    grid-template-rows: repeat(13, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .buddy-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .buddy-layout {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .buddy-feed,
  .buddy-side {
    grid-column: auto;
    grid-row: auto;
  }

  .buddy-category-panel {
    position: sticky;
    top: 134px;
    left: auto;
    bottom: auto;
    width: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .buddy-card-grid {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(32, 224, 196, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 224, 196, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 18% 0%, rgba(255, 109, 82, 0.12), transparent 30%),
    radial-gradient(circle at 90% 16%, rgba(145, 215, 111, 0.1), transparent 28%),
    var(--paper);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 15, 0.82);
  backdrop-filter: blur(16px);
}

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

.brand-logo {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  border-radius: 10px;
  object-fit: cover;
  background: #f4eee2;
  box-shadow: 0 0 22px rgba(214, 40, 32, 0.26);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.control-dock {
  position: sticky;
  top: 76px;
  z-index: 9;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 15, 0.9);
  backdrop-filter: blur(18px);
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(126px, 1fr));
  gap: 14px;
  padding: 16px clamp(18px, 4vw, 56px);
  perspective: 1200px;
}

.category-tile {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  min-height: 86px;
  padding: 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(126, 232, 216, 0.24);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03)),
    rgba(10, 23, 21, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 14px 0 rgba(0, 0, 0, 0.24),
    0 22px 36px rgba(0, 0, 0, 0.32);
  transform: translateY(0) rotateX(0);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  text-align: center;
  animation: tilePulse 6s infinite;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: -1px;
  opacity: 0.92;
  background: linear-gradient(135deg, rgba(32, 224, 196, 0.24), transparent 42%);
  pointer-events: none;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -42px;
  width: 94px;
  height: 94px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(32, 224, 196, 0.1);
}

.category-tile:hover {
  border-color: rgba(126, 232, 216, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 18px 0 rgba(0, 0, 0, 0.24),
    0 30px 52px rgba(32, 224, 196, 0.18);
  transform: translateY(-6px) rotateX(8deg);
}

.category-tile:nth-child(1) {
  animation-delay: 0s;
}

.category-tile:nth-child(2) {
  animation-delay: 1s;
}

.category-tile:nth-child(3) {
  animation-delay: 2s;
}

.category-tile:nth-child(4) {
  animation-delay: 3s;
}

.category-tile:nth-child(5) {
  animation-delay: 4s;
}

.category-tile:nth-child(6) {
  animation-delay: 5s;
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 1;
}

.category-tile span {
  font-size: clamp(17px, 1.25vw, 21px);
  font-weight: 900;
  line-height: 1.12;
}

.category-tile small {
  color: var(--muted);
  font-size: clamp(11px, 0.82vw, 13px);
  font-weight: 700;
  line-height: 1.35;
}

.category-tile.market::before {
  background: linear-gradient(135deg, rgba(32, 224, 196, 0.32), transparent 44%);
}

.category-tile.safety::before {
  background: linear-gradient(135deg, rgba(244, 185, 71, 0.34), transparent 44%);
}

.category-tile.night::before {
  background: linear-gradient(135deg, rgba(159, 124, 255, 0.36), transparent 44%);
}

.category-tile.travel::before {
  background: linear-gradient(135deg, rgba(255, 109, 82, 0.32), transparent 44%);
}

.category-tile.food::before {
  background: linear-gradient(135deg, rgba(145, 215, 111, 0.34), transparent 44%);
}

.category-tile.fun::before {
  background: linear-gradient(135deg, rgba(255, 109, 82, 0.26), rgba(244, 185, 71, 0.22) 44%, transparent);
}

.category-tile.emergency::before {
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.36), rgba(255, 207, 69, 0.12) 44%, transparent);
}

.category-tile.life::before {
  background: linear-gradient(135deg, rgba(120, 246, 228, 0.28), transparent 44%);
}

.category-tile.buddy::before {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.34), rgba(159, 124, 255, 0.1) 44%, transparent);
}

.emergency-screen {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 9%, rgba(255, 68, 68, 0.18), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(255, 221, 112, 0.16), transparent 30%),
    linear-gradient(180deg, #07100f 0%, #0a1715 54%, #06100f 100%);
}

.emergency-page {
  display: grid;
  gap: 7px;
  width: min(1240px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 6px 0 18px;
}

.emergency-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 8px;
  align-items: stretch;
}

.emergency-hero-copy,
.emergency-status-card,
.emergency-side,
.emergency-content,
.emergency-disclaimer {
  border: 1px solid rgba(255, 221, 112, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 68, 68, 0.12), transparent 44%),
    rgba(6, 18, 18, 0.9);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(32, 224, 196, 0.06);
}

.emergency-hero-copy {
  min-height: 124px;
  padding: 12px 18px;
}

.emergency-hero-copy > span,
.emergency-section-head p {
  margin: 0 0 5px;
  color: #ffdd70;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.emergency-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff8c7;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.05;
}

.emergency-hero p {
  max-width: 760px;
  margin: 7px 0 0;
  color: rgba(239, 247, 245, 0.76);
  font-size: 14px;
  line-height: 1.55;
}

.emergency-status-card {
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 12px 14px;
}

.emergency-status-card b {
  color: #20e0c4;
  font-size: 18px;
}

.emergency-status-card ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 20px;
  color: rgba(239, 247, 245, 0.78);
  font-size: 13px;
  line-height: 1.38;
}

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

.hotline-card {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 92px;
  overflow: hidden;
  padding: 10px 14px;
  border: 1px solid rgba(32, 224, 196, 0.18);
  border-radius: 8px;
  color: #f8fbff;
  text-decoration: none;
  background: rgba(6, 18, 18, 0.94);
}

.hotline-card::after {
  content: "";
  position: absolute;
  inset: auto -35px -55px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(32, 224, 196, 0.12);
}

.hotline-card small {
  color: rgba(239, 247, 245, 0.6);
  font-weight: 900;
}

.hotline-card strong {
  color: #fff8c7;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
}

.hotline-card span {
  color: #20e0c4;
  font-size: 15px;
  font-weight: 950;
}

.hotline-card.urgent {
  border-color: rgba(255, 93, 77, 0.45);
}

.hotline-card.medical {
  border-color: rgba(32, 224, 196, 0.44);
}

.hotline-card.fire {
  border-color: rgba(255, 221, 112, 0.42);
}

.hotline-card.tourist {
  border-color: rgba(159, 124, 255, 0.42);
}

.emergency-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 8px;
}

.emergency-side {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 12px;
  align-self: start;
  padding: 12px;
}

.emergency-city-box {
  display: grid;
  gap: 8px;
}

.emergency-city-box label {
  display: grid;
  gap: 6px;
  color: #dffcf7;
  font-weight: 950;
}

.emergency-city-box select,
.emergency-city-box button,
.emergency-tabs button,
.emergency-action-card button,
.phrase-list button {
  min-height: 36px;
  border: 1px solid rgba(32, 224, 196, 0.2);
  border-radius: 8px;
  color: #f8fbff;
  background: rgba(3, 15, 18, 0.86);
  padding: 0 10px;
  font: inherit;
  font-weight: 850;
}

.emergency-city-box button,
.emergency-action-card button,
.phrase-list button {
  color: #06110f;
  background: linear-gradient(135deg, #20e0c4, #ffdd70);
}

.emergency-tabs {
  display: grid;
  gap: 7px;
}

.emergency-tabs button {
  text-align: left;
}

.emergency-tabs button.active {
  color: #06110f;
  background: #ffdd70;
}

.emergency-consular {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 221, 112, 0.18);
  border-radius: 8px;
  background: rgba(255, 221, 112, 0.06);
}

.emergency-consular span {
  color: rgba(239, 247, 245, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.emergency-consular a {
  color: #ffdd70;
  font-weight: 950;
  text-decoration: none;
}

.emergency-content {
  display: grid;
  gap: 14px;
  padding: 14px;
}

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

.emergency-section-head.compact {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(32, 224, 196, 0.12);
}

.emergency-section-head h2 {
  margin: 0;
  color: #fff8c7;
  font-size: clamp(24px, 3vw, 36px);
}

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

.emergency-action-card {
  display: grid;
  gap: 10px;
  min-height: 220px;
  padding: 14px;
  border: 1px solid rgba(32, 224, 196, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.emergency-action-card span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 6px;
  color: #06110f;
  background: #20e0c4;
  font-size: 12px;
  font-weight: 950;
}

.emergency-action-card h3 {
  margin: 0;
  color: #f8fbff;
  font-size: 20px;
  line-height: 1.25;
}

.emergency-action-card p {
  margin: 0;
  color: rgba(239, 247, 245, 0.7);
  line-height: 1.65;
}

.emergency-action-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
}

.emergency-action-card a {
  display: inline-grid;
  min-height: 36px;
  place-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: #06110f;
  background: #ffdd70;
  font-weight: 950;
  text-decoration: none;
}

.emergency-phrase-book {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}

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

.phrase-list article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 221, 112, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.phrase-list b {
  color: #fff8c7;
}

.phrase-list p {
  margin: 0;
  color: #dffcf7;
  line-height: 1.55;
}

.phrase-list button {
  justify-self: start;
}

.emergency-disclaimer {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.emergency-disclaimer strong {
  color: #ffdd70;
  font-size: 18px;
}

.emergency-disclaimer p {
  margin: 0;
  color: rgba(239, 247, 245, 0.72);
  line-height: 1.6;
}

.emergency-disclaimer div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.emergency-disclaimer a {
  color: #20e0c4;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.emergency-help-modal[aria-hidden="true"] {
  display: none;
}

.emergency-help-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 14px;
}

.emergency-help-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
}

.emergency-help-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  width: min(760px, 96vw);
  max-height: calc(100vh - 22px);
  max-height: calc(100dvh - 22px);
  overflow-y: auto;
  padding: 14px;
  border: 1px solid rgba(255, 221, 112, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 68, 68, 0.14), transparent 42%),
    #071613;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(32, 224, 196, 0.08) inset;
}

.emergency-help-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.emergency-help-head span {
  color: #ffdd70;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.emergency-help-head h2 {
  margin: 3px 0 0;
  color: #fff8c7;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.emergency-help-head button {
  min-height: 34px;
  border: 1px solid rgba(255, 221, 112, 0.22);
  border-radius: 8px;
  color: #f8fbff;
  background: rgba(255, 255, 255, 0.06);
  padding: 0 12px;
  font-weight: 900;
}

.emergency-help-alert {
  padding: 10px 12px;
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 8px;
  background: rgba(255, 68, 68, 0.08);
}

.emergency-help-alert strong {
  color: #ffdd70;
  font-size: 17px;
}

.emergency-help-alert p {
  margin: 5px 0 0;
  color: rgba(239, 247, 245, 0.74);
  line-height: 1.55;
}

.emergency-help-callgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.emergency-help-callgrid a {
  display: grid;
  gap: 2px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(32, 224, 196, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  text-decoration: none;
}

.emergency-help-callgrid small {
  color: rgba(239, 247, 245, 0.62);
  font-weight: 900;
}

.emergency-help-callgrid b {
  color: #20e0c4;
  font-size: 24px;
}

.emergency-help-form {
  display: grid;
  gap: 9px;
}

.emergency-help-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.emergency-help-form label {
  display: grid;
  gap: 5px;
  color: #dffcf7;
  font-weight: 950;
}

.emergency-help-form input,
.emergency-help-form select,
.emergency-help-form textarea {
  min-height: 36px;
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(32, 224, 196, 0.2);
  border-radius: 8px;
  color: #f8fbff;
  background: rgba(3, 15, 18, 0.86);
  padding: 0 12px;
  font: inherit;
}

.emergency-help-form textarea {
  padding: 10px 12px;
  resize: vertical;
}

.emergency-help-preview {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid rgba(32, 224, 196, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.emergency-help-preview span {
  color: #ffdd70;
  font-size: 12px;
  font-weight: 950;
}

.emergency-help-preview p {
  margin: 0;
  color: rgba(239, 247, 245, 0.82);
  line-height: 1.65;
}

.emergency-help-actions {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 9px;
}

.emergency-help-actions button {
  min-height: 42px;
}

.copy-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  transform: translateY(14px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 14px;
  border: 1px solid rgba(32, 224, 196, 0.32);
  border-radius: 8px;
  color: #06110f;
  background: linear-gradient(135deg, #20e0c4, #ffdd70);
  font-weight: 950;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

@media (max-width: 640px) {
  .emergency-help-callgrid,
  .emergency-help-pair,
  .emergency-help-actions {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 920px) {
  .emergency-hero,
  .emergency-layout,
  .emergency-disclaimer {
    grid-template-columns: 1fr;
  }

  .emergency-side {
    position: static;
  }

  .emergency-hotlines,
  .emergency-card-grid,
  .phrase-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .emergency-page {
    width: min(100vw - 16px, 1240px);
    padding-top: 6px;
  }

  .emergency-hotlines,
  .emergency-card-grid,
  .phrase-list {
    grid-template-columns: 1fr;
  }

  .emergency-section-head {
    align-items: stretch;
    flex-direction: column;
  }
}

.top-search-zone {
  padding: 0 clamp(18px, 4vw, 56px) 18px;
  background: linear-gradient(180deg, rgba(7, 16, 15, 0.78), rgba(7, 16, 15, 0.58));
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
.filter-chip {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
}

.primary-button {
  padding: 0 18px;
  color: #04110f;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  box-shadow: 0 0 24px rgba(32, 224, 196, 0.24);
}

.primary-button:hover {
  background: linear-gradient(135deg, var(--teal-dark), #ffd06d);
}

.secondary-button,
.ghost-button {
  padding: 0 16px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.icon-button {
  width: 42px;
  color: var(--coral);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  font-size: 20px;
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: start;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=2200&q=88");
  background-size: cover;
  background-position: center 58%;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    radial-gradient(circle at 76% 28%, rgba(255, 255, 255, 0.18), transparent 24%),
    radial-gradient(circle at 68% 48%, rgba(32, 224, 196, 0.18), transparent 30%),
    linear-gradient(90deg, rgba(3, 11, 10, 0.9), rgba(3, 11, 10, 0.36)),
    linear-gradient(0deg, rgba(7, 16, 15, 0.76), rgba(32, 224, 196, 0.08)),
    linear-gradient(rgba(32, 224, 196, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 224, 196, 0.08) 1px, transparent 1px);
  background-size: auto, auto, auto, auto, 56px 56px, 56px 56px;
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0 56px;
  color: #fff;
}

.eyebrow,
.section-heading p {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.08;
  letter-spacing: 0;
  color: #fff8df;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.1),
    0 0 34px rgba(244, 185, 71, 0.22);
}

.hero-line {
  display: inline-block;
  margin-top: 0.08em;
  color: #8ffff0;
  text-shadow:
    0 0 24px rgba(32, 224, 196, 0.45),
    0 0 44px rgba(120, 246, 228, 0.18);
}

.trust-word {
  position: relative;
  display: inline-block;
  margin: 0 0.14em;
  color: #f7ecff;
  background:
    linear-gradient(135deg, #ffffff 0%, #f1d7ff 24%, #c987ff 48%, #8b5cf6 72%, #ff7adf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 1.26em;
  font-weight: 1000;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86),
    0 4px 0 rgba(64, 24, 122, 0.86),
    0 9px 18px rgba(0, 0, 0, 0.46),
    0 0 20px rgba(201, 135, 255, 0.82),
    0 0 48px rgba(255, 122, 223, 0.4);
  filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.62));
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.72);
  transform: translateY(0.07em) skewX(-5deg);
}

.trust-word::after {
  content: none;
}

.trust-word::before {
  content: "";
  position: absolute;
  inset: -0.12em -0.18em -0.14em;
  z-index: -1;
  border-radius: 0.22em;
  background:
    linear-gradient(135deg, rgba(159, 124, 255, 0.28), rgba(255, 122, 223, 0.16)),
    rgba(20, 10, 36, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 36px rgba(159, 124, 255, 0.32);
}

.hero-copy {
  max-width: 620px;
  margin: 18px 0 30px;
  color: #ffe9c4;
  font-size: 18px;
  line-height: 1.7;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.38);
}

.hero-subtitle {
  max-width: 760px;
  margin: 18px 0 0;
  color: #e7ddff;
  font-size: clamp(28px, 4.5vw, 50px);
  font-weight: 900;
  line-height: 1.12;
  text-shadow:
    0 0 24px rgba(159, 124, 255, 0.35),
    0 0 36px rgba(32, 224, 196, 0.12);
}

.search-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr) auto;
  gap: 12px;
  width: min(960px, 100%);
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(126, 232, 216, 0.28);
  background: rgba(7, 16, 15, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.mega-search {
  width: min(1180px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(260px, 1.65fr) minmax(150px, 0.55fr) minmax(170px, 0.65fr) auto;
  padding: 16px;
  overflow: hidden;
  border-color: rgba(120, 246, 228, 0.46);
  background:
    linear-gradient(135deg, rgba(32, 224, 196, 0.14), rgba(159, 124, 255, 0.08)),
    rgba(7, 16, 15, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(32, 224, 196, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.36),
    0 0 46px rgba(32, 224, 196, 0.18);
}

.mega-search::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(120, 246, 228, 0.22), transparent);
  transform: translateX(-100%);
  animation: searchScan 5s ease-in-out infinite;
  pointer-events: none;
}

.mega-search::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(244, 185, 71, 0.16);
  border-radius: 8px;
  pointer-events: none;
}

.search-panel label {
  display: grid;
  gap: 6px;
}

.search-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.mega-search input,
.mega-search select {
  min-height: 50px;
  background: rgba(0, 0, 0, 0.22);
}

.mega-search input:focus,
.mega-search select:focus {
  border-color: var(--teal);
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 0 0 0 3px rgba(32, 224, 196, 0.14);
}

.mega-search .primary-button {
  min-height: 50px;
  padding: 0 28px;
}

.search-panel input::placeholder {
  color: rgba(237, 248, 246, 0.48);
}

.search-panel .primary-button {
  align-self: end;
}

@keyframes searchScan {
  0%,
  46% {
    transform: translateX(-100%);
  }

  68%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes tilePulse {
  0%,
  13% {
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      0 14px 0 rgba(0, 0, 0, 0.24),
      0 22px 36px rgba(0, 0, 0, 0.32),
      0 0 28px rgba(120, 246, 228, 0.55),
      0 0 48px rgba(244, 185, 71, 0.24);
  }

  16%,
  100% {
    border-color: rgba(126, 232, 216, 0.24);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 14px 0 rgba(0, 0, 0, 0.24),
      0 22px 36px rgba(0, 0, 0, 0.32);
  }
}

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

  to {
    transform: translateX(100%);
  }
}

@keyframes photoNewsMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.quick-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(1120px, calc(100% - 36px));
  margin: -28px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(126, 232, 216, 0.16);
  box-shadow: var(--shadow);
}

.quick-card {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(32, 224, 196, 0.09), transparent),
    var(--surface);
}

.quick-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quick-card strong {
  line-height: 1.45;
}

.quick-card.accent {
  background:
    linear-gradient(135deg, rgba(255, 109, 82, 0.18), rgba(244, 185, 71, 0.08)),
    var(--surface);
}

.section-shell,
.market-band {
  width: min(1120px, calc(100% - 36px));
  margin: 72px auto 0;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 24px;
  align-items: stretch;
}

.section-heading h2 {
  margin: 0 0 24px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.city-list {
  display: grid;
  gap: 14px;
}

.city-item {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 132px;
  padding: 12px 18px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(32, 224, 196, 0.08), transparent),
    var(--surface);
}

.city-item.active {
  border-color: rgba(11, 129, 114, 0.35);
  box-shadow: 0 0 34px rgba(32, 224, 196, 0.14);
}

.city-item img {
  width: 112px;
  height: 108px;
  object-fit: cover;
  border-radius: 8px;
}

.city-item h3,
.guide-card h3,
.product-card h3,
.info-panel h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.city-item p,
.guide-card p,
.product-card p,
.info-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.city-item > span {
  color: var(--teal);
  font-weight: 800;
}

.info-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(32, 224, 196, 0.05);
}

.map-preview {
  position: relative;
  height: 330px;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(rgba(126, 232, 216, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 232, 216, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, rgba(32, 224, 196, 0.16), rgba(255, 109, 82, 0.12)),
    #0a1715;
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.map-preview::before {
  content: "";
  position: absolute;
  inset: 28px 58px 32px;
  border: 2px solid rgba(32, 224, 196, 0.48);
  border-left-width: 12px;
  border-bottom-width: 8px;
  border-radius: 42% 58% 52% 48%;
  transform: rotate(11deg);
}

.pin {
  position: absolute;
  padding: 7px 9px;
  border-radius: 8px;
  color: #07100f;
  background: var(--coral);
  font-size: 12px;
  font-weight: 800;
}

.bangkok {
  right: 34%;
  top: 44%;
}

.chiangmai {
  left: 18%;
  top: 18%;
  background: var(--teal);
}

.phuket {
  left: 38%;
  bottom: 10%;
  background: var(--gold);
}

.pattaya {
  right: 16%;
  top: 56%;
  background: var(--leaf);
}

.info-panel .secondary-button {
  margin-top: 22px;
}

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

.guide-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(159, 124, 255, 0.08), transparent),
    var(--surface);
}

.guide-card span {
  display: inline-flex;
  margin-bottom: 42px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(32, 224, 196, 0.12);
  font-size: 12px;
  font-weight: 800;
}

.market-band {
  padding: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(32, 224, 196, 0.1), rgba(255, 109, 82, 0.08)),
    rgba(11, 22, 21, 0.88);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-chip {
  padding: 0 15px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.filter-chip.active {
  color: #06110f;
  background: var(--teal);
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-body {
  padding: 16px;
}

.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.product-topline strong {
  color: var(--coral);
  font-size: 22px;
}

.product-topline span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(32, 224, 196, 0.12);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-summary {
  margin-bottom: 80px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(32, 224, 196, 0.1), transparent),
    var(--surface);
}

.stat-grid span,
.stat-grid small {
  display: block;
  color: var(--muted);
}

.stat-grid strong {
  display: block;
  margin: 10px 0;
  font-size: 28px;
}

.link-button {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.home-flash-link {
  animation: homeFlash 1s infinite;
}

@keyframes homeFlash {
  0%,
  100% {
    color: #06110f;
    background: var(--teal);
    border-color: rgba(32, 224, 196, 0.95);
    box-shadow: 0 0 12px rgba(32, 224, 196, 0.35);
  }

  50% {
    color: #15090c;
    background: var(--gold);
    border-color: rgba(244, 185, 71, 0.95);
    box-shadow: 0 0 28px rgba(244, 185, 71, 0.72);
  }
}

.database-page {
  padding-bottom: 90px;
}

.database-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: end;
  width: min(1120px, calc(100% - 36px));
  margin: 28px auto 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 68, 68, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(32, 224, 196, 0.12), rgba(159, 124, 255, 0.08)),
    rgba(10, 23, 21, 0.9);
  box-shadow: var(--shadow);
}

.database-hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1;
  color: #fff8df;
  text-shadow: 0 0 36px rgba(255, 68, 68, 0.24);
}

.database-hero-copy p:last-child {
  max-width: 580px;
  margin: 20px 0 0;
  color: #d9e8e5;
  font-size: 18px;
  line-height: 1.75;
}

.database-search {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 68, 68, 0.22);
  border-radius: 8px;
  background: rgba(7, 16, 15, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.database-search label:first-child {
  grid-column: span 2;
}

.database-search label {
  display: grid;
  gap: 7px;
}

.database-search span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.database-search input,
.database-search select {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  outline: none;
  background: rgba(0, 0, 0, 0.24);
}

.database-search button {
  grid-column: span 2;
}

.database-grid,
.database-section {
  width: min(1120px, calc(100% - 36px));
  margin: 24px auto 0;
}

.database-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 18px;
}

.database-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(32, 224, 196, 0.08), transparent),
    var(--surface);
}

.report-card {
  min-height: 0;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 68, 68, 0.16), rgba(244, 185, 71, 0.08)),
    var(--surface);
}

.card-label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.database-card h2 {
  margin: 10px 0 12px;
  font-size: 26px;
}

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

.database-card p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.report-card p {
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.55;
}

.report-card .primary-button {
  min-height: 48px;
  width: 100%;
  font-size: 16px;
}

.photo-news-card {
  overflow: hidden;
}

.photo-news-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.photo-news-head h2 {
  margin-bottom: 0;
}

.photo-news-head small,
.view-all-link {
  padding: 6px 9px;
  border-radius: 999px;
  color: #06110f;
  background: var(--teal);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.view-all-link {
  min-width: 116px;
  padding: 12px 20px;
  text-decoration: none;
  font-size: 16px;
  text-align: center;
}

.view-all-link:hover {
  background: var(--gold);
}

.photo-news-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.photo-news-window:hover .photo-news-track,
.photo-news-track.is-manual {
  animation-play-state: paused;
}

.photo-news-track {
  display: inline-flex;
  gap: 14px;
  min-width: max-content;
  padding: 14px;
  animation: photoNewsMove 28s linear infinite;
}

.photo-news-item {
  width: 230px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(126, 232, 216, 0.22);
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.photo-news-item:hover {
  border-color: rgba(255, 207, 69, 0.72);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.24),
    0 0 28px rgba(255, 207, 69, 0.18);
  transform: translateY(-4px);
}

.photo-news-item img {
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.photo-news-item div {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.photo-news-item strong {
  color: #fff8df;
  font-size: 15px;
  line-height: 1.35;
}

.photo-news-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.photo-news-controls {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.photo-news-controls button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 900;
}

.photo-news-controls button:hover {
  border-color: rgba(120, 246, 228, 0.58);
  box-shadow: 0 0 18px rgba(32, 224, 196, 0.16);
}

.photo-news-controls input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.case-modal[aria-hidden="true"] {
  display: none;
}

.case-modal-panel {
  position: relative;
  width: min(860px, 100%);
  max-height: min(840px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid rgba(126, 232, 216, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(32, 224, 196, 0.1), rgba(159, 124, 255, 0.08)),
    #07100f;
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.62),
    0 0 48px rgba(32, 224, 196, 0.14);
}

.case-gallery {
  display: grid;
  gap: 10px;
  padding: 0 0 12px;
}

.case-gallery > img {
  width: 100%;
  height: clamp(220px, 34vw, 360px);
  object-fit: cover;
}

.case-gallery.is-empty > img {
  display: none;
}

.image-pending-large {
  min-height: 220px;
  border-radius: 8px;
}

.submit-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 90px;
}

.submit-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 18%, rgba(32, 224, 196, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(8, 22, 40, 0.92), rgba(16, 14, 32, 0.94));
}

.submit-hero h1 {
  margin: 8px 0 12px;
  color: #f8fbff;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.95;
}

.submit-hero p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.complaint-hero {
  background:
    radial-gradient(circle at 14% 18%, rgba(244, 185, 71, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(8, 22, 40, 0.92), rgba(32, 12, 28, 0.94));
}

.submit-status-card,
.submit-side article,
.submit-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.submit-status-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 20px;
}

.submit-status-card span,
.form-section-title span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.submit-status-card strong {
  color: #fff5d8;
  font-size: 20px;
  line-height: 1.45;
}

.submit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.submit-form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-section-title:first-child {
  padding-top: 0;
  border-top: 0;
}

.form-section-title h2 {
  margin: 0;
  color: #f8fbff;
  font-size: 20px;
}

.submit-form label {
  display: grid;
  gap: 8px;
}

.submit-form label > span,
.upload-box span,
.submit-side li,
.submit-side p {
  color: var(--muted);
}

.submit-form input,
.submit-form select,
.submit-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #f8fbff;
  background: rgba(2, 8, 18, 0.62);
  font: inherit;
}

.submit-form input,
.submit-form select {
  padding: 0 14px;
}

.submit-form textarea {
  resize: vertical;
  padding: 14px;
  line-height: 1.7;
}

.submit-form input:focus,
.submit-form select:focus,
.submit-form textarea:focus {
  outline: 2px solid rgba(32, 224, 196, 0.46);
  border-color: rgba(32, 224, 196, 0.65);
}

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

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

.complaint-type-grid label {
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.complaint-type-grid label:hover {
  border-color: rgba(32, 224, 196, 0.56);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.complaint-type-grid input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.complaint-type-grid strong {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f8fbff;
  font-size: 17px;
}

.complaint-type-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.upload-box {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px dashed rgba(32, 224, 196, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(32, 224, 196, 0.08), rgba(166, 76, 255, 0.08)),
    rgba(255, 255, 255, 0.035);
}

.upload-box strong {
  color: #f8fbff;
}

.upload-box .ghost-button,
.file-button {
  justify-self: start;
}

.file-button {
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
  cursor: pointer;
}

.file-button:hover {
  border-color: rgba(32, 224, 196, 0.58);
  box-shadow: 0 0 22px rgba(32, 224, 196, 0.18);
}

.file-input {
  position: absolute;
  width: 1px !important;
  height: 1px;
  min-height: 1px !important;
  opacity: 0;
  pointer-events: none;
}

.file-summary {
  color: rgba(245, 250, 255, 0.7);
  line-height: 1.6;
  word-break: break-word;
}

.publish-page {
  padding-top: 18px;
}

.publish-hero {
  background:
    radial-gradient(circle at 14% 18%, rgba(32, 224, 196, 0.2), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(244, 185, 71, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(8, 22, 40, 0.94), rgba(10, 28, 22, 0.94));
}

.publish-status-card strong {
  color: #fff1a8;
}

.publish-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.publish-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 12px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(32, 224, 196, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(32, 224, 196, 0.06), rgba(166, 76, 255, 0.07)),
    rgba(255, 255, 255, 0.028);
}

.publish-title-field {
  align-content: start;
}

.publish-title-field > span {
  color: #fff1a8;
  font-weight: 900;
}

.publish-title-field input {
  min-height: 54px;
  border-color: rgba(32, 224, 196, 0.28);
  background:
    linear-gradient(135deg, rgba(2, 8, 18, 0.82), rgba(8, 22, 40, 0.72)),
    rgba(2, 8, 18, 0.72);
  font-size: 17px;
  font-weight: 800;
}

.publish-category-picker {
  grid-column: auto;
  position: relative;
  display: grid;
  gap: 8px;
}

.publish-category-label {
  color: var(--muted);
  font-size: 16px;
}

.publish-category-display {
  width: 100%;
  min-height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid rgba(244, 185, 71, 0.34);
  border-radius: 8px;
  color: #fff7c6;
  text-align: left;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(244, 185, 71, 0.1), rgba(166, 76, 255, 0.08)),
    rgba(2, 8, 18, 0.78);
  box-shadow: 0 0 18px rgba(166, 76, 255, 0.12);
  cursor: pointer;
}

.publish-category-display::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-64%) rotate(45deg);
  opacity: 0.78;
}

.publish-category-picker.menu-open .publish-category-display {
  border-color: rgba(32, 224, 196, 0.78);
  box-shadow:
    0 0 0 3px rgba(32, 224, 196, 0.16),
    0 0 28px rgba(166, 76, 255, 0.2);
}

.category-hidden-select {
  display: none;
}

.publish-category-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  left: 0;
  display: none;
  width: min(190px, 100%);
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(32, 224, 196, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 22, 40, 0.98), rgba(10, 25, 32, 0.98)),
    rgba(2, 8, 18, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), 0 0 34px rgba(166, 76, 255, 0.18);
}

.publish-category-picker.menu-level-sub .publish-category-menu {
  width: min(390px, calc(100vw - 72px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.publish-category-picker.menu-level-third .publish-category-menu {
  width: min(590px, calc(100vw - 72px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.publish-category-picker.menu-open .publish-category-menu {
  display: grid;
  animation: categoryReveal 0.22s ease-out both;
}

.publish-category-column {
  display: grid;
  align-content: start;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  padding-right: 3px;
}

.publish-category-column:empty {
  display: none;
}

.publish-category-column button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(245, 250, 255, 0.82);
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.publish-category-column button[data-type="main"]::after,
.publish-category-column button[data-type="sub"]::after {
  content: ">";
  color: rgba(32, 224, 196, 0.72);
  font-weight: 900;
}

.publish-category-column button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-category-column button:hover,
.publish-category-column button.active {
  border-color: rgba(244, 185, 71, 0.5);
  color: #fff7c6;
  background: linear-gradient(135deg, rgba(244, 185, 71, 0.18), rgba(166, 76, 255, 0.14));
}

.publish-phone-row {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.publish-phone-row > span {
  color: var(--muted);
}

.publish-phone-row > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
}

@keyframes categoryReveal {
  from {
    opacity: 0;
    transform: translateX(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.scan-title-box {
  display: grid;
  align-content: end;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.scan-title-button {
  display: inline-grid !important;
  min-height: 54px;
  place-items: center;
  padding: 0 14px;
  border: 1px solid rgba(244, 185, 71, 0.38);
  border-radius: 8px;
  color: #07100f;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  box-shadow: 0 12px 26px rgba(32, 224, 196, 0.14);
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.scan-title-button:hover {
  box-shadow: 0 0 24px rgba(244, 185, 71, 0.28);
}

.scan-title-box small {
  color: rgba(245, 250, 255, 0.72);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.publish-upload {
  overflow: hidden;
}

.publish-image-preview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.publish-image-preview img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(32, 224, 196, 0.24);
  border-radius: 8px;
  object-fit: cover;
  background: rgba(2, 8, 18, 0.56);
}

.publish-preview-side {
  position: sticky;
  top: 92px;
}

.publish-card-preview {
  overflow: hidden;
  border: 1px solid rgba(32, 224, 196, 0.26);
  border-radius: 8px;
  background: rgba(2, 8, 18, 0.56);
}

.publish-card-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.publish-card-preview div {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.publish-card-preview h2 {
  margin: 0;
  color: #f8fbff;
  font-size: 19px;
  line-height: 1.25;
}

.publish-card-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.publish-card-preview strong {
  color: var(--coral);
  font-size: 28px;
}

.publish-card-preview span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.complaint-upload {
  border-color: rgba(244, 185, 71, 0.42);
  background:
    linear-gradient(135deg, rgba(244, 185, 71, 0.08), rgba(166, 76, 255, 0.08)),
    rgba(255, 255, 255, 0.035);
}

.check-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

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

.submit-side {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.submit-side article {
  padding: 18px;
}

.submit-side h2 {
  margin: 8px 0 10px;
  color: #f8fbff;
  font-size: 20px;
}

.submit-side ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.submit-side p {
  line-height: 1.7;
}

.login-page {
  min-height: calc(100vh - 78px);
  padding: 38px clamp(18px, 4vw, 56px) 80px;
  background:
    radial-gradient(circle at 12% 18%, rgba(32, 224, 196, 0.18), transparent 30%),
    radial-gradient(circle at 78% 24%, rgba(166, 76, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(7, 16, 15, 0.32), rgba(7, 16, 15, 0.92));
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 28px;
  align-items: stretch;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.login-intro,
.login-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.login-intro {
  display: grid;
  align-content: center;
  gap: 22px;
  min-height: 640px;
  padding: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(32, 224, 196, 0.08), rgba(166, 76, 255, 0.1)),
    rgba(255, 255, 255, 0.045);
}

.register-intro {
  background:
    linear-gradient(135deg, rgba(244, 185, 71, 0.08), rgba(32, 224, 196, 0.1)),
    rgba(255, 255, 255, 0.045);
}

.login-intro h1 {
  max-width: 680px;
  color: #f8fbff;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.92;
}

.login-intro > p:last-of-type {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.login-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.login-benefits article {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(2, 8, 18, 0.34);
}

.login-benefits span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.login-benefits strong {
  color: #f8fbff;
}

.login-benefits small {
  color: var(--muted);
  line-height: 1.55;
}

.login-card {
  display: grid;
  gap: 18px;
  align-content: center;
  padding: clamp(24px, 4vw, 38px);
}

.login-card h2 {
  margin-top: 8px;
  color: #f8fbff;
  font-size: 34px;
}

.login-card label {
  display: grid;
  gap: 8px;
}

.login-card label span {
  color: var(--muted);
}

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

.login-field-head span {
  color: var(--muted);
}

.login-field-head button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(32, 224, 196, 0.36);
  border-radius: 8px;
  color: var(--teal);
  background: rgba(32, 224, 196, 0.08);
  font-weight: 800;
  cursor: pointer;
}

.login-field-head button:hover {
  border-color: rgba(32, 224, 196, 0.72);
  box-shadow: 0 0 18px rgba(32, 224, 196, 0.2);
}

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

.email-login-row {
  display: grid;
}

.phone-login-row[hidden],
.email-login-row[hidden] {
  display: none;
}

.login-card input,
.login-card select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #f8fbff;
  background: rgba(2, 8, 18, 0.62);
  font: inherit;
}

.login-card input:focus,
.login-card select:focus {
  outline: 2px solid rgba(32, 224, 196, 0.42);
  border-color: rgba(32, 224, 196, 0.66);
}

.login-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
  align-items: end;
}

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

.login-options label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-options input {
  width: 18px;
  min-height: 18px;
}

.login-options a,
.login-note a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

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

.register-agreement label {
  align-items: flex-start;
}

.register-agreement span {
  line-height: 1.6;
}

.login-submit {
  min-height: 50px;
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}

.login-divider::before,
.login-divider::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.wechat-login {
  min-height: 48px;
  border: 1px solid rgba(32, 224, 196, 0.34);
  border-radius: 8px;
  color: #e9fff8;
  background: rgba(0, 180, 110, 0.16);
  font-weight: 900;
  cursor: pointer;
}

.wechat-login:hover {
  border-color: rgba(32, 224, 196, 0.72);
  box-shadow: 0 0 26px rgba(32, 224, 196, 0.2);
}

.auth-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-message[data-type="success"] {
  color: var(--teal);
}

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

.code-message {
  margin-top: -10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.user-pill {
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  padding: 0 16px;
  border: 1px solid rgba(32, 224, 196, 0.4);
  border-radius: 999px;
  color: #e9fff8;
  background: rgba(32, 224, 196, 0.12);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.user-pill:hover {
  border-color: rgba(32, 224, 196, 0.8);
  box-shadow: 0 0 24px rgba(32, 224, 196, 0.22);
}

.profile-page {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 90px;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 18%, rgba(32, 224, 196, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(8, 22, 40, 0.92), rgba(16, 14, 32, 0.94));
}

.profile-avatar {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 22px;
  color: #06110f;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  font-size: 34px;
  font-weight: 1000;
}

.profile-hero h1 {
  margin: 6px 0;
  color: #f8fbff;
  font-size: clamp(32px, 5vw, 58px);
}

.profile-hero p:last-child {
  color: var(--muted);
}

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

.profile-card {
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.profile-card h2 {
  margin: 10px 0;
  color: #f8fbff;
  font-size: 22px;
}

.profile-card p {
  color: var(--muted);
  line-height: 1.7;
}

.profile-card strong {
  color: #fff5d8;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.market-page {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 90px;
}

.marketplace-screen {
  overflow: hidden;
}

.marketplace-screen .market-page {
  height: 100vh;
  overflow: hidden;
  padding-top: calc(var(--market-search-top, 76px) + var(--market-search-height, 58px));
  padding-bottom: 0;
}

.marketplace-screen .market-search-console {
  position: fixed;
  top: var(--market-search-top, 76px);
  left: max(18px, calc((100vw - 1240px) / 2));
  width: min(1240px, calc(100vw - 36px));
  margin-bottom: 0;
}

.market-hero-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 18px;
}

.market-hero-copy,
.market-command,
.market-search-console,
.market-orbit,
.market-live-panel,
.market-trust-grid article,
.publish-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.market-hero-copy {
  padding: clamp(26px, 5vw, 54px);
  background:
    radial-gradient(circle at 12% 24%, rgba(244, 185, 71, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(10, 24, 38, 0.94), rgba(18, 16, 34, 0.94));
}

.market-hero-copy h1 {
  max-width: 760px;
  margin: 8px 0 14px;
  color: #f8fbff;
  font-size: clamp(42px, 7vw, 94px);
  line-height: 0.92;
}

.market-hero-copy p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.market-command {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(32, 224, 196, 0.13), transparent),
    rgba(255, 255, 255, 0.045);
}

.market-command span,
.market-command small {
  color: var(--muted);
}

.market-command strong {
  color: var(--teal);
  font-size: 82px;
  line-height: 1;
}

.market-search-console {
  position: sticky;
  top: 78px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 170px 180px 140px;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  padding: 8px 10px;
  backdrop-filter: blur(18px);
}

.market-search-console label {
  display: grid;
  gap: 4px;
}

.market-search-console span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.market-search-console input,
.market-search-console select {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #f8fbff;
  background: rgba(2, 8, 18, 0.62);
}

.market-search-console .primary-button {
  min-height: 34px;
  padding: 0 12px;
}

.market-app-layout {
  --market-nav-width: clamp(96px, 7vw, 112px);
  display: grid;
  grid-template-columns: var(--market-nav-width) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 22px;
}

.market-side-nav,
.market-feed,
.market-seller-panel article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.market-side-nav {
  position: fixed;
  top: var(--market-nav-top, 238px);
  left: var(--market-nav-left, max(18px, calc((100vw - 1240px) / 2)));
  z-index: 24;
  display: grid;
  grid-template-rows: repeat(18, minmax(0, 1fr));
  gap: 0;
  height: var(--market-nav-height, min(500px, calc(100vh - 330px)));
  max-height: var(--market-nav-height, min(500px, calc(100vh - 330px)));
  overflow: visible;
  width: var(--market-nav-width);
  padding: 2px;
  background:
    linear-gradient(180deg, #091815, #050c0b),
    #07100e;
}

.market-side-nav strong {
  margin-bottom: 0;
  color: #fff5d8;
  font-size: clamp(11px, 1.42vh, 14px);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.market-side-nav button {
  display: grid;
  min-height: 0;
  height: 100%;
  place-items: center;
  padding: 0 2px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #fff1a8;
  background: transparent;
  font-size: clamp(10.5px, 1.42vh, 13.5px);
  line-height: 0.86;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
  text-shadow:
    0 0 10px rgba(244, 185, 71, 0.48),
    0 0 18px rgba(32, 224, 196, 0.18);
}

.market-side-nav button.active,
.market-side-nav button:hover {
  border-color: rgba(32, 224, 196, 0.42);
  color: #f7fffb;
  background: rgba(32, 224, 196, 0.1);
}

.market-side-nav button.pulse-ring {
  animation: categoryPulse 1s ease-in-out infinite;
}

@keyframes categoryPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(186, 92, 255, 0);
    color: #e9fff8;
  }

  18%,
  52%,
  86% {
    border-color: rgba(196, 111, 255, 0.95);
    color: #ffffff;
    background: rgba(141, 71, 255, 0.24);
    box-shadow:
      0 0 0 2px rgba(186, 92, 255, 0.45),
      0 0 22px rgba(186, 92, 255, 0.72),
      inset 0 0 14px rgba(186, 92, 255, 0.24);
  }

  34%,
  68% {
    border-color: rgba(32, 224, 196, 0.42);
    background: rgba(32, 224, 196, 0.1);
    box-shadow: 0 0 0 rgba(186, 92, 255, 0);
  }
}

.category-sub-panel {
  position: absolute;
  left: calc(100% + 10px);
  top: 0 !important;
  z-index: 25;
  display: none;
  width: 156px;
  max-height: var(--market-nav-height, min(520px, calc(100vh - 150px)));
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(244, 185, 71, 0.46);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(244, 185, 71, 0.15), rgba(15, 13, 25, 0.96)),
    rgba(12, 12, 20, 0.96);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34), 0 0 24px rgba(244, 185, 71, 0.12);
}

.category-sub-panel.show {
  display: grid;
  gap: 6px;
}

.category-sub-panel button {
  min-height: 30px;
  padding: 6px;
  border-color: rgba(244, 185, 71, 0.18);
  color: #fff4cf;
  background: rgba(244, 185, 71, 0.08);
}

.category-sub-panel button:hover {
  border-color: rgba(244, 185, 71, 0.54);
  color: #1c1300;
  background: var(--gold);
}

.category-sub-panel button.pulse-ring {
  animation: categoryPulse 1s ease-in-out infinite;
}

.category-third-panel {
  position: absolute;
  left: calc(100% + 176px);
  top: 0 !important;
  z-index: 26;
  display: none;
  width: 172px;
  max-height: var(--market-nav-height, min(520px, calc(100vh - 150px)));
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(32, 224, 196, 0.46);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(32, 224, 196, 0.15), rgba(8, 16, 26, 0.97)),
    rgba(8, 16, 26, 0.97);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38), 0 0 26px rgba(32, 224, 196, 0.16);
}

.category-third-panel.show {
  display: grid;
  gap: 6px;
}

.category-third-panel strong {
  display: block;
  padding: 4px 6px 6px;
  color: #fff1a8;
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
}

.category-third-panel button {
  min-height: 30px;
  padding: 6px;
  border: 1px solid rgba(32, 224, 196, 0.18);
  border-radius: 6px;
  color: #dffcf7;
  background: rgba(32, 224, 196, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.category-third-panel button:hover {
  border-color: rgba(32, 224, 196, 0.62);
  color: #031613;
  background: var(--teal);
}

.category-third-panel button.active {
  border-color: rgba(244, 185, 71, 0.76);
  color: #1b1402;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(244, 185, 71, 0.34);
}

.market-feed {
  grid-column: 2;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(32, 224, 196, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.045);
}

.marketplace-screen .market-app-layout {
  position: fixed;
  top: var(--market-nav-top, 134px);
  left: max(18px, calc((100vw - 1240px) / 2));
  width: min(1240px, calc(100vw - 36px));
  height: var(--market-nav-height, calc(100vh - 238px));
  margin-bottom: 0;
  min-height: 0;
}

.marketplace-screen .market-feed {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(32, 224, 196, 0.1), rgba(5, 14, 12, 0.98) 34%),
    #06100f;
}

.market-feed-head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.market-result-count {
  margin: 0;
  color: #fff1a8;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(244, 185, 71, 0.32);
}

.market-feed-head h2 {
  margin: 4px 0 0;
  color: #f8fbff;
  font-size: clamp(26px, 3vw, 42px);
}

.market-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.market-sort button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(2, 8, 18, 0.44);
  font-weight: 900;
}

.market-sort button.active,
.market-sort button:hover {
  border-color: rgba(244, 185, 71, 0.48);
  color: #1b1402;
  background: var(--gold);
}

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

.marketplace-screen .market-feed-grid {
  display: block;
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  cursor: grab;
  user-select: none;
}

.market-feed-scroll-window {
  position: absolute;
  inset: 0 22px 0 0;
  overflow-y: scroll;
  scrollbar-width: none;
}

.market-feed-scroll-window::-webkit-scrollbar {
  display: none;
}

.market-vertical-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: var(--market-card-height, 240px);
  gap: 14px;
  min-height: 100%;
}

.marketplace-screen .market-feed-grid.dragging {
  cursor: grabbing;
}

.market-feed-scrollbar {
  position: absolute;
  top: 0;
  right: 2px;
  width: 14px;
  height: 100%;
  border-radius: 999px;
  background: rgba(5, 18, 20, 0.88);
  box-shadow: inset 0 0 0 1px rgba(32, 224, 196, 0.22), 0 0 16px rgba(32, 224, 196, 0.18);
  cursor: pointer;
}

.market-feed-scrollbar span {
  display: block;
  width: 100%;
  min-height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d0fff8 0%, #20e0c4 55%, #0d8f7f 100%);
  box-shadow: 0 0 14px rgba(32, 224, 196, 0.5);
  cursor: grab;
}

.marketplace-screen .market-feed-grid.dragging .market-feed-scrollbar span {
  cursor: grabbing;
}

.feed-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 8, 18, 0.56);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.marketplace-screen .feed-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 58%) minmax(0, 42%);
  min-height: 0;
  cursor: pointer;
}

.feed-card:hover {
  border-color: rgba(32, 224, 196, 0.45);
  box-shadow: 0 18px 44px rgba(32, 224, 196, 0.13);
  transform: translateY(-4px);
}

.feed-card.large {
  grid-column: auto;
}

.feed-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.marketplace-screen .feed-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
}

.feed-card.large img {
  aspect-ratio: 4 / 3;
}

.feed-card div {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.marketplace-screen .feed-card div {
  position: static;
  align-content: start;
  min-height: 0;
  gap: 6px;
  padding: 11px 12px;
  background:
    linear-gradient(135deg, rgba(2, 8, 18, 0.94), rgba(8, 20, 28, 0.9)),
    rgba(2, 8, 18, 0.72);
}

.feed-card h3,
.market-seller-panel h2 {
  margin: 0;
  color: #f8fbff;
  line-height: 1.28;
}

.feed-card h3 {
  font-size: 16px;
}

.marketplace-screen .feed-card h3 {
  font-size: clamp(13px, 1.35vw, 16px);
  line-height: 1.18;
  display: -webkit-box;
  min-height: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.feed-card p,
.market-seller-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.marketplace-screen .feed-card p {
  font-size: clamp(12px, 1.08vw, 14px);
  line-height: 1.25;
  color: rgba(239, 247, 245, 0.82);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.feed-card strong {
  color: var(--coral);
  font-size: 21px;
}

.marketplace-screen .feed-card strong {
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1;
}

.marketplace-screen .feed-card span.feed-card-foot {
  justify-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  overflow: hidden;
  color: var(--teal);
  font-size: 12px;
  max-width: 100%;
  min-width: 0;
  text-align: left;
}

.feed-card-foot b,
.feed-card-foot em {
  overflow: hidden;
  min-width: 0;
  font-style: normal;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-card-foot b {
  color: var(--teal);
}

.feed-card-foot em {
  color: #fff1a8;
  text-align: right;
}

.market-empty-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 28px;
  border: 1px dashed rgba(32, 224, 196, 0.32);
  border-radius: 8px;
  color: #dffcf7;
  background: rgba(2, 8, 18, 0.48);
  font-weight: 900;
  text-align: center;
}

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

.market-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
}

.market-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(1, 7, 9, 0.72);
  backdrop-filter: blur(12px);
}

.market-detail-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(420px, 1.12fr);
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: hidden;
  border: 1px solid rgba(32, 224, 196, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(32, 224, 196, 0.13), rgba(7, 16, 15, 0.98) 34%),
    #06100f;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.62), 0 0 34px rgba(32, 224, 196, 0.14);
}

.market-detail-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.market-detail-card img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.market-media-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(2, 8, 18, 0.55);
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), 0 0 20px rgba(32, 224, 196, 0.25);
}

.market-media-nav.prev {
  left: 14px;
}

.market-media-nav.next {
  right: 14px;
}

.market-media-nav:hover {
  background: rgba(32, 224, 196, 0.35);
}

.market-detail-body {
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: hidden;
  padding: 30px;
}

.market-detail-description-shell {
  position: relative;
  max-height: 190px;
  padding-right: 30px;
  border: 1px solid rgba(32, 224, 196, 0.22);
  border-radius: 8px;
  background: rgba(2, 8, 18, 0.34);
}

.market-detail-description {
  max-height: 188px;
  overflow-y: auto;
  padding: 14px 12px 14px 16px;
  scrollbar-width: none;
}

.market-detail-description::-webkit-scrollbar {
  display: none;
}

.market-scroll-rail {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 12px;
  height: calc(100% - 24px);
  border-radius: 999px;
  background: rgba(6, 24, 26, 0.95);
  box-shadow: inset 0 0 0 1px rgba(32, 224, 196, 0.22), 0 0 16px rgba(32, 224, 196, 0.24);
  pointer-events: auto;
  cursor: pointer;
}

.market-scroll-rail span {
  display: block;
  width: 100%;
  min-height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d0fff8 0%, #20e0c4 52%, #0d8f7f 100%);
  box-shadow: 0 0 14px rgba(32, 224, 196, 0.52);
  transform: translateY(0);
  cursor: grab;
}

.market-detail-body span {
  color: var(--teal);
  font-weight: 900;
}

.market-detail-body h2 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
}

.market-detail-body strong {
  color: var(--coral);
  font-size: 30px;
}

.market-offer-status,
.feed-card-offer {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 214, 112, 0.34);
  border-radius: 8px;
  color: #fff1a8;
  background: rgba(255, 214, 112, 0.12);
  font-size: 13px;
  font-weight: 900;
}

.feed-card-offer {
  min-height: 24px;
  font-size: 12px;
}

.market-detail-body p {
  margin: 0;
  color: rgba(239, 247, 245, 0.82);
  line-height: 1.7;
}

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

.market-detail-grid span {
  min-height: 34px;
  padding: 8px;
  border: 1px solid rgba(32, 224, 196, 0.18);
  border-radius: 8px;
  color: #fff1a8;
  background: rgba(2, 8, 18, 0.42);
  font-size: 12px;
}

.market-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.market-contact-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.market-detail-actions .ghost-button.active {
  color: #06110f;
  background: linear-gradient(135deg, #ffdd70, #20e0c4);
  box-shadow: 0 0 18px rgba(255, 221, 112, 0.24);
}

.market-detail-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #f8fbff;
  background: rgba(2, 8, 18, 0.72);
  font-size: 24px;
  line-height: 1;
}

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

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

.market-popover-modal {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  padding: 20px;
}

.market-popover-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(1, 7, 9, 0.58);
  backdrop-filter: blur(8px);
}

.market-contact-card,
.market-report-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(520px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid rgba(32, 224, 196, 0.32);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 214, 112, 0.14), transparent 34%),
    rgba(5, 12, 18, 0.98);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.62), 0 0 28px rgba(32, 224, 196, 0.14);
}

.market-contact-card > button,
.market-report-form > button[aria-label] {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 22px;
}

.market-contact-card span,
.market-report-form span {
  color: var(--teal);
  font-weight: 900;
}

.market-contact-card h2,
.market-report-form h2 {
  margin: 0;
  color: #f8fbff;
}

.market-contact-card p {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 214, 112, 0.24);
  border-radius: 8px;
  color: #fff1a8;
  background: rgba(255, 214, 112, 0.08);
  font-size: 18px;
  font-weight: 900;
}

.market-report-form label {
  display: grid;
  gap: 6px;
  color: #dffcf7;
  font-weight: 900;
}

.market-report-form input,
.market-report-form select,
.market-report-form textarea {
  width: 100%;
  border: 1px solid rgba(32, 224, 196, 0.24);
  border-radius: 8px;
  color: #f8fbff;
  background: rgba(2, 8, 18, 0.72);
  padding: 10px;
  font: inherit;
}

.market-chat-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 20px;
}

.market-chat-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(1, 7, 9, 0.66);
  backdrop-filter: blur(10px);
}

.market-chat-window {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto minmax(260px, 1fr) auto;
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  overflow: hidden;
  border: 1px solid rgba(32, 224, 196, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 214, 112, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(6, 16, 24, 0.98), rgba(5, 10, 18, 0.98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.66), 0 0 34px rgba(32, 224, 196, 0.18);
}

.market-chat-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(32, 224, 196, 0.18);
}

.market-chat-header span {
  color: var(--teal);
  font-weight: 900;
}

.market-chat-header h2 {
  margin: 4px 0 0;
  color: #f8fbff;
  font-size: 20px;
  line-height: 1.2;
}

.market-chat-header button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 24px;
}

.market-translate-bar {
  display: grid;
  grid-template-columns: auto minmax(180px, 330px) 96px;
  gap: 8px;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(32, 224, 196, 0.16);
  background: rgba(2, 8, 18, 0.5);
}

.market-translate-bar strong {
  color: #fff1a8;
}

.market-translate-bar select,
.market-translate-bar button {
  min-height: 36px;
  border: 1px solid rgba(32, 224, 196, 0.22);
  border-radius: 8px;
  color: #eafffb;
  background: rgba(2, 8, 18, 0.68);
  font-weight: 800;
}

.market-translate-bar button {
  color: #07110e;
  background: linear-gradient(135deg, #ffdd70, #20e0c4);
  box-shadow: 0 0 18px rgba(255, 221, 112, 0.28);
}

.market-translate-bar button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #20c997, #1677ff);
  box-shadow: 0 0 22px rgba(32, 224, 196, 0.34);
}

.market-chat-messages {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  padding: 18px 20px;
}

.chat-bubble {
  width: min(78%, 460px);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.chat-bubble small {
  color: rgba(239, 247, 245, 0.62);
  font-weight: 900;
}

.chat-bubble p {
  margin: 6px 0 0;
  color: #eff7f5;
  line-height: 1.65;
}

.chat-bubble.buyer {
  justify-self: end;
  background: linear-gradient(135deg, rgba(32, 224, 196, 0.24), rgba(255, 214, 112, 0.14));
}

.chat-bubble.offer-message {
  border-color: rgba(255, 214, 112, 0.34);
}

.chat-bubble.offer-message strong {
  color: #fff1a8;
  font-size: 20px;
}

.chat-bubble.offer-message.accepted {
  box-shadow: 0 0 22px rgba(32, 224, 196, 0.18);
}

.offer-accept-button {
  min-height: 34px;
  margin-top: 10px;
  padding: 0 14px;
  border: 1px solid rgba(32, 224, 196, 0.28);
  border-radius: 8px;
  color: #06110f;
  background: linear-gradient(135deg, #20e0c4, #ffdd70);
  font-weight: 900;
}

.offer-accept-button:disabled {
  color: #dffcf7;
  background: rgba(32, 224, 196, 0.18);
}

.chat-bubble.translated {
  border-color: rgba(255, 214, 112, 0.28);
  background: rgba(255, 214, 112, 0.08);
}

.market-chat-compose {
  display: grid;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(32, 224, 196, 0.16);
}

.market-chat-compose textarea {
  width: 100%;
  resize: none;
  border: 1px solid rgba(32, 224, 196, 0.24);
  border-radius: 8px;
  color: #f8fbff;
  background: rgba(2, 8, 18, 0.76);
  padding: 12px;
  font: inherit;
}

.market-chat-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.market-chat-attach {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-chat-attach button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(32, 224, 196, 0.24);
  border-radius: 8px;
  color: #eafffb;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
}

.market-chat-attach span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  color: #06110f;
  background: linear-gradient(135deg, #20e0c4, #ffdd70);
  font-size: 12px;
}

.market-offer-panel[hidden] {
  display: none;
}

.market-offer-panel {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 214, 112, 0.28);
  border-radius: 8px;
  background: rgba(255, 214, 112, 0.08);
}

.market-offer-panel label,
.market-offer-panel small {
  color: #fff1a8;
  font-weight: 900;
}

.market-offer-panel input {
  min-height: 36px;
  border: 1px solid rgba(32, 224, 196, 0.24);
  border-radius: 8px;
  color: #f8fbff;
  background: rgba(2, 8, 18, 0.78);
  padding: 0 10px;
  font: inherit;
}

.market-offer-panel button {
  min-height: 36px;
  border: 1px solid rgba(32, 224, 196, 0.28);
  border-radius: 8px;
  color: #06110f;
  background: linear-gradient(135deg, #20e0c4, #ffdd70);
  font-weight: 900;
}

.market-offer-panel small {
  grid-column: 1 / -1;
  color: rgba(255, 241, 168, 0.78);
  font-size: 12px;
}

@media (max-width: 900px) {
  .market-detail-card {
    grid-template-columns: 1fr;
  }

  .market-detail-media {
    min-height: 300px;
  }

  .market-detail-card img {
    min-height: 300px;
  }

  .market-media-nav {
    width: 42px;
    height: 56px;
    font-size: 34px;
  }

  .market-translate-bar {
    grid-template-columns: 1fr;
  }

  .market-translate-bar strong {
    display: none;
  }
}

.marketplace-screen .market-dashboard,
.marketplace-screen .market-trust-grid,
.marketplace-screen .publish-preview {
  display: none;
}

.feed-card span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.market-seller-panel {
  display: grid;
  gap: 14px;
}

.market-seller-panel article {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.seller-action-card {
  background:
    radial-gradient(circle at 20% 12%, rgba(244, 185, 71, 0.2), transparent 30%),
    linear-gradient(160deg, rgba(32, 224, 196, 0.12), rgba(255, 255, 255, 0.045));
}

.seller-action-card .primary-button {
  justify-self: start;
}

.market-dashboard {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.market-orbit {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(32, 224, 196, 0.16) 0 2px, transparent 3px),
    rgba(255, 255, 255, 0.04);
  background-size: 28px 28px;
}

.orbit-core {
  position: absolute;
  inset: 50%;
  display: grid;
  width: 128px;
  height: 128px;
  place-items: center;
  border: 1px solid rgba(32, 224, 196, 0.52);
  border-radius: 50%;
  background: rgba(7, 16, 15, 0.9);
  box-shadow: 0 0 46px rgba(32, 224, 196, 0.18);
  transform: translate(-50%, -50%);
}

.orbit-core strong {
  color: #fff5d8;
  font-size: 28px;
}

.orbit-core span {
  color: var(--muted);
  font-size: 12px;
}

.market-orbit button {
  position: absolute;
  left: 50%;
  top: 50%;
  min-width: 86px;
  min-height: 44px;
  border: 1px solid rgba(32, 224, 196, 0.36);
  border-radius: 8px;
  color: #e9fff8;
  background: rgba(32, 224, 196, 0.1);
  font-weight: 900;
  transform:
    rotate(calc(var(--i) * 60deg))
    translateX(122px)
    rotate(calc(var(--i) * -60deg))
    translate(-50%, -50%);
}

.market-live-panel {
  padding: 22px;
}

.market-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-tabs button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-weight: 800;
}

.market-tabs .active {
  color: #06110f;
  background: var(--teal);
}

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

.market-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 8, 18, 0.42);
}

.market-item.hot {
  grid-row: span 2;
}

.market-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.market-item.hot img {
  aspect-ratio: 4 / 4.25;
}

.market-item div {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.market-item span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.market-item h3 {
  margin: 0;
  color: #f8fbff;
  font-size: 20px;
}

.market-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.market-item strong {
  color: var(--coral);
  font-size: 26px;
}

.market-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.market-trust-grid article {
  padding: 20px;
}

.market-trust-grid h2,
.publish-preview h2 {
  margin: 10px 0;
  color: #f8fbff;
}

.market-trust-grid p,
.publish-preview p {
  color: var(--muted);
  line-height: 1.7;
}

.publish-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: center;
  margin-top: 22px;
  padding: 24px;
}

.publish-mini-form {
  display: grid;
  gap: 10px;
}

.publish-mini-form span {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #e9fff8;
  background: rgba(255, 255, 255, 0.04);
}

.login-note {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.case-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 14px;
}

.case-thumbs button {
  flex: 0 0 92px;
  height: 62px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.case-thumbs button.active {
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(244, 185, 71, 0.3);
}

.case-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-modal-body {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.case-modal-body span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.case-modal-body .case-time {
  color: #8ffff0;
}

.case-modal-body h2 {
  margin: 0;
  color: #fff8df;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.12;
}

.case-modal-body h3 {
  margin: 0;
  color: #8ffff0;
  font-size: 20px;
  line-height: 1.45;
}

.case-modal-body h4 {
  margin: 8px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--gold);
  font-size: 22px;
}

.case-modal-body p {
  margin: 0;
  color: #d9e8e5;
  font-size: 16px;
  line-height: 1.75;
}

.case-article {
  display: grid;
  gap: 14px;
}

.case-article p {
  color: #d9e8e5;
}

.case-modal-body .primary-button {
  justify-self: start;
  margin-top: 6px;
}

.case-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  font-size: 28px;
  line-height: 1;
}

.exposure-page {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 90px;
}

.exposure-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: end;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 68, 68, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(32, 224, 196, 0.12), rgba(159, 124, 255, 0.08)),
    rgba(10, 23, 21, 0.9);
  box-shadow: var(--shadow);
}

.exposure-hero h1 {
  margin: 0;
  color: #fff8df;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1;
}

.exposure-hero p:last-child {
  max-width: 680px;
  margin: 18px 0 0;
  color: #d9e8e5;
  font-size: 18px;
  line-height: 1.7;
}

.exposure-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.exposure-stats article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.exposure-stats span,
.exposure-stats strong {
  display: block;
}

.exposure-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.exposure-stats strong {
  margin-top: 8px;
  color: var(--teal-dark);
  font-size: 24px;
}

.exposure-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(150px, 0.7fr));
  gap: 12px;
  margin-top: 0;
  padding: 16px;
  border: 1px solid rgba(126, 232, 216, 0.28);
  border-radius: 8px;
  background: rgba(7, 16, 15, 0.76);
}

.exposure-toolbar label {
  display: grid;
  gap: 7px;
}

.exposure-toolbar span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.exposure-toolbar input,
.exposure-toolbar select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  outline: none;
  background: rgba(0, 0, 0, 0.22);
}

.exposure-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.exposure-list-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
}

.exposure-list-head p {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.exposure-list-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.exposure-list-head span {
  color: var(--muted);
  font-weight: 900;
}

.exposure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.exposure-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.exposure-card:hover {
  border-color: rgba(255, 207, 69, 0.68);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
  transform: translateY(-5px);
}

.exposure-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-pending {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  padding: 18px;
  color: rgba(245, 250, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(20, 224, 196, 0.14), rgba(166, 76, 255, 0.16)),
    rgba(8, 15, 30, 0.82);
  font-size: 0.9rem;
  letter-spacing: 0;
  text-align: center;
}

.exposure-card div {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.exposure-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.exposure-card h3 {
  margin: 0;
  color: #fff8df;
  font-size: 19px;
  line-height: 1.28;
}

.exposure-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.news-ticker-section {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  align-items: center;
  width: min(1120px, calc(100% - 36px));
  margin: 18px auto 0;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 68, 68, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 68, 68, 0.14), rgba(32, 224, 196, 0.08)),
    rgba(10, 23, 21, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.ticker-title {
  display: grid;
  gap: 4px;
}

.ticker-title span {
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
}

.ticker-title strong {
  color: #fff8df;
  font-size: 20px;
}

.news-ticker {
  overflow: hidden;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  min-width: max-content;
  min-height: 44px;
  padding: 0 18px;
  animation: tickerMove 24s linear infinite;
}

.ticker-track span {
  position: relative;
  color: #ffe9c4;
  font-weight: 800;
  white-space: nowrap;
}

.ticker-track span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 0 0 14px rgba(255, 109, 82, 0.7);
}

.rule-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-list li {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.rule-list strong {
  color: #fff8df;
}

.rule-list span {
  color: var(--muted);
}

.rule-list-wide {
  grid-template-columns: repeat(3, 1fr);
}

.rule-list-wide li {
  grid-template-columns: 1fr;
  min-height: 132px;
  padding: 18px;
}

.rule-list-wide strong {
  color: #fff8df;
  font-size: 20px;
}

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

.risk-grid article {
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.risk-grid strong,
.risk-grid span {
  display: block;
}

.risk-grid strong {
  margin-bottom: 28px;
  color: #fff8df;
  font-size: 20px;
}

.risk-grid span {
  color: var(--muted);
  line-height: 1.5;
}

.case-list {
  display: grid;
  gap: 14px;
}

.case-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.case-item span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #06110f;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.case-item.high span {
  background: var(--coral);
}

.case-item h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.case-item p,
.case-item small {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.city-risk {
  align-self: start;
}

.risk-meter {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.risk-meter div {
  display: grid;
  gap: 8px;
}

.risk-meter span {
  color: #d9e8e5;
  font-weight: 800;
}

.risk-meter strong {
  display: block;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.risk-meter strong::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral));
  box-shadow: 0 0 18px rgba(255, 109, 82, 0.35);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.process-grid article {
  min-height: 132px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(159, 124, 255, 0.1), transparent),
    var(--surface);
  text-align: center;
}

.process-grid strong {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #06110f;
  background: var(--teal);
  box-shadow: 0 0 22px rgba(32, 224, 196, 0.35);
}

.process-grid span {
  color: #d9e8e5;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    align-items: center;
  }

  .control-dock {
    top: 76px;
  }

  .category-strip {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .top-search-zone {
    padding-bottom: 16px;
  }

  .search-panel,
  .quick-grid,
  .split-layout,
  .guide-grid,
  .product-grid,
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .search-panel .primary-button {
    grid-column: span 2;
  }

  .mega-search {
    grid-template-columns: 1fr 1fr;
  }

  .mega-search .search-keyword {
    grid-column: span 2;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .database-hero,
  .database-grid,
  .news-ticker-section,
  .risk-grid,
  .process-grid,
  .exposure-hero,
  .exposure-toolbar,
  .exposure-grid,
  .submit-hero,
  .submit-layout,
  .login-shell {
    grid-template-columns: 1fr 1fr;
  }

  .database-hero-copy,
  .submit-hero > div:first-child,
  .submit-form {
    grid-column: span 2;
  }

  .exposure-hero > div:first-child,
  .exposure-search {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: auto;
    padding: 12px 16px;
  }

  .brand small,
  .header-actions .icon-button {
    display: none;
  }

  .category-strip {
    grid-auto-flow: column;
    grid-auto-columns: 172px;
    grid-template-columns: none;
    overflow-x: auto;
    padding: 14px;
    scroll-snap-type: x mandatory;
  }

  .control-dock {
    position: relative;
    top: auto;
  }

  .category-tile {
    min-height: 82px;
    scroll-snap-align: start;
  }

  .category-tile span {
    font-size: 18px;
  }

  .top-search-zone {
    padding: 0 14px 14px;
  }

  .hero {
    min-height: 640px;
  }

  .hero-content {
    width: calc(100% - 28px);
    padding: 82px 0 36px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .search-panel,
  .quick-grid,
  .guide-grid,
  .product-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .search-panel .primary-button {
    grid-column: auto;
  }

  .mega-search,
  .mega-search .search-keyword {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .quick-grid {
    margin-top: 18px;
  }

  .city-item {
    grid-template-columns: 88px 1fr;
  }

  .city-item img {
    width: 88px;
    height: 92px;
  }

  .city-item > span {
    grid-column: 2;
  }

  .row-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-band {
    padding: 20px;
  }

  .database-hero,
  .database-grid,
  .news-ticker-section,
  .risk-grid,
  .process-grid,
  .database-search,
  .exposure-hero,
  .exposure-toolbar,
  .exposure-grid,
  .exposure-stats,
  .submit-hero,
  .submit-layout,
  .form-grid,
  .complaint-type-grid,
  .login-shell,
  .login-benefits,
  .login-code-row,
  .phone-login-row,
  .publish-phone-row > div,
  .profile-hero,
  .profile-grid,
  .market-hero-v2,
  .market-search-console,
  .market-app-layout,
  .market-dashboard,
  .market-feed-grid,
  .market-product-wall,
  .market-trust-grid,
  .publish-category-picker,
  .publish-preview {
    grid-template-columns: 1fr;
  }

  .database-hero {
    margin-top: 24px;
    padding: 22px;
  }

  .database-search label:first-child,
  .database-search button,
  .database-hero-copy {
    grid-column: auto;
  }

  .case-item {
    grid-template-columns: 1fr;
  }

  .exposure-page {
    width: calc(100% - 28px);
    padding-top: 22px;
  }

  .submit-page {
    width: calc(100% - 28px);
    padding-top: 22px;
  }

  .submit-hero,
  .submit-form {
    padding: 20px;
  }

  .submit-side {
    position: static;
  }

  .login-page {
    padding: 22px 14px 70px;
  }

  .login-intro {
    min-height: auto;
    padding: 22px;
  }

  .login-card {
    padding: 22px;
  }

  .profile-page {
    width: calc(100% - 28px);
    padding-top: 22px;
  }

  .profile-hero {
    justify-items: start;
    padding: 22px;
  }

  .market-page {
    width: calc(100% - 28px);
    padding-top: 22px;
  }

  .market-side-nav {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    align-items: center;
    height: auto;
    max-height: none;
    width: auto;
  }

  .category-sub-panel {
    position: static;
    grid-column: 1 / -1;
    width: auto;
    min-width: 100%;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
  }

  .market-feed {
    grid-column: auto;
  }

  .market-side-nav strong {
    margin: 0 8px 0 0;
    white-space: nowrap;
  }

  .market-feed-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .feed-card.large {
    grid-column: auto;
  }

  .feed-card.large img {
    aspect-ratio: 4 / 3;
  }

  .market-orbit {
    min-height: 360px;
  }

  .market-orbit button {
    transform:
      rotate(calc(var(--i) * 60deg))
      translateX(96px)
      rotate(calc(var(--i) * -60deg))
      translate(-50%, -50%);
  }

  .market-item.hot {
    grid-row: auto;
  }

  .submit-hero > div:first-child,
  .submit-form {
    grid-column: auto;
  }

  .exposure-hero {
    padding: 22px;
  }

  .exposure-hero > div:first-child,
  .exposure-search {
    grid-column: auto;
  }

  .exposure-list-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .rule-list li {
    grid-template-columns: 1fr;
  }

  .rule-list-wide {
    grid-template-columns: 1fr;
  }

  .photo-news-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-ticker-section {
    gap: 10px;
    padding: 14px;
  }

  .ticker-title strong {
    font-size: 18px;
  }
}

/* 同城搭子最终布局覆盖：固定筛选/分类，右侧内容独立滚动 */
.buddy-bottom-safety {
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  padding: 7px 12px 7px 10px;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.buddy-bottom-safety p {
  line-height: 1.25;
}

.buddy-bottom-safety .ghost-button {
  min-height: 34px;
  padding: 0 12px;
}

.buddy-category-panel {
  top: 134px;
  bottom: 58px;
  left: 0;
  width: 86px;
  gap: 2px;
  padding: 5px;
  grid-template-rows: repeat(13, minmax(0, 1fr));
}

.buddy-category-panel button {
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 0 5px;
  font-size: 13px;
  line-height: 1.05;
}

.buddy-layout {
  width: 100%;
  margin: 0;
  padding-right: 12px;
  padding-left: 98px;
  padding-bottom: 68px;
}

.buddy-feed {
  min-height: 0;
}

.buddy-feed-head {
  padding: 9px 12px;
}

.buddy-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  height: min(calc(100vh - 268px), 474px);
  min-height: 356px;
  max-height: none;
  overflow-y: scroll;
  padding-right: 12px;
  scrollbar-color: #ffdd70 rgba(255, 255, 255, 0.12);
  scrollbar-width: auto;
}

.buddy-card-grid::-webkit-scrollbar {
  width: 16px;
}

.buddy-card-grid::-webkit-scrollbar-track {
  border: 1px solid rgba(32, 224, 196, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.buddy-card-grid::-webkit-scrollbar-thumb {
  border: 3px solid rgba(7, 22, 19, 0.92);
  border-radius: 999px;
  background: linear-gradient(180deg, #20e0c4, #ffdd70);
}

.buddy-card {
  grid-template-rows: 86px auto auto minmax(0, 1fr) auto;
  gap: 7px;
  min-height: 232px;
  padding: 9px;
}

.buddy-card > img {
  height: 86px;
}

.buddy-card h2 {
  font-size: 15px;
}

.buddy-card p {
  font-size: 13px;
  line-height: 1.38;
}

@media (max-width: 1100px) {
  .buddy-layout {
    padding-left: 98px;
  }

  .buddy-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .buddy-category-panel {
    top: 134px;
    bottom: 58px;
    left: 0;
    width: 86px;
  }
}

@media (max-width: 760px) {
  .buddy-layout {
    padding-right: 10px;
    padding-left: 10px;
  }

  .buddy-category-panel {
    position: sticky;
    top: 134px;
    bottom: auto;
    left: auto;
    width: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .buddy-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: min(calc(100vh - 326px), 474px);
  }
}

.buddy-grid-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 8px;
  min-height: 0;
}

.buddy-grid-shell .buddy-card-grid {
  padding-right: 4px;
}

.buddy-scroll-control {
  position: relative;
  width: 18px;
  border: 1px solid rgba(32, 224, 196, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(32, 224, 196, 0.12), rgba(255, 221, 112, 0.14)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(32, 224, 196, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: ns-resize;
}

.buddy-scroll-control span {
  position: absolute;
  top: 4px;
  right: 3px;
  left: 3px;
  min-height: 48px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffdd70, #20e0c4);
  box-shadow: 0 0 18px rgba(255, 221, 112, 0.4);
  transform: translateY(0);
}

@media (max-width: 760px) {
  .buddy-grid-shell {
    grid-template-columns: minmax(0, 1fr) 16px;
  }
}

/* 同城搭子筛选标题竖排贴边 */
.buddy-toolbar label {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}

.buddy-toolbar span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 46px;
  color: #ffdd70;
  font-size: 16px;
  line-height: 1.05;
  letter-spacing: 1px;
  white-space: nowrap;
  text-orientation: upright;
  writing-mode: vertical-rl;
}

.buddy-toolbar input,
.buddy-toolbar select {
  width: 100%;
  min-width: 0;
}

.buddy-bottom-safety {
  grid-template-columns: 28px minmax(0, 1fr) max-content;
  align-items: center;
}

.buddy-bottom-safety div {
  display: contents;
}

.buddy-bottom-safety strong {
  display: inline-grid;
  place-items: center;
  width: 28px;
  min-height: 48px;
  color: #ffdd70;
  font-size: 16px;
  font-weight: 1000;
  line-height: 1.05;
  letter-spacing: 1px;
  text-orientation: upright;
  text-shadow: 0 0 14px rgba(255, 221, 112, 0.55);
  white-space: nowrap;
  writing-mode: vertical-rl;
}

/* 同城搭子内容区自适应：不再锁死 4x2 */
.buddy-layout {
  height: calc(100vh - 144px);
  padding-bottom: 64px;
}

.buddy-feed {
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}

.buddy-grid-shell {
  height: 100%;
}

.buddy-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-content: start;
  height: 100%;
  min-height: 0;
  max-height: none;
}

.buddy-card {
  min-height: 214px;
}

@media (min-width: 1280px) {
  .buddy-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

@media (max-width: 900px) {
  .buddy-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }
}

/* 安全提醒底栏修正：三行高度，按钮固定右下角 */
.buddy-bottom-safety {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: end;
  height: 62px;
  min-height: 62px;
  max-height: 62px;
  overflow: hidden;
  padding: 6px 12px 7px 8px;
}

.buddy-bottom-safety div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.buddy-bottom-safety strong {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 54px;
  color: #ffdd70;
  font-size: 14px;
  font-weight: 1000;
  line-height: 0.95;
  letter-spacing: 0;
  text-orientation: upright;
  text-shadow: 0 0 14px rgba(255, 221, 112, 0.55);
  white-space: nowrap;
  writing-mode: vertical-rl;
}

.buddy-bottom-safety p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(239, 247, 245, 0.8);
  font-size: 12px;
  line-height: 1.28;
  white-space: normal;
  text-overflow: clip;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.buddy-bottom-safety p + p {
  display: none;
}

.buddy-bottom-safety .ghost-button {
  align-self: end;
  justify-self: end;
  min-height: 32px;
  height: 32px;
  padding: 0 12px;
  white-space: nowrap;
}

.buddy-category-panel {
  bottom: 66px;
}

.buddy-layout {
  padding-bottom: 68px;
}

/* 安全提醒 2x2 方格版，底部上移避免浏览器遮挡 */
.buddy-bottom-safety {
  right: 0;
  bottom: 10px;
  left: 0;
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  width: calc(100% - 12px);
  margin: 0 6px;
  padding: 7px 12px 7px 8px;
  border: 1px solid rgba(255, 221, 112, 0.22);
  border-radius: 8px;
}

.buddy-bottom-safety div {
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.buddy-bottom-safety strong {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  width: 52px;
  height: 50px;
  color: #ffdd70;
  font-size: 17px;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 14px rgba(255, 221, 112, 0.6);
  white-space: normal;
  writing-mode: horizontal-tb;
}

.buddy-bottom-safety strong span {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(255, 221, 112, 0.24);
  border-radius: 4px;
  background: rgba(255, 221, 112, 0.08);
}

.buddy-bottom-safety p {
  -webkit-line-clamp: 3;
}

.buddy-bottom-safety .ghost-button {
  align-self: center;
  justify-self: end;
}

.buddy-category-panel {
  bottom: 82px;
}

.buddy-layout {
  padding-bottom: 86px;
}

/* 搭子卡片强化图片特写 */
.buddy-card {
  position: relative;
  grid-template-rows: 142px auto minmax(0, 1fr) auto;
  gap: 6px;
  min-height: 248px;
  padding: 6px;
  border-color: rgba(32, 224, 196, 0.1);
  border-radius: 6px;
}

.buddy-card > img {
  height: 142px;
  border-color: rgba(32, 224, 196, 0.1);
  border-radius: 5px;
}

.buddy-card span {
  position: absolute;
  top: 116px;
  left: 12px;
  z-index: 2;
  border: 1px solid rgba(6, 17, 15, 0.22);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.buddy-card b {
  font-size: 10px;
  line-height: 1.05;
}

.buddy-card small {
  font-size: 11px;
}

.buddy-card div {
  align-self: end;
  margin-top: 8px;
}

.buddy-card h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.life-screen {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 10%, rgba(32, 224, 196, 0.14), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(145, 215, 111, 0.12), transparent 28%),
    linear-gradient(180deg, #07100f 0%, #0b1714 52%, #07100f 100%);
}

.life-page {
  display: grid;
  gap: 10px;
  width: min(1240px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 6px 0 22px;
}

.life-toolbar {
  position: sticky;
  top: 76px;
  z-index: 9;
  display: grid;
  grid-template-columns: 132px minmax(260px, 1fr) 150px 104px;
  gap: 8px;
  align-items: end;
  padding: 8px 10px;
  border: 1px solid rgba(32, 224, 196, 0.26);
  border-radius: 8px;
  background: #0b2423;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 221, 112, 0.06);
}

.life-toolbar label,
.life-category-panel,
.life-content,
.life-hero > div,
.life-hero aside {
  color: #dffcf7;
}

.life-toolbar label {
  display: grid;
  gap: 4px;
  font-weight: 900;
}

.life-toolbar span {
  color: rgba(255, 221, 112, 0.78);
  font-size: 11px;
}

.life-toolbar input,
.life-toolbar select {
  min-height: 34px;
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(32, 224, 196, 0.2);
  border-radius: 8px;
  color: #f8fbff;
  background: rgba(3, 15, 18, 0.84);
  padding: 0 12px;
  font: inherit;
}

.life-toolbar .primary-button {
  min-height: 34px;
}

.life-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 10px;
}

.life-hero > div,
.life-hero aside,
.life-category-panel,
.life-content {
  border: 1px solid rgba(32, 224, 196, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(32, 224, 196, 0.1), transparent 44%),
    rgba(6, 18, 18, 0.9);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 221, 112, 0.05);
}

.life-hero > div {
  padding: 18px 22px;
}

.life-hero span,
.life-section-head p {
  margin: 0 0 6px;
  color: #ffdd70;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.life-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff8c7;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.05;
}

.life-hero p {
  max-width: 760px;
  margin: 10px 0 0;
  color: rgba(239, 247, 245, 0.75);
  line-height: 1.65;
}

.life-hero aside {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 16px;
}

.life-hero aside b {
  color: #20e0c4;
  font-size: 20px;
}

.life-hero aside p {
  margin: 0;
  color: rgba(239, 247, 245, 0.74);
}

.life-hero aside a {
  color: #ffdd70;
  font-weight: 950;
  text-decoration: none;
}

.life-layout {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.life-category-panel {
  position: sticky;
  top: 144px;
  display: grid;
  gap: 7px;
  padding: 10px;
}

.life-category-panel button {
  min-height: 36px;
  border: 1px solid rgba(32, 224, 196, 0.16);
  border-radius: 8px;
  color: #dffcf7;
  background: rgba(3, 15, 18, 0.72);
  font-weight: 950;
  text-align: left;
}

.life-category-panel button.active {
  color: #06110f;
  background: linear-gradient(135deg, #20e0c4, #ffdd70);
}

.life-content {
  display: grid;
  gap: 12px;
  padding: 12px;
}

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

.life-section-head.compact {
  padding-top: 4px;
  border-top: 1px solid rgba(32, 224, 196, 0.14);
}

.life-section-head h2 {
  margin: 0;
  color: #fff8c7;
  font-size: clamp(24px, 3vw, 36px);
}

.life-section-head > div:last-child {
  display: flex;
  gap: 7px;
}

.life-section-head button {
  min-height: 34px;
  border: 1px solid rgba(32, 224, 196, 0.18);
  border-radius: 8px;
  color: #dffcf7;
  background: rgba(255, 255, 255, 0.05);
  padding: 0 12px;
  font-weight: 900;
}

.life-section-head button.active {
  color: #06110f;
  background: #ffdd70;
}

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

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

.life-priority-grid article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 221, 112, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.life-priority-grid span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 6px;
  color: #06110f;
  background: #ffdd70;
  font-size: 12px;
  font-weight: 950;
}

.life-priority-grid b {
  color: #f8fbff;
  font-size: 17px;
}

.life-priority-grid p {
  margin: 0;
  color: rgba(239, 247, 245, 0.68);
  line-height: 1.55;
}

.life-guide-card {
  display: grid;
  gap: 10px;
  min-height: 250px;
  padding: 14px;
  border: 1px solid rgba(32, 224, 196, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.life-guide-card span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 6px;
  color: #06110f;
  background: #20e0c4;
  font-size: 12px;
  font-weight: 950;
}

.life-guide-card h3 {
  margin: 0;
  color: #f8fbff;
  font-size: 21px;
  line-height: 1.25;
}

.life-guide-card p {
  margin: 0;
  color: rgba(239, 247, 245, 0.72);
  line-height: 1.65;
}

.life-guide-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 221, 112, 0.84);
  font-size: 13px;
  line-height: 1.4;
}

.life-detail-button {
  align-self: end;
  min-height: 36px;
  border: 1px solid rgba(32, 224, 196, 0.18);
  border-radius: 8px;
  color: #06110f;
  background: linear-gradient(135deg, #20e0c4, #ffdd70);
  font-weight: 950;
}

.life-doc-zone {
  display: grid;
  gap: 12px;
}

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

.life-doc-grid article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(32, 224, 196, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.life-doc-grid b {
  color: #20e0c4;
}

.life-doc-grid span {
  color: rgba(239, 247, 245, 0.7);
  line-height: 1.55;
}

.life-detail-modal[aria-hidden="true"] {
  display: none;
}

.life-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 14px;
}

.life-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
}

.life-detail-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(860px, 96vw);
  max-height: calc(100vh - 22px);
  max-height: calc(100dvh - 22px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid rgba(32, 224, 196, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(32, 224, 196, 0.12), transparent 42%),
    #071613;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 221, 112, 0.08) inset;
}

.life-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.life-detail-head span {
  color: #ffdd70;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.life-detail-head h2 {
  margin: 4px 0 0;
  color: #fff8c7;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.life-detail-head button {
  min-height: 34px;
  border: 1px solid rgba(32, 224, 196, 0.2);
  border-radius: 8px;
  color: #f8fbff;
  background: rgba(255, 255, 255, 0.06);
  padding: 0 12px;
  font-weight: 900;
}

.life-detail-summary {
  margin: 0;
  color: rgba(239, 247, 245, 0.78);
  line-height: 1.7;
}

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

.life-detail-body section {
  padding: 12px;
  border: 1px solid rgba(32, 224, 196, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.life-detail-body h3 {
  margin: 0 0 10px;
  color: #20e0c4;
}

.life-detail-body ol,
.life-detail-body ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: rgba(239, 247, 245, 0.76);
  line-height: 1.55;
}

.life-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.life-detail-actions > * {
  min-height: 42px;
}

.life-service-zone {
  display: grid;
  gap: 12px;
}

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

.life-service-grid article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 221, 112, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.life-service-grid span {
  color: #ffdd70;
  font-weight: 950;
}

.life-service-grid b {
  color: #dffcf7;
  line-height: 1.4;
}

.life-service-grid small {
  color: rgba(239, 247, 245, 0.58);
  font-weight: 800;
}

@media (max-width: 980px) {
  .life-toolbar,
  .life-hero,
  .life-layout {
    grid-template-columns: 1fr;
  }

  .life-category-panel {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .life-card-grid,
  .life-priority-grid,
  .life-doc-grid,
  .life-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 560px) {
  .life-page {
    width: min(100vw - 16px, 1240px);
  }

  .life-category-panel,
  .life-card-grid,
  .life-priority-grid,
  .life-doc-grid,
  .life-service-grid {
    grid-template-columns: 1fr;
  }

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

.life-section-head {
    align-items: stretch;
    flex-direction: column;
  }
}

.fun-screen {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 109, 82, 0.15), transparent 30%),
    radial-gradient(circle at 86% 14%, rgba(244, 185, 71, 0.14), transparent 30%),
    linear-gradient(180deg, #07100f 0%, #0c1714 52%, #07100f 100%);
}

.fun-page {
  display: grid;
  gap: 10px;
  width: min(1240px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 6px 0 22px;
}

.fun-toolbar {
  position: sticky;
  top: 76px;
  z-index: 9;
  display: grid;
  grid-template-columns: 132px minmax(260px, 1fr) 132px 104px;
  gap: 8px;
  align-items: end;
  padding: 8px 10px;
  border: 1px solid rgba(255, 221, 112, 0.24);
  border-radius: 8px;
  background: #10211d;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(32, 224, 196, 0.06);
}

.fun-toolbar label {
  display: grid;
  gap: 4px;
  color: #dffcf7;
  font-weight: 900;
}

.fun-toolbar span,
.fun-hero-copy > span,
.fun-section-head p {
  color: #ffdd70;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.fun-toolbar span {
  font-size: 11px;
}

.fun-toolbar input,
.fun-toolbar select,
.fun-plan-form select {
  min-height: 34px;
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(255, 221, 112, 0.18);
  border-radius: 8px;
  color: #f8fbff;
  background: rgba(3, 15, 18, 0.84);
  padding: 0 12px;
  font: inherit;
}

.fun-toolbar .primary-button {
  min-height: 34px;
}

.fun-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 10px;
}

.fun-hero-copy,
.fun-hero-map,
.fun-category-panel,
.fun-content {
  border: 1px solid rgba(255, 221, 112, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 109, 82, 0.1), transparent 44%),
    rgba(6, 18, 18, 0.9);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(32, 224, 196, 0.05);
}

.fun-hero-copy {
  padding: 18px 22px;
}

.fun-hero h1 {
  max-width: 780px;
  margin: 6px 0 0;
  color: #fff8c7;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.05;
}

.fun-hero p {
  max-width: 780px;
  margin: 10px 0 0;
  color: rgba(239, 247, 245, 0.75);
  line-height: 1.65;
}

.fun-hero-map {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 16px;
}

.fun-hero-map b {
  color: #20e0c4;
  font-size: 20px;
}

.fun-hero-map div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fun-hero-map span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #06110f;
  background: linear-gradient(135deg, #20e0c4, #ffdd70);
  font-weight: 950;
}

.fun-hero-map p {
  margin: 0;
  color: rgba(239, 247, 245, 0.72);
}

.fun-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.fun-category-panel {
  position: sticky;
  top: 144px;
  display: grid;
  gap: 7px;
  padding: 10px;
}

.fun-category-panel button {
  min-height: 38px;
  border: 1px solid rgba(255, 221, 112, 0.14);
  border-radius: 8px;
  color: #dffcf7;
  background: rgba(3, 15, 18, 0.72);
  font-weight: 950;
  text-align: left;
}

.fun-category-panel button.active {
  color: #06110f;
  background: linear-gradient(135deg, #20e0c4, #ffdd70);
}

.fun-content {
  display: grid;
  gap: 12px;
  padding: 12px;
}

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

.fun-section-head h2 {
  margin: 0;
  color: #fff8c7;
  font-size: clamp(24px, 3vw, 36px);
}

.fun-section-head > div:last-child {
  display: flex;
  gap: 7px;
}

.fun-section-head button {
  min-height: 34px;
  border: 1px solid rgba(255, 221, 112, 0.16);
  border-radius: 8px;
  color: #dffcf7;
  background: rgba(255, 255, 255, 0.05);
  padding: 0 12px;
  font-weight: 900;
}

.fun-section-head button.active {
  color: #06110f;
  background: #ffdd70;
}

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

.fun-quick-grid article {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(255, 221, 112, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.fun-quick-grid span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 6px;
  color: #06110f;
  background: #ffdd70;
  font-size: 12px;
  font-weight: 950;
}

.fun-quick-grid b {
  color: #f8fbff;
}

.fun-quick-grid small {
  color: rgba(239, 247, 245, 0.6);
}

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

.fun-card {
  display: grid;
  gap: 9px;
  min-height: 390px;
  padding: 8px;
  border: 1px solid rgba(255, 221, 112, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.fun-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.fun-card span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 6px;
  color: #06110f;
  background: #20e0c4;
  font-size: 12px;
  font-weight: 950;
}

.fun-card h3 {
  margin: 0;
  color: #f8fbff;
  font-size: 21px;
  line-height: 1.25;
}

.fun-card p {
  margin: 0;
  color: rgba(239, 247, 245, 0.72);
  line-height: 1.55;
}

.fun-card div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #ffdd70;
  font-size: 12px;
  font-weight: 900;
}

.fun-detail-button {
  align-self: end;
  min-height: 36px;
  border: 1px solid rgba(32, 224, 196, 0.18);
  border-radius: 8px;
  color: #06110f;
  background: linear-gradient(135deg, #20e0c4, #ffdd70);
  font-weight: 950;
}

.fun-detail-modal[aria-hidden="true"],
.fun-plan-modal[aria-hidden="true"] {
  display: none;
}

.fun-detail-modal,
.fun-plan-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 14px;
}

.fun-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
}

.fun-detail-panel,
.fun-plan-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(860px, 96vw);
  max-height: calc(100vh - 22px);
  max-height: calc(100dvh - 22px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid rgba(255, 221, 112, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 109, 82, 0.12), transparent 42%),
    #071613;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(32, 224, 196, 0.08) inset;
}

.fun-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.fun-detail-head span {
  color: #ffdd70;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.fun-detail-head h2 {
  margin: 4px 0 0;
  color: #fff8c7;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.fun-detail-head button {
  min-height: 34px;
  border: 1px solid rgba(255, 221, 112, 0.2);
  border-radius: 8px;
  color: #f8fbff;
  background: rgba(255, 255, 255, 0.06);
  padding: 0 12px;
  font-weight: 900;
}

.fun-detail-panel > img {
  width: 100%;
  height: clamp(190px, 34vh, 320px);
  object-fit: cover;
  border-radius: 8px;
}

.fun-detail-panel > p,
.fun-plan-result {
  margin: 0;
  color: rgba(239, 247, 245, 0.78);
  line-height: 1.7;
}

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

.fun-detail-body section,
.fun-plan-result {
  padding: 12px;
  border: 1px solid rgba(255, 221, 112, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.fun-detail-body h3 {
  margin: 0 0 10px;
  color: #20e0c4;
}

.fun-detail-body ol,
.fun-detail-body ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: rgba(239, 247, 245, 0.76);
  line-height: 1.55;
}

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

.fun-plan-form label {
  display: grid;
  gap: 5px;
  color: #dffcf7;
  font-weight: 950;
}

@media (max-width: 980px) {
  .fun-toolbar,
  .fun-hero,
  .fun-layout {
    grid-template-columns: 1fr;
  }

  .fun-category-panel {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fun-quick-grid,
  .fun-card-grid,
  .fun-detail-body,
  .fun-plan-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .fun-page {
    width: min(100vw - 16px, 1240px);
  }

  .fun-category-panel,
  .fun-quick-grid,
  .fun-card-grid,
  .fun-detail-body,
  .fun-plan-form {
    grid-template-columns: 1fr;
  }

  .fun-section-head {
    align-items: stretch;
    flex-direction: column;
  }
}

.fun-guide-page {
  gap: 12px;
}

.fun-guide-hero .fun-hero-copy {
  min-height: 190px;
  background:
    linear-gradient(100deg, rgba(6, 18, 18, 0.88), rgba(6, 18, 18, 0.6)),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.fun-guide-hero h1 {
  font-size: clamp(38px, 5vw, 70px);
}

.fun-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.fun-hero-tags b {
  padding: 8px 10px;
  border: 1px solid rgba(255, 221, 112, 0.2);
  border-radius: 8px;
  color: #06110f;
  background: linear-gradient(135deg, #20e0c4, #ffdd70);
  font-size: 13px;
}

.fun-guide-radar {
  background:
    radial-gradient(circle at 20% 20%, rgba(32, 224, 196, 0.2), transparent 34%),
    radial-gradient(circle at 78% 28%, rgba(255, 221, 112, 0.16), transparent 32%),
    rgba(6, 18, 18, 0.92);
}

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

.fun-channel-card {
  display: grid;
  gap: 8px;
  min-height: 122px;
  padding: 14px;
  border: 1px solid rgba(255, 221, 112, 0.2);
  border-radius: 8px;
  color: #f8fbff;
  text-align: left;
  background:
    linear-gradient(145deg, rgba(32, 224, 196, 0.12), rgba(255, 221, 112, 0.08)),
    rgba(6, 18, 18, 0.9);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.fun-channel-card span {
  color: #ffdd70;
  font-size: 21px;
  font-weight: 950;
}

.fun-channel-card strong {
  color: #eafffb;
  line-height: 1.45;
}

.fun-channel-card small {
  color: rgba(239, 247, 245, 0.62);
  line-height: 1.45;
}

.fun-channel-card.active {
  color: #06110f;
  border-color: rgba(255, 221, 112, 0.55);
  background: linear-gradient(135deg, #20e0c4, #ffdd70);
  box-shadow: 0 0 0 1px rgba(255, 221, 112, 0.26), 0 0 30px rgba(32, 224, 196, 0.18);
}

.fun-channel-card.active span,
.fun-channel-card.active strong,
.fun-channel-card.active small {
  color: #06110f;
}

.fun-guide-layout {
  grid-template-columns: 170px minmax(0, 1fr);
}

.fun-guide-category {
  top: 146px;
}

.fun-guide-category button {
  min-height: 34px;
  font-size: 14px;
}

.fun-guide-content {
  min-height: 600px;
}

.fun-guide-quick article {
  min-height: 106px;
}

.fun-guide-card {
  min-height: 410px;
}

.fun-guide-card img {
  height: 170px;
}

.fun-guide-card span {
  background: linear-gradient(135deg, #20e0c4, #ffdd70);
}

@media (max-width: 1080px) {
  .fun-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .fun-guide-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .fun-channel-grid {
    grid-template-columns: 1fr;
  }

  .fun-guide-card img {
    height: 190px;
  }
}

.fun-trend-page {
  gap: 12px;
  width: min(1320px, calc(100vw - 28px));
}

.fun-trend-toolbar {
  grid-template-columns: 132px minmax(280px, 1fr) 132px 86px;
  border-color: rgba(118, 255, 227, 0.26);
  background:
    linear-gradient(135deg, rgba(20, 234, 211, 0.12), rgba(255, 221, 112, 0.06)),
    #071815;
}

.fun-trend-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.78fr);
  gap: 10px;
  align-items: stretch;
}

.fun-trend-feature {
  position: relative;
  min-height: 288px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(118, 255, 227, 0.2);
  background: #071613;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.fun-trend-feature > img {
  width: 100%;
  height: 100%;
  min-height: 288px;
  object-fit: cover;
  filter: saturate(1.14) contrast(1.04);
}

.fun-trend-feature .fun-feature-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-content: start;
  padding: 18px;
  padding-right: 140px;
  background: linear-gradient(180deg, rgba(3, 12, 14, 0.86), rgba(3, 12, 14, 0.08) 74%);
}

.fun-trend-feature .fun-feature-overlay span,
.fun-trend-card span {
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 6px;
  color: #07100f;
  background: linear-gradient(135deg, #63ffe0, #ffe36f);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.fun-trend-feature .fun-feature-overlay h1 {
  max-width: 520px;
  margin: 0;
  color: #fff8c7;
  font-size: 36px;
  line-height: 1.05;
}

.fun-trend-feature .fun-feature-overlay p {
  max-width: 680px;
  margin: 0;
  color: rgba(248, 251, 255, 0.82);
  line-height: 1.7;
}

.fun-trend-feature .fun-feature-overlay div,
.fun-trend-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #ffe36f;
  font-size: 12px;
  font-weight: 950;
}

.fun-trend-feature > .fun-detail-button {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  min-height: 38px;
  padding: 0 14px;
}

.fun-trend-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fun-trend-category {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  min-height: 88px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #f8fbff;
  text-align: left;
  background: #0b1d1a;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.fun-trend-category span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 950;
}

.fun-trend-category b {
  color: #fff8c7;
  font-size: 20px;
  line-height: 1.08;
}

.fun-trend-category small {
  align-self: end;
  color: rgba(248, 251, 255, 0.72);
  line-height: 1.45;
}

.fun-trend-category.food {
  background: linear-gradient(135deg, rgba(255, 111, 97, 0.38), rgba(10, 30, 25, 0.94));
}

.fun-trend-category.night-market {
  background: linear-gradient(135deg, rgba(255, 219, 88, 0.36), rgba(8, 28, 34, 0.94));
}

.fun-trend-category.nightlife {
  background: linear-gradient(135deg, rgba(168, 93, 255, 0.4), rgba(8, 20, 28, 0.94));
}

.fun-trend-category.scenic {
  background: linear-gradient(135deg, rgba(55, 224, 185, 0.36), rgba(10, 28, 24, 0.94));
}

.fun-trend-category.route {
  grid-column: 1 / -1;
  min-height: 72px;
  background: linear-gradient(135deg, rgba(64, 156, 255, 0.34), rgba(255, 221, 112, 0.18), rgba(8, 22, 24, 0.94));
}

.fun-trend-category.active {
  border-color: rgba(255, 227, 111, 0.7);
  box-shadow: 0 0 0 1px rgba(99, 255, 224, 0.22), 0 0 36px rgba(99, 255, 224, 0.2);
  transform: translateY(-1px);
}

.fun-trend-feed {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(118, 255, 227, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 111, 97, 0.07), rgba(99, 255, 224, 0.07)),
    rgba(5, 17, 17, 0.92);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.fun-trend-head {
  padding: 4px 2px;
}

.fun-trend-head h2 {
  color: #fff8c7;
  font-size: 34px;
}

.fun-trend-actions {
  display: flex;
  gap: 7px;
}

.fun-trend-actions button {
  min-height: 34px;
  border: 1px solid rgba(255, 227, 111, 0.18);
  border-radius: 8px;
  color: #dffcf7;
  background: rgba(255, 255, 255, 0.055);
  padding: 0 13px;
  font-weight: 950;
}

.fun-trend-actions button.active {
  color: #06110f;
  background: linear-gradient(135deg, #63ffe0, #ffe36f);
}

.fun-vibe-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.fun-vibe-strip article {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.18);
}

.fun-vibe-strip span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 6px;
  color: #06110f;
  background: #ffe36f;
  font-size: 12px;
  font-weight: 950;
}

.fun-vibe-strip b {
  color: #f8fbff;
  font-size: 17px;
}

.fun-vibe-strip small {
  color: rgba(248, 251, 255, 0.62);
  line-height: 1.45;
}

.fun-trend-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fun-trend-card {
  min-height: 392px;
  padding: 8px;
  border: 1px solid rgba(118, 255, 227, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(3, 14, 15, 0.82);
}

.fun-trend-card:nth-child(4n + 1) {
  border-color: rgba(255, 111, 97, 0.22);
}

.fun-trend-card:nth-child(4n + 2) {
  border-color: rgba(255, 227, 111, 0.2);
}

.fun-trend-card:nth-child(4n + 3) {
  border-color: rgba(168, 93, 255, 0.22);
}

.fun-trend-card img {
  height: 178px;
  filter: saturate(1.08) contrast(1.03);
}

.fun-trend-card h3 {
  color: #fff8c7;
  font-size: 20px;
}

.fun-trend-card p {
  color: rgba(248, 251, 255, 0.72);
}

.fun-trend-card .fun-detail-button {
  background: linear-gradient(135deg, #63ffe0, #ffe36f);
}

.fun-trend-card[hidden] {
  display: none !important;
}

.fun-cover-wall {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(118, 255, 227, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(6, 26, 26, 0.96), rgba(10, 18, 19, 0.96)),
    #071613;
  box-shadow: 0 24px 74px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.045);
  perspective: 1000px;
  transform-style: preserve-3d;
  user-select: none;
  touch-action: manipulation;
}

.fun-cover-wall::before,
.fun-cover-wall::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(64deg);
  pointer-events: none;
}

.fun-cover-wall::before {
  width: 610px;
  height: 610px;
  border: 1px solid rgba(118, 255, 227, 0.2);
  box-shadow: inset 0 0 0 18px rgba(255, 227, 111, 0.025), 0 0 54px rgba(99, 255, 224, 0.12);
}

.fun-cover-wall::after {
  width: 382px;
  height: 382px;
  border: 1px dashed rgba(255, 227, 111, 0.26);
}

.fun-orbit-core {
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 238px;
  height: 238px;
  padding: 22px;
  border: 1px solid rgba(255, 227, 111, 0.42);
  border-radius: 50%;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(99, 255, 224, 0.22), rgba(255, 227, 111, 0.12)),
    rgba(3, 17, 18, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34), inset 0 0 0 10px rgba(255, 255, 255, 0.025);
  transform: translate(-50%, -50%) translateZ(56px) rotateX(8deg);
}

.fun-orbit-core span {
  color: #63ffe0;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.fun-orbit-core b {
  color: #fff8c7;
  font-size: 34px;
  line-height: 1.06;
}

.fun-orbit-core small {
  color: rgba(248, 251, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.fun-cover-card {
  position: absolute;
  z-index: 3;
  display: grid;
  align-content: end;
  gap: 6px;
  width: 218px;
  min-height: 132px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(118, 255, 227, 0.18);
  border-radius: 8px;
  color: #f8fbff;
  text-align: left;
  background: #071613;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(255, 255, 255, 0.045);
  isolation: isolate;
  transform-style: preserve-3d;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.fun-cover-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 15, 18, 0.02), rgba(4, 15, 18, 0.88)),
    linear-gradient(135deg, rgba(var(--fun-accent-rgb, 99, 255, 224), 0.28), transparent 52%);
}

.fun-cover-card.food {
  --fun-accent: #ff6f61;
  --fun-accent-2: #ffe36f;
  --fun-accent-rgb: 255, 111, 97;
  left: 4%;
  top: 50%;
  transform: translateY(-50%) rotateY(18deg) rotateX(8deg) translateZ(26px);
}

.fun-cover-card.night-market {
  --fun-accent: #ffe36f;
  --fun-accent-2: #63ffe0;
  --fun-accent-rgb: 255, 227, 111;
  left: 22%;
  top: 8%;
  transform: rotateY(10deg) rotateX(-6deg) translateZ(42px);
}

.fun-cover-card.nightlife {
  --fun-accent: #a85dff;
  --fun-accent-2: #ff6fdd;
  --fun-accent-rgb: 168, 93, 255;
  right: 22%;
  top: 8%;
  transform: rotateY(-10deg) rotateX(-6deg) translateZ(42px);
}

.fun-cover-card.scenic {
  --fun-accent: #63ffe0;
  --fun-accent-2: #62a8ff;
  --fun-accent-rgb: 99, 255, 224;
  right: 4%;
  top: 50%;
  transform: translateY(-50%) rotateY(-18deg) rotateX(8deg) translateZ(26px);
}

.fun-cover-card.route {
  --fun-accent: #ff9d43;
  --fun-accent-2: #63ffe0;
  --fun-accent-rgb: 255, 157, 67;
  left: 50%;
  bottom: 3%;
  transform: translateX(-50%) rotateX(14deg) translateZ(34px);
}

.fun-cover-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.16) contrast(1.04);
}

.fun-cover-card span,
.fun-cover-card b,
.fun-cover-card small,
.fun-cover-card strong {
  position: relative;
  z-index: 2;
}

.fun-cover-card span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 6px;
  color: #07100f;
  background: linear-gradient(135deg, var(--fun-accent, #63ffe0), var(--fun-accent-2, #ffe36f));
  font-size: 12px;
  font-weight: 950;
}

.fun-cover-card b {
  color: #fff8c7;
  font-size: 22px;
  line-height: 1.04;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.42);
}

.fun-cover-card small {
  color: rgba(248, 251, 255, 0.78);
  font-size: 12px;
  line-height: 1.35;
}

.fun-cover-card strong {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 6px;
  color: #ffe36f;
  background: rgba(3, 15, 18, 0.66);
  font-size: 12px;
}

.fun-cover-card:hover,
.fun-cover-card:focus-visible,
.fun-cover-card.active {
  border-color: rgba(255, 227, 111, 0.82);
  box-shadow: 0 0 0 1px rgba(var(--fun-accent-rgb, 99, 255, 224), 0.42), 0 0 38px rgba(var(--fun-accent-rgb, 99, 255, 224), 0.24);
  filter: saturate(1.1);
}

.fun-cover-card.active::before {
  background:
    linear-gradient(180deg, rgba(4, 15, 18, 0.02), rgba(4, 15, 18, 0.76)),
    linear-gradient(135deg, rgba(var(--fun-accent-rgb, 99, 255, 224), 0.38), transparent 56%);
}

@media (min-width: 1180px) {
  .fun-cover-card {
    width: 244px;
    min-height: 142px;
  }
}

@media (max-width: 1080px) {
  .fun-cover-wall {
    min-height: 462px;
  }

  .fun-cover-wall::before {
    width: 540px;
    height: 540px;
  }

  .fun-cover-wall::after {
    width: 332px;
    height: 332px;
  }

  .fun-orbit-core {
    width: 198px;
    height: 198px;
  }

  .fun-orbit-core b {
    font-size: 28px;
  }

  .fun-cover-card {
    width: 188px;
    min-height: 124px;
    padding: 10px;
  }

  .fun-cover-card b {
    font-size: 18px;
  }

  .fun-cover-card small,
  .fun-cover-card strong {
    font-size: 11px;
  }
}

@media (max-width: 760px) {
  .fun-cover-wall {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-height: auto;
    padding: 10px;
    perspective: none;
  }

  .fun-cover-wall::before,
  .fun-cover-wall::after {
    display: none;
  }

  .fun-orbit-core,
  .fun-cover-card,
  .fun-cover-card.food,
  .fun-cover-card.night-market,
  .fun-cover-card.nightlife,
  .fun-cover-card.scenic,
  .fun-cover-card.route {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
    transform: none;
  }

  .fun-orbit-core {
    grid-column: 1 / -1;
    justify-self: center;
    width: 184px;
    height: 184px;
  }

  .fun-cover-card.route {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .fun-trend-stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .fun-trend-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .fun-trend-toolbar {
    grid-template-columns: 1fr;
  }

  .fun-trend-categories,
  .fun-vibe-strip,
  .fun-trend-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fun-trend-category.route {
    grid-column: auto;
  }

  .fun-feature-overlay h1 {
    font-size: 34px;
  }
}

@media (max-width: 560px) {
  .fun-trend-page {
    width: min(100vw - 16px, 1320px);
  }

  .fun-trend-categories,
  .fun-vibe-strip,
  .fun-trend-card-grid {
    grid-template-columns: 1fr;
  }

  .fun-trend-feature,
  .fun-trend-feature > img {
    min-height: 320px;
  }
}

.fun-pie-screen {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(180deg, #050707 0%, #090b0a 100%);
  color: #f8fbff;
  user-select: none;
}

.fun-pie-back {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 5;
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #06110f;
  background: linear-gradient(135deg, #63ffe0, #ffe36f);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
  font-size: 15px;
  font-weight: 950;
  text-decoration: none;
}

.fun-pie-page {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: 72px 18px 24px;
}

.fun-pie-wheel {
  position: relative;
  width: min(76vmin, 720px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 229, 147, 0.74);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -90deg, rgba(255, 245, 198, 0.42) 0deg 1.2deg, transparent 1.2deg 45deg),
    radial-gradient(circle at 50% 50%, transparent 0 19%, rgba(6, 10, 10, 0.84) 19.2% 21.2%, transparent 21.4% 100%),
    conic-gradient(
      from -90deg,
      #e8d68b 0deg 71.2deg,
      rgba(14, 18, 16, 0.9) 71.2deg 72deg,
      #6f43ad 72deg 143.2deg,
      rgba(14, 18, 16, 0.9) 143.2deg 144deg,
      #a94a3d 144deg 215.2deg,
      rgba(14, 18, 16, 0.9) 215.2deg 216deg,
      #3f7db5 216deg 287.2deg,
      rgba(14, 18, 16, 0.9) 287.2deg 288deg,
      #5ad6c1 288deg 359.2deg,
      rgba(14, 18, 16, 0.9) 359.2deg 360deg
    );
  box-shadow:
    0 24px 0 #17120a,
    0 34px 0 #070908,
    0 58px 100px rgba(0, 0, 0, 0.72),
    inset 0 34px 66px rgba(255, 255, 255, 0.18),
    inset 0 -42px 76px rgba(0, 0, 0, 0.4),
    inset 0 0 0 12px rgba(10, 13, 12, 0.46),
    inset 0 0 0 34px rgba(255, 238, 160, 0.1);
  transform: perspective(900px) rotateX(13deg);
  transform-style: preserve-3d;
}

.fun-pie-wheel::before {
  content: "";
  position: absolute;
  inset: 5.8%;
  border-radius: 50%;
  border: 1px solid rgba(255, 238, 180, 0.36);
  background:
    repeating-conic-gradient(from -90deg, transparent 0deg 16deg, rgba(10, 13, 12, 0.24) 16deg 18deg, transparent 18deg 45deg);
  box-shadow:
    inset 0 0 44px rgba(255, 241, 183, 0.12),
    0 0 34px rgba(255, 227, 111, 0.1);
  pointer-events: none;
}

.fun-pie-wheel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.2), transparent 30%, rgba(0, 0, 0, 0.18) 68%, rgba(0, 0, 0, 0.42)),
    radial-gradient(circle at 48% 38%, rgba(255, 255, 255, 0.12), transparent 36%);
  pointer-events: none;
}

.fun-pie-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 27%;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 238, 185, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 25%, #090b0a 0 7%, transparent 7.4%),
    radial-gradient(circle at 50% 75%, #fff2b0 0 7%, transparent 7.4%),
    radial-gradient(circle at 50% 25%, #fff2b0 0 25%, transparent 25.5%),
    radial-gradient(circle at 50% 75%, #090b0a 0 25%, transparent 25.5%),
    linear-gradient(90deg, #fff2b0 0 50%, #090b0a 50% 100%);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.36),
    inset 0 14px 30px rgba(255, 255, 255, 0.28),
    inset 0 -18px 32px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%) translateZ(74px);
  pointer-events: none;
}

.fun-pie-core i {
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(255, 238, 185, 0.28);
  border-radius: 50%;
}

.fun-pie-trigrams {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  transform: translateZ(86px);
}

.fun-pie-trigrams span {
  position: absolute;
  color: rgba(10, 13, 12, 0.9);
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 10px rgba(255, 247, 199, 0.34);
}

.fun-pie-trigrams span:nth-child(1) { left: 50%; top: 4.8%; transform: translateX(-50%); }
.fun-pie-trigrams span:nth-child(2) { right: 18%; top: 13%; }
.fun-pie-trigrams span:nth-child(3) { right: 5.8%; top: 50%; transform: translateY(-50%); }
.fun-pie-trigrams span:nth-child(4) { right: 18%; bottom: 13%; }
.fun-pie-trigrams span:nth-child(5) { left: 50%; bottom: 4.8%; transform: translateX(-50%); }
.fun-pie-trigrams span:nth-child(6) { left: 18%; bottom: 13%; }
.fun-pie-trigrams span:nth-child(7) { left: 5.8%; top: 50%; transform: translateY(-50%); }
.fun-pie-trigrams span:nth-child(8) { left: 18%; top: 13%; }

.fun-pie-item {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 7px;
  width: 168px;
  min-height: 80px;
  place-items: center;
  padding: 10px;
  border-radius: 8px;
  color: #070908;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  transform: translate(-50%, -50%) translateZ(98px);
}

.fun-pie-item b {
  font-size: 26px;
  line-height: 1.08;
}

.fun-pie-item span {
  color: rgba(7, 9, 8, 0.78);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.fun-pie-item:hover,
.fun-pie-item:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.36), 0 16px 34px rgba(0, 0, 0, 0.18);
}

.fun-pie-item.food {
  left: 68%;
  top: 25%;
}

.fun-pie-item.night-market {
  left: 77%;
  top: 62%;
}

.fun-pie-item.nightlife {
  left: 50%;
  top: 80%;
}

.fun-pie-item.scenic {
  left: 23%;
  top: 62%;
}

.fun-pie-item.route {
  left: 32%;
  top: 25%;
}

@media (max-width: 760px) {
  .fun-pie-back {
    top: 12px;
    right: 12px;
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
  }

  .fun-pie-page {
    padding: 62px 10px 18px;
  }

  .fun-pie-wheel {
    width: min(90vmin, 620px);
  }

  .fun-pie-item {
    width: 126px;
    min-height: 66px;
    gap: 4px;
  }

  .fun-pie-item b {
    font-size: 20px;
  }

  .fun-pie-item span {
    font-size: 11px;
  }
}

.fun-pie-screen {
  position: relative;
  background: #02080b;
}

.fun-pie-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(2, 8, 11, 0.66), rgba(2, 8, 11, 0.18) 48%, rgba(2, 8, 11, 0.7)),
    linear-gradient(180deg, rgba(2, 8, 11, 0.08), rgba(2, 8, 11, 0.56)),
    url("https://images.unsplash.com/photo-1528181304800-259b08848526?auto=format&fit=crop&w=1800&q=88") center 38%/cover;
  opacity: 0.92;
}

.fun-pie-screen::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(125, 255, 232, 0.08), transparent 22%, transparent 78%, rgba(255, 233, 120, 0.08)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 96px);
  opacity: 0.48;
  pointer-events: none;
}

.fun-pie-page {
  position: relative;
  z-index: 1;
  padding: 64px 18px 20px;
}

.fun-pie-back {
  z-index: 5;
  color: #031311;
  background: linear-gradient(135deg, #7dffe8, #ffe978);
  box-shadow: 0 0 0 1px rgba(125, 255, 232, 0.28), 0 16px 38px rgba(0, 0, 0, 0.36), 0 0 28px rgba(125, 255, 232, 0.18);
}

.fun-pie-wheel {
  width: min(70vmin, 680px);
  border: 1px solid rgba(125, 255, 232, 0.42);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 28%, rgba(0, 0, 0, 0.24) 74%, rgba(0, 0, 0, 0.38)),
    repeating-conic-gradient(from -90deg, rgba(125, 255, 232, 0.38) 0deg 0.8deg, transparent 0.8deg 12deg),
    radial-gradient(circle at 50% 50%, rgba(4, 22, 28, 0.86) 0 23%, transparent 23.4% 100%),
    radial-gradient(circle at 50% 50%, transparent 0 45%, rgba(125, 255, 232, 0.18) 45.4% 46.2%, transparent 46.6% 100%),
    conic-gradient(
      from -90deg,
      rgba(125, 255, 232, 0.34) 0deg 71deg,
      rgba(255, 233, 120, 0.35) 72deg 143deg,
      rgba(178, 114, 255, 0.33) 144deg 215deg,
      rgba(255, 120, 98, 0.32) 216deg 287deg,
      rgba(86, 174, 255, 0.34) 288deg 359deg
    ),
    rgba(3, 16, 20, 0.56);
  box-shadow:
    0 16px 0 rgba(3, 14, 18, 0.76),
    0 28px 0 rgba(0, 0, 0, 0.46),
    0 70px 120px rgba(0, 0, 0, 0.62),
    0 0 94px rgba(72, 255, 224, 0.26),
    inset 0 0 0 11px rgba(4, 18, 23, 0.74),
    inset 0 0 0 28px rgba(125, 255, 232, 0.08),
    inset 0 32px 80px rgba(255, 255, 255, 0.12),
    inset 0 -46px 82px rgba(0, 0, 0, 0.46);
  transform: perspective(980px) rotateX(12deg) rotateZ(-2deg);
}

.fun-pie-wheel::before {
  inset: 8%;
  border: 1px solid rgba(255, 233, 120, 0.26);
  background:
    repeating-conic-gradient(from -90deg, transparent 0deg 17deg, rgba(125, 255, 232, 0.18) 17deg 18deg, transparent 18deg 36deg),
    radial-gradient(circle at 50% 50%, transparent 0 40%, rgba(255, 233, 120, 0.16) 40.4% 41%, transparent 41.4% 100%);
  box-shadow: inset 0 0 46px rgba(125, 255, 232, 0.12), 0 0 38px rgba(255, 233, 120, 0.1);
}

.fun-pie-wheel::after {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 28%, rgba(0, 0, 0, 0.2) 68%, rgba(0, 0, 0, 0.42)),
    radial-gradient(circle at 42% 33%, rgba(255, 255, 255, 0.16), transparent 33%);
}

.fun-pie-core,
.fun-pie-trigrams {
  display: none;
}

.fun-tech-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 31%;
  aspect-ratio: 1;
  border: 1px solid rgba(125, 255, 232, 0.52);
  border-radius: 50%;
  color: #f8fffd;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(125, 255, 232, 0.18), rgba(255, 233, 120, 0.08)),
    rgba(3, 15, 20, 0.74);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.42),
    0 0 42px rgba(125, 255, 232, 0.2),
    inset 0 0 0 12px rgba(255, 255, 255, 0.03),
    inset 0 22px 44px rgba(255, 255, 255, 0.08);
  transform: translate(-50%, -50%) translateZ(86px);
  pointer-events: none;
}

.fun-tech-core::before,
.fun-tech-core::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.fun-tech-core::before {
  inset: -18%;
  border: 1px solid rgba(125, 255, 232, 0.22);
}

.fun-tech-core::after {
  inset: 18%;
  border: 1px dashed rgba(255, 233, 120, 0.26);
}

.fun-tech-core span {
  align-self: end;
  color: #7dffe8;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.fun-tech-core b {
  color: #fff8c7;
  font-size: 36px;
  line-height: 1.05;
}

.fun-tech-core small {
  align-self: start;
  color: rgba(248, 255, 253, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.fun-pie-item {
  z-index: 5;
  width: 172px;
  min-height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fffd;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045)),
    rgba(2, 14, 20, 0.46);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(125, 255, 232, 0.06);
  backdrop-filter: blur(12px);
  transform: translate(-50%, -50%) translateZ(114px);
}

.fun-pie-item b {
  color: #ffffff;
  font-size: 24px;
  text-shadow: 0 0 18px rgba(125, 255, 232, 0.22);
}

.fun-pie-item span {
  color: rgba(235, 255, 250, 0.76);
  font-size: 12px;
}

.fun-pie-item:hover,
.fun-pie-item:focus-visible {
  background:
    linear-gradient(145deg, rgba(125, 255, 232, 0.24), rgba(255, 233, 120, 0.12)),
    rgba(2, 14, 20, 0.68);
  box-shadow: 0 0 0 1px rgba(125, 255, 232, 0.42), 0 0 34px rgba(125, 255, 232, 0.24), 0 20px 38px rgba(0, 0, 0, 0.3);
}

.fun-pie-item.food {
  left: 67%;
  top: 26%;
}

.fun-pie-item.night-market {
  left: 75%;
  top: 62%;
}

.fun-pie-item.nightlife {
  left: 50%;
  top: 78%;
}

.fun-pie-item.scenic {
  left: 25%;
  top: 62%;
}

.fun-pie-item.route {
  left: 33%;
  top: 26%;
}

@media (max-width: 760px) {
  .fun-pie-screen {
    background-position: center;
  }

  .fun-pie-wheel {
    width: min(92vmin, 620px);
  }

  .fun-tech-core b {
    font-size: 25px;
  }

  .fun-tech-core small {
    display: none;
  }

  .fun-pie-item {
    width: 124px;
    min-height: 62px;
  }

  .fun-pie-item b {
    font-size: 18px;
  }

  .fun-pie-item span {
    font-size: 10px;
  }
}

.fun-reference-screen {
  background: #02030a;
}

.fun-reference-screen::before {
  background: url("assets/fun-ui-home.png") center/cover;
  opacity: 1;
}

.fun-reference-screen::after {
  background:
    linear-gradient(180deg, rgba(1, 3, 12, 0.05), rgba(1, 3, 12, 0.12)),
    repeating-linear-gradient(90deg, rgba(0, 156, 255, 0.08) 0 1px, transparent 1px 94px);
  opacity: 0.38;
}

.fun-reference-screen .fun-pie-page {
  padding: 0;
}

.fun-reference-screen .fun-pie-back {
  right: 28px;
  top: 24px;
  min-height: 40px;
  color: #eaffff;
  border-color: rgba(0, 169, 255, 0.48);
  background: rgba(7, 13, 38, 0.62);
  box-shadow: 0 0 0 1px rgba(167, 80, 255, 0.34), 0 0 26px rgba(0, 152, 255, 0.36);
  backdrop-filter: blur(10px);
}

.fun-reference-screen .fun-pie-wheel {
  position: fixed;
  left: 50%;
  top: 41%;
  z-index: 2;
  width: min(66vh, 680px);
  aspect-ratio: 1;
  border: 0;
  background: none;
  box-shadow: none;
  transform: translate(-50%, -50%);
}

.fun-reference-screen .fun-pie-wheel::before,
.fun-reference-screen .fun-pie-wheel::after,
.fun-reference-screen .fun-tech-core {
  display: none;
}

.fun-original-ring {
  position: absolute;
  inset: -5%;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  background: url("assets/fun-original-wheel.png") center/100% 100% no-repeat;
  filter: saturate(1.12) brightness(1.08);
  mix-blend-mode: screen;
  transform-origin: 50% 50%;
}

.fun-original-ring-outer {
  opacity: 0.78;
  -webkit-mask: radial-gradient(circle, transparent 82%, #000 83%, #000 96%, transparent 97%);
  mask: radial-gradient(circle, transparent 82%, #000 83%, #000 96%, transparent 97%);
  animation: funOriginalRingClockwise 18s linear infinite;
}

.fun-original-ring-inner {
  opacity: 0.62;
  -webkit-mask: radial-gradient(circle, transparent 70%, #000 71%, #000 80%, transparent 81%);
  mask: radial-gradient(circle, transparent 70%, #000 71%, #000 80%, transparent 81%);
  animation: funOriginalRingCounter 14s linear infinite;
}

.fun-reference-screen .fun-pie-item {
  z-index: 5;
  opacity: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.fun-reference-screen .fun-pie-item.food {
  left: 50%;
  top: 19%;
  width: 25%;
  height: 25%;
}

.fun-reference-screen .fun-pie-item.night-market {
  left: 22%;
  top: 42%;
  width: 25%;
  height: 24%;
}

.fun-reference-screen .fun-pie-item.nightlife {
  left: 77%;
  top: 42%;
  width: 25%;
  height: 24%;
}

.fun-reference-screen .fun-pie-item.scenic {
  left: 35%;
  top: 72%;
  width: 27%;
  height: 25%;
}

.fun-reference-screen .fun-pie-item.route {
  left: 64%;
  top: 72%;
  width: 27%;
  height: 25%;
}

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

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

@media (max-width: 760px) {
  .fun-reference-screen::before {
    background-position: center;
  }

  .fun-reference-screen .fun-pie-wheel {
    top: 43%;
    width: min(74vh, 90vw);
  }
}
