/* ==========================================================================
   渔夫帽俱乐部 · YFM CLUB
   Liquid Glass · Dark · iOS inspired
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-2: #080d16;
  --text: #f5f5f7;
  --muted: rgba(245, 245, 247, 0.58);
  --muted-2: rgba(245, 245, 247, 0.36);
  --orange: #ff5a1f;
  --orange-2: #ff8a5c;
  --green: #8ee6b0;
  --blue: #6ea8ff;
  --glass: rgba(255, 255, 255, 0.065);
  --glass-2: rgba(255, 255, 255, 0.1);
  --glass-3: rgba(255, 255, 255, 0.14);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-2: rgba(255, 255, 255, 0.22);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  --radius: 28px;
  --radius-sm: 18px;
  --sans: "HONOR Sans", "HarmonyOS Sans SC", -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body.sheet-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--orange);
  color: #08131f;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

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

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Background
   -------------------------------------------------------------------------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% -10%, #111b2b 0%, var(--bg) 62%);
  pointer-events: none;
}

.aurora__blob {
  position: absolute;
  width: 52vw;
  height: 52vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.aurora__blob--orange {
  top: -18vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.55), transparent 68%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.aurora__blob--teal {
  right: -18vw;
  bottom: -20vw;
  background: radial-gradient(circle, rgba(20, 120, 108, 0.55), transparent 70%);
  animation: drift-b 26s ease-in-out infinite alternate;
}

.aurora__blob--blue {
  top: 34%;
  right: 18%;
  width: 32vw;
  height: 32vw;
  background: radial-gradient(circle, rgba(40, 78, 170, 0.38), transparent 70%);
  filter: blur(80px);
  animation: drift-c 30s ease-in-out infinite alternate;
}

.aurora__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 72%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

@keyframes drift-a {
  to {
    transform: translate(9vw, 7vw) scale(1.15);
  }
}

@keyframes drift-b {
  to {
    transform: translate(-8vw, -6vw) scale(1.1);
  }
}

@keyframes drift-c {
  to {
    transform: translate(-4vw, 8vw) scale(0.9);
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

.app-root {
  position: relative;
  min-height: 100vh;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.eyebrow b {
  color: var(--orange);
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-align: left;
}

.brand-text b {
  font-size: 14px;
  letter-spacing: 0.12em;
}

.brand-text small {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
}

.brand--button {
  padding: 0;
}

.avatar {
  width: 40px;
  height: 40px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
  background: hsl(var(--avatar-hue, 24) 55% 42%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.avatar--sm {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.avatar--lg {
  width: 54px;
  height: 54px;
  font-size: 20px;
}

.avatar--xl {
  width: 82px;
  height: 82px;
  font-size: 30px;
  border-width: 2px;
}

.avatar-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  transition: transform 0.3s var(--ease);
}

.avatar-btn:hover {
  transform: scale(1.05);
}

.avatar-btn .avatar {
  width: 100%;
  height: 100%;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--stroke-2);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn--plain {
  border-color: transparent;
  background: transparent;
}

.icon-btn--plain:hover {
  background: rgba(255, 255, 255, 0.08);
}

.badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--orange);
  color: #07101a;
  font-size: 9px;
  font-weight: 800;
  border: 2px solid var(--bg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, opacity 0.3s;
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #08131f;
  box-shadow: 0 12px 30px rgba(255, 90, 31, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(255, 90, 31, 0.36);
}

.btn-ghost {
  border-color: var(--stroke-2);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-small {
  padding: 10px 15px;
  font-size: 11.5px;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn.is-busy {
  pointer-events: none;
}

.btn.is-busy svg {
  display: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field > span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}

.field textarea {
  min-height: 130px;
  line-height: 1.8;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(255, 90, 31, 0.65);
  background: rgba(0, 0, 0, 0.3);
}

.form-hint {
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--muted-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.chip svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.chip--green {
  border-color: rgba(142, 230, 176, 0.28);
  background: rgba(142, 230, 176, 0.1);
  color: var(--green);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.dot--orange {
  background: var(--orange);
}

.dot--green {
  background: var(--green);
}

/* --------------------------------------------------------------------------
   Auth
   -------------------------------------------------------------------------- */

.auth-screen {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  padding: 70px 0;
}

.auth-hero {
  position: relative;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 54px;
}

.auth-brand b {
  display: block;
  font-size: 14px;
  letter-spacing: 0.14em;
}

.auth-brand small {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

.auth-hero h1 {
  margin-top: 20px;
  font-size: clamp(54px, 7.2vw, 96px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.auth-hero h1 span {
  background: linear-gradient(100deg, #fff 0%, #ffb59a 42%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-lede {
  max-width: 430px;
  margin-top: 26px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.auth-features {
  list-style: none;
  margin: 38px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 440px;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}

.auth-features li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.auth-features em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 8px;
  color: var(--orange);
}

.auth-foot {
  margin-top: 42px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
}

.auth-card {
  position: relative;
  padding: clamp(26px, 3.4vw, 38px);
  border: 1px solid var(--stroke);
  border-radius: 34px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(34px) saturate(160%);
  -webkit-backdrop-filter: blur(34px) saturate(160%);
}

.auth-card__head h2 {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 24px 0 22px;
  padding: 4px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.segmented button {
  padding: 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.3s, color 0.3s;
}

.segmented button.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

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

.auth-form .btn {
  margin-top: 4px;
  padding: 15px;
}

.auth-error {
  min-height: 18px;
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #ff9d7a;
}

.auth-note {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
}

.auth-note > span {
  color: var(--orange);
  margin-top: 2px;
}

.auth-note svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.auth-note p {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */

.shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px max(24px, calc((100vw - 1180px) / 2 + 24px));
  background: rgba(5, 7, 13, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
}

.topbar > .brand,
.topbar > .topbar__actions {
  position: relative;
  z-index: 2;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 130px;
}

.view {
  min-width: 0;
  max-width: 760px;
}

.side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: min(430px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 7px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(16, 20, 28, 0.72);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(34px) saturate(170%);
  -webkit-backdrop-filter: blur(34px) saturate(170%);
  transform: translateX(-50%);
}

.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px 7px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.3s, background 0.3s;
}

.tabbar__item svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabbar__item span {
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.tabbar__item.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.tabbar__item.is-active svg {
  color: var(--orange);
}

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */

.welcome {
  position: relative;
  padding: 18px 2px 26px;
}

.welcome__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(142, 230, 176, 0.25);
  border-radius: 999px;
  background: rgba(142, 230, 176, 0.07);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--green);
}

.live-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(142, 230, 176, 0.5);
  animation: pulse 2.4s infinite;
}

.welcome h1 {
  margin-top: 22px;
  font-size: clamp(42px, 5.2vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.055em;
  background: linear-gradient(110deg, #fff 20%, rgba(255, 255, 255, 0.62));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.welcome__lede {
  max-width: 460px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.welcome__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.welcome__meta span {
  padding: 5px 10px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.welcome__meta b {
  color: var(--orange);
}

.checkin {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(255, 90, 31, 0.18), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.checkin.is-checked {
  background: linear-gradient(140deg, rgba(142, 230, 176, 0.1), rgba(255, 255, 255, 0.04));
}

.checkin__ring {
  position: relative;
  width: 62px;
  height: 62px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--orange) 0 var(--progress, 0deg),
    rgba(255, 255, 255, 0.1) var(--progress, 0deg) 360deg
  );
}

.checkin.is-checked .checkin__ring {
  background: conic-gradient(
    var(--green) 0 var(--progress, 0deg),
    rgba(255, 255, 255, 0.1) var(--progress, 0deg) 360deg
  );
}

.checkin__ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #10151f;
}

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

.checkin__ring span {
  margin-top: 5px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.checkin__ring small {
  margin-top: -10px;
  font-size: 8px;
  color: var(--muted);
}

.checkin__copy {
  min-width: 0;
  flex: 1;
}

.checkin__copy .eyebrow {
  font-size: 8px;
}

.checkin__copy b {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.checkin__copy span {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted);
}

.checkin .btn {
  flex: none;
  padding: 11px 17px;
  font-size: 11.5px;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 38px 2px 16px;
}

.section-title h2 {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.feed-note {
  margin-top: 5px;
  font-size: 10px;
  color: var(--muted-2);
}

.feed {
  display: grid;
  gap: 14px;
}

.post {
  padding: 20px;
  border: 1px solid var(--stroke);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  animation: rise 0.5s var(--ease) both;
}

.post__head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.post__who {
  min-width: 0;
  flex: 1;
}

.post__who b {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

.post__who > span {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.official {
  padding: 2px 6px;
  border: 1px solid rgba(255, 90, 31, 0.35);
  border-radius: 999px;
  background: rgba(255, 90, 31, 0.12);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--orange-2);
}

.pin-mark {
  color: var(--orange);
  opacity: 0.7;
}

.pin-mark svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.post__body {
  margin-top: 15px;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(245, 245, 247, 0.88);
  word-break: break-word;
}

.post__image {
  margin-top: 14px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.2);
}

.post__image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.post__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-size: 11px;
  color: var(--muted);
  transition: color 0.25s, transform 0.25s;
}

.action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.action.is-liked {
  color: var(--orange);
}

.action.is-liked svg {
  fill: rgba(255, 90, 31, 0.25);
  stroke: var(--orange);
}

.post__time {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted-2);
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 52px 24px;
  border: 1px dashed var(--stroke);
  border-radius: 26px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.empty-state__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  color: var(--orange);
  margin-bottom: 6px;
}

.empty-state__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.empty-state b {
  font-size: 15px;
}

.empty-state p {
  max-width: 320px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.empty-state .btn {
  margin-top: 8px;
}

.empty-state--small {
  padding: 36px 20px;
  border: 0;
  background: none;
}

/* Side cards */

.side-card {
  padding: 20px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.side-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 18px;
}

.side-profile b {
  display: block;
  font-size: 15px;
}

.side-profile span {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted-2);
}

.side-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.side-stats b {
  display: block;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.side-stats span {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  color: var(--muted-2);
}

.side-card .btn {
  margin-top: 16px;
  padding: 11px;
  font-size: 11px;
}

.side-card--quote p:not(.eyebrow) {
  margin-top: 16px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 20px;
  line-height: 1.5;
  font-style: italic;
}

.side-card--quote > span {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted-2);
}

.side-card--links {
  display: grid;
  gap: 0;
}

.side-card--links .eyebrow {
  margin-bottom: 8px;
}

.side-card--links button,
.side-card--links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.75);
  text-align: left;
}

.side-card--links svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  color: var(--orange);
}

.side-card--links em {
  margin-left: auto;
  font-style: normal;
  color: var(--muted-2);
}

.side-card--links em svg {
  width: 12px;
  height: 12px;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   Page head (calendar / bubble)
   -------------------------------------------------------------------------- */

.page-head {
  padding: 16px 2px 26px;
}

.page-head h1 {
  margin-top: 10px;
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.page-head > p:last-child {
  max-width: 460px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Calendar
   -------------------------------------------------------------------------- */

.calendar-card {
  padding: 20px;
  border: 1px solid var(--stroke);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

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

.calendar-card__head > div {
  text-align: center;
}

.calendar-card__head b {
  display: block;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.calendar-card__head span {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted-2);
}

.calendar-week,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-week {
  margin: 20px 0 8px;
}

.calendar-week span {
  text-align: center;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted-2);
}

.cal-cell {
  position: relative;
  aspect-ratio: 1 / 1.08;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}

.cal-cell:hover {
  background: rgba(255, 255, 255, 0.07);
}

.cal-cell--empty {
  pointer-events: none;
}

.cal-cell span {
  position: relative;
  z-index: 2;
  margin-top: -3px;
}

.cal-cell i {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: transparent;
}

.cal-cell.has-event i {
  background: var(--orange);
}

.cal-cell.is-checked::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(142, 230, 176, 0.25);
  border-radius: 10px;
  background: rgba(142, 230, 176, 0.08);
}

.cal-cell.is-checked span {
  color: var(--green);
}

.cal-cell.is-today {
  border-color: rgba(255, 255, 255, 0.3);
}

.cal-cell.is-selected {
  background: linear-gradient(145deg, var(--orange-2), var(--orange));
  color: #08131f;
  box-shadow: 0 8px 20px rgba(255, 90, 31, 0.28);
}

.cal-cell.is-selected::before {
  border-color: rgba(8, 19, 31, 0.2);
  background: transparent;
}

.cal-cell.is-selected span {
  color: #08131f;
  font-weight: 800;
}

.cal-cell.is-selected i {
  background: #08131f;
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--stroke);
  font-size: 9px;
  color: var(--muted);
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.calendar-legend button {
  margin-left: auto;
  font-size: 9px;
  color: var(--orange-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.day-panel {
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--stroke);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.035);
}

.day-panel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.day-panel__head h2 {
  margin-top: 3px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.day-events {
  display: grid;
  gap: 8px;
}

.event-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.event-date {
  width: 48px;
  flex: none;
  text-align: center;
}

.event-date b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.event-date span {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-2);
}

.event-main {
  min-width: 0;
  flex: 1;
}

.event-main b {
  display: block;
  font-size: 13px;
}

.event-main p {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

.event-main > span {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 7.5px;
  color: var(--muted-2);
}

.event-type {
  flex: none;
  padding: 4px 8px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.event-type--offline {
  border-color: rgba(255, 90, 31, 0.3);
  color: var(--orange-2);
}

.event-type--online {
  border-color: rgba(110, 168, 255, 0.3);
  color: var(--blue);
}

.event-type--birthday {
  border-color: rgba(255, 138, 92, 0.35);
  color: #ffc4ab;
}

.event-type--notice {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--muted);
}

.day-empty {
  padding: 16px 0;
  font-size: 11.5px;
  color: var(--muted-2);
}

.upcoming {
  margin-top: 26px;
}

.upcoming .section-title {
  margin-top: 0;
}

.upcoming-list {
  display: grid;
  gap: 0;
  padding: 4px 20px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.025);
}

/* --------------------------------------------------------------------------
   Bubble
   -------------------------------------------------------------------------- */

.bubble-paywall {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--stroke);
  border-radius: 32px;
  background: linear-gradient(155deg, rgba(255, 90, 31, 0.16), rgba(255, 255, 255, 0.055) 48%, rgba(20, 120, 108, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), var(--shadow);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.bubble-paywall__glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.3), transparent 68%);
  filter: blur(30px);
  pointer-events: none;
}

.bubble-paywall__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.bubble-avatar {
  position: relative;
  display: inline-block;
}

.bubble-avatar i {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border: 2px solid #0b111b;
  border-radius: 50%;
  background: var(--green);
}

.bubble-paywall h2 {
  position: relative;
  margin-top: 34px;
  font-size: clamp(34px, 4.4vw, 50px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.bubble-paywall > p {
  position: relative;
  max-width: 420px;
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
}

.price-line {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 24px;
}

.price-line b {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.price-line span {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted-2);
}

.paywall-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.paywall-balance {
  position: relative;
  margin-top: 14px !important;
  font-family: var(--mono);
  font-size: 8px !important;
  color: var(--muted-2) !important;
}

.bubble-preview {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--stroke);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.025);
}

.preview-msg {
  max-width: 80%;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.7;
}

.preview-msg--left {
  border-bottom-left-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
}

.preview-msg--right {
  margin-left: auto;
  border-bottom-right-radius: 5px;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #08131f;
}

.bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px 20px;
}

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

.bubble-header__who b {
  display: block;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.bubble-header__who span {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted-2);
}

.chat {
  height: min(58vh, 560px);
  min-height: 380px;
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--stroke);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  scroll-behavior: smooth;
}

.chat__empty {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.chat__empty-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  color: var(--orange);
  margin-bottom: 4px;
}

.chat__empty-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.chat__empty b {
  font-size: 14px;
}

.chat__empty p {
  font-size: 11px;
  color: var(--muted);
}

.chat__messages {
  display: grid;
  gap: 14px;
}

.chat-date {
  justify-self: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.chat-row--right {
  justify-content: flex-end;
}

.bubble-msg {
  max-width: 78%;
  padding: 10px 13px 8px;
  border-radius: 18px;
  font-size: 12.5px;
  line-height: 1.75;
  word-break: break-word;
}

.chat-row--left .bubble-msg {
  border-bottom-left-radius: 5px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
}

.chat-row--right .bubble-msg {
  border-bottom-right-radius: 5px;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #08131f;
}

.bubble-msg p {
  white-space: pre-wrap;
}

.bubble-msg > span {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 7px;
  text-align: right;
  opacity: 0.55;
}

.chat-input {
  position: sticky;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 7px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(16, 20, 28, 0.82);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.chat-input input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
}

.chat-input input::placeholder {
  color: var(--muted-2);
}

.send-btn {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #08131f;
  transition: transform 0.25s, opacity 0.25s;
}

.send-btn:hover {
  transform: scale(1.04);
}

.send-btn:disabled {
  opacity: 0.45;
}

.send-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Me / wallet
   -------------------------------------------------------------------------- */

.profile-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 2px 24px;
}

.profile-head__copy h1 {
  margin-top: 4px;
  font-size: clamp(38px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.profile-head__copy p:last-child {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--muted-2);
}

.member-card {
  position: relative;
  aspect-ratio: 1.66;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: linear-gradient(135deg, #142438 0%, #08131f 52%, #153f3b 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.member-card__shine {
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 180deg,
    rgba(255, 90, 31, 0.24),
    transparent 28%,
    rgba(169, 195, 180, 0.18) 52%,
    transparent 74%,
    rgba(255, 90, 31, 0.24)
  );
  filter: blur(38px);
  opacity: 0.8;
  pointer-events: none;
}

.member-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 20% 0%, #000, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse at 20% 0%, #000, transparent 74%);
  pointer-events: none;
}

.member-card__top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.48);
}

.member-card__hat {
  position: absolute;
  right: -6%;
  bottom: -18%;
  z-index: 1;
  color: rgba(255, 255, 255, 0.08);
  transform: rotate(-8deg);
}

.member-card__hat svg {
  width: clamp(150px, 22vw, 230px);
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 0.7;
}

.member-card__name {
  position: relative;
  z-index: 2;
  margin-top: clamp(24px, 4.6vw, 44px);
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.member-card__no {
  position: relative;
  z-index: 2;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: clamp(16px, 2.4vw, 24px);
  letter-spacing: 0.08em;
  color: var(--orange);
}

.member-card__meta {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  gap: clamp(16px, 3vw, 32px);
}

.member-card__meta span {
  display: block;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.38);
}

.member-card__meta b {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.stat {
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.stat b {
  display: block;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 7.5px;
  color: var(--muted-2);
}

.wallet-card {
  margin-top: 14px;
  padding: 22px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255, 90, 31, 0.11), rgba(255, 255, 255, 0.045));
}

.wallet-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.wallet-card__head b {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.wallet-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.wallet-actions .btn {
  flex: 1;
  padding: 12px;
  font-size: 12px;
}

.wallet-note {
  margin-top: 12px;
  font-size: 9.5px;
  color: var(--muted-2);
}

.honor-card {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid rgba(110, 168, 255, 0.2);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(50, 95, 175, 0.2), rgba(255, 255, 255, 0.035));
}

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

.honor-card__head span {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: var(--green);
}

.honor-card > b {
  display: block;
  margin-top: 14px;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.honor-card > p {
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.75;
  color: var(--muted);
}

.honor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.honor-actions button {
  padding: 8px 12px;
  border: 1px solid rgba(110, 168, 255, 0.28);
  border-radius: 999px;
  background: rgba(110, 168, 255, 0.08);
  font-size: 9.5px;
  color: #b7d1ff;
}

.menu-card {
  margin-top: 14px;
  padding: 4px 20px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
}

.menu-card button,
.menu-card a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12.5px;
  text-align: left;
  color: rgba(255, 255, 255, 0.82);
}

.menu-card > :last-child {
  border-bottom: 0;
}

.menu-card svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  color: var(--orange);
}

.menu-card em {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  color: var(--muted-2);
}

.menu-card em svg {
  width: 12px;
  height: 12px;
  color: var(--muted-2);
}

.menu-card .danger {
  color: #ff9d7a;
}

.menu-card .danger svg {
  color: #ff9d7a;
}

.orders {
  margin-top: 22px;
}

.orders .section-title {
  margin-top: 0;
}

.order-list {
  display: grid;
  gap: 0;
  padding: 4px 18px;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
}

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.order-row:last-child {
  border-bottom: 0;
}

.order-row b {
  display: block;
  font-size: 11.5px;
}

.order-row span {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-2);
}

.order-row__right {
  text-align: right;
}

.status {
  display: inline-block !important;
  margin-top: 4px !important;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 6.5px !important;
  letter-spacing: 0.06em;
}

.status--paid {
  background: rgba(142, 230, 176, 0.12);
  color: var(--green) !important;
}

.status--pending {
  background: rgba(255, 90, 31, 0.12);
  color: var(--orange-2) !important;
}

/* --------------------------------------------------------------------------
   Sheet
   -------------------------------------------------------------------------- */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  backdrop-filter: blur(4px);
  transition: opacity 0.3s;
}

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 210;
  width: min(540px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 10px 0 0;
  border: 1px solid var(--stroke);
  border-bottom: 0;
  border-radius: 32px 32px 0 0;
  background: linear-gradient(180deg, rgba(28, 34, 46, 0.96), rgba(10, 14, 22, 0.98));
  box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translate(-50%, 105%);
  transition: transform 0.42s var(--ease);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
}

.sheet.is-open {
  transform: translate(-50%, 0);
}

.sheet--wide {
  width: min(720px, 100%);
}

.sheet__handle {
  width: 38px;
  height: 4px;
  flex: none;
  margin: 2px auto 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 24px 16px;
}

.sheet__head h2 {
  margin-top: 4px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.sheet__body {
  overflow-y: auto;
  padding: 0 24px calc(30px + env(safe-area-inset-bottom, 0px));
  overscroll-behavior: contain;
}

.sheet-open .sheet-backdrop {
  opacity: 1;
}

/* Forms in sheets */

.compose-form,
.redeem-form {
  display: grid;
  gap: 15px;
}

.upload-line {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px dashed var(--stroke-2);
  border-radius: 14px;
  font-size: 11.5px;
  color: var(--muted);
  cursor: pointer;
}

.upload-line svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  color: var(--orange);
}

.switch-line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}

.switch-line input {
  position: absolute;
  opacity: 0;
}

.switch-line i {
  width: 42px;
  height: 25px;
  flex: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.3s;
}

.switch-line i::after {
  content: "";
  display: block;
  width: 19px;
  height: 19px;
  margin: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s var(--ease);
}

.switch-line input:checked + i {
  background: var(--orange);
}

.switch-line input:checked + i::after {
  transform: translateX(17px);
}

.amount-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.amount {
  display: grid;
  gap: 3px;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  transition: border-color 0.3s, background 0.3s;
}

.amount b {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.amount span {
  font-size: 9px;
  color: var(--muted-2);
}

.amount.is-active {
  border-color: var(--orange);
  background: rgba(255, 90, 31, 0.1);
}

.pay-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0;
  padding: 13px 0;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  font-size: 11.5px;
}

.pay-summary span {
  color: var(--muted);
}

.inbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted-2);
}

.inbox-head button {
  font-size: 9px;
  color: var(--orange-2);
}

.inbox-list {
  display: grid;
}

.inbox-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
}

.inbox-icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  color: var(--orange);
}

.inbox-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.inbox-copy {
  min-width: 0;
  flex: 1;
}

.inbox-copy b {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.inbox-copy span {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
}

.inbox-copy em {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 7px;
  font-style: normal;
  color: var(--muted-2);
}

.inbox-item.is-unread .inbox-copy b {
  color: #fff;
}

.unread-dot {
  width: 6px;
  height: 6px;
  flex: none;
  margin-top: 14px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.1);
}

/* Comments */

.comments-list {
  max-height: 48vh;
  overflow-y: auto;
  padding: 4px 0 16px;
}

.comment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comment__body {
  min-width: 0;
  flex: 1;
}

.comment__body > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.comment__body b {
  font-size: 11.5px;
}

.comment__body span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted-2);
}

.comment__body p {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  word-break: break-word;
}

.comments-empty {
  padding: 36px 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted-2);
}

.comment-form {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 7px;
  padding: 7px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(16, 20, 28, 0.94);
  backdrop-filter: blur(20px);
}

.comment-form input {
  flex: 1;
  min-width: 0;
  padding: 8px 11px;
  border: 0;
  background: none;
  outline: none;
  font-size: 12.5px;
}

.comment-form input::placeholder {
  color: var(--muted-2);
}

.comments-loading {
  display: grid;
  gap: 10px;
  padding: 20px 0;
}

.comments-loading span {
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  animation: shimmer 1.4s infinite;
}

.comments-loading span:nth-child(2) {
  width: 86%;
}

.comments-loading span:nth-child(3) {
  width: 64%;
}

/* --------------------------------------------------------------------------
   Toasts / skeleton
   -------------------------------------------------------------------------- */

.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(92vw, 460px);
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  padding: 11px 18px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(22, 27, 37, 0.92);
  color: var(--text);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
  backdrop-filter: blur(20px);
}

.toast.is-in {
  opacity: 1;
  transform: none;
}

.toast--success {
  border-color: rgba(142, 230, 176, 0.3);
  color: var(--green);
}

.toast--error {
  border-color: rgba(255, 90, 31, 0.36);
  color: #ffb59a;
}

.skeleton {
  border-radius: 20px;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.045) 20%,
    rgba(255, 255, 255, 0.09) 40%,
    rgba(255, 255, 255, 0.045) 60%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton--title {
  width: 62%;
  height: 58px;
  margin: 18px 2px 22px;
}

.skeleton--card {
  height: 180px;
  margin-bottom: 14px;
}

.skeleton--chat {
  height: 460px;
  border-radius: 28px;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(142, 230, 176, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(142, 230, 176, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(142, 230, 176, 0);
  }
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
}

.boot-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke-2);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  color: var(--orange);
  animation: breathe 2.2s ease-in-out infinite;
}

.boot-screen p {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

@keyframes breathe {
  50% {
    box-shadow: 0 0 0 14px rgba(255, 90, 31, 0.06);
  }
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
  text-align: center;
}

/* --------------------------------------------------------------------------
   HONOR / MagicOS adaptation
   -------------------------------------------------------------------------- */

html.is-honor .aurora__blob {
  animation: none;
  opacity: 0.32;
  filter: blur(70px);
}

html.is-honor .post {
  animation: none;
}

html.is-honor .noise {
  display: none;
}

html.is-honor .topbar,
html.is-honor .tabbar {
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* 荣耀浏览器 / 老 WebView 可能没有 backdrop-filter，退回不透明玻璃。 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar,
  .tabbar,
  .auth-card,
  .checkin,
  .post,
  .calendar-card,
  .bubble-paywall,
  .member-card,
  .side-card,
  .sheet,
  .honor-card {
    background: rgba(14, 20, 30, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .aurora__blob {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
  }

  .auth-screen {
    grid-template-columns: 1fr 0.95fr;
    gap: 40px;
  }
}

@media (max-width: 920px) {
  .auth-screen {
    grid-template-columns: 1fr;
    width: min(560px, calc(100% - 36px));
    gap: 26px;
    padding: 34px 0 50px;
  }

  .auth-hero {
    padding-top: 16px;
  }

  .auth-brand {
    margin-bottom: 28px;
  }

  .auth-hero h1 {
    font-size: clamp(44px, 10vw, 62px);
  }

  .auth-lede {
    margin-top: 16px;
    font-size: 13px;
  }

  .auth-features {
    display: none;
  }

  .auth-foot {
    display: none;
  }

  .auth-card {
    border-radius: 28px;
  }

  .layout {
    grid-template-columns: 1fr;
    width: min(720px, calc(100% - 32px));
    padding-top: 22px;
  }

  .side {
    display: none;
  }

  .view {
    max-width: none;
  }

  .chat {
    height: min(56vh, 500px);
  }
}

@media (max-width: 640px) {
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-text small {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-text b {
    font-size: 13px;
  }

  .layout {
    width: calc(100% - 28px);
    padding-top: 16px;
    padding-bottom: 120px;
  }

  .welcome {
    padding-top: 8px;
  }

  .welcome h1 {
    font-size: 40px;
  }

  .welcome__lede {
    font-size: 12px;
  }

  .checkin {
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px;
  }

  .checkin__copy {
    flex-basis: calc(100% - 80px);
  }

  .checkin .btn {
    width: 100%;
  }

  .post {
    padding: 16px;
    border-radius: 22px;
  }

  .post__body {
    font-size: 14px;
  }

  .calendar-card {
    padding: 14px;
    border-radius: 22px;
  }

  .cal-cell {
    border-radius: 11px;
    font-size: 11px;
  }

  .cal-cell i {
    bottom: 6px;
  }

  .day-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .bubble-paywall {
    padding: 22px;
    border-radius: 26px;
  }

  .bubble-paywall h2 {
    margin-top: 26px;
  }

  .paywall-actions .btn {
    flex: 1;
  }

  .chat {
    height: calc(100vh - 260px);
    min-height: 340px;
    padding: 14px;
    border-radius: 22px;
  }

  .chat-input {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .member-card {
    aspect-ratio: 1.45;
    padding: 18px;
    border-radius: 22px;
  }

  .member-card__meta {
    left: 18px;
    bottom: 16px;
    gap: 13px;
  }

  .member-card__meta span {
    font-size: 5.5px;
  }

  .member-card__meta b {
    font-size: 7px;
  }

  .stats-grid {
    gap: 6px;
  }

  .stat {
    padding: 13px;
  }

  .stat b {
    font-size: 19px;
  }

  .wallet-card {
    padding: 18px;
  }

  .wallet-card__head b {
    font-size: 22px;
  }

  .sheet {
    max-height: 92vh;
  }

  .sheet__head {
    padding-left: 18px;
    padding-right: 18px;
  }

  .sheet__body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .toasts {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .order-row span {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .profile-head {
    gap: 14px;
  }

  .profile-head .avatar {
    width: 66px;
    height: 66px;
    font-size: 24px;
  }

  .profile-head__copy h1 {
    font-size: 36px;
  }
}

@media (max-width: 400px) {
  .welcome h1 {
    font-size: 35px;
  }

  .page-head h1 {
    font-size: 38px;
  }

  .checkin__copy {
    flex-basis: calc(100% - 76px);
  }

  .cal-cell {
    aspect-ratio: 1 / 1.15;
  }

  .tabbar {
    width: calc(100% - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
