/* ==========================================================================
   Explore page
   ========================================================================== */

.explore-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.98fr);
  min-height: 388px;
  padding: 45px 46px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: var(--cream);
  background:
    radial-gradient(circle at 88% 17%, rgba(255, 201, 74, 0.3), transparent 29%),
    radial-gradient(circle at 96% 93%, rgba(255, 111, 78, 0.3), transparent 34%),
    linear-gradient(120deg, #2a1c44 0%, #4b294f 48%, #8e3f4e 100%);
  box-shadow: 0 30px 70px rgba(57, 32, 61, 0.2);
  isolation: isolate;
}

.explore-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.41;
  background-image: radial-gradient(rgba(255, 248, 232, 0.19) 0.8px, transparent 0.8px);
  background-size: 23px 23px;
  mask-image: linear-gradient(90deg, transparent, #000 40%, #000 75%, transparent);
}

.explore-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 560px;
}

.explore-copy h1 {
  margin: 16px 0 15px;
  font-size: clamp(38px, 4.6vw, 62px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.04;
}

.explore-copy h1 span {
  color: #ffd66b;
}

.explore-copy > p {
  max-width: 500px;
  color: rgba(255, 248, 232, 0.59);
  font-size: 12.5px;
  line-height: 1.9;
}

.explore-topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.explore-topic-chips a {
  padding: 7px 11px;
  border: 1px solid rgba(255, 248, 232, 0.16);
  border-radius: var(--radius-pill);
  color: rgba(255, 248, 232, 0.78);
  background: rgba(255, 255, 255, 0.055);
  font-size: 10px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: background-color 150ms ease, color 150ms ease;
}

.explore-topic-chips a:hover {
  color: var(--forest);
  background: var(--sun);
}

.explore-art {
  position: relative;
  min-height: 295px;
}

.explore-sun {
  position: absolute;
  top: 5px;
  right: 30px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff4b4, #ffc84b 55%, #ff9962);
  box-shadow: 0 0 0 25px rgba(255, 201, 74, 0.07), 0 0 0 55px rgba(255, 201, 74, 0.035);
}

.explore-orbit {
  position: absolute;
  border: 1px solid rgba(255, 248, 232, 0.15);
  border-radius: 50%;
}

.explore-orbit--one {
  top: -48px;
  right: -35px;
  width: 298px;
  height: 298px;
}

.explore-orbit--two {
  top: 22px;
  right: 38px;
  width: 176px;
  height: 176px;
  border-style: dashed;
}

.explore-photo {
  position: absolute;
  right: 44px;
  bottom: -17px;
  width: 325px;
  padding: 7px;
  overflow: hidden;
  border-radius: 21px;
  background: rgba(255, 253, 245, 0.93);
  box-shadow: 0 30px 55px rgba(20, 9, 30, 0.35);
  transform: rotate(4deg);
}

.explore-photo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
}

.explore-stat-card {
  position: absolute;
  bottom: 14px;
  left: 0;
  display: flex;
  width: 153px;
  flex-direction: column;
  padding: 15px;
  border-radius: 17px;
  color: var(--ink);
  background: var(--sun);
  box-shadow: 0 22px 42px rgba(21, 8, 29, 0.28);
  transform: rotate(-6deg);
}

.explore-stat-card span {
  color: #83651f;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.explore-stat-card strong {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.explore-stat-card small {
  color: #776126;
  font-size: 8.5px;
}

.explore-sticker {
  position: absolute;
  top: 29px;
  left: 64px;
  display: flex;
  width: 78px;
  height: 78px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 248, 232, 0.24);
  border-radius: 50%;
  color: var(--cream);
  background: rgba(36, 22, 52, 0.35);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  backdrop-filter: blur(8px);
  transform: rotate(8deg);
}

.explore-pi {
  position: absolute;
  top: 75px;
  left: 138px;
  color: rgba(255, 248, 232, 0.09);
  font-family: var(--font-display);
  font-size: 150px;
  line-height: 0.7;
  transform: rotate(8deg);
}

.category-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.category-tile {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 187px;
  flex-direction: column;
  padding: 17px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tile-color) 22%, transparent);
  border-radius: 22px;
  color: inherit;
  background:
    radial-gradient(circle at 95% 5%, color-mix(in srgb, var(--tile-color) 24%, transparent), transparent 46%),
    color-mix(in srgb, var(--tile-color) 8%, #fffdf8);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.category-tile--create {
  color: var(--cream);
  border-color: transparent;
  background:
    radial-gradient(circle at 91% 7%, rgba(255, 201, 74, 0.24), transparent 42%),
    radial-gradient(circle at 8% 100%, rgba(28, 155, 131, 0.28), transparent 45%),
    linear-gradient(138deg, #173a33 0%, #225846 58%, #343b6f 100%);
}

.category-tile--create .category-tile-icon {
  color: var(--sun);
  border-color: rgba(255, 248, 232, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.category-tile--create .category-tile-icon .icon {
  width: 18px;
  height: 18px;
}

.category-tile--create .category-tile-count {
  color: rgba(255, 248, 232, 0.44);
  font-family: var(--font-sans);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.category-tile--create .category-tile-index {
  color: rgba(255, 248, 232, 0.36);
}

.category-tile--create h3 {
  color: var(--cream);
}

.category-tile--create p {
  color: rgba(255, 248, 232, 0.48);
}

.category-tile--create .category-tile-arrow {
  color: var(--forest);
  background: var(--sun);
}

.category-tile--create:hover {
  border-color: rgba(255, 201, 74, 0.25);
  box-shadow: 0 19px 38px rgba(23, 58, 51, 0.16);
}

.category-tile--create:hover .category-tile-arrow {
  background: #ffd665;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -48px;
  width: 125px;
  height: 125px;
  border: 1px solid color-mix(in srgb, var(--tile-color) 25%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.category-tile:hover {
  border-color: color-mix(in srgb, var(--tile-color) 34%, transparent);
  box-shadow: 0 19px 38px color-mix(in srgb, var(--tile-color) 10%, transparent);
  transform: translateY(-3px);
}

.category-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.category-tile-icon {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--tile-color) 16%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--tile-color) 10%, #fffdf8);
  font-size: 18px;
}

.category-tile-count {
  color: color-mix(in srgb, var(--tile-color) 70%, #56635d);
  font-family: var(--font-display);
  font-size: 10px;
}

.category-tile-index {
  margin-top: 21px;
  color: color-mix(in srgb, var(--tile-color) 55%, #9a9e94);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.category-tile h3 {
  margin-top: 3px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.category-tile p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.category-tile-arrow {
  display: flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border-radius: 50%;
  color: color-mix(in srgb, var(--tile-color) 80%, #1c2d3b);
  background: color-mix(in srgb, var(--tile-color) 9%, transparent);
  transition: transform 180ms ease, background-color 180ms ease;
}

.category-tile-arrow .icon {
  width: 13px;
  height: 13px;
}

.category-tile:hover .category-tile-arrow {
  background: color-mix(in srgb, var(--tile-color) 18%, transparent);
  transform: translate(2px, -2px);
}

.explore-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  align-items: start;
  gap: 18px;
}

.topic-cloud-card {
  padding: 24px;
  min-height: 310px;
}

.topic-cloud-card .side-card-title {
  margin-bottom: 18px;
}

.topic-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 12px;
  font-weight: 650;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.topic-chip--1 {
  color: var(--forest);
  border-color: rgba(28, 155, 131, 0.15);
  background: rgba(118, 224, 185, 0.13);
  font-size: 15px;
  font-weight: 800;
}

.topic-chip--2 {
  color: #7b5c21;
  border-color: rgba(255, 201, 74, 0.2);
  background: rgba(255, 201, 74, 0.15);
  font-size: 13px;
}

.topic-chip--3 {
  color: #8c4c52;
  background: rgba(255, 111, 78, 0.075);
}

.topic-chip:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.topic-hash {
  color: var(--coral);
  font-weight: 900;
}

.topic-chip small {
  margin-left: 3px;
  color: var(--muted-light);
  font-family: var(--font-display);
  font-size: 9px;
}

.topic-cloud-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted-light);
  font-size: 9px;
}

.topic-cloud-foot > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.topic-cloud-foot .icon {
  width: 13px;
  height: 13px;
  color: var(--coral);
}

.active-people-card {
  padding: 19px 16px 9px;
}

.explore-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 32px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--cream);
  background:
    radial-gradient(circle at 87% 10%, rgba(255, 201, 74, 0.18), transparent 28%),
    linear-gradient(110deg, #163b33, #19443d 55%, #263d57);
  isolation: isolate;
}

.explore-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background-image: radial-gradient(rgba(255, 248, 232, 0.2) 0.7px, transparent 0.7px);
  background-size: 20px 20px;
  mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
}

.explore-banner-mark {
  display: flex;
  width: 57px;
  height: 57px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 248, 232, 0.2);
  border-radius: 18px;
  color: var(--sun);
  font-family: var(--font-display);
  font-size: 37px;
  line-height: 1;
}

.explore-banner h2 {
  margin-top: 1px;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.explore-banner p {
  margin-top: 2px;
  color: rgba(255, 248, 232, 0.55);
  font-size: 10px;
}

.explore-banner .btn {
  margin-left: auto;
}

/* ==========================================================================
   Friends page
   ========================================================================== */

.friends-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  min-height: 327px;
  padding: 43px 46px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: var(--cream);
  background:
    radial-gradient(circle at 84% 14%, rgba(255, 201, 74, 0.21), transparent 28%),
    radial-gradient(circle at 72% 92%, rgba(242, 95, 155, 0.22), transparent 34%),
    linear-gradient(122deg, #252042, #57314e 54%, #994c58);
  box-shadow: 0 30px 70px rgba(45, 28, 45, 0.2);
  isolation: isolate;
}

.friends-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.37;
  background-image: radial-gradient(rgba(255, 248, 232, 0.2) 0.8px, transparent 0.8px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 72% 48%, #000, transparent 63%);
}

.friends-hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 560px;
}

.friends-hero-copy h1 {
  margin: 15px 0 15px;
  font-size: clamp(35px, 4.3vw, 55px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.07;
}

.friends-hero-copy h1 span {
  color: #ffd36d;
}

.friends-hero-copy > p {
  max-width: 500px;
  color: rgba(255, 248, 232, 0.6);
  font-size: 12.5px;
  line-height: 1.9;
}

.friends-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.friends-hero-art {
  position: relative;
  min-height: 245px;
}

.friends-hero-orbit {
  position: absolute;
  border: 1px solid rgba(255, 248, 232, 0.14);
  border-radius: 50%;
}

.friends-hero-orbit--one {
  top: -30px;
  right: 13px;
  width: 272px;
  height: 272px;
}

.friends-hero-orbit--two {
  top: 21px;
  right: 66px;
  width: 165px;
  height: 165px;
  border-style: dashed;
}

.friends-hero-pi {
  position: absolute;
  right: 95px;
  bottom: -58px;
  color: rgba(255, 248, 232, 0.08);
  font-family: var(--font-display);
  font-size: 214px;
  line-height: 0.8;
}

.friends-avatar-stack {
  position: absolute;
  top: 50%;
  right: 65px;
  width: 230px;
  height: 210px;
  transform: translateY(-50%);
}

.friends-hero-avatar {
  position: absolute;
  display: block;
  padding: 3px;
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.16);
  box-shadow: 0 17px 32px rgba(16, 11, 27, 0.25);
  backdrop-filter: blur(8px);
}

.friends-hero-avatar--1 { top: 34px; left: 0; transform: rotate(-8deg); }
.friends-hero-avatar--2 { top: 0; right: 54px; transform: rotate(5deg); }
.friends-hero-avatar--3 { top: 84px; right: 0; transform: rotate(8deg); }
.friends-hero-avatar--4 { bottom: 2px; left: 38px; transform: rotate(-4deg); }
.friends-hero-avatar--5 { bottom: 22px; right: 44px; transform: rotate(10deg); }

.friends-hero-heart {
  position: absolute;
  top: 24px;
  right: 21px;
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--coral);
  background: var(--cream);
  box-shadow: 0 12px 24px rgba(16, 11, 27, 0.24);
  transform: rotate(10deg);
}

.friends-hero-heart .icon {
  width: 21px;
  height: 21px;
  fill: var(--coral);
}

.friends-hero-note {
  position: absolute;
  bottom: 9px;
  right: 6px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 248, 232, 0.16);
  border-radius: 12px;
  color: rgba(255, 248, 232, 0.73);
  background: rgba(255, 255, 255, 0.07);
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
  transform: rotate(-5deg);
  backdrop-filter: blur(7px);
}

.friends-summary {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: calc(100% - 90px);
  margin: -28px auto 4px;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 20px 40px rgba(30, 51, 43, 0.09);
  backdrop-filter: blur(10px);
}

.friends-summary-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 19px;
}

.friends-summary-item + .friends-summary-item {
  border-left: 1px solid var(--line);
}

.friends-summary-item > span {
  color: var(--muted);
  font-size: 9px;
}

.friends-summary-item strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.friends-summary-item small {
  color: var(--muted-light);
  font-size: 8.5px;
}

.friends-summary-item--coral strong { color: var(--coral-deep); }
.friends-summary-item--sky strong { color: #367fc8; }
.friends-summary-item--mint strong { color: var(--teal); }

.friends-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.friend-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 248, 0.62);
}

.friend-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.3;
  transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.friend-tab span {
  display: inline-flex;
  min-width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: rgba(24, 44, 39, 0.06);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 9px;
  line-height: 1;
}

.friend-tab:hover {
  color: var(--ink);
}

.friend-tab.is-active {
  color: var(--cream);
  background: var(--ink);
  box-shadow: 0 6px 16px rgba(24, 44, 39, 0.14);
}

.friend-tab.is-active span {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.14);
}

.friends-toolbar-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-light);
  font-size: 9px;
}

.friends-toolbar-note .icon {
  width: 12px;
  height: 12px;
  color: var(--sun);
}

.tab-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 2px 3px;
}

.tab-heading h2 {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.3;
}

.tab-heading p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

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

.friend-card {
  position: relative;
  display: flex;
  min-height: 238px;
  flex-direction: column;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 23px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), color-mix(in srgb, var(--tone-a) 7%, #fffdf8));
  box-shadow: var(--shadow-xs);
  transition: transform 210ms ease, box-shadow 210ms ease;
}

.friend-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.friend-card-glow {
  position: absolute;
  top: -70px;
  right: -55px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tone-a) 38%, transparent), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.friend-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.friend-card-title {
  min-width: 0;
  flex: 1;
  padding-top: 3px;
}

.friend-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.friend-name-row h3 {
  overflow: hidden;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-name-row h3 a:hover {
  color: var(--teal);
}

.friend-relation {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 17px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  color: var(--teal);
  background: rgba(28, 155, 131, 0.08);
  font-size: 7.5px;
  font-weight: 700;
}

.friend-relation--incoming {
  color: var(--coral-deep);
  background: rgba(255, 111, 78, 0.09);
}

.friend-relation--outgoing {
  color: var(--muted);
  background: rgba(24, 44, 39, 0.055);
}

.friend-relation--discover {
  color: #7f6526;
  background: rgba(255, 201, 74, 0.14);
}

.friend-card-title p {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-card-bio {
  display: -webkit-box;
  min-height: 37px;
  margin-top: 15px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.friend-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 12px;
}

.friend-card-meta span {
  padding: 3px 6px;
  border-radius: 5px;
  color: var(--muted-light);
  background: rgba(24, 44, 39, 0.035);
  font-size: 8.5px;
}

.friend-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 15px;
}

.friend-card-actions .btn {
  min-height: 32px;
  padding: 7px 11px;
  font-size: 10px;
}

.friend-waiting {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 9px;
}

.friend-waiting .icon {
  width: 12px;
  height: 12px;
}

/* ==========================================================================
   Profile page
   ========================================================================== */

.profile-breadcrumb,
.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 2px 4px;
  color: var(--muted);
  font-size: 10px;
}

.profile-breadcrumb a,
.detail-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 150ms ease;
}

.profile-breadcrumb a:hover,
.detail-breadcrumb a:hover {
  color: var(--ink);
}

.profile-breadcrumb .icon,
.detail-breadcrumb .icon {
  width: 13px;
  height: 13px;
}

.profile-breadcrumb > span:nth-last-child(1) {
  color: var(--ink-soft);
}

.breadcrumb-divider {
  color: rgba(119, 133, 126, 0.5);
}

.profile-hero {
  position: relative;
  overflow: hidden;
  padding: 37px 42px 31px;
  border-radius: var(--radius-xl);
  color: var(--cream);
  background:
    linear-gradient(110deg, rgba(12, 34, 28, 0.83) 0%, rgba(16, 43, 36, 0.64) 55%, rgba(24, 35, 31, 0.42) 100%),
    linear-gradient(135deg, var(--tone-a), var(--tone-b));
  box-shadow: 0 26px 60px rgba(24, 44, 39, 0.18);
  isolation: isolate;
}

.profile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.25;
  background-image: radial-gradient(rgba(255, 255, 255, 0.4) 0.8px, transparent 0.8px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 85% 20%, #000, transparent 50%);
}

.profile-hero-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  pointer-events: none;
}

.profile-hero-orbit--one {
  top: -110px;
  right: 90px;
  width: 370px;
  height: 370px;
}

.profile-hero-orbit--two {
  right: 191px;
  bottom: -168px;
  width: 320px;
  height: 320px;
  border-style: dashed;
}

.profile-hero-pi {
  position: absolute;
  right: 38px;
  bottom: -100px;
  z-index: -1;
  color: rgba(255, 255, 255, 0.07);
  font-family: var(--font-display);
  font-size: 290px;
  line-height: 0.8;
}

.profile-hero-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 25px;
}

.profile-avatar-large {
  align-self: start;
  margin-top: 6px;
}

.profile-avatar-large .avatar {
  border-color: rgba(255, 253, 248, 0.62);
  box-shadow: 0 20px 35px rgba(14, 31, 25, 0.26);
}

.profile-hero-copy {
  min-width: 0;
}

.profile-hero-copy .eyebrow {
  margin-bottom: 6px;
}

.profile-name-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.profile-name-line h1 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 8px;
  border: 1px solid rgba(255, 248, 232, 0.2);
  border-radius: var(--radius-pill);
  color: rgba(255, 248, 232, 0.8);
  background: rgba(255, 255, 255, 0.09);
  font-size: 8px;
  font-weight: 650;
  backdrop-filter: blur(8px);
}

.profile-badge--demo {
  color: var(--sun);
  border-color: rgba(255, 201, 74, 0.23);
}

.profile-badge--admin {
  color: #3c2d0b;
  border-color: rgba(255, 218, 110, 0.38);
  background: linear-gradient(135deg, #ffd667, #ffc340);
  font-weight: 750;
}

.profile-badge--ai {
  color: #0e3c33;
  border-color: rgba(143, 242, 207, 0.38);
  background: linear-gradient(135deg, #a7f4d8, #58d8ba);
  font-weight: 750;
}

.profile-handle {
  margin-top: 5px;
  color: rgba(255, 248, 232, 0.53);
  font-size: 10.5px;
}

.profile-bio {
  max-width: 560px;
  margin-top: 11px;
  color: rgba(255, 248, 232, 0.76);
  font-size: 12.5px;
  line-height: 1.8;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
}

.profile-relation {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(118, 224, 185, 0.24);
  border-radius: var(--radius-pill);
  color: #c9ffe9;
  background: rgba(118, 224, 185, 0.1);
  font-size: 10px;
  font-weight: 650;
}

.profile-relation .icon {
  width: 14px;
  height: 14px;
}

.profile-relation--muted {
  color: rgba(255, 248, 232, 0.58);
  border-color: rgba(255, 248, 232, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.profile-hero-stats {
  display: flex;
  align-items: center;
  gap: 22px;
  align-self: end;
  padding-bottom: 2px;
}

.profile-hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: right;
}

.profile-hero-stats strong {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.profile-hero-stats span {
  color: rgba(255, 248, 232, 0.48);
  font-size: 8px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  align-items: start;
  gap: 18px;
}

.profile-posts {
  min-width: 0;
}

.profile-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-card {
  padding: 20px 19px;
}

.profile-card .side-card-title {
  margin-bottom: 15px;
}

.profile-card-pi {
  color: var(--sun);
  font-family: var(--font-display);
  font-size: 29px;
  line-height: 0.8;
}

.profile-facts {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-facts > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid rgba(24, 44, 39, 0.055);
}

.profile-facts dt {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9.5px;
}

.profile-facts dt .icon {
  width: 12px;
  height: 12px;
}

.profile-facts dd {
  color: var(--ink-soft);
  font-size: 10px;
  text-align: right;
}

.profile-card-quote {
  position: relative;
  margin-top: 15px;
  padding: 14px 14px 12px 30px;
  border-radius: 15px;
  background: linear-gradient(130deg, #fff6d7, #ffebd8);
}

.profile-card-quote > span {
  position: absolute;
  top: 6px;
  left: 11px;
  color: rgba(184, 127, 35, 0.37);
  font-family: var(--font-display);
  font-size: 29px;
  line-height: 1;
}

.profile-card-quote p {
  color: #6f5f3d;
  font-size: 10px;
  line-height: 1.8;
}

.profile-friend-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--teal);
  font-size: 9.5px;
  font-weight: 650;
}

.profile-friend-link > span {
  margin-left: auto;
}

.profile-friend-link .icon {
  width: 13px;
  height: 13px;
}

.profile-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 15px;
  border-radius: 17px;
  background: rgba(255, 252, 241, 0.6);
  border: 1px dashed var(--line-strong);
}

.profile-note > span {
  color: var(--sun);
  font-size: 16px;
}

.profile-note p {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.8;
}

.profile-note strong {
  color: var(--ink-soft);
}

/* ==========================================================================
   Post detail page
   ========================================================================== */

.detail-breadcrumb {
  justify-content: flex-start;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  align-items: start;
  gap: 18px;
}

.detail-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}

.post-detail-card {
  padding: 26px 30px 22px;
  border-radius: 27px;
}

.post-detail-card .post-author-name {
  font-size: 13.5px;
}

.detail-title {
  margin: 20px 0 10px;
  color: var(--ink);
  font-size: clamp(25px, 2.8vw, 34px);
  font-weight: 900;
  letter-spacing: -0.048em;
  line-height: 1.36;
}

.detail-tags {
  margin-top: 0;
  margin-bottom: 18px;
}

.post-detail-card .detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 21px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.detail-body {
  color: #354740;
  font-size: 14.5px;
  line-height: 1.95;
  word-break: break-word;
}

.detail-body p {
  margin: 0 0 1em;
}

.detail-body p:last-child {
  margin-bottom: 0;
}

.detail-image-wrap {
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface-soft);
}

.detail-image-wrap img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.detail-actions {
  gap: 8px;
}

.like-button--large {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 10px;
  font-weight: 600;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.like-button--large:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.like-button--large.is-liked {
  color: var(--coral);
  border-color: rgba(255, 111, 78, 0.2);
  background: rgba(255, 111, 78, 0.06);
}

.like-button--large .action-icon {
  width: 16px;
  height: 16px;
}

.like-button--large .action-label {
  color: var(--muted);
  font-size: 9.5px;
}

.like-button--large.is-liked .action-label {
  color: var(--coral);
}

.comments-card {
  padding: 23px 28px 18px;
  scroll-margin-top: 92px;
}

.comments-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 17px;
}

.comments-header h2 {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.comments-header h2 span {
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.comments-header-note {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-light);
  font-size: 8.5px;
}

.comments-header-note .icon {
  width: 12px;
  height: 12px;
}

.comment-form {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

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

.comment-form textarea {
  width: 100%;
  min-height: 66px;
  padding: 2px 0;
  border: 0;
  outline: 0;
  resize: vertical;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11.5px;
  line-height: 1.75;
}

.comment-form textarea::placeholder {
  color: var(--muted-light);
}

.comment-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.comment-form-foot > span {
  color: var(--muted-light);
  font-size: 8px;
}

.comment-list {
  margin-top: 8px;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(24, 44, 39, 0.06);
}

.comment-item:last-child {
  border-bottom: 0;
}

.comment-avatar {
  flex: none;
}

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

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  color: var(--muted-light);
  font-size: 9px;
}

.comment-author {
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 750;
}

.comment-author:hover {
  color: var(--teal);
}

.comment-op {
  display: inline-flex;
  height: 15px;
  align-items: center;
  padding: 0 5px;
  border-radius: 4px;
  color: var(--teal);
  background: rgba(28, 155, 131, 0.08);
  font-size: 7px;
  font-weight: 700;
}

.comment-body {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
  word-break: break-word;
}

.comment-actions {
  margin-top: 6px;
}

.comment-like {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--muted-light);
  font-size: 8.5px;
}

.comment-like .icon {
  width: 12px;
  height: 12px;
}

.comment-like.is-liked {
  color: var(--coral);
}

.comment-like.is-liked .icon {
  fill: var(--coral);
}

.comment-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 26px 10px 19px;
  color: var(--muted-light);
  text-align: center;
}

.comment-empty > span {
  font-size: 22px;
  opacity: 0.6;
}

.comment-empty p {
  font-size: 10px;
}

.detail-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.author-side-card {
  overflow: hidden;
}

.author-side-cover {
  position: relative;
  height: 82px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.25), transparent 30%),
    linear-gradient(135deg, var(--tone-a), var(--tone-b));
}

.author-side-cover::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -48px;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.33);
  border-radius: 50%;
}

.author-side-cover span {
  position: absolute;
  right: 26px;
  bottom: -26px;
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--font-display);
  font-size: 82px;
  line-height: 1;
}

.author-side-body {
  padding: 0 18px 17px;
}

.author-side-avatar {
  position: relative;
  margin-top: -29px;
  border: 3px solid var(--surface);
}

.author-side-name {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.author-side-title {
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.author-side-name > span {
  padding: 2px 5px;
  border-radius: 4px;
  color: #967127;
  background: rgba(255, 201, 74, 0.13);
  font-size: 7.5px;
  font-weight: 650;
}

.author-side-body > p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8.5px;
}

.author-side-bio {
  margin-top: 8px !important;
  color: var(--ink-soft) !important;
  font-size: 10px !important;
  line-height: 1.75;
}

.author-side-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 13px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.author-side-stats div {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0;
}

.author-side-stats div + div {
  border-left: 1px solid var(--line);
}

.author-side-stats strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.author-side-stats span {
  color: var(--muted-light);
  font-size: 7.5px;
}

.author-side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.author-side-actions .btn {
  flex: 1;
  min-height: 32px;
  padding: 7px 9px;
  font-size: 9px;
}

.detail-relation {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 32px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--teal);
  font-size: 9px;
  white-space: nowrap;
}

.detail-relation--muted {
  color: var(--muted);
}

.detail-relation .icon {
  width: 13px;
  height: 13px;
}

.anonymous-side-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 23px;
  background:
    radial-gradient(circle at 90% 10%, rgba(152, 121, 246, 0.15), transparent 40%),
    var(--surface);
}

.anonymous-symbol {
  display: flex;
  width: 41px;
  height: 41px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 13px;
  color: var(--violet);
  background: rgba(152, 121, 246, 0.09);
}

.anonymous-side-card h3 {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.anonymous-side-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.8;
}

.detail-side-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.detail-side-card .side-card-title {
  margin-bottom: 0;
}

.channel-side-desc {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.detail-side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 3px 0 6px;
}

.detail-side-tags a {
  padding: 4px 7px;
  border-radius: 5px;
  color: var(--teal);
  background: rgba(28, 155, 131, 0.055);
  font-size: 8.5px;
}

.detail-side-tags a:hover {
  background: rgba(28, 155, 131, 0.1);
}

.community-guideline-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(255, 246, 214, 0.7), rgba(255, 233, 216, 0.75));
  border: 1px solid rgba(173, 132, 45, 0.09);
}

.guideline-mark {
  display: flex;
  width: 29px;
  height: 29px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--forest);
  background: var(--sun);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
}

.community-guideline-card strong {
  color: #625437;
  font-size: 9.5px;
}

.community-guideline-card p {
  margin-top: 3px;
  color: #897753;
  font-size: 8.5px;
  line-height: 1.7;
}
