:root {
  --ez-black: #050505;
  --ez-panel: #11100e;
  --ez-panel-soft: #17130d;
  --ez-gold: #e5c467;
  --ez-gold-deep: #a36e1b;
  --ez-text: #fff7df;
  --ez-muted: #cdbf9a;
  --ez-line: rgba(229, 196, 103, 0.25);
}

body {
  	background-image: url("/images/BG-top.jpg"), url("/images/BG-bottom.jpg");
	background-repeat:no-repeat, no-repeat;
	background-position: right top, left bottom;
}

.community-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.community-hero {
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border: 1px solid var(--ez-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.72), rgba(45, 31, 10, 0.82)),
    url('/uploads/BG-Banner.jpg') center/cover;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.community-kicker {
  color: var(--ez-gold);
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 4px;
  font-size: 0.9rem;
}

.community-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1;
  margin: 0 0 10px;
  color: #fff;
  font-weight: 900;
}

.community-hero p {
  max-width: 680px;
  color: var(--ez-muted);
  margin: 0;
  font-size: 1.05rem;
}

.community-hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.community-hero-stats div {
  min-width: 136px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--ez-line);
  background: rgba(0, 0, 0, 0.5);
}

.community-hero-stats strong {
  display: block;
  color: var(--ez-gold);
  font-size: 1.8rem;
  line-height: 1;
}

.community-hero-stats span {
  color: var(--ez-muted);
  font-size: 0.92rem;
}

.feed-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  gap: 24px;
  align-items: start;
  justify-content: center;
  margin-top: 24px;
}

.community-sidebar {
  position: sticky;
  top: 86px;
  border: 1px solid var(--ez-line);
  border-radius: 8px;
  background: rgba(12, 10, 8, 0.92);
  padding: 10px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ez-muted);
  text-decoration: none;
  padding: 13px 14px;
  border-radius: 6px;
  font-weight: 700;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: #070604;
  background: linear-gradient(90deg, var(--ez-gold-deep), var(--ez-gold));
}

.feed-main {
  display: grid;
  gap: 18px;
}

.composer,
.feed-card,
.empty-community,
.login-card {
  border: 1px solid var(--ez-line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(24, 20, 14, 0.98), rgba(8, 8, 8, 0.98));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.26);
}

.composer {
  padding: 18px;
}

.composer-top {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
}

.composer-top img,
.post-user img,
.comment-row img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ez-gold);
}

.composer textarea,
.comment-form input,
.community-select {
  width: 100%;
  border: 1px solid rgba(229, 196, 103, 0.26);
  background: #070707;
  color: var(--ez-text);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
}

.composer textarea:focus,
.comment-form input:focus,
.community-select:focus {
  border-color: var(--ez-gold);
  box-shadow: 0 0 0 3px rgba(229, 196, 103, 0.15);
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 14px;
}

.upload-pill,
.btn-community,
.btn-community-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--ez-line);
}

.upload-pill {
  color: var(--ez-gold);
  cursor: pointer;
  background: rgba(229, 196, 103, 0.08);
}

.upload-pill input {
  display: none;
}

.btn-community {
  color: #090704;
  border: 0;
  background: linear-gradient(90deg, var(--ez-gold-deep), var(--ez-gold));
}

.btn-community:hover {
  color: #000;
  filter: brightness(1.08);
}

.btn-community-outline {
  color: var(--ez-gold);
  background: transparent;
}

.feed-card {
  overflow: hidden;
}

.post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0;
}

.post-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ez-text);
  text-decoration: none;
}

.post-user strong {
  display: block;
  color: #fff;
  line-height: 1.2;
}

.post-user small,
.visibility-pill,
.post-meta {
  color: var(--ez-muted);
  font-size: 0.88rem;
}

.visibility-pill {
  white-space: nowrap;
  border: 1px solid var(--ez-line);
  border-radius: 999px;
  padding: 5px 10px;
}

.post-content {
  padding: 16px 18px 4px;
  margin: 0;
  color: var(--ez-text);
  font-size: 1.05rem;
}

.post-image {
  display: block;
  width: calc(100% - 36px);
  max-height: 620px;
  object-fit: cover;
  border-radius: 8px;
  margin: 14px 18px;
  border: 1px solid rgba(229, 196, 103, 0.18);
}

.post-meta {
  display: flex;
  justify-content: space-between;
  padding: 0 18px 12px;
}

.post-meta .bi-heart-fill {
  color: #f04f65;
}

.post-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(229, 196, 103, 0.16);
  border-bottom: 1px solid rgba(229, 196, 103, 0.16);
}

.post-actions form {
  margin: 0;
}

.post-actions button,
.post-actions a {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ez-muted);
  text-decoration: none;
  font-weight: 800;
  padding: 12px;
  text-align: center;
}

.post-actions button:hover,
.post-actions a:hover,
.post-actions .liked {
  color: var(--ez-gold);
  background: rgba(229, 196, 103, 0.08);
}

.comments {
  display: grid;
  gap: 10px;
  padding: 14px 18px 18px;
}

.comment-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
}

.comment-row img {
  width: 42px;
  height: 42px;
}

.comment-row div {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 8px 12px;
}

.comment-row strong {
  color: var(--ez-gold);
  font-size: 0.92rem;
}

.comment-row p {
  color: var(--ez-text);
  margin: 2px 0 0;
  font-size: 0.95rem;
}

.comment-form {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 8px;
  margin-top: 4px;
}

.comment-form button {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--ez-gold-deep), var(--ez-gold));
  color: #050505;
}

.empty-community {
  padding: 28px;
  color: var(--ez-muted);
  text-align: center;
}

.board-hero {
  align-items: center;
}

.board-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0;
}

.board-tabs a {
  color: var(--ez-muted);
  text-decoration: none;
  border: 1px solid var(--ez-line);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.42);
}

.board-tabs a:hover,
.board-tabs a.active {
  color: #090704;
  background: linear-gradient(90deg, var(--ez-gold-deep), var(--ez-gold));
}

.member-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 155px;
  grid-auto-flow: dense;
  gap: 14px;
}

.board-tile {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(229, 196, 103, 0.32);
  background: #111;
  min-height: 0;
}

.board-tile-sm {
  grid-column: span 1;
  grid-row: span 1;
}

.board-tile-md {
  grid-column: span 2;
  grid-row: span 2;
}

.board-tile-lg {
  grid-column: span 3;
  grid-row: span 2;
}

.board-tile-xl {
  grid-column: span 3;
  grid-row: span 3;
}

.board-tile a,
.board-tile img {
  display: block;
  width: 100%;
  height: 100%;
}

.board-tile img {
  object-fit: cover;
  transition: transform 0.35s ease;
}

.board-tile:hover img {
  transform: scale(1.06);
}

.board-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 20%, rgba(0, 0, 0, 0.86) 100%);
}

.board-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #080603;
  background: linear-gradient(90deg, var(--ez-gold-deep), var(--ez-gold));
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 900;
}

.board-info {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: #fff;
}

.board-info h2 {
  font-size: clamp(1rem, 1.8vw, 1.55rem);
  margin: 0 0 4px;
  font-weight: 900;
  line-height: 1.08;
}

.board-info p {
  margin: 0;
  color: var(--ez-muted);
  font-size: 0.9rem;
}

.board-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.board-stats span {
  color: var(--ez-text);
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(229, 196, 103, 0.2);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.78rem;
}

@media (max-width: 1100px) {
  .feed-layout {
    grid-template-columns: 1fr;
  }

  .community-sidebar {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .sidebar-link {
    white-space: nowrap;
  }

  .member-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .community-shell {
    width: min(100% - 20px, 520px);
    padding-top: 16px;
  }

  .community-hero {
    min-height: 190px;
    padding: 22px;
    align-items: flex-start;
    flex-direction: column;
  }

  .community-hero h1 {
    font-size: 2.5rem;
  }

  .composer-top {
    grid-template-columns: 44px 1fr;
  }

  .composer-top img,
  .post-user img {
    width: 44px;
    height: 44px;
  }

  .post-head,
  .composer-actions {
    align-items: stretch;
  }

  .post-head {
    flex-direction: column;
  }

  .post-actions {
    grid-template-columns: 1fr;
  }

  .member-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 10px;
  }

  .board-tile-sm,
  .board-tile-md,
  .board-tile-lg,
  .board-tile-xl {
    grid-column: span 1;
    grid-row: span 2;
  }

  .board-tile-xl,
  .board-tile-lg {
    grid-column: span 2;
  }
}

/* Board template inspired layout */
.board-template-page {
  position: relative;
  padding-top: 18px;
}

.board-template-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.board-template-head {
  display: grid;
  grid-template-columns: 220px 1fr 180px;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.board-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
}

.board-mark img {
  max-width: 176px;
  max-height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(229, 196, 103, 0.18));
}

.board-mark strong {
  display: none;
  color: #fff;
  font-size: 2rem;
}

.board-segment {
  width: min(460px, 100%);
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 5px;
  border: 1px solid rgba(229, 196, 103, 0.24);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.72);
  box-shadow: inset 0 0 30px rgba(229, 196, 103, 0.05), 0 18px 48px rgba(0, 0, 0, 0.32);
}

.board-segment a {
  color: var(--ez-muted);
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 18px;
  font-weight: 700;
  font-size: 1.05rem;
}

.board-segment a.active,
.board-segment a:hover {
  color: #fff7df;
  background: radial-gradient(circle at 50% 0%, rgba(229, 196, 103, 0.26), rgba(163, 110, 27, 0.12));
  box-shadow: 0 0 0 1px rgba(229, 196, 103, 0.3), inset 0 0 22px rgba(229, 196, 103, 0.12);
}

.board-head-icons {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.board-head-icons a {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--ez-gold);
  text-decoration: none;
  border-radius: 50%;
  border: 1px solid transparent;
  font-size: 1.65rem;
}

.board-head-icons a:hover {
  border-color: var(--ez-line);
  background: rgba(229, 196, 103, 0.08);
}

.board-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.board-title-row h1 {
  color: #f7dfb0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  margin: 0 0 22px;
  font-weight: 500;
}

.board-title-row h1 span {
  color: #fff2c0;
  text-shadow: 0 0 18px rgba(229, 196, 103, 0.8);
}

.board-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.board-filter-pills a,
.board-map-btn {
  min-width: 112px;
  color: var(--ez-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(229, 196, 103, 0.34);
  border-radius: 999px;
  padding: 12px 22px;
  background: rgba(4, 4, 4, 0.64);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
  font-weight: 700;
}

.board-filter-pills a.active,
.board-filter-pills a:hover,
.board-map-btn:hover {
  color: #fff;
  border-color: rgba(255, 219, 135, 0.78);
  box-shadow: 0 0 18px rgba(229, 196, 103, 0.16), inset 0 0 20px rgba(229, 196, 103, 0.08);
}

.board-filter-pills .bi-circle-fill,
.board-distance .bi-circle-fill,
.board-bottom-strip .bi-circle-fill {
  color: #50db67;
  font-size: 0.72em;
}

.board-map-sort {
  display: grid;
  justify-items: end;
  gap: 14px;
  min-width: 210px;
}

.board-map-btn {
  min-width: 128px;
  font-size: 1.08rem;
}

.board-map-sort span {
  color: var(--ez-muted);
  font-size: 0.92rem;
}

.member-board.board-template-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 112px;
  gap: 16px;
}

.board-profile-card {
  border-radius: 14px;
  border-color: rgba(255, 216, 143, 0.42);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.board-profile-card.board-card-featured {
  grid-column: span 5;
  grid-row: span 4;
}

.board-profile-card.board-card-wide {
  grid-column: span 4;
  grid-row: span 3;
}

.board-profile-card.board-card-normal {
  grid-column: span 3;
  grid-row: span 3;
}

.board-profile-card .board-gradient {
/*background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 18%, rgba(0, 0, 0, 0.92) 100%),
    radial-gradient(circle at 50% 100%, rgba(229, 196, 103, 0.18), transparent 46%); */
}

.board-profile-card .board-badge {
  left: 14px;
  right: auto;
  top: 14px;
  color: #f9df9d;
  background: rgba(5, 5, 5, 0.62);
  border: 1px solid rgba(229, 196, 103, 0.66);
  box-shadow: 0 0 18px rgba(229, 196, 103, 0.12);
  padding: 6px 12px;
  letter-spacing: 0;
}

.board-profile-card .board-badge.rising {
  color: #ff8a8a;
  border-color: rgba(255, 75, 75, 0.72);
}

.board-profile-card .board-badge.active {
  color: #67ddff;
  border-color: rgba(74, 201, 255, 0.72);
}

.board-distance {
  position: absolute;
  top: 18px;
  right: 16px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

.board-profile-card .board-info {
  left: 18px;
  right: 64px;
  bottom: 18px;
}

.board-profile-card .board-info h2 {
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 500;
  margin-bottom: 2px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.85);
}

.board-profile-card .board-info h2 .bi {
  color: #5bcfd4;
  font-size: 0.78em;
}

.board-profile-card .board-info h2 span {
  font-size: 0.82em;
  color: #fff8e8;
}

.board-profile-card .board-info p {
  color: #e5d5b2;
  font-size: 0.96rem;
  margin-bottom: 10px;
}

.board-profile-card .board-stats {
  gap: 7px;
  margin-top: 0;
}

.board-profile-card .board-stats span {
  color: #e8ddc4;
  background: rgba(0, 0, 0, 0.46);
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 0.8rem;
}

.board-heart {
  position: absolute;
  right: 18px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.38);
  font-size: 1.25rem;
}

.board-profile-card:hover .board-heart {
  color: var(--ez-gold);
  border-color: var(--ez-gold);
  box-shadow: 0 0 22px rgba(229, 196, 103, 0.2);
}

.board-bottom-strip {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px solid rgba(229, 196, 103, 0.34);
  border-radius: 16px;
  background: rgba(4, 4, 4, 0.82);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

/* Each of the 3 content cells */
.board-bottom-strip > div {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 6px 0;
  margin-right: 18px;
  border-right: 1px solid rgba(229, 196, 103, 0.18);
  min-height: 58px;
}

.board-bottom-strip > div:last-of-type {
  margin-right: 0;
  padding-right: 0;
  border-right: none;
}

/* Gold icons (location / crown) */
.bstrip-location > i,
.bstrip-premium > i {
  font-size: 2rem;
  color: #e7bc5f;
  filter: drop-shadow(0 0 10px rgba(231, 188, 95, 0.38));
  flex-shrink: 0;
}

/* Text block inside location / premium */
.bstrip-location > div,
.bstrip-premium > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.board-bottom-strip strong {
  color: #f5e0a8;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.2;
}

.board-bottom-strip span {
  color: rgba(240, 220, 180, 0.52);
  font-size: 0.84rem;
  line-height: 1.2;
}

/* Avatar stack cell */
.board-avatar-stack {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bstrip-avatars {
  display: flex;
  align-items: center;
}

.board-avatar-stack img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #0a0a0a;
  object-fit: cover;
  margin-left: -14px;
  position: relative;
  box-shadow: 0 0 0 1.5px rgba(229, 196, 103, 0.52);
}

.bstrip-avatars img:first-child {
  margin-left: 0;
}

.bstrip-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Chevron arrow */
.bstrip-arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e7bc5f;
  text-decoration: none;
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-left: 4px;
}

@media (max-width: 1180px) {
  .board-template-head {
    grid-template-columns: 180px 1fr 120px;
  }

  .member-board.board-template-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .board-profile-card.board-card-featured,
  .board-profile-card.board-card-wide,
  .board-profile-card.board-card-normal {
    grid-column: span 4;
    grid-row: span 3;
  }
}

@media (max-width: 760px) {
  .board-template-page {
    width: min(100% - 20px, 520px);
  }

  .board-template-head {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .board-mark {
    min-height: 54px;
  }

  .board-mark img {
    max-width: 160px;
    max-height: 54px;
  }

  .board-segment {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
  }

  .board-segment a {
    padding: 11px 10px;
    font-size: 0.95rem;
  }

  .board-head-icons {
    gap: 6px;
  }

  .board-head-icons a {
    width: 42px;
    height: 42px;
    font-size: 1.28rem;
  }

  .board-title-row {
    grid-template-columns: 1fr;
  }

  .board-title-row h1 {
    margin-bottom: 16px;
  }

  .board-filter-pills {
    gap: 10px;
  }

  .board-filter-pills a {
    min-width: 0;
    padding: 10px 16px;
  }

  .board-map-sort {
    justify-items: start;
    grid-auto-flow: column;
    align-items: center;
    min-width: 0;
  }

  .member-board.board-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 145px;
    gap: 10px;
  }

  .board-profile-card.board-card-featured,
  .board-profile-card.board-card-wide,
  .board-profile-card.board-card-normal {
    grid-column: span 2;
    grid-row: span 3;
  }

  .board-profile-card .board-info {
    right: 18px;
  }

  .board-heart {
    width: 42px;
    height: 42px;
  }

  .board-profile-card .board-stats span:nth-child(n+3) {
    display: none;
  }

  .board-bottom-strip {
    grid-template-columns: 1fr;
  }

  .board-bottom-strip > div {
    border-right: 0;
    border-bottom: 1px solid rgba(229, 196, 103, 0.16);
    padding: 0 0 14px;
  }
}

/* Professional Feed */
.feed-pro-page {
  position: relative;
  padding-top: 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(229, 196, 103, 0.12), transparent 24%),
    radial-gradient(circle at 85% 14%, rgba(163, 110, 27, 0.16), transparent 28%);
}

.feed-pro-header {
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: 34px;
  border: 1px solid rgba(229, 196, 103, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.74), rgba(34, 24, 11, 0.9)),
    url('/uploads/BG-Banner.jpg') center/cover;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.feed-brand-block h1 {
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  line-height: 0.95;
  color: #fff;
  font-weight: 900;
  margin: 0 0 12px;
}

.feed-brand-block p:last-child {
  color: var(--ez-muted);
  max-width: 660px;
  margin: 0;
  font-size: 1.05rem;
}

.feed-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.feed-header-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ez-text);
  text-decoration: none;
  border: 1px solid rgba(229, 196, 103, 0.28);
  background: rgba(0, 0, 0, 0.46);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
}

.feed-header-btn.active,
.feed-header-btn:hover {
  color: #080604;
  background: linear-gradient(90deg, var(--ez-gold-deep), var(--ez-gold));
}

.feed-pro-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 827px) 310px;
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}

.feed-left-rail,
.feed-right-rail {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 16px;
}

.feed-center {
  display: grid;
  gap: 16px;
}

.feed-panel,
.feed-nav-card,
.feed-stats-strip,
.feed-empty-state,
.feed-card-pro,
.feed-composer-pro,
.feed-login-pro {
  border: 1px solid rgba(229, 196, 103, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(22, 18, 12, 0.96), rgba(7, 7, 7, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.feed-panel {
  padding: 16px;
}

.board-mark-all {

}

.profile-panel {
  text-align: center;
}

.profile-panel-avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ez-gold);
  box-shadow: 0 0 28px rgba(229, 196, 103, 0.18);
}

.profile-panel h2,
.feed-panel h2,
.feed-empty-state h2 {
  color: #fff;
  font-size: 1.15rem;
  margin: 12px 0 4px;
  font-weight: 900;
}

.profile-panel p,
.feed-panel p,
.feed-empty-state p {
  color: var(--ez-muted);
  margin: 0;
  font-size: 0.93rem;
}

.feed-panel-link {
  display: inline-flex;
  justify-content: center;
  margin-top: 14px;
  width: 100%;
  color: #080604;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 14px;
  background: linear-gradient(90deg, var(--ez-gold-deep), var(--ez-gold));
  font-weight: 900;
}

.feed-nav-card {
  display: grid;
  padding: 8px;
}

.feed-nav-card a {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  color: var(--ez-muted);
  text-decoration: none;
  border-radius: 10px;
  padding: 12px;
  font-weight: 800;
}

.feed-nav-card a i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ez-gold);
  background: rgba(229, 196, 103, 0.08);
}

.feed-nav-card a.active,
.feed-nav-card a:hover {
  color: #fff;
  background: rgba(229, 196, 103, 0.08);
}

.feed-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.feed-stats-strip div {
  padding: 16px;
  border-right: 1px solid rgba(229, 196, 103, 0.14);
}

.feed-stats-strip div:last-child {
  border-right: 0;
}

.feed-stats-strip span {
  display: block;
  color: var(--ez-muted);
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.feed-stats-strip strong {
  color: var(--ez-gold);
  font-size: 1.65rem;
  line-height: 1;
}

.feed-composer-pro {
  padding: 18px;
}

.composer-pro-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(229, 196, 103, 0.13);
}

.composer-pro-head img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ez-gold);
}

.composer-pro-head strong {
  display: block;
  color: #fff;
  line-height: 1.2;
}

.composer-pro-head span {
  color: var(--ez-muted);
  font-size: 0.9rem;
}

.feed-composer-pro textarea {
  width: 100%;
  margin-top: 14px;
  border: 0;
  resize: vertical;
  min-height: 118px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ez-text);
  border-radius: 12px;
  padding: 15px;
  outline: 1px solid rgba(229, 196, 103, 0.13);
}

.feed-composer-pro textarea:focus {
  outline-color: rgba(229, 196, 103, 0.62);
  box-shadow: 0 0 0 4px rgba(229, 196, 103, 0.1);
}

.feed-login-pro {
  padding: 22px;
  display: grid;
  gap: 18px;
}

.feed-mini-badge {
  display: inline-flex;
  color: #080604;
  background: linear-gradient(90deg, var(--ez-gold-deep), var(--ez-gold));
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.feed-card-pro {
  overflow: hidden;
  border-radius: 14px;
}

.feed-card-pro .post-head {
  padding: 18px 18px 10px;
}

.feed-card-pro .post-user img {
  width: 52px;
  height: 52px;
}

.feed-card-pro .post-content {
  padding: 8px 18px 2px;
  color: #f8edd0;
  font-size: 1.03rem;
}

.feed-card-pro .post-image {
  width: calc(100% - 36px);
  margin: 14px 18px;
  border-radius: 14px;
  border-color: rgba(229, 196, 103, 0.24);
}

.feed-card-pro .post-actions {
  margin: 0 18px;
  border: 1px solid rgba(229, 196, 103, 0.13);
  border-radius: 12px;
  overflow: hidden;
}

.feed-card-pro .comments {
  padding-top: 16px;
}

.feed-empty-state {
  min-height: 300px;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: 10px;
  padding: 32px;
}

.empty-orbit {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ez-gold);
  font-size: 2rem;
  border: 1px solid rgba(229, 196, 103, 0.34);
  background: radial-gradient(circle, rgba(229, 196, 103, 0.18), rgba(0, 0, 0, 0.12));
}

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

.panel-heading h2 {
  margin: 0;
}

.panel-heading a {
  color: var(--ez-gold);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
}

.suggested-list {
  display: grid;
  gap: 10px;
}

.suggested-member {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 10px;
  color: var(--ez-text);
  text-decoration: none;
  padding: 8px;
  border-radius: 12px;
}

.suggested-member:hover {
  background: rgba(229, 196, 103, 0.08);
}

.suggested-member img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(229, 196, 103, 0.62);
}

.suggested-member strong {
  display: block;
  color: #fff;
  line-height: 1.15;
  font-size: 0.95rem;
}

.suggested-member small {
  color: var(--ez-muted);
  font-size: 0.78rem;
}

.spotlight-panel {
  display: grid;
  gap: 10px;
}

.health-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(229, 196, 103, 0.12);
}

.health-row span {
  color: var(--ez-muted);
}

.health-row strong {
  color: var(--ez-gold);
}

.avatar-stack-panel {
  display: grid;
  gap: 10px;
}

.feed-avatar-stack {
  display: flex;
  padding-left: 12px;
}

.feed-avatar-stack img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: -12px;
  border: 2px solid #0a0805;
  box-shadow: 0 0 0 1px rgba(229, 196, 103, 0.5);
}

.avatar-stack-panel strong {
  color: #fff;
}

/* Compact controls for community pages */
.upload-pill,
.btn-community,
.btn-community-outline,
.feed-header-btn,
.board-filter-pills a,
.board-map-btn,
.board-segment a,
.feed-panel-link {
  min-height: 34px !important;
  padding: 7px 13px !important;
  border-radius: 50px !important;
  font-size: 0.9rem !important;
  line-height: 1.2 !important;
  gap: 7px !important;
}

.board-segment {
  padding: 4px !important;
}

.board-map-btn {
  min-width: 96px !important;
}

.board-filter-pills a {
  min-width: 84px !important;
}

.feed-header-actions,
.board-filter-pills {
  gap: 8px !important;
}

.post-actions button,
.post-actions a {
  padding: 8px 10px !important;
  font-size: 0.88rem !important;
}

.visibility-pill,
.board-profile-card .board-stats span,
.board-profile-card .board-badge,
.feed-mini-badge {
  padding: 4px 8px !important;
  font-size: 0.75rem !important;
}

.board-heart {
  width: 38px !important;
  height: 38px !important;
  font-size: 1rem !important;
}

.feed-nav-card a {
  padding: 9px 10px !important;
  font-size: 0.9rem !important;
}

.feed-nav-card a i {
  width: 30px !important;
  height: 30px !important;
}

/* Premium animated board frames */
.board-profile-card {
  overflow: hidden;
  border: 0 !important;
  border-radius: 14px !important;
  background:
    linear-gradient(#0a0806, #0a0806) padding-box,
    linear-gradient(145deg,
      rgba(255, 232, 165, 0.98) 0%,
      rgba(132, 84, 28, 0.72) 18%,
      rgba(255, 218, 135, 0.34) 38%,
      rgba(43, 34, 23, 0.94) 58%,
      rgba(242, 193, 96, 0.82) 78%,
      rgba(255, 244, 202, 0.96) 100%) border-box !important;
  border: 1px solid transparent !important;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 22px rgba(229, 196, 103, 0.12),
    inset 0 0 26px rgba(229, 196, 103, 0.08) !important;
}

.board-profile-card::before,
.board-profile-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 4;
}

.board-profile-card::before {
  inset: 1px;
  border-radius: 13px;
  border: 1px solid rgba(255, 236, 181, 0.22);
  box-shadow:
    inset 0 0 22px rgba(255, 206, 117, 0.12),
    inset 0 -36px 56px rgba(0, 0, 0, 0.44);
}

.board-profile-card::after {
  inset: 0;
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 234, 172, 0.75), transparent 18%),
    radial-gradient(circle at 100% 0, rgba(255, 220, 137, 0.38), transparent 16%),
    radial-gradient(circle at 0 100%, rgba(255, 217, 128, 0.42), transparent 17%),
    linear-gradient(110deg, transparent 0 38%, rgba(255, 245, 209, 0.16) 46%, transparent 54% 100%);
  mix-blend-mode: screen;
  opacity: 0.56;
  transform: translateX(-12%);
  transition: opacity 0.28s ease, transform 0.38s ease;
}

.board-profile-card:hover {
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 226, 154, 0.28),
    0 0 34px rgba(229, 196, 103, 0.2),
    inset 0 0 30px rgba(229, 196, 103, 0.1) !important;
}

.board-profile-card:hover::after {
  opacity: 0.88;
  transform: translateX(10%);
}

.board-profile-card > a::before,
.board-profile-card > a::after {
  content: "";
  position: absolute;
  z-index: 5;
  pointer-events: none;
  width: 42px;
  height: 42px;
  border-color: rgba(255, 226, 154, 0.78);
  filter: drop-shadow(0 0 10px rgba(229, 196, 103, 0.35));
}

.board-profile-card > a::before {
  top: 8px;
  left: 8px;
  border-top: 1px solid;
  border-left: 1px solid;
  border-radius: 9px 0 0 0;
}

.board-profile-card > a::after {
  right: 8px;
  bottom: 8px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  border-radius: 0 0 9px 0;
}

.board-profile-card .board-gradient {
/*  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 12%, rgba(0, 0, 0, 0.22) 44%, rgba(0, 0, 0, 0.94) 100%),
    radial-gradient(circle at 50% 100%, rgba(229, 196, 103, 0.24), transparent 48%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 35%, rgba(0, 0, 0, 0.22)) !important; */
}

.board-profile-card .board-badge {
  z-index: 6;
  border-radius: 999px !important;
  background:
    linear-gradient(180deg, rgba(18, 13, 6, 0.88), rgba(5, 5, 5, 0.72)) padding-box,
    linear-gradient(90deg, rgba(255, 232, 165, 0.94), rgba(179, 112, 38, 0.7), rgba(255, 232, 165, 0.9)) border-box !important;
  border: 1px solid transparent !important;
  box-shadow:
    0 0 18px rgba(229, 196, 103, 0.18),
    inset 0 0 16px rgba(229, 196, 103, 0.08) !important;
  text-shadow: 0 0 10px rgba(229, 196, 103, 0.4);
}

.board-profile-card .board-badge.rising {
  background:
    linear-gradient(180deg, rgba(28, 7, 7, 0.88), rgba(5, 5, 5, 0.72)) padding-box,
    linear-gradient(90deg, rgba(255, 112, 112, 0.95), rgba(95, 15, 15, 0.8), rgba(255, 174, 118, 0.88)) border-box !important;
  box-shadow: 0 0 18px rgba(255, 76, 76, 0.2), inset 0 0 16px rgba(255, 76, 76, 0.08) !important;
}

.board-profile-card .board-badge.active {
  background:
    linear-gradient(180deg, rgba(5, 23, 25, 0.88), rgba(5, 5, 5, 0.72)) padding-box,
    linear-gradient(90deg, rgba(103, 221, 255, 0.92), rgba(20, 84, 98, 0.78), rgba(103, 221, 255, 0.82)) border-box !important;
  box-shadow: 0 0 18px rgba(74, 201, 255, 0.22), inset 0 0 16px rgba(74, 201, 255, 0.08) !important;
}

.board-distance {
  z-index: 6;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
}

.board-distance .bi-circle-fill {
  filter: drop-shadow(0 0 8px rgba(80, 219, 103, 0.78));
}

.board-profile-card .board-stats span {
  border-radius: 7px !important;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.7), rgba(0, 0, 0, 0.52)) padding-box,
    linear-gradient(120deg, rgba(255, 255, 255, 0.18), rgba(229, 196, 103, 0.34), rgba(255, 255, 255, 0.08)) border-box !important;
  border: 1px solid transparent !important;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.035);
}

.board-heart {
  z-index: 6;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.74), rgba(0, 0, 0, 0.48)) padding-box,
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(229, 196, 103, 0.76), rgba(255, 255, 255, 0.38)) border-box !important;
  border: 1px solid transparent !important;
  box-shadow:
    0 0 20px rgba(229, 196, 103, 0.16),
    inset 0 0 14px rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(8px);
}

.board-profile-card:hover .board-heart {
  color: #ffe5a6;
  box-shadow:
    0 0 24px rgba(229, 196, 103, 0.35),
    inset 0 0 18px rgba(229, 196, 103, 0.12) !important;
}

/* Board reference-matched immersive screen */
body.board-immersive {
  color: #f6ead1;
}

body.board-immersive .navbar,
body.board-immersive .mobile-footer-bar {
  display: none !important;
}

body.board-immersive::before,
body.board-immersive::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body.board-immersive::before {
  opacity: 0.68;
}

body.board-immersive::after {
  opacity: 0.9;
}

body.board-immersive .community-shell.board-template-page {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 68px));
  min-height: 100vh;
  padding: 38px 0 24px;
}

body.board-immersive .board-template-page::before {
  display: none;
}

body.board-immersive .board-template-head {
  grid-template-columns: 230px minmax(360px, 1fr) 160px;
  gap: 22px;
  margin-bottom: 22px;
}

body.board-immersive .board-mark {
  min-height: 108px;
}

body.board-immersive .board-mark img {
  max-width: 212px;
  max-height: 106px;
  filter:
    drop-shadow(0 14px 18px rgba(0, 0, 0, 0.75))
    drop-shadow(0 0 18px rgba(236, 178, 78, 0.22));
}

body.board-immersive .board-mark strong {
  display: none;
}

body.board-immersive .board-segment {
  width: min(418px, 100%);
  height: 60px;
  padding: 4px !important;
  border: 1px solid rgba(229, 196, 103, 0.21);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.88), rgba(4, 4, 4, 0.82)) padding-box,
    linear-gradient(115deg, rgba(255, 236, 181, 0.08), rgba(229, 196, 103, 0.22), rgba(255, 236, 181, 0.05)) border-box;
  box-shadow:
    inset 0 0 28px rgba(255, 255, 255, 0.025),
    0 18px 52px rgba(0, 0, 0, 0.5);
}

body.board-immersive .board-segment a {
  min-height: 50px !important;
  padding: 0 16px !important;
  color: rgba(246, 234, 211, 0.64);
  font-size: 1rem !important;
  font-weight: 500;
}

body.board-immersive .board-segment a.active {
  color: #fff5df;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 231, 167, 0.28), transparent 58%),
    linear-gradient(180deg, rgba(37, 24, 15, 0.9), rgba(10, 8, 7, 0.78));
  box-shadow:
    0 0 0 1px rgba(229, 196, 103, 0.36),
    inset 0 0 22px rgba(229, 196, 103, 0.13),
    0 0 24px rgba(229, 196, 103, 0.13);
}

body.board-immersive .board-head-icons {
  gap: 12px;
}

body.board-immersive .board-head-icons a {
  width: 42px;
  height: 42px;
  color: #efc878;
  font-size: 1.6rem;
  border: 0;
  text-shadow: 0 0 20px rgba(229, 196, 103, 0.42);
}

body.board-immersive .board-title-row {
  align-items: start;
  margin: 6px 0 18px;
}

body.board-immersive .board-title-row h1 {
  margin: 0 0 18px;
  color: #edd6a5;
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  font-weight: 500;
}

body.board-immersive .board-filter-pills {
  gap: 14px !important;
}

body.board-immersive .board-filter-pills a,
body.board-immersive .board-map-btn {
  min-width: 104px !important;
  min-height: 48px !important;
  padding: 0 18px !important;
  color: #eadfc8;
  border: 1px solid rgba(229, 196, 103, 0.26);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(11, 11, 11, 0.82), rgba(3, 3, 3, 0.72)) padding-box,
    linear-gradient(110deg, rgba(255, 236, 181, 0.08), rgba(229, 196, 103, 0.24), rgba(255, 236, 181, 0.05)) border-box;
  font-size: 0.96rem !important;
  font-weight: 500;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.018);
}

body.board-immersive .board-filter-pills a.active,
body.board-immersive .board-filter-pills a:hover,
body.board-immersive .board-map-btn:hover {
  color: #fff5dd;
  border-color: rgba(255, 224, 154, 0.62);
  background:
    radial-gradient(circle at 50% 0%, rgba(229, 196, 103, 0.22), transparent 62%),
    linear-gradient(180deg, rgba(24, 18, 11, 0.92), rgba(6, 6, 6, 0.78));
  box-shadow:
    0 0 18px rgba(229, 196, 103, 0.14),
    inset 0 0 18px rgba(229, 196, 103, 0.08);
}

body.board-immersive .board-filter-pills .bi-circle-fill {
  color: #4de66f;
  filter: drop-shadow(0 0 7px rgba(77, 230, 111, 0.75));
}

body.board-immersive .board-map-sort {
  gap: 12px;
  padding-top: 2px;
}

body.board-immersive .board-map-btn {
  min-width: 128px !important;
  font-size: 1.06rem !important;
}

body.board-immersive .board-map-btn .bi {
  font-size: 1.32rem;
}

body.board-immersive .board-map-sort span {
  color: rgba(246, 234, 211, 0.63);
}

body.board-immersive .member-board.board-template-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-rows: 92px;
  align-items: start;
  gap: 12px;
}

/* ── All package cards: square 1:1, size differs by grid-column span ── */
body.board-immersive .board-profile-card[class*="board-pkg-"] {
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  align-self: start;
}

body.board-immersive .board-pkg-legend {
  border-radius: 18px !important;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.68),
    0 0 0 1.5px rgba(255, 228, 158, 0.42),
    0 0 28px rgba(229, 196, 103, 0.18) !important;
}

body.board-immersive .board-pkg-star {
  border-radius: 16px !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.64),
    0 0 0 1.5px rgba(255, 220, 140, 0.34),
    0 0 20px rgba(229, 196, 103, 0.12) !important;
}

body.board-immersive .board-pkg-hot {
  border-radius: 15px !important;
}

body.board-immersive .board-pkg-vip {
  border-radius: 14px !important;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(229, 196, 103, 0.22) !important;
}

body.board-immersive .board-pkg-free {
  border-radius: 12px !important;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

body.board-immersive .board-profile-card {
  position: relative;
  border-radius: 16px !important;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

body.board-immersive .board-profile-card.board-layout-1 {
  grid-column: 1 / span 5;
  grid-row: 1 / span 4;
}

body.board-immersive .board-profile-card.board-layout-2 {
  grid-column: 6 / span 4;
  grid-row: 1 / span 3;
}

body.board-immersive .board-profile-card.board-layout-3 {
  grid-column: 10 / span 3;
  grid-row: 1 / span 3;
}

body.board-immersive .board-profile-card.board-layout-4 {
  grid-column: 1 / span 4;
  grid-row: 5 / span 3;
}

body.board-immersive .board-profile-card.board-layout-5 {
  grid-column: 6 / span 4;
  grid-row: 4 / span 3;
}

body.board-immersive .board-profile-card.board-layout-6 {
  grid-column: 10 / span 3;
  grid-row: 4 / span 3;
}

body.board-immersive .board-profile-card.board-layout-7 {
  grid-column: 1 / span 3;
  grid-row: 8 / span 3;
}

body.board-immersive .board-profile-card.board-layout-8 {
  grid-column: 5 / span 4;
  grid-row: 7 / span 3;
}

body.board-immersive .board-profile-card.board-layout-9 {
  grid-column: 9 / span 4;
  grid-row: 7 / span 3;
}

/* Reset legacy size classes — package classes + inline span control layout */
body.board-immersive .board-profile-card.board-card-featured,
body.board-immersive .board-profile-card.board-card-wide,
body.board-immersive .board-profile-card.board-card-normal,
body.board-immersive .board-profile-card[class*="board-pkg-"] {
  /* grid placement via inline style from PHP */
}

body.board-immersive .board-profile-card > a {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}

body.board-immersive .board-profile-card img {
    width: 80%;
    height: 80%;
    object-fit: cover;
    object-position: center center;
    margin: 25px auto 0;
}

/* Package-based Board sizing */
body.board-immersive .member-board.board-template-grid {
  grid-auto-flow: dense;
  grid-auto-rows: 92px;
}

body.board-immersive .board-profile-card[class*="board-pkg-"] {
  aspect-ratio: auto;
  height: 100%;
}

body.board-immersive .board-profile-card.board-pkg-legend {
  grid-column: span 5;
  grid-row: span 4;
}

body.board-immersive .board-profile-card.board-pkg-star {
  grid-column: span 5;
  grid-row: span 4;
}

body.board-immersive .board-profile-card.board-pkg-hot {
  grid-column: span 4;
  grid-row: span 3;
}

body.board-immersive .board-profile-card.board-pkg-vip {
  grid-column: span 3;
  grid-row: span 2;
}

body.board-immersive .board-profile-card.board-pkg-free {
  grid-column: span 3;
  grid-row: span 2;
}

body.board-immersive .board-pkg-vip .board-info,
body.board-immersive .board-pkg-free .board-info {
  left: 14px;
  right: 48px;
  bottom: 13px;
}

body.board-immersive .board-pkg-vip .board-info h2,
body.board-immersive .board-pkg-free .board-info h2 {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
}

body.board-immersive .board-pkg-vip .board-info p,
body.board-immersive .board-pkg-free .board-info p {
  font-size: 0.78rem;
  margin-bottom: 6px;
}

body.board-immersive .board-pkg-vip .board-stats span,
body.board-immersive .board-pkg-free .board-stats span {
  padding: 4px 7px !important;
  font-size: 0.68rem !important;
}

body.board-immersive .board-pkg-vip .board-stats span:nth-child(n+3),
body.board-immersive .board-pkg-free .board-stats span:nth-child(n+3) {
  display: none;
}

body.board-immersive .board-profile-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.12) contrast(1.05) brightness(0.9);
}

body.board-immersive .board-profile-card::before {
  inset: 1px;
  border-radius: 15px;
  border: 1px solid rgba(255, 238, 192, 0.12);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.38);
}

body.board-immersive .board-profile-card::after {
  border-radius: 16px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 236, 181, 0.22), transparent 22%),
    radial-gradient(circle at 100% 100%, rgba(229, 196, 103, 0.18), transparent 22%);
  opacity: 0.5;
  width: 100%;
}

/* Corner bracket decorations removed for clean card look */
body.board-immersive .board-profile-card > a::before,
body.board-immersive .board-profile-card > a::after {
  display: none;
}

body.board-immersive .board-profile-card .board-gradient {
/**background:
    linear-gradient(180deg,
      transparent 0%,
      transparent 30%,
      rgba(0, 0, 0, 0.42) 55%,
      rgba(0, 0, 0, 0.88) 78%,
      rgba(0, 0, 0, 0.96) 100%
    ); **/
}

body.board-immersive .board-profile-card .board-badge {
  left: 12px;
  top: 12px;
  padding: 5px 10px !important;
  color: #f6d98d;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(20, 14, 6, 0.92), rgba(4, 4, 4, 0.76)) padding-box,
    linear-gradient(105deg, rgba(255, 220, 140, 0.92), rgba(140, 84, 18, 0.72), rgba(255, 228, 158, 0.84)) border-box !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.48), 0 0 12px rgba(229, 196, 103, 0.12);
  font-size: 0.72rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  gap: 5px !important;
}

/* RISING — solid red-orange fill */
body.board-immersive .board-profile-card .board-badge.rising {
  color: #fff5f3;
  background: linear-gradient(135deg, #c42416, #e03a28) !important;
  border-color: rgba(255, 110, 80, 0.36) !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.48), 0 0 12px rgba(220, 60, 40, 0.28);
}

/* ACTIVE NOW — teal bordered */
body.board-immersive .board-profile-card .board-badge.active {
  color: #72ecff;
  background:
    linear-gradient(180deg, rgba(6, 20, 24, 0.92), rgba(4, 4, 4, 0.76)) padding-box,
    linear-gradient(105deg, rgba(88, 220, 255, 0.86), rgba(18, 78, 96, 0.72), rgba(88, 220, 255, 0.78)) border-box !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.48), 0 0 12px rgba(88, 220, 255, 0.12);
}

/* Teal verified checkmark in name line */
body.board-immersive .board-profile-card .board-info h2 .bi {
  color: #52ccd1;
  font-size: 0.76em;
  vertical-align: middle;
}

/* HOT badge — fire icon */
body.board-immersive .board-profile-card .board-badge.rising .bi {
  color: #ffa08a;
  font-size: 0.9em;
}

/* VIP badge — patch-check icon */
body.board-immersive .board-profile-card .board-badge.verified .bi {
  color: #e8bc5a;
  font-size: 0.9em;
}

/* LEGEND/STAR/ADMIN badge icons */
body.board-immersive .board-profile-card .board-badge.elite .bi {
  color: #ffe077;
  font-size: 0.9em;
}

body.board-immersive .board-distance {
  top: 17px;
  right: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #fff6e5;
  font-size: 1.02rem;
  font-weight: 500;
}

body.board-immersive .board-distance .bi-circle-fill {
  color: #59e36c;
  font-size: 0.55rem;
  filter: drop-shadow(0 0 8px rgba(89, 227, 108, 0.82));
}

body.board-immersive .board-profile-card .board-info {
  left: 14px;
  right: 56px;
  bottom: 14px;
  z-index: 6;
  gap: 6px;
}

body.board-immersive .board-profile-card .board-info h2 {
  color: #fff;
  font-size: clamp(1rem, 1.6vw, 1.32rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 3px;
}

/* Featured card (Mika) — larger name */
body.board-immersive .board-pkg-legend .board-info h2,
body.board-immersive .board-pkg-star .board-info h2 {
  font-size: clamp(1.32rem, 2vw, 1.72rem);
  font-weight: 600;
}

body.board-immersive .board-pkg-legend .board-info h2 {
  font-size: clamp(1.48rem, 2.4vw, 1.92rem);
}

body.board-immersive .board-profile-card .board-info p {
  color: rgba(230, 212, 180, 0.72);
  font-size: 0.82rem;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

body.board-immersive .board-profile-card .board-info p .bi {
  font-size: 0.78rem;
  opacity: 0.7;
}

body.board-immersive .board-profile-card .board-stats {
  gap: 5px !important;
  flex-wrap: wrap;
}

body.board-immersive .board-profile-card .board-stats span {
  padding: 4px 9px !important;
  border-radius: 6px !important;
  color: #ddd0b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.62) !important;
  font-size: 0.72rem !important;
  font-weight: 500;
}

/* Slide dots for featured card */
body.board-immersive .board-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
}

body.board-immersive .board-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
  transition: all 0.2s;
}

body.board-immersive .board-dots span.active {
  width: 18px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.86);
}

body.board-immersive .board-heart,
body.board-immersive .board-wave {
  position: absolute;
  z-index: 7;
  right: 14px;
  bottom: 14px;
  width: 40px !important;
  height: 40px !important;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 1.05rem !important;
}

body.board-immersive .board-wave {
  color: #f0c060;
  border-color: rgba(240, 192, 96, 0.32);
}

body.board-immersive .board-profile-card:has(.board-wave) .board-heart {
  display: none;
}

body.board-immersive .board-bottom-strip {
  padding: 16px 18px;
  margin-top: 22px;
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.88), rgba(2, 2, 2, 0.84)) padding-box,
    linear-gradient(110deg, rgba(255, 238, 188, 0.38), rgba(100, 61, 24, 0.24), rgba(255, 230, 166, 0.34)) border-box;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.54),
    inset 0 0 28px rgba(229, 196, 103, 0.028);
}

body.board-immersive .board-avatar-stack img {
  border-color: #080808;
  box-shadow: 0 0 0 1.5px rgba(229, 196, 103, 0.52), 0 0 16px rgba(0, 0, 0, 0.42);
}

body.board-immersive .board-app-dock {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  min-height: 88px;
  margin-top: 18px;
  padding: 8px 32px 10px;
  border: 1px solid transparent;
  border-radius: 26px 26px 0 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.9), rgba(2, 2, 2, 0.86)) padding-box,
    linear-gradient(112deg, rgba(255, 238, 188, 0.24), rgba(100, 61, 24, 0.15), rgba(255, 230, 166, 0.24)) border-box;
  box-shadow:
    0 -10px 38px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

body.board-immersive .board-app-dock a {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  color: rgba(246, 234, 211, 0.5);
  text-decoration: none;
  font-size: 0.8rem;
}

body.board-immersive .board-app-dock i {
  font-size: 1.78rem;
}

body.board-immersive .board-app-dock a.active {
  color: #f4d384;
  text-shadow: 0 0 18px rgba(229, 196, 103, 0.42);
}

body.board-immersive .board-app-dock a.active i {
  font-size: 2.1rem;
}

body.board-immersive .board-app-dock em {
  position: absolute;
  top: -5px;
  margin-left: 28px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #b83228;
  color: #fff;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 700;
  box-shadow: 0 0 0 2px #070707;
}

body.board-immersive .dock-profile img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(229, 196, 103, 0.45);
}

@media (max-width: 1180px) {
  body.board-immersive .community-shell.board-template-page {
    width: min(100% - 36px, 960px);
  }

  body.board-immersive .board-app-dock {
    display: grid;
  }

  body.board-immersive .board-template-head {
    grid-template-columns: 190px minmax(320px, 1fr) 120px;
  }

  body.board-immersive .member-board.board-template-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 760px) {
  body.board-immersive .community-shell.board-template-page {
    width: min(100% - 20px, 520px);
    padding-top: 18px;
  }

  body.board-immersive .board-template-head {
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-bottom: 20px;
  }

  body.board-immersive .board-mark {
    min-height: 62px;
  }

  body.board-immersive .board-mark img {
    max-width: 150px;
    max-height: 62px;
  }

  body.board-immersive .board-segment {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    height: 52px;
  }

  body.board-immersive .board-segment a {
    min-height: 42px !important;
    font-size: 0.92rem !important;
  }

  body.board-immersive .board-head-icons a {
    width: 38px;
    height: 38px;
    font-size: 1.32rem;
  }

  body.board-immersive .board-title-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.board-immersive .board-title-row h1 {
    font-size: 1.85rem;
    margin-bottom: 14px;
  }

  body.board-immersive .board-filter-pills {
    gap: 8px !important;
  }

  body.board-immersive .board-filter-pills a,
  body.board-immersive .board-map-btn {
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 0 13px !important;
    font-size: 0.86rem !important;
  }

  body.board-immersive .board-map-sort {
    grid-auto-flow: column;
    justify-items: start;
    align-items: center;
    min-width: 0;
  }

  body.board-immersive .member-board.board-template-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 132px;
    grid-auto-flow: row;
    gap: 9px;
  }

  body.board-immersive .board-profile-card.board-pkg-legend,
  body.board-immersive .board-profile-card.board-pkg-star {
    grid-column: 1 / -1;
    grid-row: span 3;
  }

  body.board-immersive .board-profile-card.board-pkg-hot {
    grid-column: 1 / -1;
    grid-row: span 3;
  }

  body.board-immersive .board-profile-card.board-pkg-vip,
  body.board-immersive .board-profile-card.board-pkg-free {
    grid-column: span 3;
    grid-row: span 2;
  }

  body.board-immersive .board-profile-card .board-info {
    right: 18px;
    bottom: 16px;
  }

  body.board-immersive .board-profile-card .board-info h2 {
    font-size: 1.38rem;
  }

  body.board-immersive .board-profile-card .board-info p {
    font-size: 0.86rem;
  }

  body.board-immersive .board-profile-card .board-stats span:nth-child(n+3) {
    display: none;
  }

  body.board-immersive .board-heart,
  body.board-immersive .board-wave {
    width: 38px !important;
    height: 38px !important;
  }

  body.board-immersive .board-bottom-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  body.board-immersive .board-bottom-strip > div {
    border-right: none;
    border-bottom: 1px solid rgba(229, 196, 103, 0.16);
    padding: 0 0 12px;
    margin-right: 0;
    width: 100%;
  }

  body.board-immersive .board-bottom-strip > div:last-of-type {
    border-bottom: none;
  }

  body.board-immersive .board-app-dock {
    min-height: 76px;
    padding: 8px 10px 10px;
    border-radius: 22px 22px 0 0;
  }

  body.board-immersive .board-app-dock i {
    font-size: 1.45rem;
  }

  body.board-immersive .board-app-dock a.active i {
    font-size: 1.72rem;
  }
}

@media (max-width: 1240px) {
  .feed-pro-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .feed-right-rail {
    display: none;
  }
}

@media (max-width: 860px) {
  .feed-pro-header {
    grid-template-columns: 1fr;
    min-height: 210px;
    padding: 24px;
  }

  .feed-header-actions {
    justify-content: flex-start;
  }

  .feed-pro-layout {
    grid-template-columns: 1fr;
  }

  .feed-left-rail {
    position: static;
  }

  .profile-panel {
    display: none;
  }

  .feed-nav-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    gap: 8px;
  }

  .feed-nav-card a {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .feed-pro-page {
    width: min(100% - 20px, 520px);
    padding-top: 14px;
  }

  .feed-brand-block h1 {
    font-size: 2.45rem;
  }

  .feed-stats-strip {
    grid-template-columns: 1fr;
  }

  .feed-stats-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(229, 196, 103, 0.14);
  }

  .feed-stats-strip div:last-child {
    border-bottom: 0;
  }

  .composer-actions {
    justify-content: stretch;
  }

  .composer-actions .btn-community,
  .composer-actions .upload-pill,
  .composer-actions .community-select {
    width: 100%;
  }
}

/* Final Board masonry: package controls visual weight, columns control balance */
body.board-immersive .member-board.board-template-grid {
  display: block;
  column-count: 3;
  column-gap: 14px;
}

body.board-immersive .member-board.board-template-grid .board-profile-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  break-inside: avoid;
  grid-column: auto !important;
  grid-row: auto !important;
  vertical-align: top;
}

body.board-immersive .member-board.board-template-grid .board-pkg-legend,
body.board-immersive .member-board.board-template-grid .board-pkg-star {
  height: 400px;
}

body.board-immersive .member-board.board-template-grid .board-pkg-hot {
  height: 400px;
  border: unset !important;
}

body.board-immersive .member-board.board-template-grid .board-pkg-hot::before {
  content:url('/images/frame12.png');
  padding: 0px;
  margin: -2px 0px 0px -22px;
  border: unset;
  box-shadow:unset;
  background:unset;
}

body.board-immersive .member-board.board-template-grid .board-pkg-vip {
  height: 400px;
  border: unset !important;
}

body.board-immersive .member-board.board-template-grid .board-pkg-vip::before {
  content:url('/images/frame11.png');
  padding: 0px;
  margin: -2px 0px 0px -22px;
  border: unset;
  box-shadow:unset;
  background:unset;
}

body.board-immersive .member-board.board-template-grid .board-pkg-free {
  height: 220px;
}

@media (max-width: 980px) {
  body.board-immersive .member-board.board-template-grid {
    column-count: 2;
  }
}

@media (max-width: 760px) {
  body.board-immersive .member-board.board-template-grid {
    column-count: 1;
    column-gap: 0;
  }

  body.board-immersive .member-board.board-template-grid .board-pkg-legend,
  body.board-immersive .member-board.board-template-grid .board-pkg-star,
  body.board-immersive .member-board.board-template-grid .board-pkg-hot {
    height: 430px;
  }

  body.board-immersive .member-board.board-template-grid .board-pkg-vip,
  body.board-immersive .member-board.board-template-grid .board-pkg-free {
    height: 300px;
  }
}

/* Board filter row matched to reference */
body.board-immersive .board-title-row h1 {
  color: #e9cf98;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 18px;
  text-shadow: 0 0 18px rgba(229, 196, 103, 0.08);
}

body.board-immersive .board-title-row h1 span {
  color: #fff1c2;
  font-size: 0.82em;
  margin-left: 6px;
  text-shadow: 0 0 18px rgba(229, 196, 103, 0.72);
}

body.board-immersive .board-filter-pills {
  gap: 14px !important;
  align-items: center;
}

body.board-immersive .board-filter-pills a {
  min-width: 108px !important;
  min-height: 46px !important;
  padding: 0 20px !important;
  color: #ecd9b4;
  border: 1px solid rgba(255, 232, 178, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(9, 9, 9, 0.86), rgba(2, 2, 2, 0.76)) padding-box,
    linear-gradient(120deg, rgba(255, 232, 178, 0.06), rgba(255, 232, 178, 0.18), rgba(255, 232, 178, 0.05)) border-box;
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.012),
    0 10px 24px rgba(0, 0, 0, 0.22);
  font-size: 1rem !important;
  font-weight: 500;
}

body.board-immersive .board-filter-pills a.active {
  color: #fff2d0;
  border-color: rgba(255, 218, 140, 0.82);
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 219, 137, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(21, 15, 9, 0.92), rgba(4, 4, 4, 0.82));
  box-shadow:
    0 0 0 1px rgba(255, 219, 137, 0.08),
    0 0 22px rgba(229, 196, 103, 0.18),
    inset 0 0 20px rgba(229, 196, 103, 0.08);
}

body.board-immersive .board-filter-pills a:hover {
  color: #fff2d0;
  border-color: rgba(255, 218, 140, 0.55);
}

body.board-immersive .board-filter-pills a .bi {
  color: #e6bf66;
  font-size: 1.05rem;
}

body.board-immersive .board-filter-pills a .bi-circle-fill {
  color: transparent;
  width: 13px;
  height: 13px;
  border: 2px solid #53e57a;
  border-radius: 50%;
  filter: drop-shadow(0 0 6px rgba(83, 229, 122, 0.45));
}

body.board-immersive .board-filter-pills a.active .bi-circle-fill {
  background: #53e57a;
  box-shadow: 0 0 9px rgba(83, 229, 122, 0.75);
}

@media (max-width: 760px) {
  body.board-immersive .board-filter-pills {
    gap: 8px !important;
  }

  body.board-immersive .board-filter-pills a {
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 0 13px !important;
    font-size: 0.86rem !important;
  }
}

/* Center top segmented navigation labels */
body.board-immersive .board-segment {
  align-items: stretch;
}

body.board-immersive .board-segment a {
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
  height: 100% !important;
  text-align: center !important;
}
