/* =========================================================
   LION LINK — COMPLETE STYLES
   ========================================================= */

:root {
  --ink: #12251c;
  --muted: #718096;
  --line: #e3ece6;
  --paper: #ffffff;
  --bg: #f6faf7;
  --gold: #007a3d;
  --gold-dark: #005f30;
  --cream: #eaf7ef;
  --green: #007a3d;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
}

button,
input,
textarea,
select {
  font-family: "DM Sans", Arial, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.app-shell {
  display: grid;
  grid-template-columns: 244px minmax(460px, 640px) 300px;
  gap: 28px;
  max-width: 1270px;
  margin: auto;
  min-height: 100vh;
}

.sidebar {
  padding: 30px 10px 20px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  background: var(--paper);
  border-inline: 1px solid var(--line);
  min-height: 100vh;
}

.right-rail {
  padding-top: 28px;
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 700;
  padding: 0 15px;
}

.brand b {
  color: var(--gold-dark);
}

.brand-mark {
  font-family: "Playfair Display";
  background: var(--gold);
  width: 33px;
  height: 33px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.main-nav {
  display: grid;
  gap: 6px;
  margin-top: 45px;
}

.nav-link {
  cursor: pointer;
  border: 0;
  background: none;
  color: #5d6778;
  text-align: left;
  font: 600 16px "DM Sans";
  border-radius: 10px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-link span {
  font-size: 22px;
  width: 22px;
  text-align: center;
}

.nav-link:hover,
.nav-link.active {
  background: var(--cream);
  color: var(--gold-dark);
}

.nav-link i {
  margin-left: auto;
  background: var(--gold);
  color: white;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
  font-style: normal;
}

.sidebar-actions {
  display: grid;
}

.theme-toggle {
  margin: 0 15px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  font: 600 13px "DM Sans";
  cursor: pointer;
}

.theme-toggle span {
  margin-right: 7px;
  color: var(--gold-dark);
}

.post-button,
.small-post {
  cursor: pointer;
  border: 0;
  color: #fff;
  background: var(--gold);
  font: 700 15px "DM Sans";
  border-radius: 10px;
  transition: 0.2s;
}

.post-button {
  padding: 13px;
  margin: 28px 15px;
}

.post-button:hover,
.small-post:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.account {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 15px;
  border-radius: 12px;
}

.account:hover {
  background: var(--cream);
}

.account strong,
.account small {
  display: block;
  font-size: 13px;
}

.account small {
  color: var(--muted);
  font-size: 12px;
}

.account button {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}


/* =========================================================
   AVATARS
   ========================================================= */

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-gold {
  background: #d7f0df;
  color: #005f30;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.page-header {
  height: 116px;
  padding: 29px 27px 20px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--gold-dark);
  letter-spacing: 1.2px;
  font-size: 10px;
  font-weight: 700;
  margin: 0 0 5px;
}

.page-header h1 {
  font: 700 28px "Playfair Display";
  margin: 0;
}

.icon-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  padding: 6px 10px;
}


/* =========================================================
   VIEWS
   ========================================================= */

.view {
  display: none;
}

.view.active {
  display: block;
}


/* =========================================================
   ANNOUNCEMENT STRIP
   ========================================================= */

.announcement-strip {
  margin: 20px 24px 6px;
  padding: 14px;
  display: flex;
  gap: 12px;
  background: var(--cream);
  border: 1px solid #ccebd7;
  border-radius: 11px;
}

.megaphone {
  font-size: 21px;
}

.announcement-strip span {
  display: block;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.announcement-strip strong {
  font-size: 14px;
}

.announcement-strip p {
  font-size: 12px;
  color: #4c715b;
  margin: 2px 0 0;
}

.close-strip {
  margin-left: auto;
  align-self: start;
  border: 0;
  background: none;
  font-size: 22px;
  color: #9c8d69;
  cursor: pointer;
}


/* =========================================================
   COMPOSER
   ========================================================= */

.composer {
  display: flex;
  padding: 22px 24px 15px;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.composer-body {
  width: 100%;
}

textarea {
  border: 0;
  outline: 0;
  resize: none;
  width: 100%;
  height: 63px;
  font: 15px "DM Sans";
  color: var(--ink);
  background: transparent;
}

textarea::placeholder {
  color: #9ba5b3;
}

.composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tool-button {
  border: 0;
  background: none;
  color: var(--gold-dark);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 6px;
}

.composer-footer span {
  color: #a0a9b5;
  font-size: 11px;
  margin-left: 7px;
}

.small-post {
  padding: 8px 20px;
  font-size: 13px;
}

.small-post:disabled {
  background: #e1e5e9;
  color: #a0a6ad;
  cursor: default;
  transform: none;
}


/* =========================================================
   FEED
   ========================================================= */

.feed-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px 10px;
  color: #778292;
  font-size: 12px;
  font-weight: 600;
}

.feed-label button,
.card-heading button {
  border: 0;
  background: none;
  color: var(--gold-dark);
  font: 600 11px "DM Sans";
  cursor: pointer;
}

.post {
  padding: 19px 25px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
}

.post-content {
  min-width: 0;
  flex: 1;
}

.post-meta {
  font-size: 13px;
}

.post-meta strong {
  margin-right: 4px;
}

.post-meta span {
  color: var(--muted);
  font-size: 12px;
}

.post-text {
  font-size: 14px;
  line-height: 1.5;
  margin: 7px 0 13px;
  white-space: pre-wrap;
}

.post-image {
  height: 154px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    #004c27,
    #159457
  );
  display: flex;
  align-items: end;
  padding: 17px;
  color: #fff;
  font: 700 22px "Playfair Display";
  margin-bottom: 13px;
}

.profile-link {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.profile-link:hover {
  opacity: 0.75;
}

.post-avatar {
  padding: 0;
}

.post-actions {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 20px;
}

.action {
  border: 0;
  background: none;
  color: #85909f;
  font: 12px "DM Sans";
  cursor: pointer;
  padding: 0;
}

.action:hover,
.action.liked {
  color: var(--gold);
}


/* =========================================================
   POST MEDIA
   ========================================================= */

.post-media {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 13px;
  background: #eef3ef;
  display: grid;
  gap: 3px;
  height: 270px;
}

.gallery-1 {
  grid-template-columns: 1fr;
}

.gallery-2 {
  grid-template-columns: 1fr 1fr;
}

.gallery-3,
.gallery-4 {
  grid-template-columns: 1fr 1fr;
}

.gallery-3 .gallery-item:first-child {
  grid-row: span 2;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: #dfe9e2;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-more {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 40, 20, 0.62);
  color: #fff;
  font-size: 29px;
  font-weight: 700;
  cursor: pointer;
}


/* =========================================================
   MEDIA PREVIEW
   ========================================================= */

.media-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 5px 0 12px;
  border-radius: 10px;
}

.media-preview > div {
  position: relative;
  height: 83px;
  overflow: hidden;
  border-radius: 7px;
}

.media-preview img,
.media-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-preview button {
  position: absolute;
  right: 6px;
  top: 6px;
  z-index: 2;
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}


/* =========================================================
   RIGHT RAIL
   ========================================================= */

.rail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 17px;
  padding: 18px;
}

.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.card-heading h2 {
  font: 700 17px "Playfair Display";
  margin: 0;
}

.event {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.event time {
  width: 35px;
  text-align: center;
  border-radius: 7px;
  background: var(--cream);
  height: 43px;
  display: grid;
  line-height: 1;
}

.event time b {
  font-size: 9px;
  color: var(--gold);
  padding-top: 7px;
}

.event time strong {
  font-size: 16px;
}

.event strong {
  font-size: 12px;
}

.event p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 10px;
}

.person {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
}

.person > div {
  flex: 1;
  min-width: 0;
}

.person-name {
  display: block;
  font-size: 11px;
  font-weight: 700;
}

.person small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.follow-small {
  border: 1px solid var(--gold);
  border-radius: 7px;
  background: #fff;
  color: var(--gold-dark);
  font: 700 10px "DM Sans";
  padding: 5px 8px;
  cursor: pointer;
}

.follow-small.following {
  background: var(--cream);
}

footer {
  font-size: 10px;
  color: #9ba5b1;
  padding: 4px;
}


/* =========================================================
   ANNOUNCEMENTS
   ========================================================= */

.announcement-hero {
  margin: 22px 25px;
  background: linear-gradient(
    110deg,
    #004c27,
    #008f49
  );
  color: white;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.announcement-hero span {
  font-size: 33px;
}

.announcement-hero h2 {
  font: 700 21px "Playfair Display";
  margin: 0;
}

.announcement-hero p {
  font-size: 12px;
  margin: 5px 0 0;
  color: #e1f6e9;
}

.announcement-list {
  padding: 0 24px;
}

.announcement-card {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  gap: 14px;
}

.announcement-card .date {
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
  min-width: 60px;
}

.announcement-card h3 {
  font-size: 15px;
  margin: 0 0 5px;
}

.announcement-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.official-label {
  color: var(--gold-dark);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.admin-entry {
  display: block;
  width: calc(100% - 48px);
  margin: 0 24px 18px;
  border: 1px dashed var(--gold);
  border-radius: 9px;
  background: var(--cream);
  color: var(--gold-dark);
  padding: 10px;
  font: 700 12px "DM Sans";
  cursor: pointer;
}


/* =========================================================
   MESSAGES — WHATSAPP STYLE
   ========================================================= */

.messages-layout {
  height: 100vh;
  min-height: 0;
}

.chat-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  height: calc(100vh - 116px);
  min-height: 0;
  overflow: hidden;
}

.conversation-list {
  border-right: 1px solid var(--line);
  padding: 14px 10px;
  min-width: 0;
  overflow-y: auto;
}

.search {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
  color: var(--muted);
  display: flex;
  gap: 5px;
  margin-bottom: 7px;
}

.search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 11px "DM Sans";
}

.conversation {
  display: flex;
  gap: 9px;
  padding: 12px 6px;
  border-radius: 9px;
  cursor: pointer;
}

.conversation:hover,
.conversation.selected {
  background: var(--cream);
}

.conversation-info {
  min-width: 0;
  flex: 1;
}

.conversation-top {
  display: flex;
  align-items: center;
  gap: 5px;
}

.conversation-name {
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.conversation p {
  margin: 3px 0 0;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a05d;
  flex: none;
}

.chat-panel {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-empty {
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
}

.chat-empty span {
  font-size: 36px;
}

.chat-empty h2 {
  font: 700 20px "Playfair Display";
  color: var(--ink);
  margin: 8px 0 2px;
}

.chat-empty p {
  font-size: 12px;
  margin: 0;
}

#active-chat {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chat-header {
  flex: none;
  min-height: 68px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.chat-header .avatar {
  width: 42px;
  height: 42px;
}

.chat-header-info {
  min-width: 0;
  flex: 1;
}

.chat-header-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.chat-header small {
  display: block;
  margin-top: 3px;
  color: var(--green);
  font-size: 10px;
}

.chat-more {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}

.messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: var(--paper);
  scroll-behavior: smooth;
}

.message-row {
  display: flex;
  width: 100%;
}

.message-row.mine {
  justify-content: flex-end;
}

.bubble {
  max-width: min(75%, 420px);
  padding: 8px 10px 5px;
  border-radius: 13px;
  background: #f0f3f6;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
}

.message-row:not(.mine) .bubble {
  border-bottom-left-radius: 4px;
}

.message-row.mine .bubble {
  background: #d7f0df;
  border-bottom-right-radius: 4px;
}

.message-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.message-time {
  display: block;
  text-align: right;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.message-media {
  max-width: 300px;
  margin-bottom: 5px;
}

.message-media img,
.message-media video {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 9px;
}

.chat-compose {
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.chat-compose input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 11px 15px;
  outline: none;
  background: var(--paper);
  color: var(--ink);
  font: 12px "DM Sans";
}

.chat-media-picker {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-dark);
  cursor: pointer;
  font-size: 17px;
}

.chat-send {
  width: 42px;
  height: 42px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  cursor: pointer;
  font-size: 16px;
}

.chat-media-picker {
  width: 38px;
  height: 38px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--gold-dark);
  cursor: pointer;
  font-size: 17px;
}

.chat-media-preview {
  display: none;
  flex: none;
  gap: 6px;
  padding: 7px 10px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  overflow-x: auto;
}

.chat-media-preview.has-media {
  display: flex;
}

.chat-preview-item {
  position: relative;
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 8px;
  overflow: hidden;
}

.chat-preview-item img,
.chat-preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-preview-item button {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 21px;
  height: 21px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  cursor: pointer;
}

.empty-chat-message {
  margin: auto;
  max-width: 250px;
  text-align: center;
  color: var(--muted);
}

.empty-chat-message span {
  font-size: 30px;
}

.empty-chat-message p {
  font-size: 11px;
}


/* =========================================================
   PROFILE
   ========================================================= */

.profile-cover {
  height: 150px;
  background:
    linear-gradient(
      120deg,
      #004c27,
      #007a3d 55%,
      #43a866
    );
  background-position: center;
  background-size: cover;
}

.profile-content {
  padding: 0 25px 18px;
}

.profile-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.profile-avatar {
  width: 104px;
  height: 104px;
  border: 4px solid var(--paper);
  font-size: 25px;
  margin-top: -52px;
  position: relative;
  z-index: 2;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-buttons {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.edit-profile,
.message-profile,
.follow-profile {
  margin-top: 14px;
  min-width: 90px;
  border-radius: 8px;
  padding: 8px 14px;
  font: 700 12px "DM Sans";
  cursor: pointer;
  transition: 0.2s;
}

.edit-profile {
  border: 1px solid var(--gold);
  background: var(--paper);
  color: var(--gold-dark);
}

.message-profile {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: white;
}

.follow-profile {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: white;
}

.follow-profile.following {
  background: var(--paper);
  color: var(--gold-dark);
}

.profile-content h1 {
  font: 700 25px "Playfair Display";
  margin: 9px 0 0;
}

.profile-handle,
.profile-bio,
.profile-meta {
  font-size: 13px;
  margin: 3px 0;
  color: var(--muted);
}

.profile-bio {
  margin-top: 14px;
  color: var(--ink);
}

.profile-meta {
  margin-top: 10px;
}

.profile-stats {
  display: flex;
  gap: 17px;
  font-size: 12px;
  margin-top: 14px;
}

.profile-stats b {
  color: var(--ink);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.profile-links button,
.profile-links a {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--gold-dark);
  padding: 6px 8px;
  font: 600 10px "DM Sans";
  text-decoration: none;
  cursor: pointer;
}

.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
}

.profile-tabs button {
  flex: 1;
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 12px "DM Sans";
  padding: 13px 3px;
  cursor: pointer;
}

.profile-tabs button.selected {
  color: var(--gold-dark);
  border-bottom: 2px solid var(--gold);
}

.empty-profile {
  padding: 25px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}


/* =========================================================
   COMMENTS
   ========================================================= */

.comment-thread {
  border-top: 1px solid var(--line);
  margin-top: 13px;
  padding-top: 10px;
}

.comment {
  padding: 5px 0;
}

.comment-line { position: relative; display: flex; align-items: start; gap: 6px; }
.comment-line p { flex: 1; }
.comment-more { padding: 2px 0 2px 8px !important; letter-spacing: 1px; }
.comment-menu { position: absolute; right: 0; top: 26px; z-index: 4; min-width: 90px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.comment-menu button { display: block; width: 100%; padding: 6px !important; text-align: left; }

.comment p {
  font-size: 12px;
  margin: 6px 0;
}

.comment button {
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 10px "DM Sans";
  padding: 0 10px 0 0;
  cursor: pointer;
}

.comment-author {
  font-weight: 700 !important;
}

.comment-thread form {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}

.comment-thread input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  font: 12px "DM Sans";
  background: var(--paper);
  color: var(--ink);
}

.comment-thread form button {
  border: 0;
  border-radius: 7px;
  background: var(--gold);
  color: #fff;
  padding: 0 10px;
}

.replying-to,
.reply-indicator {
  display: block;
  color: var(--gold-dark);
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 3px;
}


/* =========================================================
   ADMIN
   ========================================================= */

.admin-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-dark);
  background: var(--cream);
  padding: 5px 8px;
  border-radius: 6px;
}

.admin-panel {
  margin: 22px 24px;
  padding: 20px;
  border: 1px solid #ccebd7;
  border-radius: 12px;
  background: var(--cream);
}

.admin-panel h2 {
  font: 700 19px "Playfair Display";
  margin: 0;
}

.admin-panel p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 16px;
}

.admin-panel input,
.admin-panel textarea {
  display: block;
  width: 100%;
  border: 1px solid #c7ddcd;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px;
  margin: 8px 0;
  font: 13px "DM Sans";
}

.admin-panel textarea {
  height: 75px;
  resize: vertical;
}

.admin-posts {
  padding: 0 24px;
}

.admin-posts h2 {
  font: 700 18px "Playfair Display";
}

.admin-announcement {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 13px 0;
  font-size: 13px;
}

.admin-announcement p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0;
}

.admin-announcement button {
  height: max-content;
  border: 0;
  background: none;
  color: #bd3030;
  font: 600 11px "DM Sans";
  cursor: pointer;
}


/* =========================================================
   MODALS
   ========================================================= */

.media-modal,
.edit-modal {
  position: fixed;
  z-index: 30;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  padding: 35px 14px;
  overflow: auto;
}

.media-modal[hidden],
.edit-modal[hidden] {
  display: none;
}

.modal-close {
  position: fixed;
  z-index: 2;
  right: 18px;
  top: 15px;
  width: 35px;
  height: 35px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #18202e;
  font-size: 25px;
  cursor: pointer;
}

.modal-media {
  max-width: 850px;
  margin: 0 auto 16px;
}

.modal-media img,
.modal-media video {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: auto;
  border-radius: 9px;
}

.edit-modal {
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.75);
}

.edit-card {
  position: relative;
  width: min(400px, 100%);
  background: var(--paper);
  color: var(--ink);
  padding: 28px;
  border-radius: 14px;
}

.edit-card h2 {
  font: 700 22px "Playfair Display";
  margin: 0 0 15px;
}

.edit-card label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 10px 0;
}

.edit-card input,
.edit-card textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 9px;
  font: 13px "DM Sans";
}

.edit-card textarea {
  height: 75px;
  resize: vertical;
}


/* =========================================================
   LOGIN
   ========================================================= */

.login-overlay {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: rgba(0, 48, 25, 0.62);
  display: grid;
  place-items: center;
  padding: 18px;
  backdrop-filter: blur(4px);
  overflow-y: auto;
}

.login-overlay.hidden {
  display: none;
}

.login-card {
  width: min(390px, 100%);
  box-sizing: border-box;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
}

.login-card .brand-mark {
  display: inline-grid;
}

.login-card h1 {
  font: 700 26px "Playfair Display";
  margin: 15px 0 6px;
}

.login-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 22px;
}

.login-card label {
  text-align: left;
  display: block;
  color: #425246;
  font-size: 12px;
  font-weight: 700;
  margin-top: 13px;
}

.login-card input,
.login-card select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dce8df;
  border-radius: 8px;
  margin-top: 6px;
  padding: 10px;
  font: 14px "DM Sans";
  outline-color: var(--gold);
}

.login-card .post-button {
  width: 100%;
  margin: 22px 0 12px;
}

.login-card small {
  font-size: 10px;
  color: var(--muted);
}

@media (max-width: 480px) {
  .login-overlay {
    align-items: start;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }

  .login-card {
    margin: auto 0;
    padding: 22px 18px;
    border-radius: 14px;
  }

  .login-card h1 {
    font-size: 23px;
    margin-top: 12px;
  }

  .login-card p {
    margin-bottom: 16px;
  }

  .login-card label {
    margin-top: 10px;
  }

  .login-card input,
  .login-card select {
    min-height: 42px;
    padding: 9px 10px;
  }

  .login-card .post-button {
    margin: 18px 0 10px;
  }
}

@media (max-height: 650px) {
  .login-overlay {
    place-items: start center;
  }

  .login-card {
    margin: 12px 0;
  }
}


/* =========================================================
   EVENTS
   ========================================================= */

.placeholder-view {
  text-align: center;
  padding-top: 140px;
}

.placeholder-view > span {
  font-size: 40px;
  color: var(--gold);
}

.placeholder-view h1 {
  font: 700 28px "Playfair Display";
  margin: 8px;
}

.placeholder-view p {
  color: var(--muted);
  font-size: 13px;
}


/* =========================================================
   TOAST
   ========================================================= */

.toast {
  position: fixed;
  z-index: 100;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #18202e;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}


/* =========================================================
   MOBILE HEADER
   ========================================================= */

.mobile-header {
  display: none;
}

.mobile-theme {
  display: none;
}

.bottom-nav {
  display: none;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

  .app-shell {
    grid-template-columns:
      215px
      minmax(460px, 640px);

    max-width: 880px;
  }

  .right-rail {
    display: none;
  }
}


@media (max-width: 700px) {

  body {
    padding-bottom: 64px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    border: 0;
    min-height: 100vh;
  }

  .mobile-header {
    height: 62px;
    display: flex;
    padding: 12px 16px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: var(--paper);
    z-index: 5;
  }

  .mobile-header .brand {
    padding: 0;
    font-size: 19px;
  }

  .mobile-theme {
    display: block;
    background: var(--cream);
    color: var(--gold-dark);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 17px;
    width: 35px;
    height: 35px;
  }

  .page-header {
    height: 97px;
    padding: 21px 18px 15px;
  }

  .page-header h1 {
    font-size: 25px;
  }

  .announcement-strip {
    margin-left: 15px;
    margin-right: 15px;
    padding: 12px;
  }

  .composer {
    margin: 0;
    padding: 18px 15px 13px;
  }

  .feed-label {
    padding-left: 15px;
    padding-right: 15px;
  }

  .post {
    padding: 17px 15px;
  }

  .post-media {
    height: 220px;
  }

  .media-preview {
    grid-template-columns: repeat(3, 1fr);
  }

  .media-preview > div {
    height: 72px;
  }

  .bottom-nav {
    display: flex;
    position: fixed;
    z-index: 50;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    justify-content: space-around;
  }

  .bottom-nav button {
    border: 0;
    background: none;
    color: var(--muted);
    font: 600 10px "DM Sans";
    display: grid;
    place-content: center;
    gap: 2px;
    min-width: 58px;
  }

  .bottom-nav button span {
    font-size: 19px;
  }

  .bottom-nav button.active {
    color: var(--gold-dark);
  }


  /* ---------- MOBILE MESSAGES LIST ---------- */

  .messages-layout {
    height: auto;
    min-height: calc(100vh - 62px);
  }

  .messages-layout:not(.chat-open)
    .chat-shell {

    display: block;
    height: auto;
    overflow: visible;
  }

  .messages-layout:not(.chat-open)
    .conversation-list {

    border: 0;
    padding: 10px;
  }

  .messages-layout:not(.chat-open)
    .conversation {

    padding: 12px 8px;
    border-radius: 10px;
  }

  .messages-layout:not(.chat-open)
    .conversation .avatar {

    width: 44px;
    height: 44px;
  }


  /* ---------- MOBILE OPEN CHAT ---------- */

  .messages-layout.chat-open {
    position: fixed;
    inset: 62px 0 64px 0;
    height: auto;
    min-height: 0;
    z-index: 20;
    background: var(--paper);
  }

  .messages-layout.chat-open
    .page-header {

    display: none;
  }

  .messages-layout.chat-open
    .chat-shell {

    display: block;
    height: 100%;
    overflow: hidden;
  }

  .messages-layout.chat-open
    .conversation-list {

    display: none;
  }

  .messages-layout.chat-open
    .chat-panel {

    height: 100%;
    width: 100%;
  }

  .messages-layout.chat-open
    #active-chat {

    height: 100%;
  }

  .chat-header {
    min-height: 60px;
    padding: 8px 10px;
  }

  .chat-header .avatar {
    width: 38px;
    height: 38px;
  }

  .chat-back {
    display: block;
    border: 0;
    background: none;
    color: var(--gold-dark);
    font-size: 31px;
    line-height: 1;
    cursor: pointer;
  }

  .messages {
    padding: 12px 10px;
  }

  .bubble {
    max-width: 82%;
    font-size: 13px;
  }

  .message-media {
    max-width: 240px;
  }

  .chat-compose {
    padding: 7px;
  }

  .chat-compose input {
    min-width: 0;
    padding: 10px 13px;
  }

  .chat-send {
    width: 40px;
    height: 40px;
  }

  .chat-media-picker {
    width: 36px;
    height: 36px;
  }


  /* ---------- MOBILE PROFILE ---------- */

  .profile-cover {
    height: 118px;
  }

  .profile-content {
    padding-inline: 16px;
  }

  .profile-avatar {
    width: 88px;
    height: 88px;
    margin-top: -44px;
  }

  .profile-buttons {
    max-width: 60%;
  }

  .profile-content h1 {
    font-size: 23px;
  }

  .profile-tabs {
    padding-inline: 6px;
  }

  .profile-links {
    margin-bottom: 5px;
  }


  /* ---------- MOBILE ADMIN ---------- */

  .admin-entry {
    width: calc(100% - 30px);
    margin-inline: 15px;
  }

  .admin-panel,
  .admin-posts {
    margin-left: 15px;
    margin-right: 15px;
  }

  .admin-panel {
    padding: 16px;
  }
}


/* =========================================================
   TRUE BLACK DARK MODE
   ========================================================= */

body.dark {

  --ink: #ffffff;
  --muted: #9ca3af;
  --line: #252525;
  --paper: #000000;
  --bg: #000000;
  --cream: #111111;
  --gold: #00a94f;
  --gold-dark: #00c761;
  --green: #00c761;

  background: #000;
  color: #fff;
}

body.dark,
body.dark .app-shell,
body.dark .main-content,
body.dark .sidebar,
body.dark .right-rail,
body.dark .mobile-header,
body.dark .bottom-nav,
body.dark .rail-card {
  background: #000;
}

body.dark .main-content {
  border-color: #252525;
}

body.dark .brand,
body.dark .brand b,
body.dark .page-header h1,
body.dark .profile-content h1,
body.dark .chat-empty h2,
body.dark .card-heading h2,
body.dark .placeholder-view h1 {
  color: #fff;
}

body.dark .nav-link {
  color: #aaa;
}

body.dark .nav-link:hover,
body.dark .nav-link.active {
  background: #111;
  color: #fff;
}

body.dark .account:hover,
body.dark .conversation:hover,
body.dark .conversation.selected {
  background: #111;
}

body.dark .icon-button,
body.dark .theme-toggle,
body.dark .edit-profile,
body.dark .profile-links button,
body.dark .profile-links a {
  background: #000;
  color: #fff;
  border-color: #333;
}

body.dark .composer,
body.dark .post,
body.dark .page-header,
body.dark .event,
body.dark .profile-tabs,
body.dark .chat-header,
body.dark .chat-compose,
body.dark .conversation-list {
  border-color: #252525;
}

body.dark textarea,
body.dark input,
body.dark select,
body.dark .search input,
body.dark .chat-compose input {
  background: #000;
  color: #fff;
}

body.dark textarea::placeholder,
body.dark input::placeholder {
  color: #777;
}

body.dark .announcement-strip,
body.dark .admin-panel,
body.dark .chat-media-preview {
  background: #111;
}

body.dark .bubble {
  background: #1a1a1a;
  color: #fff;
}

body.dark .message-row.mine .bubble {
  background: #075e3c;
  color: #fff;
}

body.dark .avatar-gold {
  background: #123d29;
  color: #8ff0b8;
}

body.dark .profile-cover {
  background: #111;
}

body.dark .follow-profile.following {
  background: #000;
  color: #00c761;
  border-color: #555;
}

body.dark .follow-small {
  background: #000;
  color: #00c761;
}

body.dark .follow-small.following {
  background: #111;
}

body.dark .login-overlay {
  background: rgba(0, 0, 0, 0.94);
}

body.dark .login-card,
body.dark .edit-card {
  background: #000;
  color: #fff;
}

body.dark .login-card input,
body.dark .login-card select {
  background: #000;
  color: #fff;
  border-color: #333;
}

body.dark .admin-panel input,
body.dark .admin-panel textarea {
  background: #000;
  color: #fff;
  border-color: #333;
}

body.dark .chat-media-picker {
  background: #111;
  color: #00c761;
}

body.dark .media-preview,
body.dark .post-media {
  background: #111;
}

/* =========================================================
   PROFILE ACTION BUTTONS
   ========================================================= */

.profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.profile-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-buttons button {
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #d8d8d8;
  background: white;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.profile-buttons .follow-profile {
  background: #007a3d;
  color: white;
  border-color: #007a3d;
}

.profile-buttons .follow-profile.following {
  background: white;
  color: #007a3d;
  border-color: #007a3d;
}

.profile-buttons .edit-profile {
  background: #007a3d;
  color: white;
  border-color: #007a3d;
}

.profile-buttons .message-profile {
  background: white;
  color: #222;
}

.profile-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 18px 0;
}

.profile-stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.profile-stats b {
  font-size: 16px;
}

@media (max-width: 600px) {

  .profile-top {
    align-items: flex-start;
  }

  .profile-buttons {
    gap: 6px;
  }

  .profile-buttons button {
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }

}

#logout { color: #bd3030; border-color: #e7aaaa; }
.account { border: 0; text-align: left; cursor: pointer; width: 100%; }
.account-wrap { position: relative; }.story-add { position:absolute; left:28px; top:25px; width:19px; height:19px; border-radius:50%; background:#007a3d; color:#fff; display:grid; place-items:center; cursor:pointer; font-weight:700; }
.profile-avatar-wrap { position: relative; display: inline-block; }
.profile-story-add { position: absolute; right: -4px; bottom: 0; width: 23px; height: 23px; border: 2px solid #fff; border-radius: 50%; background: #007a3d; color: #fff; display: grid; place-items: center; cursor: pointer; font-weight: 700; line-height: 1; }
.profile-avatar.has-story { outline: 3px solid #e4aa24; outline-offset: 3px; }
.profile-name { cursor: pointer; }
.post-actions .action { font-size: 15px; padding: 8px 10px; }
.comment button { font-size: 14px; padding: 5px 7px; }
.announcement-media { display: block; width: min(100%, 440px); max-height: 360px; margin-top: 12px; border-radius: 12px; object-fit: cover; }
footer button { appearance: none; border: 0; padding: 0; background: none; color: inherit; cursor: pointer; font: inherit; }
.people-results { margin-top: 14px; max-height: 50vh; overflow: auto; }
.mobile-drawer,.drawer-scrim { display: none; }
.mobile-drawer[hidden],.drawer-scrim[hidden] { display: none !important; }
@media (max-width: 800px) {
  .mobile-drawer { display: block; position: fixed; top: 0; bottom: 0; z-index: 90; width: min(82vw, 340px); padding: 78px 18px 24px; overflow-y: auto; background: var(--paper, #fff); box-shadow: 0 0 28px rgba(0,0,0,.25); }
  .mobile-left { left: 0; }.mobile-right { right: 0; }
  .mobile-drawer button { width: 100%; padding: 13px 8px; text-align: left; border: 0; border-bottom: 1px solid #eee; background: transparent; color: inherit; font: inherit; }
  .mobile-drawer h2 { margin: 18px 0 8px; font-size: 16px; }.mobile-drawer p { font-size: 14px; }
  .drawer-account { margin-top: 18px; font-weight: 700; }.drawer-scrim { position: fixed; inset: 0; z-index: 80; border: 0; background: rgba(0,0,0,.34); }
}
.reels-card { width: min(520px, 100%); background: #000; color: #fff; }
.reels-card video { width: 100%; max-height: 70vh; border-radius: 10px; }
.reels-actions { display: flex; justify-content: space-between; margin-top: 12px; }
.reels-actions button { border: 0; border-radius: 8px; padding: 9px 12px; cursor: pointer; }
#floating-post { position: fixed; right: 25px; bottom: 25px; z-index: 40; width: 54px; height: 54px; padding: 0; border-radius: 50%; font-size: 28px; box-shadow: 0 5px 18px rgba(0,0,0,.25); }
.post-actions .liked { color: #007a3d; font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; overflow: hidden; border-radius: 12px; max-height: 420px; }
.gallery-1 { grid-template-columns: 1fr; }.gallery-item { position: relative; min-height: 170px; overflow: hidden; background: #eef2ee; }.gallery-item img,.gallery-item video { width: 100%; height: 100%; min-height: 170px; object-fit: cover; }.media-more { position:absolute; inset:0; border:0; background:rgba(0,0,0,.58); color:#fff; font-size:25px; font-weight:700; cursor:pointer; }
