/* =========================================================
   MEMBERS AREA — DISPATCH PORTAL 2026
   Cleaned and consolidated
========================================================= */

:root {
  --members-bg: rgba(4, 14, 30, 0.92);
  --members-bg-soft: rgba(8, 24, 46, 0.82);
  --members-panel: rgba(7, 20, 40, 0.9);
  --members-panel-soft: rgba(255, 255, 255, 0.045);
  --members-border: rgba(111, 177, 255, 0.24);
  --members-border-strong: rgba(111, 177, 255, 0.42);
  --members-cyan: #53d7ff;
  --members-blue: #4ea1ff;
  --members-blue-deep: #164f9f;
  --members-yellow: #f3ef32;
  --members-red: #ef4444;
  --members-green: #4ade80;
  --members-text: #eaf4ff;
  --members-muted: #a8bfd9;
  --members-shadow:
    0 24px 58px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --members-radius: 18px;
  --members-radius-large: 24px;
}

/* =========================================================
   GLOBAL MEMBER LAYOUT
========================================================= */

footer {
  margin-top: -60px;
}

.profile-menu {
  margin-top: 0px;
}

.members-main,
.members-directory-main,
.profile-main {
  width: min(1900px, calc(100% - 2rem));
  margin: 2.25rem auto 4rem;
}

.members-main {
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.profile-main {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 1.25rem;
  height: calc(100vh - 80px);
  min-height: 1000px;
  overflow: hidden;
  align-items: stretch;
}

.profile-sidebar,
.profile-content {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.profile-sidebar::-webkit-scrollbar,
.profile-content::-webkit-scrollbar {
  display: none;
}

.profile-content {
  min-width: 0;
}

.members-intro,
.register-card,
.login-card,
.profile-sidebar,
.profile-panel,
.members-directory-card,
.timeline-composer,
.timeline-post,
.tip-box,
.profile-statistics {
  border: 1px solid var(--members-border);
  border-radius: var(--members-radius-large);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.018)
    ),
    var(--members-panel);
  box-shadow: var(--members-shadow);
  backdrop-filter: blur(10px);
}

/* =========================================================
   FEEDBACK
========================================================= */

.feedback {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 900;
}

.feedback.success {
  color: var(--members-green);
}

.feedback.warning {
  color: #facc15;
}

.feedback.error {
  color: #ff8181;
}

/* =========================================================
   MEMBERS LANDING
========================================================= */

#Membertext {
  margin: 0 0 0.8rem;
  color: var(--members-yellow);
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-shadow:
    0 2px 0 #000,
    0 0 22px rgba(243, 239, 50, 0.2);
}

.members-intro {
  max-width: 980px;
  margin: 2.4rem auto 1.5rem;
  padding: 1.6rem 1.8rem;
  text-align: center;
}

.members-intro p {
  max-width: 820px;
  margin: 0 auto 0.85rem;
  color: var(--members-text);
  font-size: clamp(0.95rem, 1.35vw, 1.1rem);
  font-weight: 750;
  line-height: 1.65;
}

.members-intro p:last-child {
  margin-bottom: 0;
}

.members-actions {
  width: min(1120px, calc(100% - 2rem));
  margin: 1.5rem auto 3.5rem;
  display: grid;
  grid-template-columns:
    minmax(220px, 0.8fr)
    minmax(360px, 1.25fr)
    minmax(220px, 0.8fr);
  gap: 0.9rem;
  align-items: stretch;
}

.members-actions .member-card {
  min-height: 0;
  padding: 1.3rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid rgba(78, 161, 255, 0.28);
  border-radius: 18px;
  color: var(--members-text);
  text-decoration: none;
  text-align: center;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(78, 161, 255, 0.14),
      transparent 42%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.015)
    ),
    rgba(5, 15, 32, 0.94);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.members-actions .member-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background:
    linear-gradient(
      90deg,
      transparent,
      var(--members-blue),
      var(--members-cyan),
      transparent
    );
}

.members-actions .member-card::before {
  content: "MEMBER PORTAL";
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.2rem 0.48rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(2, 10, 24, 0.76);
  color: var(--members-muted);
  font-size: 0.5rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
}

.members-actions .member-card h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  font-weight: 1000;
  line-height: 1.05;
  text-shadow: 0 0 20px rgba(31, 111, 235, 0.22);
}

.members-actions .member-card p {
  max-width: 290px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--members-muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
}

.members-actions .member-card:hover {
  transform: translateY(-4px);
  border-color: rgba(83, 215, 255, 0.48);
  box-shadow:
    0 25px 55px rgba(0, 0, 0, 0.44),
    0 0 24px rgba(31, 111, 235, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.members-actions .Div1,
.members-actions .Div3 {
  min-height: 240px;
}

.members-actions .Div1::before {
  content: "NIEUW ACCOUNT";
}

.members-actions .Div3::before {
  content: "VEILIGHEID";
}

.members-actions .Div1 h1::before,
.members-actions .Div3 h1::before {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 0.8rem;
  border: 1px solid rgba(78, 161, 255, 0.26);
  border-radius: 15px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.09),
      rgba(255, 255, 255, 0.02)
    ),
    rgba(31, 111, 235, 0.14);
  font-size: 1.55rem;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.members-actions .Div1 h1::before {
  content: "👤";
}

.members-actions .Div3 h1::before {
  content: "🛡️";
}

.members-actions .member-login-card {
  min-height: 340px;
  padding: 1.6rem 1.8rem;
  justify-content: flex-start;
  border-color: rgba(78, 161, 255, 0.45);
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(31, 111, 235, 0.22),
      transparent 45%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.018)
    ),
    rgba(5, 15, 32, 0.97);
  box-shadow:
    0 28px 65px rgba(0, 0, 0, 0.47),
    0 0 32px rgba(31, 111, 235, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.members-actions .member-login-card::before {
  content: "BEVEILIGDE TOEGANG";
}

.members-actions .member-login-card::after {
  height: 5px;
  background:
    linear-gradient(
      90deg,
      transparent,
      #1f6feb,
      #53d7ff,
      #f3ef32,
      transparent
    );
}

.member-login-card h1 {
  margin-top: 0.3rem !important;
}

.member-login-form {
  width: 100%;
  max-width: 330px;
  display: grid;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.member-login-form .form-group {
  text-align: left;
}

.member-login-form label {
  color: var(--members-text);
  font-size: 0.78rem;
  font-weight: 900;
}

.member-login-form input {
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.member-login-form input:focus {
  outline: none;
  border-color: rgba(83, 215, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.16);
}

.member-login-form .register-button {
  width: 100%;
  margin-top: 0.2rem;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0.025)
    ),
    linear-gradient(135deg, #174fa8, #287df3);
}

/* =========================================================
   FORMS
========================================================= */

.register-card,
.login-card {
  width: 100%;
  max-width: 650px;
  padding: 1.7rem;
}

.login-card {
  max-width: 560px;
}

.register-layout {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(280px, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.register-tips {
  display: grid;
  gap: 0.8rem;
}

.tip-box {
  padding: 1.1rem;
}

.tip-box h3 {
  margin: 0 0 0.45rem;
  color: var(--members-cyan);
  font-size: 1.05rem;
}

.tip-box p {
  margin: 0;
  color: var(--members-text);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.55;
}

.register-card h2,
.login-card h2,
.profile-panel h2,
.members-directory-card h2 {
  margin: 0 0 0.65rem;
  color: #fff;
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  font-weight: 1000;
  letter-spacing: -0.035em;
  text-align: center;
  text-shadow: 0 0 20px rgba(31, 111, 235, 0.25);
}

.register-intro,
.login-intro,
.login-register-link {
  margin-bottom: 1.2rem;
  color: var(--members-muted);
  font-weight: 750;
  line-height: 1.5;
  text-align: center;
}

.register-form,
.login-form,
.settings-form {
  display: grid;
  gap: 0.9rem;
}

.form-group {
  display: grid;
  gap: 0.4rem;
}

.form-group label {
  color: var(--members-text);
  font-size: 0.86rem;
  font-weight: 900;
}

.form-group input,
.form-group select,
.settings-form input,
.settings-form textarea,
#postVideoUrl,
#postInput,
#memberSearchInput,
.comment-input {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--members-text);
  font: inherit;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 18px rgba(0, 0, 0, 0.15);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.form-group input:focus,
.form-group select:focus,
.settings-form input:focus,
.settings-form textarea:focus,
#postVideoUrl:focus,
#postInput:focus,
#memberSearchInput:focus,
.comment-input:focus {
  outline: none;
  border-color: rgba(83, 215, 255, 0.62);
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    0 0 0 3px rgba(31, 111, 235, 0.17),
    0 0 22px rgba(83, 215, 255, 0.11);
}

.form-group select option {
  color: #06101f;
}

textarea {
  resize: vertical;
  min-height: 95px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

#rulesFeedback {
  color: #ff8b8b;
  font-weight: 900;
}

/* =========================================================
   BUTTONS
========================================================= */

.register-button,
.composer-btn,
.profile-menu-btn,
.member-view-btn,
.timeline-action-btn,
.comment-btn {
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(111, 177, 255, 0.38);
  border-radius: 10px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.025)
    ),
    linear-gradient(135deg, #1b4f9f, #287df3);
  color: #fff;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  cursor: pointer;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    box-shadow 0.16s ease;
}

.register-button:hover,
.composer-btn:hover,
.profile-menu-btn:hover,
.profile-menu-btn.active,
.member-view-btn:hover,
.timeline-action-btn:hover,
.comment-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 15px 28px rgba(0, 0, 0, 0.32),
    0 0 20px rgba(31, 111, 235, 0.14);
}

.register-button.secondary {
  color: var(--members-text);
  background: rgba(20, 44, 80, 0.88);
}

.composer-btn.primary {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.025)
    ),
    linear-gradient(135deg, #157a8f, #287df3);
}

.danger,
.composer-btn.danger,
.register-button.danger {
  color: #fff !important;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.015)
    ),
    linear-gradient(135deg, #8b1111, #3b0505) !important;
}

/* =========================================================
   FRIENDSHIPS
========================================================= */

.friendship-actions {
  margin-top: 1rem;
}

.friendship-button,
.friendship-secondary-button {
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(111, 177, 255, 0.38);
  border-radius: 10px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  cursor: pointer;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    box-shadow 0.16s ease;
}

.friendship-button {
  margin-top: 20px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.025)
    ),
    linear-gradient(135deg, #1b4f9f, #287df3);
}

.friendship-button:hover {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.025)
    ),
    linear-gradient(135deg, #0e2b57, #1d365a);
}

.friendship-secondary-button {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.025)
    ),
    linear-gradient(135deg, #9f1b1b, #f32828);
}

.friendship-button-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.friendship-button-row form {
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
}

.friendship-button-row button {
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
}

.friendship-button-row form:first-child button {
  background: #2e7d32;
  color: #fff;
}

.friendship-button-row form:first-child button:hover {
  background: #388e3c;
}

.friendship-button-row form:last-child button {
  background: #c62828;
  color: #fff;
}

.friendship-button-row form:last-child button:hover {
  background: #d32f2f;
}

.friendship-danger-button {
  background: #c62828;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
}

.friendship-danger-button:hover {
  background: #d32f2f;
}

#cancelrequest {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  max-height: 30px;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(111, 177, 255, 0.38);
  border-radius: 10px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.025)
    ),
    linear-gradient(135deg, #9f1b1b, #f32828);
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  cursor: pointer;
}

#cancelrequest:hover {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.025)
    ),
    linear-gradient(135deg, #6b1212, #700d0d);
}

.friendship-status-message.friendship-confirmed,
.friendship-status-message.friendship-send {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  padding: 7px;
  border: 1px solid #000;
  border-radius: 30px;
  box-shadow: 4px 4px #000;
  color: #fff;
}

.friendship-status-message.friendship-confirmed {
  background: rgba(1, 73, 1, 0.384);
  margin-bottom: 15px;
}

.friendship-status-message.friendship-send {
  background: rgba(151, 129, 3, 0.384);
}

.profile-menu-btn.public-profile-back,
#memberback {
  display: block;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px;
}

/* =========================================================
   PROFILE SIDEBAR
========================================================= */

.profile-sidebar {
  position: relative;
  padding: 1.2rem;
  text-align: center;
}

.profile-sidebar::before {
  content: "MEMBER DOSSIER";
  display: inline-flex;
  margin-bottom: 0.85rem;
  padding: 0.28rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 24, 46, 0.82);
  color: var(--members-muted);
  font-size: 0.58rem;
  font-weight: 1000;
  letter-spacing: 0.14em;
}

.profile-avatar {
  width: 132px;
  height: 132px;
  margin: 0 auto 0.85rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 4px rgba(31, 111, 235, 0.14),
    0 15px 30px rgba(0, 0, 0, 0.38);
}

.profile-avatar img,
#mainProfileAvatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#defaultProfileIcon,
#publicDefaultIcon {
  font-size: 3.6rem;
}

#profileNickname,
#publicNickname {
  margin: 0.15rem 0 0.65rem;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 1000;
  line-height: 1.15;
}

.profile-name-row,
.member-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.profile-bio {
  min-height: 44px;
  margin: 0 0 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--members-muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.profile-menu {
  display: grid;
  gap: 0.55rem;
}

.profile-menu-btn {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.85rem;
  color: var(--members-text);
  text-align: left;
  text-transform: none;
  background: rgba(255, 255, 255, 0.05);
}

.profile-menu-btn:hover,
.profile-menu-btn.active {
  transform: translateX(4px);
  border-color: rgba(83, 215, 255, 0.48);
  background:
    linear-gradient(
      90deg,
      rgba(26, 112, 154, 0.82),
      rgba(31, 111, 235, 0.78)
    );
}

.profile-main {
    overscroll-behavior: none;
}

.profile-sidebar,
.profile-content {
    overscroll-behavior-y: contain;
}
/* =========================================================
   PROFILE PANELS
========================================================= */

.profile-panel {
  display: none;
  padding: 1.35rem;
}

.profile-panel.active {
  display: block;
  min-height: 100%;
}

.profile-panel h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.profile-panel h3 {
  margin: 1.2rem 0 0.6rem;
  color: var(--members-cyan);
  font-size: 0.95rem;
  font-weight: 1000;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.profile-panel p {
  color: var(--members-muted);
  font-weight: 700;
  line-height: 1.55;
}

/* =========================================================
   PROFILE STATISTICS
========================================================= */

.profile-statistics {
  width: 100%;
  margin: 0.8rem 0 1rem;
  padding: 0.8rem;
  border-radius: 13px;
}

.profile-statistics h3 {
  margin: 0 0 0.65rem;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

.profile-statistics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.profile-statistic-item {
  min-width: 0;
  padding: 0.58rem 0.35rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(2, 10, 24, 0.46);
  text-align: center;
}

.profile-statistic-item strong {
  color: var(--members-yellow);
  font-size: 1.15rem;
  line-height: 1;
}

.profile-statistic-item span {
  margin-top: 0.25rem;
  color: var(--members-muted);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.2;
}

.profile-member-since {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--members-muted);
  font-size: 0.68rem;
}

.profile-member-since strong {
  color: var(--members-text);
}

/* =========================================================
   TIMELINE
========================================================= */

.timeline-header {
  margin-bottom: 0.25rem;
  border: 1px solid rgba(111, 177, 255, 0.18);
  border-radius: 15px;
  background:
    linear-gradient(
      90deg,
      rgba(31, 111, 235, 0.2),
      rgba(83, 215, 255, 0.08)
    );
}

.timeline-header h4, .timeline-header p{
  margin: 0;
  text-align: center;
}

.timeline-composer {
  margin-bottom: .25rem;
  border-radius: 17px;
  overscroll-behavior: none;
}

.composer-top {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 0.75rem;
}

.composer-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.composer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#composerDefaultIcon {
  font-size: 1.7rem;
}

#postInput {
  min-height: 160px;
}

#postVideoUrl {
  margin-top: 0.75rem;
}

.composer-actions,
.profile-picture-actions,
.settings-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.timeline-posts {
    display: grid;
    gap: 0.85rem;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: .5rem;
    padding-bottom: 5rem;

    scrollbar-width: none;
}



.timeline-posts::-webkit-scrollbar {
    display: none;
}

.timeline-post {
  overflow: hidden;
  border-radius: 17px;
}

.timeline-post-header {
  padding: 0.8rem 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  background:
    linear-gradient(
      90deg,
      rgba(31, 111, 235, 0.42),
      rgba(83, 215, 255, 0.12)
    );
  color: #fff;
}

.timeline-post-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.timeline-post-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.timeline-post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-post-author-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.timeline-post-author {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 1000;
}

.timeline-post-date {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
}

.timeline-member-badge,
.member-admin-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.16rem 0.46rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.timeline-member-badge {
  border: 1px solid rgba(78, 161, 255, 0.45);
  background: rgba(31, 111, 235, 0.2);
  color: #8dcaff;
}

.member-admin-pill {
  border: 1px solid rgba(255, 95, 95, 0.38);
  background: rgba(198, 40, 40, 0.48);
  color: #fff;
  box-shadow: 0 3px 8px rgba(198, 40, 40, 0.2);
}

.timeline-post-body {
  width: 100%;
  padding: 1rem 1.1rem;
}

.timeline-post-body .timeline-post-text,
.timeline-post-text {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
  color: #fff;
  font-size: 1rem;
  text-align: left;
}

.timeline-post-media {
  padding: 0 1rem 1rem;
}

.timeline-post-media img {
  width: 100%;
  max-height: 620px;
  display: block;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.2);
}

.timeline-post-actions {
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.14);
}

.timeline-action-btn {
  min-height: 36px;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  text-transform: none;
}

.timeline-action-btn.like {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.timeline-action-btn.like.liked {
  border-color: rgba(255, 90, 130, 0.55);
  background: rgba(210, 30, 70, 0.28);
}

.timeline-action-btn.delete {
  background: linear-gradient(135deg, #8b1111, #3b0505);
  color: #fff;
}

/* =========================================================
   COMMENTS
========================================================= */

.timeline-post-comments {
  padding: 0.9rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-list {
  display: grid;
  gap: 0.55rem;
}

.comment {
  padding: 0.7rem 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.comment-content {
  flex: 1;
  min-width: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.85rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.comment-content strong {
  display: block;
  margin-bottom: 0.18rem;
  color: #fff;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.comment-action-btn {
  padding: 0.34rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.comment-action-btn:hover {
  background: rgba(255, 255, 255, 0.11);
}

.comment-action-btn.liked {
  border-color: rgba(255, 90, 130, 0.55);
  background: rgba(210, 30, 70, 0.26);
}

.comment-action-btn.delete {
  border-color: rgba(255, 80, 80, 0.38);
  background: rgba(130, 0, 0, 0.48);
}

.comment-input-box {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.comment-input {
  flex: 1;
  min-width: 0;
}

.comment-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.comment-btn {
  min-width: 88px;
}

.comments-toggle-btn {
  margin-top: 0.65rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8eb8ff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.comment-collapsed {
  display: none;
}

.timeline-post-comments.comments-expanded .comment-collapsed {
  display: flex;
}

.comment-author-line {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex-wrap: nowrap;
}

.comment-author-name {
  white-space: nowrap;
}

.comment-admin-pill {
  flex: 0 0 auto;
  padding: 0.07rem 0.34rem;
  font-size: 0.5rem;
}

.comment-text {
  margin-left: 0.25rem;
}

/* =========================================================
   POST MEDIA PREVIEW
========================================================= */

.post-media-preview {
  display: none;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
}

.post-media-preview.active {
  display: block;
}

.post-preview-grid {
  display: grid;
  gap: 10px;
  width: 100%;
}

.post-preview-grid.images-1 {
  grid-template-columns: 1fr;
}

.post-preview-grid.images-2,
.post-preview-grid.images-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-preview-grid.images-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-preview-grid.images-3 .post-preview-image:first-child {
  grid-row: span 2;
}

.post-preview-image {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 150px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}

.post-preview-grid.images-3 .post-preview-image:first-child {
  height: 310px;
}

.post-preview-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.post-preview-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(180, 25, 25, 0.95);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

/* =========================================================
   PROFILE SETTINGS
========================================================= */

.profile-picture-settings {
  display: grid;
  gap: 0.75rem;
}

.profile-picture-preview {
  width: 110px;
  height: 110px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
}

.profile-picture-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.settings-form input[readonly],
.settings-form textarea[readonly] {
  cursor: default;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(2, 10, 24, 0.38);
  color: var(--members-text);
  opacity: 0.92;
}

.settings-form input:not([readonly]),
.settings-form textarea:not([readonly]) {
  border-color: rgba(78, 161, 255, 0.52);
  background: rgba(2, 10, 24, 0.68);
}

.my-info-list {
  display: grid;
  gap: 0.55rem;
}

.my-info-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.my-info-label {
  color: var(--members-cyan);
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.my-info-value {
  color: #fff;
  font-weight: 750;
  overflow-wrap: anywhere;
}

/* =========================================================
   MEMBER DIRECTORY
========================================================= */

.members-directory-main {
  width: min(1100px, calc(100% - 2rem));
}

.members-directory-card {
  padding: 1.5rem;
}

.member-search-form {
  margin-bottom: 1.4rem;
}

.member-search-form label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--members-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.member-search-controls {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}

.member-search-controls input {
  flex: 1;
  min-width: 0;
}

.member-search-controls .register-button {
  min-width: 110px;
}

.members-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.member-profile-card {
  min-width: 0;
  padding: 0.85rem;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.012)
    ),
    rgba(7, 18, 34, 0.8);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  transition:
    transform 0.17s ease,
    border-color 0.17s ease,
    box-shadow 0.17s ease;
}

.member-profile-card:hover {
  transform: translateY(-3px);
  border-color: rgba(78, 161, 255, 0.45);
  box-shadow:
    0 17px 32px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(31, 111, 235, 0.1);
}

.member-profile-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 0 3px rgba(31, 111, 235, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.25);
}

.member-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-profile-avatar span {
  font-size: 1.7rem;
}

.member-profile-info {
  min-width: 0;
}

.member-profile-info h3 {
  margin: 0 0 0.28rem;
  color: #fff;
  font-size: 1rem;
}

.member-profile-info p {
  margin: 0;
  color: var(--members-muted);
  font-size: 0.8rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.member-view-btn {
  min-height: 38px;
  padding: 0.55rem 0.7rem;
  font-size: 0.68rem;
}

.no-members-found,
.members-directory-card > .feedback.error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--members-muted);
  text-align: center;
}

/* =========================================================
   LOGIN BLOCK MODAL
========================================================= */

.login-block-modal-open {
  overflow: hidden;
}

.login-block-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 6, 18, 0.86);
  backdrop-filter: blur(7px);
}

.login-block-modal {
  width: min(540px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.7rem;
  border: 2px solid #f59e0b;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fff8e8);
  color: #10213b;
  text-align: center;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.62);
}

.login-block-modal-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 0.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.16);
  font-size: 1.9rem;
}

.login-block-modal h2 {
  margin: 0 0 0.7rem;
  color: #9a3412;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.login-block-modal-intro {
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.login-block-detail,
.login-block-reason {
  margin-top: 0.8rem;
  padding: 0.85rem;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 13px;
  background: rgba(245, 158, 11, 0.08);
  text-align: left;
}

.login-block-detail span,
.login-block-reason span {
  display: block;
  margin-bottom: 0.3rem;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.login-block-reason p {
  margin: 0;
  line-height: 1.55;
}

.login-block-contact {
  margin: 1.2rem 0;
  color: #52627a;
}

.login-block-modal-actions {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.login-block-close-button,
.login-block-contact-button {
  min-height: 42px;
  padding: 0.7rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.login-block-close-button {
  background: #64748b;
}

.login-block-contact-button {
  background: linear-gradient(145deg, #1f6feb, #174fa8);
}

/* =========================================================
   CUSTOMER LOGS
========================================================= */

.customer-log-count {
  display: inline-flex;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: var(--customer-blue, #1f6feb);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
}

.customer-log-list {
  display: grid;
  gap: 0.75rem;
}

.customer-log-entry {
  padding: 1rem;
  border: 1px solid var(--customer-border, #dbe5f4);
  border-radius: 14px;
  background: #fff;
}

.customer-log-entry-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.customer-log-action {
  display: block;
  color: var(--customer-text, #10213b);
  font-size: 0.95rem;
  font-weight: 900;
}

.customer-log-meta {
  margin: 0.3rem 0 0;
  color: var(--customer-muted, #64748b);
  font-size: 0.8rem;
}

.customer-log-type {
  display: inline-flex;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: var(--customer-gray, #64748b);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 900;
}

.customer-log-type-account_suspended {
  background: var(--customer-orange, #f59e0b);
}

.customer-log-type-suspension_expired,
.customer-log-type-account_unblocked {
  background: var(--customer-green, #22c55e);
}

.customer-log-type-account_banned,
.customer-log-type-account_deleted {
  background: var(--customer-red, #ef4444);
}

.customer-log-description,
.customer-log-details {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid #dbe5f4;
}

.customer-log-description {
  line-height: 1.55;
}

.customer-log-details summary {
  color: var(--customer-blue, #1f6feb);
  font-weight: 900;
  cursor: pointer;
}

.customer-log-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.customer-log-values h4 {
  margin: 0 0 0.4rem;
}

.customer-log-values pre {
  max-width: 100%;
  margin: 0;
  padding: 0.8rem;
  overflow-x: auto;
  border-radius: 10px;
  background: var(--customer-dark, #0f172a);
  color: #dbeafe;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.profile-content {
    display: flex;
    flex-direction: column;
}

.profile-panel.active {
    display: block;
    flex: 1;
    width: 100%;
    min-height: 100%;
    box-sizing: border-box;
}

.profile-content {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.018)
        ),
        var(--members-panel);

    border: 1px solid var(--members-border);
    border-radius: var(--members-radius-large);
    box-shadow: var(--members-shadow);
    backdrop-filter: blur(10px);

    padding: 1.35rem;
}

/* videos */

.timeline-post-media {
    margin-top: 1rem;

    border-radius: 14px;
    overflow: hidden;

    background: rgba(0, 0, 0, .25);
}

.timeline-post-media iframe,
.timeline-post-media video {
    display: block;

    width: 100%;
    aspect-ratio: 16 / 9;

    border: 0;
    border-radius: 14px;
}

/* ========================================
   COLLAPSIBLE COMPOSER
======================================== */

.timeline-composer {
    margin-bottom: 1rem;
    position: sticky;
    top: 1px;
    z-index: 29;
}

.composer-toggle-btn {
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem .5rem;
    border: 1px solid rgba(111, 177, 255, .28);
    border-radius: 14px;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.10),
            rgba(255,255,255,.02)
        ),
        linear-gradient(
            135deg,
            #174fa8,
            #287df3
        );

    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    cursor: pointer;

    transition:
        transform .15s ease,
        filter .15s ease;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {
  .register-layout {
    grid-template-columns: 1fr;
  }

  .profile-main {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .profile-sidebar,
  .profile-content {
    height: auto;
    overflow: visible;
  }

  .profile-sidebar {
    width: min(100%, 470px);
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .members-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .members-actions .member-login-card {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .members-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .members-main,
  .members-directory-main,
  .profile-main {
    width: calc(100% - 1rem);
    margin: 1.5rem auto 2.5rem;
  }

  .register-card,
  .login-card,
  .profile-panel,
  .members-directory-card,
  .timeline-composer,
  .profile-sidebar {
    padding: 1rem;
  }

  .composer-top {
    grid-template-columns: 1fr;
  }

  .composer-avatar {
    display: none;
  }

  .timeline-post-header,
  .comment,
  .customer-log-entry-top {
    flex-direction: column;
  }

  .comment-actions {
    width: 100%;
  }

  .comment-input-box,
  .member-search-controls,
  .composer-actions,
  .profile-picture-actions,
  .settings-action-row {
    flex-direction: column;
  }

  .comment-btn,
  .member-search-controls .register-button,
  .composer-btn,
  .register-button {
    width: 100%;
  }

  .my-info-row,
  .customer-log-values {
    grid-template-columns: 1fr;
  }

  .member-profile-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .member-profile-avatar {
    width: 58px;
    height: 58px;
  }

  .member-view-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .members-actions {
    grid-template-columns: 1fr;
  }

  .members-actions .member-login-card {
    grid-column: auto;
  }

  .members-actions .Div1,
  .members-actions .Div3,
  .members-actions .member-login-card {
    min-height: 0;
  }
}

@media (max-width: 500px) {
  .members-actions {
    width: calc(100% - 1rem);
  }

  .members-actions .member-card {
    min-height: 190px;
  }

  .profile-statistics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .login-block-modal {
    padding: 1.25rem;
  }

  .login-block-modal-actions {
    display: grid;
  }
}

@media (max-width: 420px) {
  .member-profile-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .member-profile-avatar {
    margin: 0 auto;
  }

  .member-view-btn {
    grid-column: auto;
  }
}

@media (max-width: 500px) {
    body:has(.profile-main) {
        overflow: auto;
    }

    .profile-main,
    .profile-sidebar,
    .profile-content {
        overscroll-behavior: auto;
    }
}


/* Temp Fixes */
.profile-sidebar .profile-bio {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem !important;
}

.profile-sidebar .profile-menu {
    position: relative;
    z-index: 1;
    margin-top: 0 !important;
}

.profile-content > .profile-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
}