/* =========================================================
   CAR SOCIETY · 车圈
   A mobile-first automotive community prototype
   ========================================================= */

/* ---------- Local display face ---------- */
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  background: #0c0c0e;
  color: #171512;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei",
    "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #ff4a17;
  outline-offset: 2px;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
p,
h1,
h2,
h3,
h4,
blockquote,
ol {
  margin: 0;
}
ol {
  padding: 0;
  list-style: none;
}
svg {
  display: block;
}
::selection {
  background: #ff4a17;
  color: #fff;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #f3efe6;
  --bg-deep: #ebe5d9;
  --surface: #fffdf8;
  --surface-2: #f7f3eb;
  --ink: #171512;
  --ink-soft: #2b2823;
  --muted: #857c70;
  --muted-soft: #aaa195;
  --line: rgba(23, 21, 18, 0.1);
  --line-strong: rgba(23, 21, 18, 0.18);
  --accent: #ff4a17;
  --accent-deep: #d93b0c;
  --accent-soft: rgba(255, 74, 23, 0.1);
  --lime: #dcff72;
  --lime-deep: #c8ee52;
  --cream: #f3efe6;
  --font-display: "Barlow Condensed", "DIN Alternate", "Arial Narrow", Impact,
    sans-serif;
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --shadow-card: 0 12px 36px rgba(42, 31, 18, 0.045);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}
[hidden] {
  display: none !important;
}
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   DESKTOP STAGE
   ========================================================= */
.stage {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vw, 108px);
  padding: 20px 32px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 38% 52% at 83% 24%, rgba(255, 74, 23, 0.18), transparent 68%),
    radial-gradient(ellipse 42% 54% at 12% 82%, rgba(182, 255, 64, 0.055), transparent 66%),
    linear-gradient(135deg, #0d0d0f 0%, #111113 45%, #0b0b0c 100%);
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(ellipse 82% 86% at 50% 50%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 82% 86% at 50% 50%, #000 20%, transparent 78%);
}
.stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -34%;
  width: 70vw;
  height: 52vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 74, 23, 0.08), transparent 68%);
  pointer-events: none;
}
.stage-left {
  position: relative;
  z-index: 2;
  width: 320px;
  flex: 0 1 320px;
  color: #f3efe6;
  animation: stage-in 0.9s 0.12s var(--ease) both;
}
.stage-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(34px, 6vh, 76px);
  color: rgba(243, 239, 230, 0.52);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.stage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 74, 23, 0.12);
}
.stage-display {
  margin-left: -4px;
  font-family: var(--font-display);
  font-size: clamp(92px, 9.2vw, 138px);
  font-weight: 700;
  line-height: 0.75;
  letter-spacing: -0.015em;
  color: #f3efe6;
  text-transform: uppercase;
}
.stage-display span {
  color: transparent;
  -webkit-text-stroke: 1.3px rgba(243, 239, 230, 0.56);
}
.stage-copy {
  margin-top: 34px;
  color: rgba(243, 239, 230, 0.5);
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}
.stage-index {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 54px;
  color: rgba(243, 239, 230, 0.3);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
}
.stage-index span:first-child {
  color: var(--accent);
}
.stage-right {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: center;
  width: 118px;
  flex: 0 1 118px;
  color: rgba(243, 239, 230, 0.46);
  animation: stage-in 0.9s 0.22s var(--ease) both;
}
.stage-right-line {
  width: 1px;
  height: clamp(70px, 15vh, 150px);
  margin-bottom: 26px;
  background: linear-gradient(to bottom, transparent, rgba(243, 239, 230, 0.32));
}
.stage-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
}
.stage-meta span:nth-child(2) {
  color: var(--accent);
}
.stage-coords {
  margin-top: 30px;
  text-align: right;
  font-family: var(--font-display);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.12em;
  color: rgba(243, 239, 230, 0.26);
}
.stage-arrow {
  margin-top: 38px;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent);
}
.phone-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: phone-in 0.9s var(--ease) both;
}
.phone-frame {
  width: 438px;
  height: min(928px, calc(100dvh - 54px));
  padding: 7px;
  border-radius: 46px;
  background: linear-gradient(150deg, #2d2c2c 0%, #141414 38%, #0a0a0a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.13),
    0 0 0 7px rgba(0, 0, 0, 0.24),
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 8px 24px rgba(0, 0, 0, 0.5);
}
.phone-caption {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 17px;
  color: rgba(243, 239, 230, 0.28);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.16em;
}
.phone-caption span:nth-child(2) {
  color: rgba(243, 239, 230, 0.16);
}
.phone-caption span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 18px;
  border-radius: 50%;
  background: rgba(243, 239, 230, 0.22);
  vertical-align: middle;
}

/* =========================================================
   APP SHELL
   ========================================================= */
.app-shell {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 39px;
  background: var(--bg);
  isolation: isolate;
  color: var(--ink);
}
.app-grain {
  position: absolute;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.view {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 10px, 0);
  transition:
    opacity 0.32s var(--ease),
    transform 0.38s var(--ease),
    visibility 0.38s;
}
.view.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transform: none;
}
.view-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(104px + var(--safe-bottom));
}
.view-scroll::-webkit-scrollbar,
.story-strip::-webkit-scrollbar,
.feed-tabs::-webkit-scrollbar,
.garage-row::-webkit-scrollbar,
.carousel-track::-webkit-scrollbar,
.detail-scroll::-webkit-scrollbar,
.sheet-scroll::-webkit-scrollbar,
.chat-body::-webkit-scrollbar,
.discover-club-list::-webkit-scrollbar {
  display: none;
}
.eyebrow {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
}

/* =========================================================
   GLOBAL HEADERS / BRAND
   ========================================================= */
.home-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: calc(9px + var(--safe-top)) 20px 7px;
  background: var(--bg);
  position: relative;
  z-index: 40;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-symbol {
  width: 35px;
  height: 35px;
  filter: drop-shadow(0 4px 8px rgba(23, 21, 18, 0.12));
}
.brand-symbol svg {
  width: 100%;
  height: 100%;
}
.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}
.brand-copy strong {
  max-width: 160px;
  overflow: hidden;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-copy small {
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.24em;
  color: var(--muted);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.52);
  color: var(--ink);
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.icon-btn .icon {
  width: 19px;
  height: 19px;
}
.icon-btn:hover {
  background: var(--surface);
  border-color: var(--line-strong);
}
.icon-btn:active {
  transform: scale(0.92);
}
.icon-btn.has-dot::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--bg);
}
.page-header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 86px;
  padding: calc(17px + var(--safe-top)) 20px 13px;
  background: var(--bg);
  position: relative;
  z-index: 40;
}
.page-title h1 {
  font-size: 29px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.page-title .eyebrow {
  margin-bottom: 6px;
}

/* =========================================================
   HOME — LEAD
   ========================================================= */
.home-lead {
  padding: 5px 20px 0;
}
.lead-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.09em;
  color: var(--muted);
}
.lead-meta b {
  color: var(--ink);
  font-weight: 600;
}
.lead-date {
  margin-left: auto;
  color: var(--muted-soft);
}
.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.16em;
}
.live-tag i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: live-pulse 2s infinite;
}
.feature-card {
  position: relative;
  display: block;
  width: 100%;
  height: 243px;
  overflow: hidden;
  border-radius: 26px;
  color: #fff;
  text-align: left;
  background: #26231f;
  box-shadow: 0 20px 38px rgba(35, 25, 12, 0.16);
  isolation: isolate;
}
.feature-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 56%;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease);
}
.feature-card:hover .feature-image {
  transform: scale(1.09);
}
.feature-wash {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to top, rgba(8, 8, 8, 0.84) 0%, rgba(8, 8, 8, 0.22) 50%, rgba(8, 8, 8, 0.2) 100%),
    linear-gradient(105deg, rgba(11, 10, 8, 0.42) 0%, transparent 58%);
}
.feature-top {
  position: absolute;
  z-index: 3;
  top: 15px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.glass-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 100px;
  background: rgba(250, 245, 235, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.glass-tag::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
}
.feature-issue {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.62);
}
.feature-content {
  position: absolute;
  z-index: 3;
  left: 19px;
  right: 66px;
  bottom: 19px;
  display: flex;
  flex-direction: column;
}
.feature-eyebrow {
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.65);
}
.feature-title {
  font-size: 33px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.18);
}
.feature-sub {
  margin-top: 7px;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.66);
}
.feature-arrow {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(250, 245, 235, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.25s;
}
.feature-arrow .icon {
  width: 18px;
  height: 18px;
}
.feature-card:hover .feature-arrow {
  color: var(--ink);
  background: var(--lime);
  transform: rotate(8deg);
}

/* =========================================================
   HOME — STORIES
   ========================================================= */
.stories-section {
  padding: 23px 0 7px;
}
.section-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
}
.section-line h2 {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.section-en {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted-soft);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.text-link .icon {
  width: 13px;
  height: 13px;
}
.text-link:hover {
  color: var(--accent);
}
.story-strip {
  display: flex;
  gap: 13px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 13px 20px 1px;
  scroll-padding-left: 20px;
}
.story {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 62px;
  color: var(--muted);
  transition: transform 0.2s var(--ease);
}
.story:active {
  transform: scale(0.94);
}
.story-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 2px;
  background: var(--line);
}
.story.is-new .story-ring {
  background: conic-gradient(from 220deg, var(--accent), #ffbe6b, var(--accent));
  box-shadow: 0 5px 14px rgba(255, 74, 23, 0.17);
}
.story-ring img {
  width: 100%;
  height: 100%;
  border: 2.5px solid var(--bg);
  border-radius: 50%;
  object-fit: cover;
}
.story.is-new .story-ring::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 5px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
}
.story-label {
  max-width: 62px;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.story-add .story-ring {
  border: 1px dashed rgba(23, 21, 18, 0.24);
  background: transparent;
}
.story-add .story-ring .icon {
  width: 22px;
  height: 22px;
  color: var(--muted);
}
.story-add .story-label {
  color: var(--ink);
  font-weight: 550;
}
.story-add:hover .story-ring {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.story-add:hover .story-ring .icon {
  color: var(--accent);
}

/* =========================================================
   HOME — FEED TOOLBAR
   ========================================================= */
.feed-toolbar {
  position: sticky;
  top: 0;
  z-index: 32;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 20px 10px;
  background: linear-gradient(to bottom, var(--bg) 65%, rgba(243, 239, 230, 0.88) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.feed-toolbar::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 0;
  left: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 8%, var(--line) 92%, transparent);
}
.feed-tabs {
  display: flex;
  flex: 1;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.feed-tab {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 100px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition:
    color 0.22s,
    background 0.22s,
    transform 0.18s;
}
.feed-tab:hover {
  color: var(--ink);
}
.feed-tab:active {
  transform: scale(0.95);
}
.feed-tab.is-active {
  color: var(--cream);
  background: var(--ink);
  font-weight: 600;
  box-shadow: 0 5px 12px rgba(23, 21, 18, 0.16);
}
.toolbar-btn {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  transition:
    color 0.2s,
    transform 0.3s;
}
.toolbar-btn .icon {
  width: 15px;
  height: 15px;
}
.toolbar-btn:hover {
  color: var(--ink);
}
.toolbar-btn.is-spinning .icon {
  animation: spin 0.7s var(--ease);
}

/* =========================================================
   FEED CARDS
   ========================================================= */
.feed {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 12px 20px 0;
}
.post-card {
  position: relative;
  padding: 15px 15px 2px;
  overflow: hidden;
  border: 1px solid rgba(23, 21, 18, 0.065);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  animation: card-in 0.5s var(--ease) both;
  animation-delay: var(--delay, 0ms);
}
.post-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.post-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-deep);
}
.post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.post-avatar:hover img {
  transform: scale(1.08);
}
.post-avatar .avatar-car {
  position: absolute;
  right: -1px;
  bottom: -1px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
}
.post-avatar .avatar-car .icon {
  width: 8px;
  height: 8px;
}
.post-identity {
  flex: 1;
  min-width: 0;
}
.post-name-line {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.post-name {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.verified-dot {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.verified-dot .icon {
  width: 8px;
  height: 8px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  color: var(--muted-soft);
  font-size: 9.5px;
  letter-spacing: 0.01em;
}
.post-meta .dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
}
.post-meta .car-model {
  max-width: 94px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.follow-btn {
  flex: 0 0 auto;
  height: 27px;
  padding: 0 10px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  transition:
    background 0.22s,
    color 0.22s,
    border-color 0.22s;
}
.follow-btn:hover {
  color: #fff;
  background: var(--accent);
}
.follow-btn.is-following {
  border-color: var(--line);
  color: var(--muted);
  background: transparent;
}
.follow-btn.is-following:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.more-btn {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 28px;
  margin-left: -3px;
  color: var(--muted-soft);
}
.more-btn .icon {
  width: 16px;
  height: 16px;
}
.more-btn:hover {
  color: var(--ink);
}
.post-title {
  margin: 12px 0 6px;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.46;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}
.post-text {
  color: #5b5349;
  font-size: 12.8px;
  line-height: 1.8;
  letter-spacing: 0.005em;
  white-space: pre-line;
}
.post-title + .post-text {
  margin-top: 0;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.post-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  background: #f3eee4;
  color: #8d6f59;
  font-size: 9.5px;
  letter-spacing: 0.01em;
  transition:
    color 0.2s,
    background 0.2s;
}
.post-tag:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.post-media {
  position: relative;
  margin: 12px -2px 0;
  overflow: hidden;
  border-radius: 17px;
  background: #ded7ca;
}
.post-media.single {
  cursor: zoom-in;
}
.post-media.single img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.post-media.single:hover img {
  transform: scale(1.025);
}
.photo-count {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 21px;
  padding: 0 8px;
  border-radius: 100px;
  background: rgba(14, 13, 11, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.08em;
}
.photo-count .icon {
  width: 10px;
  height: 10px;
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.carousel-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.carousel-dots {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 8px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  pointer-events: none;
}
.carousel-dot {
  width: 4px;
  height: 4px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition:
    width 0.22s,
    background 0.22s;
}
.carousel-dot.is-active {
  width: 14px;
  background: #fff;
}
.media-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--bg);
}
.media-duo button {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}
.media-duo img {
  width: 100%;
  aspect-ratio: 4 / 5.1;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.media-duo button:hover img {
  transform: scale(1.035);
}
.media-caption {
  position: absolute;
  bottom: 7px;
  left: 7px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(17, 16, 14, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.88);
  font-size: 8px;
  letter-spacing: 0.04em;
}
.double-tap-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(20, 18, 15, 0.32);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.3);
}
.double-tap-heart .icon {
  width: 38px;
  height: 38px;
}
.double-tap-heart.is-bursting {
  animation: heart-burst 0.75s var(--ease-spring);
}

/* Actions */
.post-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 46px;
  margin-top: 4px;
}
.action-group {
  display: flex;
  align-items: center;
  gap: 1px;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 5px 5px;
  border-radius: 8px;
  color: #6e655a;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  transition:
    color 0.2s,
    background 0.2s;
}
.action-btn .icon {
  width: 19px;
  height: 19px;
  transition: transform 0.18s var(--ease-spring);
}
.action-btn:hover {
  color: var(--ink);
  background: rgba(23, 21, 18, 0.035);
}
.action-btn:active .icon {
  transform: scale(0.82);
}
.action-btn.liked {
  color: var(--accent);
}
.action-btn.liked .icon {
  fill: var(--accent);
  stroke: var(--accent);
  animation: like-pop 0.4s var(--ease-spring);
}
.action-btn.saved {
  color: var(--ink);
}
.action-btn.saved .icon {
  fill: var(--ink);
  stroke: var(--ink);
}
.action-spacer {
  flex: 1;
}
.action-btn.share-only {
  padding-right: 2px;
}
.action-btn .action-label {
  font-size: 10px;
}
.post-comments-preview {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: -2px 2px 12px;
  padding-top: 1px;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
}
.post-comments-preview strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 600;
}
.post-comments-preview span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-comments-preview button {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--accent);
  font-size: 10px;
}
.post.is-flash {
  animation: post-flash 1.2s var(--ease);
}

/* ---------- Quote card ---------- */
.quote-card {
  overflow: hidden;
  border: 0;
  background: #1b1916;
  color: var(--cream);
  box-shadow: 0 18px 38px rgba(20, 15, 9, 0.17);
}
.quote-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 74, 23, 0.3), transparent 68%);
  pointer-events: none;
}
.quote-card::after {
  content: "“";
  position: absolute;
  top: 32px;
  right: 15px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 132px;
  line-height: 1;
  color: rgba(243, 239, 230, 0.075);
  pointer-events: none;
}
.quote-card .post-name {
  color: var(--cream);
}
.quote-card .post-meta {
  color: rgba(243, 239, 230, 0.42);
}
.quote-card .post-meta .car-model {
  color: rgba(243, 239, 230, 0.58);
}
.quote-card .post-avatar {
  border: 1px solid rgba(255, 255, 255, 0.13);
}
.quote-card .follow-btn {
  border-color: rgba(243, 239, 230, 0.2);
  color: rgba(243, 239, 230, 0.72);
}
.quote-card .follow-btn:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}
.quote-card .more-btn {
  color: rgba(243, 239, 230, 0.4);
}
.quote-mark {
  margin: 17px 0 5px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
}
.quote-title {
  position: relative;
  z-index: 1;
  padding-right: 24px;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.52;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.quote-copy {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  color: rgba(243, 239, 230, 0.52);
  font-size: 11.5px;
  line-height: 1.8;
}
.quote-card .post-tags {
  margin-top: 13px;
}
.quote-card .post-tag {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(243, 239, 230, 0.6);
}
.quote-card .post-actions {
  margin-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.quote-card .action-btn {
  color: rgba(243, 239, 230, 0.54);
}
.quote-card .action-btn:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.05);
}
.quote-card .action-btn.liked {
  color: var(--accent);
}
.quote-card .action-btn.saved {
  color: var(--lime);
}
.quote-card .action-btn.saved .icon {
  fill: var(--lime);
  stroke: var(--lime);
}

/* ---------- Poll card ---------- */
.poll-card {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0, rgba(255, 74, 23, 0.08), transparent 62%),
    var(--surface);
}
.poll-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.poll-heading .icon {
  width: 13px;
  height: 13px;
}
.poll-question {
  margin: 5px 0 13px;
  font-size: 18.5px;
  font-weight: 750;
  line-height: 1.46;
  letter-spacing: -0.02em;
}
.poll-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.poll-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 49px;
  padding: 0 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  text-align: left;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.poll-option:hover {
  border-color: var(--line-strong);
}
.poll-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: #ece6db;
  transition: width 0.7s var(--ease);
}
.poll-option.is-selected {
  border-color: var(--accent);
}
.poll-option.is-selected .poll-fill {
  background: rgba(255, 74, 23, 0.09);
}
.poll-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 550;
}
.poll-index {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted-soft);
  font-family: var(--font-display);
  font-size: 9px;
}
.poll-option.is-selected .poll-index {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}
.poll-result {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
}
.poll-check {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}
.poll-check .icon {
  width: 8px;
  height: 8px;
}
.poll-option.is-selected .poll-check {
  opacity: 1;
}
.poll-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted-soft);
  font-size: 9.5px;
}
.poll-meta b {
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Video card ---------- */
.video-card {
  padding-bottom: 2px;
}
.video-cover {
  position: relative;
  margin: 12px -2px 0;
  overflow: hidden;
  border-radius: 17px;
  background: #151412;
  cursor: pointer;
}
.video-cover img {
  width: 100%;
  aspect-ratio: 16 / 10.2;
  object-fit: cover;
  filter: saturate(0.87) brightness(0.82);
  transition:
    transform 0.7s var(--ease),
    filter 0.4s;
}
.video-cover:hover img {
  transform: scale(1.02);
  filter: saturate(1) brightness(0.9);
}
.video-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 7, 7, 0.62), transparent 55%);
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(250, 247, 239, 0.92);
  color: var(--ink);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.27);
  transform: translate(-50%, -50%);
  transition:
    opacity 0.25s,
    transform 0.3s var(--ease-spring);
}
.video-play .icon {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}
.video-cover:hover .video-play {
  transform: translate(-50%, -50%) scale(1.08);
}
.video-badge {
  position: absolute;
  z-index: 3;
  top: 9px;
  left: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 100px;
  background: rgba(15, 14, 12, 0.5);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.84);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}
.video-badge i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.video-duration {
  position: absolute;
  z-index: 3;
  right: 9px;
  bottom: 9px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(10, 9, 8, 0.55);
  color: #fff;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.06em;
}
.video-caption {
  position: absolute;
  z-index: 3;
  left: 11px;
  bottom: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.1em;
}
.video-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  height: 2px;
  background: rgba(255, 255, 255, 0.16);
  opacity: 0;
}
.video-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}
.video-equalizer {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  transform: translate(-50%, -50%);
}
.video-equalizer i {
  display: block;
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: #fff;
  animation: equalize 0.75s ease-in-out infinite alternate;
}
.video-equalizer i:nth-child(2) {
  height: 16px;
  animation-delay: 0.15s;
}
.video-equalizer i:nth-child(3) {
  height: 11px;
  animation-delay: 0.3s;
}
.video-equalizer i:nth-child(4) {
  height: 19px;
  animation-delay: 0.45s;
}
.video-cover.is-playing .video-play {
  opacity: 0;
}
.video-cover.is-playing .video-equalizer {
  display: flex;
}
.video-cover.is-playing .video-progress {
  opacity: 1;
}
.video-cover.is-playing .video-progress span {
  animation: video-progress 24s linear forwards;
}
.video-cover.is-paused .video-progress span {
  animation-play-state: paused;
}
.video-playing-label {
  position: absolute;
  z-index: 3;
  top: 9px;
  right: 9px;
  padding: 4px 8px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.2s;
}
.video-cover.is-playing .video-badge,
.video-cover.is-playing .video-duration {
  opacity: 0;
}
.video-cover.is-playing .video-playing-label {
  opacity: 1;
}

/* ---------- Event card ---------- */
.event-post {
  background: var(--surface);
}
.event-banner {
  position: relative;
  margin: 12px -2px 10px;
  overflow: hidden;
  border-radius: 17px;
  background: #191714;
  color: var(--cream);
}
.event-banner > img {
  width: 100%;
  height: 100%;
  min-height: 183px;
  object-fit: cover;
  opacity: 0.28;
  filter: grayscale(0.35);
}
.event-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(17, 15, 12, 0.92) 20%, rgba(17, 15, 12, 0.46) 68%, rgba(17, 15, 12, 0.78)),
    radial-gradient(ellipse at 100% 0, rgba(255, 74, 23, 0.28), transparent 55%);
}
.event-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
}
.event-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 56px;
  border: 1px solid rgba(243, 239, 230, 0.2);
  border-radius: 10px;
  font-family: var(--font-display);
  line-height: 0.9;
}
.event-date b {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.event-date span {
  margin-top: 3px;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.event-badge {
  padding: 4px 8px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.event-name {
  margin-bottom: 3px;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.event-place {
  display: flex;
  align-items: center;
  gap: 3px;
  color: rgba(243, 239, 230, 0.56);
  font-size: 9.5px;
}
.event-place .icon {
  width: 11px;
  height: 11px;
}
.event-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.avatar-stack {
  display: flex;
  align-items: center;
}
.avatar-stack img {
  width: 22px;
  height: 22px;
  margin-left: -6px;
  border: 2px solid #1b1916;
  border-radius: 50%;
  object-fit: cover;
}
.avatar-stack img:first-child {
  margin-left: 0;
}
.avatar-stack .stack-more {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: -6px;
  border: 2px solid #1b1916;
  border-radius: 50%;
  background: #3a352e;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-display);
  font-size: 7px;
}
.event-attendees {
  color: rgba(243, 239, 230, 0.55);
  font-size: 8.5px;
}
.event-join {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 30px;
  margin-left: auto;
  padding: 0 11px;
  border-radius: 100px;
  background: var(--lime);
  color: var(--ink);
  font-size: 10px;
  font-weight: 650;
  transition:
    background 0.2s,
    transform 0.18s;
}
.event-join:hover {
  background: #ecff9d;
}
.event-join:active {
  transform: scale(0.96);
}
.event-join .icon {
  width: 11px;
  height: 11px;
}
.event-join.is-joined {
  background: rgba(243, 239, 230, 0.12);
  color: var(--cream);
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 38px 24px;
  text-align: center;
}
.empty-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 17px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
}
.empty-art::before,
.empty-art::after {
  content: "";
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.empty-art::before {
  inset: -9px;
  opacity: 0.6;
}
.empty-art::after {
  inset: -18px;
  opacity: 0.25;
}
.empty-art .icon {
  width: 26px;
  height: 26px;
}
.empty-state h3 {
  font-size: 16px;
  font-weight: 700;
}
.empty-state p {
  max-width: 230px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}
.empty-state button {
  margin-top: 16px;
  height: 36px;
  padding: 0 16px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--cream);
  font-size: 11px;
  font-weight: 600;
}
.empty-state .empty-emoji {
  display: block;
  margin-bottom: 14px;
  font-size: 30px;
}

/* Feed end */
.feed-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 18px;
  text-align: center;
}
.feed-end-mark {
  width: 34px;
  height: 34px;
  color: var(--muted-soft);
  opacity: 0.7;
}
.feed-end-mark svg {
  width: 100%;
  height: 100%;
}
.feed-end p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.feed-end > button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}
.feed-end > button .icon {
  width: 13px;
  height: 13px;
}
.feed-end small {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--muted-soft);
}

/* =========================================================
   DISCOVER
   ========================================================= */
.discover-hero {
  padding: 2px 20px 0;
}
.discover-hero-card {
  position: relative;
  display: block;
  width: 100%;
  height: 264px;
  overflow: hidden;
  border-radius: 26px;
  color: var(--cream);
  text-align: left;
  background: #191714;
  box-shadow: 0 18px 40px rgba(30, 21, 12, 0.16);
}
.discover-hero-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 57%;
  filter: saturate(0.82);
  transform: scale(1.02);
  transition: transform 1s var(--ease);
}
.discover-hero-card:hover > img {
  transform: scale(1.07);
}
.discover-hero-card .wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 9, 7, 0.86), rgba(10, 9, 7, 0.14) 65%),
    linear-gradient(120deg, rgba(10, 9, 7, 0.42), transparent 55%);
}
.discover-hero-top {
  position: absolute;
  top: 15px;
  right: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.65);
}
.discover-hero-bottom {
  position: absolute;
  right: 17px;
  bottom: 17px;
  left: 17px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 13px;
}
.big-num {
  font-family: var(--font-display);
  font-size: 92px;
  font-weight: 700;
  line-height: 0.72;
  letter-spacing: -0.02em;
  color: var(--lime);
}
.discover-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding-bottom: 2px;
}
.discover-hero-copy strong {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.03em;
}
.discover-hero-copy em {
  font-family: var(--font-display);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.54);
}
.round-arrow {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
  transition:
    background 0.2s,
    color 0.2s;
}
.round-arrow .icon {
  width: 16px;
  height: 16px;
}
.discover-hero-card:hover .round-arrow {
  color: var(--ink);
  background: var(--lime);
}
.discover-section {
  padding: 24px 20px 0;
}
.discover-section .section-line {
  padding: 0;
  margin-bottom: 13px;
}
.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.topic-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 142px;
  overflow: hidden;
  border-radius: 18px;
  background: #201d18;
  color: #fff;
  text-align: left;
  isolation: isolate;
}
.topic-card:first-child {
  grid-column: 1 / -1;
  min-height: 164px;
}
.topic-card img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.topic-card:hover img {
  transform: scale(1.06);
}
.topic-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(8, 8, 7, 0.78), transparent 68%);
}
.topic-info {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px;
  width: 100%;
}
.topic-kicker {
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--lime);
}
.topic-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
}
.topic-card:first-child .topic-title {
  font-size: 19px;
}
.topic-stat {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.55);
}
.topic-arrow {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(15, 14, 12, 0.16);
  backdrop-filter: blur(6px);
}
.topic-arrow .icon {
  width: 12px;
  height: 12px;
}
.meetup-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.meetup-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-align: left;
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.meetup-row:hover {
  border-color: rgba(23, 21, 18, 0.2);
  box-shadow: 0 8px 22px rgba(32, 24, 14, 0.05);
}
.meetup-row:active {
  transform: scale(0.99);
}
.meetup-date {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 53px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  line-height: 0.85;
}
.meetup-date b {
  font-size: 22px;
  font-weight: 600;
}
.meetup-date span {
  margin-top: 3px;
  font-size: 7px;
  letter-spacing: 0.16em;
  color: var(--lime);
}
.meetup-main {
  flex: 1;
  min-width: 0;
}
.meetup-main strong {
  display: block;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.meetup-main span {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}
.meetup-main .icon {
  width: 10px;
  height: 10px;
}
.meetup-thumb {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}
.meetup-arrow {
  flex: 0 0 auto;
  color: var(--muted-soft);
}
.meetup-arrow .icon {
  width: 14px;
  height: 14px;
}
.club-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.club-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(23, 21, 18, 0.065);
}
.club-row:last-child {
  border-bottom: 0;
}
.club-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 41px;
  height: 41px;
  border-radius: 13px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.club-mark.orange {
  background: var(--accent);
  color: #fff;
}
.club-mark.lime {
  background: var(--lime);
  color: var(--ink);
}
.club-mark.ink {
  background: var(--ink);
  color: var(--cream);
}
.club-mark.sand {
  background: #dfd4c0;
  color: #5d4c38;
}
.club-main {
  flex: 1;
  min-width: 0;
}
.club-main strong {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
}
.club-main span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.club-join {
  height: 27px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 9.5px;
  color: var(--ink);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.club-join:hover {
  background: var(--ink);
  color: var(--cream);
}
.club-join.is-joined {
  border-color: var(--line);
  color: var(--muted);
}
.discover-quote {
  margin: 34px 20px 6px;
  padding: 23px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.discover-quote .icon {
  width: 17px;
  height: 17px;
  margin: 0 auto 10px;
  color: var(--accent);
}
.discover-quote p {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.65;
  letter-spacing: -0.01em;
}
.discover-quote small {
  display: block;
  margin-top: 9px;
  color: var(--muted-soft);
  font-size: 9px;
  letter-spacing: 0.1em;
}

/* =========================================================
   MESSAGES
   ========================================================= */
.messages-scroll {
  padding-top: 2px;
}
.message-intro {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 20px 16px;
  padding: 18px 17px;
  overflow: hidden;
  border-radius: 21px;
  background:
    radial-gradient(ellipse at 100% 0, rgba(255, 74, 23, 0.38), transparent 55%),
    var(--ink);
  color: var(--cream);
}
.message-intro > div {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.message-intro span {
  color: rgba(243, 239, 230, 0.6);
  font-size: 10px;
}
.message-intro b {
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}
.message-intro strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.message-intro-badge {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid rgba(243, 239, 230, 0.18);
  border-radius: 100px;
  color: var(--lime) !important;
  font-family: var(--font-display);
  font-size: 8px !important;
  letter-spacing: 0.12em;
}
.message-orbit {
  position: absolute;
  right: -34px;
  bottom: -63px;
  width: 158px;
  height: 158px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  pointer-events: none;
}
.message-orbit::before,
.message-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
.message-orbit::before {
  inset: 17px;
}
.message-orbit::after {
  inset: 43px;
  background: rgba(255, 255, 255, 0.03);
}
.notice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding: 0 20px 20px;
}
.notice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 13px 4px 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.notice-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.notice-card:active {
  transform: scale(0.97);
}
.notice-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: var(--ink);
}
.notice-icon.orange {
  background: rgba(255, 74, 23, 0.11);
  color: var(--accent);
}
.notice-icon.lime {
  background: rgba(190, 235, 63, 0.22);
  color: #577200;
}
.notice-icon.ink {
  background: var(--ink);
  color: var(--cream);
}
.notice-icon.sand {
  background: #eee6d8;
  color: #876f53;
}
.notice-icon .icon {
  width: 17px;
  height: 17px;
}
.notice-label {
  color: var(--muted);
  font-size: 9.5px;
}
.notice-count {
  position: absolute;
  top: 7px;
  right: 8px;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 8px;
  line-height: 14px;
  text-align: center;
}
.assistant-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 40px);
  margin: 0 20px 22px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 74, 23, 0.16);
  border-radius: 18px;
  background: linear-gradient(105deg, #fff8ee, #fffdf8 60%);
  text-align: left;
  box-shadow: 0 8px 20px rgba(70, 40, 15, 0.035);
}
.assistant-logo {
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
}
.assistant-logo svg {
  width: 100%;
  height: 100%;
}
.assistant-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.assistant-copy > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.assistant-copy strong {
  font-size: 11.5px;
  font-weight: 650;
}
.assistant-copy i {
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 7px;
  font-style: normal;
  font-weight: 600;
}
.assistant-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.assistant-time {
  align-self: flex-start;
  color: var(--muted-soft);
  font-family: var(--font-display);
  font-size: 9px;
}
.chat-section-line {
  margin-bottom: 3px;
}
.chat-list {
  padding: 0 20px;
}
.chat-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid rgba(23, 21, 18, 0.065);
  text-align: left;
}
.chat-row:last-child {
  border-bottom: 0;
}
.chat-row-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 47px;
  height: 47px;
}
.chat-row-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.online-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: #9bc63d;
}
.chat-row-main {
  flex: 1;
  min-width: 0;
}
.chat-row-top {
  display: flex;
  align-items: center;
  gap: 5px;
}
.chat-row-name {
  max-width: 170px;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-row-time {
  margin-left: auto;
  color: var(--muted-soft);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.03em;
}
.chat-row-msg {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.chat-row-msg span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-unread {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 16px;
  height: 16px;
  margin-left: 2px;
  padding: 0 4px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 8px;
}
.chat-row .chat-unread {
  margin-left: auto;
}
.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--accent);
  font-size: 8px;
}
.typing-indicator i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
  animation: typing 1s infinite;
}
.typing-indicator i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing-indicator i:nth-child(3) {
  animation-delay: 0.3s;
}
.messages-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 28px 20px 3px;
  color: var(--muted-soft);
  font-size: 8.5px;
}
.messages-footnote .icon {
  width: 11px;
  height: 11px;
}

/* =========================================================
   PROFILE
   ========================================================= */
.profile-scroll {
  padding-bottom: calc(104px + var(--safe-bottom));
  background: var(--bg);
}
.profile-cover {
  position: relative;
  height: 228px;
  overflow: hidden;
  background: #27231e;
}
.profile-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}
.cover-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(12, 11, 9, 0.55), transparent 55%),
    linear-gradient(to bottom, rgba(12, 11, 9, 0.34), transparent 30%);
}
.profile-top-actions {
  position: absolute;
  top: calc(12px + var(--safe-top));
  right: 17px;
  left: 17px;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}
.glass-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 50%;
  background: rgba(23, 21, 18, 0.27);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.9);
  transition:
    background 0.2s,
    transform 0.2s;
}
.glass-btn:hover {
  background: rgba(23, 21, 18, 0.5);
}
.glass-btn:active {
  transform: scale(0.91);
}
.glass-btn .icon {
  width: 17px;
  height: 17px;
}
.cover-index {
  position: absolute;
  right: 18px;
  bottom: 43px;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.52);
}
.profile-body {
  position: relative;
  z-index: 2;
  margin-top: -38px;
  padding: 0 20px;
  border-radius: 28px 28px 0 0;
  background: var(--bg);
}
.profile-identity {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 56px;
}
.profile-avatar-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  margin-top: -49px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 9px 24px rgba(35, 25, 12, 0.13);
}
.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.pro-badge {
  position: absolute;
  right: -5px;
  bottom: 1px;
  padding: 3px 6px;
  border: 2px solid var(--bg);
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.outline-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 31px;
  margin-bottom: 2px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 9.5px;
  font-weight: 550;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.outline-btn:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}
.outline-btn .icon {
  width: 12px;
  height: 12px;
}
.profile-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
}
.profile-name-row h2 {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 18px;
  padding: 0 6px;
  border-radius: 100px;
  background: rgba(255, 74, 23, 0.09);
  color: var(--accent);
  font-size: 8px;
  font-weight: 550;
}
.verified-chip .icon {
  width: 9px;
  height: 9px;
}
.profile-handle {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.profile-bio {
  margin-top: 9px;
  color: #5c5449;
  font-size: 11.5px;
  line-height: 1.7;
  white-space: pre-line;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 17px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.profile-stats button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.profile-stats button + button::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 1px;
  background: var(--line);
}
.profile-stats b {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
}
.profile-stats span {
  color: var(--muted);
  font-size: 8.5px;
}
.garage-section {
  margin-top: 21px;
}
.garage-section .section-line {
  padding: 0;
  margin-bottom: 11px;
}
.garage-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -20px;
  padding: 0 20px 2px;
  scrollbar-width: none;
  scroll-padding-left: 20px;
}
.garage-card {
  position: relative;
  flex: 0 0 224px;
  height: 143px;
  overflow: hidden;
  border-radius: 19px;
  background: #211e19;
  color: var(--cream);
  text-align: left;
  isolation: isolate;
}
.garage-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.7s var(--ease);
}
.garage-card:hover > img {
  transform: scale(1.05);
}
.garage-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(12, 11, 9, 0.8), transparent 70%);
}
.garage-info {
  position: absolute;
  right: 13px;
  bottom: 12px;
  left: 13px;
  z-index: 2;
}
.garage-info strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
}
.garage-info span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: rgba(243, 239, 230, 0.56);
  font-family: var(--font-display);
  font-size: 8.5px;
  letter-spacing: 0.08em;
}
.garage-tag {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 2;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  background: rgba(15, 14, 12, 0.24);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.8);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}
.garage-add {
  display: flex;
  flex: 0 0 132px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 143px;
  border: 1px dashed rgba(23, 21, 18, 0.2);
  border-radius: 19px;
  color: var(--muted);
  font-size: 9px;
}
.garage-add .icon {
  width: 20px;
  height: 20px;
}
.garage-add:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.cert-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  padding: 13px 13px;
  border-radius: 18px;
  background: linear-gradient(115deg, var(--lime), #e8ffac);
  color: var(--ink);
  text-align: left;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.cert-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(161, 194, 55, 0.18);
}
.cert-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--lime);
}
.cert-icon .icon {
  width: 19px;
  height: 19px;
}
.cert-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.cert-copy strong {
  font-size: 10.5px;
  font-weight: 700;
}
.cert-copy small {
  color: rgba(23, 21, 18, 0.56);
  font-size: 8.5px;
}
.cert-cta {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 650;
}
.cert-cta .icon {
  width: 11px;
  height: 11px;
}
.profile-tabs {
  display: flex;
  gap: 1px;
  margin-top: 24px;
  border-bottom: 1px solid var(--line);
}
.profile-tab {
  position: relative;
  flex: 1;
  height: 42px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 550;
}
.profile-tab span {
  margin-left: 2px;
  font-family: var(--font-display);
  font-size: 9px;
  color: var(--muted-soft);
}
.profile-tab::after {
  content: "";
  position: absolute;
  right: 30%;
  bottom: -1px;
  left: 30%;
  height: 2px;
  border-radius: 10px;
  background: var(--ink);
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity 0.25s,
    transform 0.3s var(--ease);
}
.profile-tab.is-active {
  color: var(--ink);
  font-weight: 700;
}
.profile-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}
.profile-tab.is-active span {
  color: var(--accent);
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 6px 0 30px;
}
.profile-grid-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.08;
  border-radius: 10px;
  background: var(--bg-deep);
}
.profile-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.profile-grid-item:hover img {
  transform: scale(1.06);
}
.profile-grid-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 9, 7, 0.55), transparent 48%);
  opacity: 0;
  transition: opacity 0.25s;
}
.profile-grid-item:hover::after {
  opacity: 1;
}
.profile-grid-likes {
  position: absolute;
  z-index: 2;
  bottom: 7px;
  left: 7px;
  display: flex;
  align-items: center;
  gap: 2px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 9px;
  opacity: 0;
  transition: opacity 0.25s;
}
.profile-grid-likes .icon {
  width: 11px;
  height: 11px;
}
.profile-grid-item:hover .profile-grid-likes {
  opacity: 1;
}
.profile-grid-item.is-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #1c1a17;
  color: var(--cream);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
.profile-grid .empty-state {
  grid-column: 1 / -1;
  min-height: 230px;
  padding-bottom: 10px;
}
.profile-foot {
  padding: 0 0 20px;
  color: var(--muted-soft);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-align: center;
}

/* =========================================================
   BOTTOM NAV
   ========================================================= */
.tabbar {
  position: absolute;
  right: 12px;
  bottom: calc(10px + var(--safe-bottom));
  left: 12px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 62px;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: rgba(255, 252, 245, 0.9);
  box-shadow:
    0 14px 35px rgba(40, 29, 15, 0.12),
    0 0 0 1px rgba(23, 21, 18, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}
.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted-soft);
  transition: color 0.2s;
}
.nav-item .icon {
  width: 21px;
  height: 21px;
  transition:
    transform 0.25s var(--ease-spring),
    stroke-width 0.2s;
}
.nav-item span:last-child {
  max-width: 58px;
  overflow: hidden;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-item.is-active {
  color: var(--ink);
}
.nav-item.is-active .icon {
  transform: translateY(-1px);
  stroke-width: 2.1;
}
.nav-item.is-active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}
.nav-badge {
  position: absolute;
  top: 9px;
  left: calc(50% + 5px);
  display: grid;
  place-items: center;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border: 1.5px solid #fffdf8;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 7.5px;
  font-weight: 600;
  line-height: 1;
}
.nav-badge.is-hidden {
  display: none;
}
.nav-create {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: var(--muted);
  transform: translateY(0);
}
.nav-create-circle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: -21px;
  border: 3px solid rgba(255, 253, 248, 0.95);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow:
    0 7px 18px rgba(255, 74, 23, 0.34),
    0 2px 5px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.22s var(--ease-spring),
    box-shadow 0.22s,
    background 0.2s;
}
.nav-create-circle .icon {
  width: 22px;
  height: 22px;
  transition: transform 0.3s var(--ease-spring);
}
.nav-create span:last-child {
  margin-bottom: 6px;
  font-size: 8.5px;
}
.nav-create:hover .nav-create-circle {
  transform: translateY(-3px) rotate(90deg);
  box-shadow: 0 11px 24px rgba(255, 74, 23, 0.4);
}
.nav-create:active .nav-create-circle {
  transform: scale(0.93);
}

/* =========================================================
   SEARCH
   ========================================================= */
.search-screen {
  position: absolute;
  inset: 0;
  z-index: 92;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.28s var(--ease),
    transform 0.36s var(--ease),
    visibility 0.36s;
}
.search-screen.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.search-header {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: calc(11px + var(--safe-top)) 15px 11px 9px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.search-back {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 38px;
  color: var(--ink);
}
.search-back .icon {
  width: 19px;
  height: 19px;
}
.search-field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.2s;
}
.search-field:focus-within {
  border-color: rgba(255, 74, 23, 0.5);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-field > .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  outline: 0;
}
.search-field input::placeholder {
  color: var(--muted-soft);
}
.search-field input::-webkit-search-cancel-button {
  display: none;
}
.search-clear {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-deep);
  color: var(--muted);
}
.search-clear .icon {
  width: 11px;
  height: 11px;
}
.search-cancel {
  flex: 0 0 auto;
  padding: 7px 2px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 550;
}
.search-body {
  flex: 1;
  overflow-y: auto;
  padding: 21px 20px calc(30px + var(--safe-bottom));
  scrollbar-width: none;
}
.search-body::-webkit-scrollbar {
  display: none;
}
.search-block {
  margin-bottom: 28px;
}
.search-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
.search-block-head h3 {
  font-size: 14px;
  font-weight: 700;
}
.search-block-head button,
.search-block-head span {
  color: var(--muted-soft);
  font-size: 9px;
}
.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.search-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 31px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10.5px;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.search-chip .icon {
  width: 12px;
  height: 12px;
  color: var(--muted-soft);
}
.search-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.hot-list {
  display: flex;
  flex-direction: column;
}
.hot-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 0;
  border-bottom: 1px solid rgba(23, 21, 18, 0.055);
  text-align: left;
}
.hot-item:last-child {
  border-bottom: 0;
}
.hot-rank {
  width: 19px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--muted-soft);
  text-align: center;
}
.hot-item:nth-child(-n + 3) .hot-rank {
  color: var(--accent);
}
.hot-item-main {
  flex: 1;
  min-width: 0;
}
.hot-item-main strong {
  display: block;
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 550;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hot-item-main span {
  display: block;
  margin-top: 2px;
  color: var(--muted-soft);
  font-size: 8.5px;
}
.hot-trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 9px;
}
.hot-trend .icon {
  width: 10px;
  height: 10px;
}
.search-prompt {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  font-size: 9.5px;
}
.search-prompt button {
  color: var(--accent);
  font-size: 9.5px;
}
.search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.search-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
}
.search-result-head strong {
  color: var(--ink);
  font-weight: 600;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.search-result:hover {
  border-color: var(--line-strong);
  transform: translateX(2px);
}
.search-result img {
  flex: 0 0 auto;
  width: 61px;
  height: 61px;
  border-radius: 10px;
  object-fit: cover;
}
.search-result-main {
  flex: 1;
  min-width: 0;
}
.search-result-main strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.search-result-main span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-result-arrow {
  flex: 0 0 auto;
  color: var(--muted-soft);
}
.search-result-arrow .icon {
  width: 14px;
  height: 14px;
}
.search-more-head {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted-soft);
  font-size: 8.5px;
}
.search-more-head span:first-child {
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
}
.search-related {
  margin-top: 4px;
}
.search-empty {
  padding: 42px 20px;
  text-align: center;
}
.search-empty em {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-style: normal;
}
.search-empty em .icon {
  width: 22px;
  height: 22px;
}
.search-empty h3 {
  font-size: 14px;
  font-weight: 650;
}
.search-empty p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

/* =========================================================
   FULL-SCREEN DETAIL
   ========================================================= */
.detail-screen {
  position: absolute;
  inset: 0;
  z-index: 94;
  overflow: hidden;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.42s var(--ease),
    visibility 0.42s;
}
.detail-screen.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.detail-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding-bottom: calc(32px + var(--safe-bottom));
}
.detail-back {
  position: absolute;
  z-index: 10;
  top: calc(13px + var(--safe-top));
  left: 16px;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(18, 16, 13, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  transition:
    background 0.2s,
    transform 0.2s;
}
.detail-back:hover {
  background: rgba(18, 16, 13, 0.56);
}
.detail-back:active {
  transform: scale(0.92);
}
.detail-back .icon {
  width: 18px;
  height: 18px;
}
.story-hero {
  position: relative;
  height: 338px;
  overflow: hidden;
  color: var(--cream);
  background: #171512;
}
.story-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
}
.story-hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 9, 7, 0.9), transparent 58%),
    linear-gradient(to bottom, rgba(10, 9, 7, 0.32), transparent 30%);
}
.story-hero-content {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 2;
}
.story-hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--lime);
}
.story-hero-kicker::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--lime);
}
.story-hero h1 {
  max-width: 330px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.story-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: rgba(243, 239, 230, 0.55);
  font-size: 9px;
}
.story-hero-meta .dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
}
.story-content {
  padding: 24px 22px 0;
}
.story-lead {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.72;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.story-copy {
  margin-top: 13px;
  color: #61584d;
  font-size: 12px;
  line-height: 1.95;
}
.story-copy + .story-copy {
  margin-top: 10px;
}
.story-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 25px 0 4px;
  color: var(--muted-soft);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.17em;
}
.story-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.route-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 15px;
}
.route-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.route-index {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 12px;
}
.route-main {
  flex: 1;
  min-width: 0;
}
.route-main strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
}
.route-main span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.route-main em {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--muted);
  font-size: 7.5px;
  font-style: normal;
}
.route-card img {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
}
.story-cta-row {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
.story-cta {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 44px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--cream);
  font-size: 11px;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.18s;
}
.story-cta:hover {
  background: var(--accent);
}
.story-cta:active {
  transform: scale(0.98);
}
.story-cta .icon {
  width: 16px;
  height: 16px;
}
.story-cta.secondary {
  flex: 0 0 auto;
  width: 44px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.story-cta.secondary:hover {
  background: var(--bg-deep);
}
.story-source {
  margin-top: 18px;
  color: var(--muted-soft);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}
.event-detail-hero {
  height: 305px;
}
.event-detail-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  padding: 4px 9px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.1em;
}
.event-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}
.event-info-cell {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.event-info-cell span {
  display: block;
  color: var(--muted-soft);
  font-size: 8px;
  letter-spacing: 0.06em;
}
.event-info-cell strong {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}
.event-attendees-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.event-attendees-row .avatar-stack img {
  border-color: var(--surface);
  width: 27px;
  height: 27px;
}
.event-attendees-row p {
  color: var(--muted);
  font-size: 9px;
}
.event-attendees-row p b {
  color: var(--ink);
  font-weight: 600;
}

/* =========================================================
   CHAT
   ========================================================= */
.chat-screen {
  position: absolute;
  inset: 0;
  z-index: 94;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transform: translateX(100%);
  transition:
    transform 0.4s var(--ease),
    opacity 0.25s,
    visibility 0.4s;
}
.chat-screen.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.chat-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: calc(10px + var(--safe-top)) 13px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 239, 230, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.chat-back {
  display: grid;
  place-items: center;
  width: 32px;
  height: 36px;
  color: var(--ink);
}
.chat-back .icon {
  width: 19px;
  height: 19px;
}
.chat-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}
.chat-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.chat-person {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}
.chat-person strong {
  font-size: 12px;
  font-weight: 650;
}
.chat-person small {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 8px;
}
.chat-person small i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9bc63d;
}
.chat-header .icon-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border-color: transparent;
}
.chat-header .icon-btn .icon {
  width: 17px;
  height: 17px;
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 17px 16px 14px;
  scrollbar-width: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.4), transparent 28%),
    var(--bg);
}
.chat-time-divider {
  margin: 6px 0 16px;
  color: var(--muted-soft);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-align: center;
}
.bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin-bottom: 11px;
}
.bubble-row.mine {
  justify-content: flex-end;
}
.bubble-avatar {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
}
.bubble-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.bubble-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 74%;
  align-items: flex-start;
}
.bubble-row.mine .bubble-wrap {
  align-items: flex-end;
}
.bubble {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 15px 15px 15px 4px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.65;
  word-break: break-word;
}
.bubble-row.mine .bubble {
  border: 0;
  border-radius: 15px 15px 4px 15px;
  background: var(--ink);
  color: var(--cream);
}
.bubble-time {
  color: var(--muted-soft);
  font-family: var(--font-display);
  font-size: 7.5px;
  letter-spacing: 0.05em;
}
.chat-card-message {
  display: flex;
  gap: 9px;
  width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.chat-card-message img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}
.chat-card-message div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
}
.chat-card-message strong {
  font-size: 10px;
  font-weight: 650;
}
.chat-card-message span {
  color: var(--muted);
  font-size: 8px;
}
.chat-composer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px calc(9px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.composer-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  color: var(--muted);
}
.composer-icon .icon {
  width: 20px;
  height: 20px;
}
.chat-composer input {
  flex: 1;
  min-width: 0;
  height: 37px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--bg);
  font-size: 11px;
  outline: 0;
}
.chat-composer input:focus {
  border-color: rgba(255, 74, 23, 0.4);
  background: var(--surface);
}
.send-btn {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 5px 12px rgba(255, 74, 23, 0.25);
  transition:
    transform 0.2s var(--ease-spring),
    opacity 0.2s;
}
.send-btn:active {
  transform: scale(0.9);
}
.send-btn .icon {
  width: 16px;
  height: 16px;
  margin-left: -1px;
}

/* =========================================================
   SHEETS
   ========================================================= */
.sheet-layer {
  position: absolute;
  inset: 0;
  z-index: 112;
  visibility: hidden;
  pointer-events: none;
}
.sheet-layer.is-open {
  visibility: visible;
  pointer-events: auto;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 11, 9, 0.45);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.sheet-layer.is-open .sheet-backdrop {
  opacity: 1;
}
.sheet-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  max-height: 86%;
  overflow: hidden;
  border-radius: 27px 27px 0 0;
  background: var(--surface);
  box-shadow: 0 -20px 50px rgba(20, 14, 8, 0.17);
  transform: translateY(102%);
  transition: transform 0.42s var(--ease);
}
.sheet-layer.is-open .sheet-panel {
  transform: none;
}
.sheet-panel.is-tall {
  height: 91%;
  max-height: 91%;
}
.sheet-panel.is-short {
  max-height: 74%;
}
.sheet-grabber {
  flex: 0 0 auto;
  width: 36px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 100px;
  background: rgba(23, 21, 18, 0.14);
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  min-height: 52px;
  padding: 8px 18px 9px;
}
.sheet-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sheet-title strong {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.015em;
}
.sheet-title small {
  color: var(--muted);
  font-size: 8.5px;
}
.sheet-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.sheet-close:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
.sheet-close .icon {
  width: 14px;
  height: 14px;
}
.sheet-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 18px 18px;
  scrollbar-width: none;
}
.sheet-scroll::-webkit-scrollbar {
  display: none;
}
.sheet-footer {
  flex: 0 0 auto;
  padding: 10px 16px calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

/* Share sheet */
.share-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 3px 0 19px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.share-preview img {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  object-fit: cover;
}
.share-preview p {
  flex: 1;
  overflow: hidden;
  color: #5f564b;
  font-size: 10.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: var(--muted);
}
.share-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  transition:
    transform 0.2s,
    background 0.2s;
}
.share-icon .icon {
  width: 20px;
  height: 20px;
}
.share-icon.wechat {
  background: #dcf5df;
  color: #1c8a38;
}
.share-icon.moments {
  background: #e5f4dd;
  color: #4b8c2c;
}
.share-icon.weibo {
  background: #ffe8e1;
  color: #e34b31;
}
.share-icon.copy {
  background: #eee8dd;
  color: #6f6558;
}
.share-item:hover .share-icon {
  transform: translateY(-2px);
}
.share-cancel {
  width: 100%;
  height: 44px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  font-size: 11px;
  font-weight: 550;
  color: var(--muted);
}

/* Comments */
.comment-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 9px;
}
.comment-summary .icon {
  width: 13px;
  height: 13px;
  color: var(--accent);
}
.comment-list {
  display: flex;
  flex-direction: column;
}
.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 0;
}
.comment-item + .comment-item {
  border-top: 1px solid rgba(23, 21, 18, 0.055);
}
.comment-avatar {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}
.comment-main {
  flex: 1;
  min-width: 0;
}
.comment-name {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 9px;
}
.comment-name strong {
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 600;
}
.comment-name i {
  padding: 1px 3px;
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 6.5px;
  font-style: normal;
}
.comment-text {
  margin-top: 4px;
  color: #4f473d;
  font-size: 11px;
  line-height: 1.65;
  word-break: break-word;
}
.comment-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  color: var(--muted-soft);
  font-family: var(--font-display);
  font-size: 8px;
}
.comment-like {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--muted-soft);
  font-size: 8px;
}
.comment-like .icon {
  width: 11px;
  height: 11px;
}
.comment-like.liked {
  color: var(--accent);
}
.comment-like.liked .icon {
  fill: currentColor;
}
.comment-empty {
  padding: 30px 0 20px;
  text-align: center;
}
.comment-empty span {
  font-size: 24px;
}
.comment-empty p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}
.comment-composer {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px calc(9px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.comment-composer > img {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}
.comment-input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--bg);
  font-size: 10.5px;
  outline: 0;
}
.comment-input:focus {
  border-color: rgba(255, 74, 23, 0.4);
  background: var(--surface);
}
.comment-send {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--cream);
  font-size: 9.5px;
  font-weight: 600;
}

/* Publish sheet */
.publish-user {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.publish-user img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
}
.publish-user strong {
  display: block;
  font-size: 11.5px;
  font-weight: 650;
}
.publish-user span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8.5px;
}
.publish-mode {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.publish-mode button {
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  font-size: 9.5px;
}
.publish-mode button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}
.publish-textarea {
  width: 100%;
  min-height: 118px;
  max-height: 210px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.78;
  resize: none;
  outline: 0;
}
.publish-textarea::placeholder {
  color: var(--muted-soft);
}
.publish-counter {
  margin-top: 2px;
  color: var(--muted-soft);
  font-family: var(--font-display);
  font-size: 8.5px;
  text-align: right;
}
.publish-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.publish-media-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: var(--bg);
}
.publish-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.publish-media-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(10, 9, 7, 0.55);
  color: #fff;
  backdrop-filter: blur(5px);
}
.publish-media-remove .icon {
  width: 10px;
  height: 10px;
}
.publish-add-media {
  display: flex;
  aspect-ratio: 1 / 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font-size: 8px;
}
.publish-add-media:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.publish-add-media .icon {
  width: 21px;
  height: 21px;
}
.publish-group {
  margin-top: 17px;
}
.publish-group-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 600;
}
.publish-group-label span {
  color: var(--muted-soft);
  font-size: 8px;
  font-weight: 400;
}
.topic-select {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.topic-option {
  height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  font-size: 9px;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.topic-option:hover {
  border-color: var(--line-strong);
}
.topic-option.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 550;
}
.publish-field-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.publish-field-row + .publish-field-row {
  border-top: 1px solid rgba(23, 21, 18, 0.055);
}
.publish-field-row .field-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: var(--muted);
}
.publish-field-row .field-icon .icon {
  width: 17px;
  height: 17px;
}
.publish-field-row label {
  flex: 1;
  color: var(--muted);
  font-size: 10px;
}
.publish-field-row select {
  max-width: 174px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 9.5px;
  text-align: right;
  outline: 0;
}
.publish-field-row .field-value {
  color: var(--ink);
  font-size: 9.5px;
}
.publish-actions {
  display: flex;
  gap: 8px;
  padding: 10px 16px calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.publish-draft {
  flex: 0 0 auto;
  height: 43px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--muted);
  font-size: 10.5px;
}
.publish-submit {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 43px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--cream);
  font-size: 11.5px;
  font-weight: 600;
  transition:
    background 0.2s,
    opacity 0.2s,
    transform 0.2s;
}
.publish-submit:hover {
  background: var(--accent);
}
.publish-submit:active {
  transform: scale(0.99);
}
.publish-submit:disabled {
  opacity: 0.35;
  background: var(--ink);
  cursor: not-allowed;
}
.publish-submit .icon {
  width: 15px;
  height: 15px;
}

/* Settings / notices / certification */
.settings-list {
  display: flex;
  flex-direction: column;
}
.settings-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(23, 21, 18, 0.06);
  text-align: left;
}
.settings-row:last-child {
  border-bottom: 0;
}
.settings-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--muted);
}
.settings-icon .icon {
  width: 16px;
  height: 16px;
}
.settings-main {
  flex: 1;
}
.settings-main strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
}
.settings-main span {
  display: block;
  margin-top: 2px;
  color: var(--muted-soft);
  font-size: 8px;
}
.settings-arrow {
  color: var(--muted-soft);
}
.settings-arrow .icon {
  width: 14px;
  height: 14px;
}
.settings-row.danger .settings-main strong {
  color: #c23b1b;
}
.switch {
  position: relative;
  width: 36px;
  height: 21px;
  border-radius: 100px;
  background: #ddd6c9;
  transition: background 0.2s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.24s var(--ease);
}
.switch.on {
  background: var(--ink);
}
.switch.on::after {
  transform: translateX(15px);
}
.notice-list {
  display: flex;
  flex-direction: column;
}
.notice-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(23, 21, 18, 0.055);
}
.notice-row:last-child {
  border-bottom: 0;
}
.notice-row-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}
.notice-row-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.notice-row-avatar .notice-mini {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.notice-row-avatar .notice-mini .icon {
  width: 8px;
  height: 8px;
}
.notice-row-main {
  flex: 1;
  min-width: 0;
}
.notice-row-main p {
  color: #594f43;
  font-size: 10px;
  line-height: 1.55;
}
.notice-row-main p strong {
  color: var(--ink);
  font-weight: 600;
}
.notice-row-main span {
  display: block;
  margin-top: 2px;
  color: var(--muted-soft);
  font-size: 8px;
}
.notice-row-img {
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  border-radius: 7px;
  object-fit: cover;
}
.notice-empty {
  padding: 35px 20px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}
.cert-hero {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 2px 0 16px;
  padding: 15px;
  border-radius: 17px;
  background: var(--ink);
  color: var(--cream);
}
.cert-hero-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 13px;
  background: var(--lime);
  color: var(--ink);
}
.cert-hero-icon .icon {
  width: 23px;
  height: 23px;
}
.cert-hero strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
}
.cert-hero span {
  display: block;
  margin-top: 3px;
  color: rgba(243, 239, 230, 0.52);
  font-size: 8.5px;
}
.cert-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cert-step {
  display: flex;
  gap: 10px;
  padding: 11px 0;
}
.cert-step:not(:last-child) {
  border-bottom: 1px solid rgba(23, 21, 18, 0.055);
}
.cert-step-num {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 9px;
}
.cert-step strong {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
}
.cert-step p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.6;
}
.cert-submit {
  width: 100%;
  height: 44px;
  margin-top: 15px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--cream);
  font-size: 11px;
  font-weight: 600;
}
.cert-privacy {
  margin-top: 10px;
  color: var(--muted-soft);
  font-size: 7.5px;
  line-height: 1.5;
  text-align: center;
}
.edit-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 18px;
}
.edit-avatar-row img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}
.edit-avatar-row button {
  height: 29px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 9px;
}
.edit-field {
  margin-bottom: 12px;
}
.edit-field label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8.5px;
}
.edit-field input,
.edit-field textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: 11px;
  outline: 0;
}
.edit-field textarea {
  min-height: 75px;
  resize: none;
  line-height: 1.6;
}
.edit-field input:focus,
.edit-field textarea:focus {
  border-color: rgba(255, 74, 23, 0.45);
  background: var(--surface);
}
.edit-save {
  width: 100%;
  height: 42px;
  margin-top: 6px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--cream);
  font-size: 11px;
  font-weight: 600;
}

/* Toast */
.toast {
  position: absolute;
  bottom: calc(91px + var(--safe-bottom));
  left: 50%;
  z-index: 180;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 82%;
  padding: 8px 13px 8px 8px;
  border-radius: 100px;
  background: rgba(23, 21, 18, 0.94);
  box-shadow: 0 12px 30px rgba(15, 11, 7, 0.22);
  color: var(--cream);
  font-size: 10.5px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px) scale(0.96);
  transition:
    opacity 0.25s var(--ease),
    transform 0.3s var(--ease-spring);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.toast-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
}
.toast-icon .icon {
  width: 11px;
  height: 11px;
}

/* =========================================================
   ANIMATION
   ========================================================= */
@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 74, 23, 0.4);
  }
  55% {
    box-shadow: 0 0 0 5px rgba(255, 74, 23, 0);
  }
}
@keyframes like-pop {
  0% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.3) rotate(-6deg);
  }
  75% {
    transform: scale(0.92);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes heart-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(-12deg);
  }
  25% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.18) rotate(3deg);
  }
  55% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.98) rotate(0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -62%) scale(1.05) rotate(0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes equalize {
  from {
    transform: scaleY(0.45);
  }
  to {
    transform: scaleY(1.1);
  }
}
@keyframes video-progress {
  to {
    width: 100%;
  }
}
@keyframes typing {
  0%,
  60%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
@keyframes post-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 74, 23, 0.36);
  }
  35% {
    box-shadow: 0 0 0 4px rgba(255, 74, 23, 0.26);
  }
  100% {
    box-shadow: var(--shadow-card);
  }
}
@keyframes send-pop {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
.new-bubble {
  animation: send-pop 0.28s var(--ease);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1230px) {
  .stage {
    gap: 42px;
  }
  .stage-left {
    width: 270px;
    flex-basis: 270px;
  }
  .stage-display {
    font-size: 92px;
  }
  .stage-right {
    display: none;
  }
}
@media (max-width: 980px) {
  .stage {
    justify-content: center;
    padding: 16px;
  }
  .stage-left {
    display: none;
  }
  .phone-frame {
    width: 430px;
    height: min(912px, calc(100dvh - 46px));
    padding: 6px;
    border-radius: 43px;
  }
  .app-shell {
    border-radius: 37px;
  }
}
@media (max-height: 820px) and (min-width: 981px) {
  .phone-caption {
    display: none;
  }
  .phone-frame {
    height: min(890px, calc(100dvh - 26px));
  }
  .stage-topline {
    margin-bottom: 38px;
  }
  .stage-index {
    margin-top: 34px;
  }
}
@media (max-width: 600px) {
  body {
    background: var(--bg);
  }
  .stage {
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    background: var(--bg);
  }
  .stage::before,
  .stage::after {
    display: none;
  }
  .phone-wrap {
    display: block;
    height: 100vh;
    height: 100dvh;
    animation: none;
  }
  .phone-frame {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 0;
    border-radius: 0;
    background: var(--bg);
    box-shadow: none;
  }
  .app-shell {
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
  }
  .phone-caption,
  .stage-left,
  .stage-right {
    display: none;
  }
  .view-scroll {
    padding-bottom: calc(96px + var(--safe-bottom));
  }
  .tabbar {
    right: 10px;
    bottom: calc(8px + var(--safe-bottom));
    left: 10px;
  }
}
@media (max-width: 380px) {
  .home-header {
    padding-right: 16px;
    padding-left: 16px;
  }
  .home-lead {
    padding-right: 16px;
    padding-left: 16px;
  }
  .feature-card {
    height: 228px;
  }
  .feature-title {
    font-size: 30px;
  }
  .section-line {
    padding: 0 16px;
  }
  .story-strip {
    gap: 10px;
    padding-right: 16px;
    padding-left: 16px;
  }
  .story {
    width: 58px;
  }
  .story-ring {
    width: 56px;
    height: 56px;
  }
  .feed-toolbar {
    padding-right: 16px;
    padding-left: 16px;
  }
  .feed-tab {
    padding: 0 11px;
    font-size: 11px;
  }
  .feed {
    gap: 11px;
    padding-right: 16px;
    padding-left: 16px;
  }
  .post-card {
    padding-right: 13px;
    padding-left: 13px;
  }
  .post-title {
    font-size: 17px;
  }
  .post-name {
    font-size: 13px;
  }
  .page-header {
    padding-right: 16px;
    padding-left: 16px;
  }
  .discover-hero,
  .discover-section {
    padding-right: 16px;
    padding-left: 16px;
  }
  .message-intro {
    margin-right: 16px;
    margin-left: 16px;
  }
  .notice-grid {
    gap: 5px;
    padding-right: 16px;
    padding-left: 16px;
  }
  .notice-card {
    padding-right: 2px;
    padding-left: 2px;
  }
  .assistant-banner {
    width: calc(100% - 32px);
    margin-right: 16px;
    margin-left: 16px;
  }
  .chat-list {
    padding-right: 16px;
    padding-left: 16px;
  }
  .profile-body {
    padding-right: 16px;
    padding-left: 16px;
  }
  .garage-row {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }
  .discover-quote {
    margin-right: 16px;
    margin-left: 16px;
  }
  .profile-name-row h2 {
    font-size: 23px;
  }
  .garage-card {
    flex-basis: 208px;
  }
  .search-header {
    padding-right: 10px;
    padding-left: 6px;
  }
  .search-body {
    padding-right: 16px;
    padding-left: 16px;
  }
  .sheet-scroll {
    padding-right: 16px;
    padding-left: 16px;
  }
  .share-grid {
    gap: 8px;
  }
  .story-hero {
    height: 310px;
  }
  .story-hero h1 {
    font-size: 30px;
  }
}
/* =========================================================
   ADDITIONAL DETAIL UI
   ========================================================= */
button.post-media {
  display: block;
  width: auto;
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
  appearance: none;
}
button.post-media.single {
  cursor: zoom-in;
}
.post-name {
  padding: 0;
  text-align: left;
  transition: color 0.2s;
}
.post-name:hover {
  color: var(--accent);
}
.detail-poll {
  margin: 16px 0 2px;
}
.story-content > .post-tags {
  margin-top: 15px;
}
.story-content > .post-actions {
  margin-top: 17px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.detail-all-comments {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 100%;
  height: 39px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  font-size: 9.5px;
}
.detail-all-comments .icon {
  width: 12px;
  height: 12px;
}
.detail-all-comments:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
.story-cta.is-saved {
  background: var(--lime);
  color: var(--ink);
}
.story-cta.is-saved:hover {
  background: var(--lime-deep);
}
.story-cta.is-joined {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.story-cta.is-joined:hover {
  background: var(--bg-deep);
}
.settings-note {
  margin-top: 18px;
  color: var(--muted-soft);
  font-size: 8px;
  line-height: 1.7;
  text-align: center;
}

/* User sheet */
.user-sheet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 3px 0 13px;
}
.user-sheet-head > img {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}
.user-sheet-head > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}
.user-sheet-name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.user-sheet-head span {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.06em;
}
.user-sheet-head em {
  color: var(--accent);
  font-size: 8.5px;
  font-style: normal;
}
.user-sheet-bio {
  color: #5d5448;
  font-size: 11px;
  line-height: 1.75;
  white-space: pre-line;
}
.user-sheet-stats {
  display: flex;
  gap: 24px;
  margin-top: 15px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.user-sheet-stats span {
  color: var(--muted);
  font-size: 8px;
}
.user-sheet-stats b {
  margin-right: 3px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}
.user-sheet-actions {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}
.user-sheet-actions .follow-btn {
  height: 38px;
  flex: 1;
  font-size: 10px;
}
.user-message-btn {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 550;
}
.user-message-btn:hover {
  background: var(--ink);
  color: var(--cream);
}
.user-message-btn .icon {
  width: 14px;
  height: 14px;
}
.user-sheet-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 16px;
}
.user-sheet-posts button {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}
.user-sheet-posts img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.user-sheet-posts button:hover img {
  transform: scale(1.05);
}
.people-list {
  display: flex;
  flex-direction: column;
}
.people-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(23, 21, 18, 0.055);
}
.people-row:last-child {
  border-bottom: 0;
}
.people-row > img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}
.people-row > div {
  flex: 1;
  min-width: 0;
}
.people-row strong {
  display: block;
  font-size: 11px;
  font-weight: 650;
}
.people-row span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.people-row .follow-btn {
  flex: 0 0 auto;
  height: 25px;
  padding: 0 9px;
  font-size: 9px;
}

/* Calendar */
/* Garage sheet */
.garage-sheet-photo {
  position: relative;
  height: 178px;
  overflow: hidden;
  margin: 2px 0 12px;
  border-radius: 17px;
  background: var(--ink);
}
.garage-sheet-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.garage-sheet-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 10, 8, 0.78), transparent 64%);
}
.garage-sheet-plate {
  position: absolute;
  top: 11px;
  right: 11px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  background: rgba(15, 14, 12, 0.3);
  backdrop-filter: blur(7px);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.08em;
}
.garage-sheet-title {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  color: var(--cream);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.garage-next-service {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg);
}
.garage-next-service > .icon {
  width: 17px;
  height: 17px;
  color: var(--accent);
}
.garage-next-service div {
  flex: 1;
}
.garage-next-service span {
  display: block;
  color: var(--muted-soft);
  font-size: 8px;
}
.garage-next-service strong {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
}
.garage-next-service button {
  height: 26px;
  padding: 0 10px;
  border-radius: 100px;
  background: var(--lime);
  color: var(--ink);
  font-size: 8.5px;
  font-weight: 600;
}
.calendar-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 5px 0 15px;
}
.calendar-head strong {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.calendar-head span {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.15em;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
  text-align: center;
}
.calendar-weekdays span {
  color: var(--muted-soft);
  font-size: 8px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px 0;
}
.cal-day {
  position: relative;
  display: flex;
  height: 39px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 12px;
  transition:
    background 0.2s,
    color 0.2s;
}
.cal-day:hover:not(:disabled) {
  background: var(--bg);
}
.cal-day.is-blank {
  pointer-events: none;
}
.cal-day:disabled {
  color: var(--muted-soft);
  cursor: default;
}
.cal-day.has-event {
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
}
.cal-day.has-event:hover {
  background: var(--accent);
}
.cal-day.is-today {
  box-shadow: inset 0 0 0 1px var(--accent);
}
.cal-day.has-event.is-today {
  box-shadow: inset 0 0 0 1px var(--lime);
}
.cal-day i {
  position: absolute;
  bottom: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--lime);
}
.calendar-legend {
  display: flex;
  justify-content: space-between;
  margin: 11px 1px 21px;
  color: var(--muted-soft);
  font-size: 7.5px;
}
.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.calendar-legend i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* Lightbox */
.lightbox {
  position: absolute;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(9, 8, 7, 0.94);
  opacity: 0;
  cursor: zoom-out;
  transition: opacity 0.24s var(--ease);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}
.lightbox.is-open {
  opacity: 1;
}
.lightbox img {
  max-width: 100%;
  max-height: 76%;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.97);
  transition: transform 0.3s var(--ease);
}
.lightbox.is-open img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: calc(17px + var(--safe-top));
  right: 17px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.lightbox-close .icon {
  width: 16px;
  height: 16px;
}
.lightbox-caption {
  position: absolute;
  bottom: calc(24px + var(--safe-bottom));
  left: 50%;
  padding: 5px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.64);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.1em;
  transform: translateX(-50%);
  white-space: nowrap;
}
.bubble {
  white-space: pre-line;
}
.sheet-scroll {
  padding-bottom: calc(18px + var(--safe-bottom));
}
.app-shell.reduce-motion *,
.app-shell.reduce-motion *::before,
.app-shell.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

@media (max-width: 380px) {
  .cal-day {
    height: 35px;
  }
  .user-sheet-head > img {
    width: 54px;
    height: 54px;
  }
}
/* =========================================================
   CMS-DRIVEN BRAND + ICONS
   ========================================================= */
.brand-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.nav-icon-img {
  display: block;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  object-fit: contain;
  transition: transform 0.25s var(--ease-spring);
}
.nav-create-circle .nav-icon-img {
  width: 22px;
  height: 22px;
}
.nav-item.is-active .nav-icon-img {
  transform: translateY(-1px);
}

/* =========================================================
   ROUTE BOOK — OVERLAY
   ========================================================= */
.routes-screen {
  position: absolute;
  inset: 0;
  z-index: 93;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.42s var(--ease),
    visibility 0.42s;
}
.routes-screen.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.routes-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(10px + var(--safe-top)) 16px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 239, 230, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.routes-back {
  display: grid;
  place-items: center;
  width: 32px;
  height: 36px;
  flex: 0 0 auto;
  color: var(--ink);
}
.routes-back .icon {
  width: 19px;
  height: 19px;
}
.routes-title {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.routes-eyebrow {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.17em;
}
.routes-title h1 {
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}
.routes-header-upload {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  max-width: 116px;
  height: 33px;
  padding: 0 10px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--cream);
  font-size: 9.5px;
  font-weight: 600;
  transition: background 0.2s;
}
.routes-header-upload span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.routes-header-upload:hover {
  background: var(--accent);
}
.routes-header-upload .icon {
  width: 13px;
  height: 13px;
}
.routes-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  padding-bottom: calc(29px + var(--safe-bottom));
}
.routes-scroll::-webkit-scrollbar {
  display: none;
}
.routes-hero {
  position: relative;
  margin: 13px 16px 0;
  padding: 17px 17px 15px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 100% 0, rgba(255, 74, 23, 0.26), transparent 58%),
    #191714;
  color: var(--cream);
  isolation: isolate;
}
.routes-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 92%);
}
.routes-line-art {
  position: absolute;
  right: -14px;
  bottom: 0;
  z-index: 0;
  width: 116%;
  height: auto;
  opacity: 0.9;
  pointer-events: none;
}
.routes-hero-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(243, 239, 230, 0.42);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.14em;
}
.routes-hero-top span:first-child {
  color: var(--lime);
}
.routes-hero h2 {
  position: relative;
  z-index: 2;
  max-width: 320px;
  margin-top: 30px;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.04em;
}
.routes-intro {
  position: relative;
  z-index: 2;
  max-width: 290px;
  margin-top: 9px;
  color: rgba(243, 239, 230, 0.53);
  font-size: 10px;
  line-height: 1.7;
}
.routes-hero-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}
.routes-count {
  display: flex;
  align-items: flex-end;
  gap: 5px;
}
.routes-count strong {
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  line-height: 0.8;
}
.routes-count span {
  padding-bottom: 2px;
  color: rgba(243, 239, 230, 0.42);
  font-size: 8px;
}
.routes-upload-main {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 35px;
  padding: 0 13px;
  border-radius: 100px;
  background: var(--lime);
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 650;
  transition:
    background 0.2s,
    transform 0.2s;
}
.routes-upload-main:hover {
  background: #edffa1;
}
.routes-upload-main:active {
  transform: scale(0.97);
}
.routes-upload-main .icon {
  width: 13px;
  height: 13px;
}
.routes-upload-hint {
  position: relative;
  z-index: 2;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid rgba(243, 239, 230, 0.09);
  color: rgba(243, 239, 230, 0.3);
  font-size: 7.5px;
  line-height: 1.6;
}
.routes-tools {
  padding: 17px 16px 0;
}
.routes-search {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  height: 37px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.routes-search:focus-within {
  border-color: rgba(255, 74, 23, 0.45);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.routes-search > .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.routes-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 10.5px;
  outline: 0;
}
.routes-search input::placeholder {
  color: var(--muted-soft);
}
.routes-search input::-webkit-search-cancel-button {
  display: none;
}
.routes-search button {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
}
.routes-search button .icon {
  width: 10px;
  height: 10px;
}
.route-filter-row {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  margin-top: 9px;
  padding-bottom: 1px;
  scrollbar-width: none;
}
.route-filter-row::-webkit-scrollbar {
  display: none;
}
.route-filter {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 253, 248, 0.35);
  color: var(--muted);
  font-size: 9px;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
}
.route-filter:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.route-filter.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}
.routes-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 14px 16px 0;
}
.route-list-card {
  overflow: hidden;
  border: 1px solid rgba(23, 21, 18, 0.075);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(39, 27, 15, 0.04);
  animation: card-in 0.45s var(--ease) both;
}
.route-list-cover {
  position: relative;
  display: block;
  width: 100%;
  height: 182px;
  overflow: hidden;
  padding: 0;
  border-radius: 0;
  background: var(--bg-deep);
  text-align: left;
}
.route-list-card.is-featured .route-list-cover {
  height: 208px;
}
.route-list-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.route-list-cover:hover img {
  transform: scale(1.035);
}
.route-cover-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 8, 6, 0.5), transparent 55%);
}
.route-cover-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  background: rgba(18, 16, 13, 0.36);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.84);
  font-size: 8px;
  letter-spacing: 0.06em;
}
.route-list-card.is-featured .route-cover-badge {
  color: var(--ink);
  background: var(--lime);
  border-color: transparent;
}
.route-cover-days {
  position: absolute;
  right: 11px;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.route-list-body {
  padding: 14px 15px 13px;
}
.route-place {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 8.5px;
}
.route-place .icon {
  width: 11px;
  height: 11px;
  color: var(--accent);
}
.route-list-body h3 {
  margin-top: 6px;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.36;
  letter-spacing: -0.025em;
}
.route-list-body > p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.route-spec-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
}
.route-spec-row span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 22px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--bg);
  color: var(--muted);
  font-size: 8px;
}
.route-spec-row b {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
}
.route-spec-row .route-difficulty {
  color: var(--accent);
  background: var(--accent-soft);
}
.route-list-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.route-author {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.route-author img {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}
.route-author > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  font-size: 8.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.route-author small {
  color: var(--muted-soft);
  font-family: var(--font-display);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.route-open {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 9px;
  font-weight: 600;
}
.route-open .icon {
  width: 11px;
  height: 11px;
}
.routes-empty {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px 25px;
  text-align: center;
}
.routes-empty-mark {
  display: grid;
  width: 66px;
  height: 66px;
  margin-bottom: 14px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
}
.routes-empty-mark .icon {
  width: 25px;
  height: 25px;
}
.routes-empty h3 {
  font-size: 15px;
  font-weight: 700;
}
.routes-empty p {
  max-width: 250px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}
.routes-empty button {
  height: 34px;
  margin-top: 14px;
  padding: 0 14px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--cream);
  font-size: 9.5px;
  font-weight: 600;
}
.routes-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 27px 20px 2px;
  color: var(--muted-soft);
  font-family: var(--font-display);
  font-size: 7.5px;
  letter-spacing: 0.09em;
  text-align: center;
}

/* Discover route strip */
.discover-routes-section {
  padding-bottom: 1px;
}
.discover-route-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 12px -20px 0;
  padding: 0 20px 3px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.discover-route-strip::-webkit-scrollbar {
  display: none;
}
.discover-route-card {
  position: relative;
  display: flex;
  flex: 0 0 248px;
  height: 152px;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 18px;
  background: #1c1915;
  color: #fff;
  text-align: left;
  scroll-snap-align: start;
  isolation: isolate;
}
.discover-route-card img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.discover-route-card:hover img {
  transform: scale(1.05);
}
.discover-route-wash {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(8, 7, 6, 0.82), transparent 68%);
}
.discover-route-top {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  background: rgba(15, 14, 12, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-display);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}
.discover-route-info {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
}
.discover-route-info strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.discover-route-info span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 8px;
}
.discover-route-empty {
  display: flex;
  width: 100%;
  min-height: 120px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
}
.discover-route-empty > span {
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 5px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
}
.discover-route-empty > span .icon {
  width: 15px;
  height: 15px;
}
.discover-route-empty strong {
  font-size: 11px;
  font-weight: 600;
}
.discover-route-empty small {
  color: var(--muted-soft);
  font-size: 8px;
}

/* =========================================================
   ROUTE DETAIL
   ========================================================= */
.route-detail-hero {
  height: 338px;
}
.route-detail-content {
  padding-top: 21px;
}
.route-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 17px;
  padding: 13px 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.route-detail-stats > div {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 0 2px;
}
.route-detail-stats > div + div::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 1px;
  background: var(--line);
}
.route-detail-stats span {
  color: var(--muted);
  font-size: 7.5px;
}
.route-detail-stats strong {
  max-width: 100%;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.route-detail-stats strong small {
  font-family: inherit;
  font-size: 7px;
  color: var(--muted);
}
.route-start-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.route-start-line > span {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.route-start-line > span .icon {
  width: 14px;
  height: 14px;
}
.route-start-line div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.route-start-line em {
  color: var(--muted-soft);
  font-size: 7.5px;
  font-style: normal;
}
.route-start-line strong {
  font-size: 10.5px;
  font-weight: 600;
}
.route-summary {
  margin-top: 14px;
}
.route-highlights {
  margin-top: 20px;
  padding: 15px;
  border-radius: 15px;
  background: var(--ink);
  color: var(--cream);
}
.route-label {
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.14em;
}
.route-highlights > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.route-highlights > div span {
  display: inline-flex;
  height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(243, 239, 230, 0.13);
  border-radius: 5px;
  color: rgba(243, 239, 230, 0.66);
  font-size: 8.5px;
}
.route-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 14px;
}
.route-timeline-item {
  display: grid;
  grid-template-columns: 30px 1px 1fr;
  gap: 10px;
  min-height: 76px;
}
.route-timeline-day {
  align-self: start;
  display: grid;
  width: 30px;
  height: 20px;
  place-items: center;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 600;
}
.route-timeline-line {
  width: 1px;
  height: 100%;
  background: var(--line);
}
.route-timeline-item:last-child .route-timeline-line {
  background: linear-gradient(to bottom, var(--line), transparent);
}
.route-timeline-item > div {
  padding-bottom: 18px;
}
.route-timeline-item strong {
  display: block;
  padding-top: 1px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}
.route-timeline-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.7;
}
.route-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 13px;
}
.route-gallery button {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  padding: 0;
  background: var(--bg-deep);
}
.route-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.route-gallery button:hover img {
  transform: scale(1.04);
}
.route-author-card {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 21px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.route-author-card > img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}
.route-author-card > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}
.route-author-card span {
  color: var(--muted-soft);
  font-size: 7.5px;
}
.route-author-card strong {
  font-size: 11px;
  font-weight: 650;
}
.route-author-card em {
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--muted);
  font-size: 7px;
  font-style: normal;
}
.route-detail-actions {
  margin-top: 17px;
}
.route-upload-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 40px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  font-size: 9.5px;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.route-upload-inline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.route-upload-inline .icon {
  width: 13px;
  height: 13px;
}

/* =========================================================
   ROUTE UPLOAD FORM
   ========================================================= */
.route-upload-scroll {
  padding-top: 2px;
}
.route-cover-upload {
  position: relative;
  display: flex;
  width: 100%;
  height: 156px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent),
    #1a1815;
  color: rgba(243, 239, 230, 0.7);
}
.route-cover-upload > img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.route-cover-upload > img[hidden] {
  display: none;
}
.route-cover-upload::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(10, 9, 7, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.route-cover-upload:has(img:not([hidden]))::after {
  opacity: 1;
}
.route-cover-placeholder {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.route-cover-placeholder .icon {
  width: 25px;
  height: 25px;
  margin-bottom: 5px;
  color: var(--lime);
}
.route-cover-placeholder strong {
  font-size: 10.5px;
  font-weight: 600;
}
.route-cover-placeholder small {
  color: rgba(243, 239, 230, 0.34);
  font-size: 8px;
}
.route-cover-loading {
  font-size: 9px;
  color: var(--lime);
}
.route-cover-upload-btn {
  position: absolute;
  right: 11px;
  bottom: 11px;
  z-index: 4;
  display: inline-flex;
  height: 27px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  background: rgba(15, 14, 12, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 8px;
  cursor: pointer;
}
.route-cover-upload-btn input {
  display: none;
}
.route-cover-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: rgba(13, 12, 10, 0.48);
  color: #fff;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.route-cover-remove[hidden] {
  display: none;
}
.route-cover-remove .icon {
  width: 11px;
  height: 11px;
}
.route-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.route-form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.route-form-field.wide {
  grid-column: 1 / -1;
}
.route-form-field > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 550;
}
.route-form-field > span b {
  color: var(--accent);
  font-weight: 600;
}
.route-form-field input,
.route-form-field select,
.route-form-field textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  font-size: 10.5px;
  line-height: 1.65;
  outline: 0;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.route-form-field textarea {
  resize: vertical;
  min-height: 83px;
}
.route-form-field select {
  height: 38px;
  padding-top: 0;
  padding-bottom: 0;
}
.route-form-field input:focus,
.route-form-field select:focus,
.route-form-field textarea:focus {
  border-color: rgba(255, 74, 23, 0.45);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.route-form-field small {
  color: var(--muted-soft);
  font-size: 7.5px;
  line-height: 1.5;
}
.route-upload-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg);
}
.route-upload-identity img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}
.route-upload-identity div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}
.route-upload-identity span {
  color: var(--muted-soft);
  font-size: 7px;
}
.route-upload-identity strong {
  font-size: 9.5px;
  font-weight: 600;
}
.route-upload-identity small {
  color: var(--muted);
  font-size: 7.5px;
}
.route-upload-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 11px;
  color: var(--muted-soft);
  font-size: 8px;
  line-height: 1.55;
}
.route-upload-note .icon {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  color: #7d9a24;
}
.route-upload-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding: 10px 16px calc(11px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.route-upload-cancel {
  height: 41px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--muted);
  font-size: 10px;
}
.route-upload-submit {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 41px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  transition:
    background 0.2s,
    opacity 0.2s;
}
.route-upload-submit:hover {
  background: var(--accent-deep);
}
.route-upload-submit:disabled {
  opacity: 0.5;
}
.route-upload-submit .icon {
  width: 14px;
  height: 14px;
}

@media (max-width: 380px) {
  .routes-hero {
    margin-right: 13px;
    margin-left: 13px;
    padding-right: 15px;
    padding-left: 15px;
  }
  .routes-hero h2 {
    margin-top: 24px;
    font-size: 24px;
  }
  .routes-tools,
  .routes-list {
    padding-right: 13px;
    padding-left: 13px;
  }
  .discover-route-strip {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }
  .route-form-grid {
    gap: 8px;
  }
  .route-list-cover {
    height: 166px;
  }
  .route-list-card.is-featured .route-list-cover {
    height: 190px;
  }
  .route-detail-stats strong {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
