:root {
  --blue: #ff1d25;
  --blue-hover: #e0151c;
  --blue-light: rgba(255, 29, 37, 0.15);
  --text-main: #ffffff;
  --text-sub: #a1a1aa;
  --border: #27272a;
  --bg: #141416;
  --card-bg: #18181b;
  --error: #ef4444;
  --radius: 16px;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  background-color: #141416 !important;
  background: #141416 !important;
  background-image: none !important;
  font-family: var(--font-family);
  color: #ffffff !important;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

body.dark-auth-theme {
  background: #141416 !important;
  background-color: #141416 !important;
  background-image: none !important;
  color-scheme: dark;
}

.view {
  display: none;
  min-height: 100vh;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 20px;
}

#admin-dashboard.view,
#admin-member-requests.view,
#admin-member-directory.view,
#admin-member-details.view,
#member-dashboard.view,
#member-directory.view,
#view-member-profile.view,
#my-profile-view.view,
#discussion-view.view,
.view:has(.disc-app-container) {
  padding: 0 !important;
}

.view.active {
  display: flex !important;
}

.page {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.page-narrow {
  max-width: 420px;
  margin: 0 auto;
}

.title {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
}

.subtitle {
  font-size: 15px;
  color: #a1a1aa;
  margin: 0 0 28px;
}

.card {
  background: #18181b;
  border-radius: var(--radius);
  padding: 32px;
  text-align: left;
  border: 1px solid #27272a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  color: #ffffff;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.card-subtitle {
  font-size: 13.5px;
  color: #a1a1aa;
  margin: 0 0 22px;
  line-height: 1.4;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 7px;
  letter-spacing: 0.1px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
  width: 100%;
  padding: 12.5px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14.5px;
  font-family: var(--font-family);
  font-weight: 500;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f8fafc;
  color: var(--text-main);
}

input:focus {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.field.has-error input {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.error {
  display: block;
  min-height: 16px;
  font-size: 12.5px;
  color: var(--error);
  margin-top: 6px;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 42px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #9aa1ab;
  display: flex;
  align-items: center;
}

.toggle-password svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.toggle-password .icon-eye {
  fill: currentColor;
  stroke: none;
}

.btn-primary {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
  margin-top: 4px;
}

.btn-primary:hover {
  background: var(--blue-hover);
}

.link-line {
  text-align: center;
  font-size: 14px;
  color: var(--text-sub);
  margin: 18px 0 0;
}

.link-line-label {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  margin: 4px 0 8px;
  color: var(--text-main);
}

.link-strong {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.link-strong:hover {
  text-decoration: underline;
}

.link-center {
  display: block;
  text-align: center;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 22px 0 14px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  margin-bottom: 16px;
}

.back-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 480px) {
  .card {
    padding: 24px 20px;
  }

  .title {
    font-size: 26px;
  }
}

/* ============================================================
   GLOBAL APP HEADER & NOTIFICATION NAV BAR
============================================================= */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #18181b !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #27272a !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.4px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo [data-community-name] {
  color: #ffffff !important;
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  color: #a1a1aa;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-install-app {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
  transition: transform 0.15s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-install-app:hover {
  background: #059669;
  transform: translateY(-1px);
}

.nav-bell-btn {
  position: relative;
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #ffffff;
}

.nav-bell-btn:hover {
  background: #ff1d25;
  color: #ffffff;
  border-color: #ff1d25;
}

.bell-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--error);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(224, 55, 75, 0.4);
}

/* ============================================================
   PERMISSION ALERT BANNERS
============================================================= */
.banner {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  box-sizing: border-box;
}

.banner-success {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.banner-warning {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.banner-danger {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.btn-sm {
  background: var(--blue);
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-sm:hover {
  background: var(--blue-hover);
}

/* ============================================================
   IN-APP NOTIFICATION CENTER & LIST
============================================================= */
.notif-card-container {
  margin-bottom: 24px;
}

.notif-center-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.btn-text {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
}

.btn-text:hover {
  text-decoration: underline;
}

.notif-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.tab-btn {
  background: #27272a !important;
  border: 1px solid #3f3f46 !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #a1a1aa !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
}

.tab-btn:hover {
  background: #3f3f46 !important;
  color: #ffffff !important;
}

.tab-btn.active {
  background: #ff1d25 !important;
  border-color: #ff1d25 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 29, 37, 0.4) !important;
}

.notif-list-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notif-item {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #27272a !important;
  background: #18181b !important;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.notif-item:hover {
  transform: translateY(-2px);
  background: #202024 !important;
  border-color: #3f3f46 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.notif-item.unread {
  background: linear-gradient(135deg, rgba(255, 29, 37, 0.08) 0%, rgba(24, 24, 27, 1) 100%) !important;
  border: 1px solid rgba(255, 29, 37, 0.35) !important;
  border-left: 4px solid #ff1d25 !important;
}

.notif-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.notif-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #52525b;
  flex-shrink: 0;
}

.notif-item.unread .notif-status-dot {
  background: #ff1d25 !important;
  box-shadow: 0 0 10px rgba(255, 29, 37, 0.7) !important;
}

.notif-item-title {
  font-weight: 700;
  font-size: 15px;
  color: #ffffff !important;
  flex: 1;
}

.notif-time {
  font-size: 12.5px;
  color: #a1a1aa !important;
  font-weight: 600;
}

.notif-item-body {
  font-size: 14px;
  color: #d4d4d8 !important;
  line-height: 1.5;
  margin-bottom: 12px;
}

.notif-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.btn-link {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.btn-read {
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.btn-read:hover {
  background: #10b981 !important;
  color: #ffffff !important;
}

.btn-del {
  color: #fb7185 !important;
  background: rgba(244, 63, 94, 0.12) !important;
  border: 1px solid rgba(244, 63, 94, 0.3) !important;
}

.btn-del:hover {
  background: #f43f5e !important;
  color: #ffffff !important;
}

.empty-state {
  text-align: center;
  padding: 40px 16px;
  color: #a1a1aa !important;
  font-size: 15px;
  background: #18181b;
  border-radius: 14px;
  border: 1px dashed #27272a;
}

/* ============================================================
   DEVELOPER POC TEST SUITE
============================================================= */
.test-harness-card {
  background: #fafcff;
  border: 1px dashed #b8d5fb;
}

.test-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 4px;
}

.test-subtitle {
  font-size: 13px;
  color: var(--text-sub);
  margin: 0 0 16px;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.btn-test {
  background: #ffffff;
  border: 1px solid #d0e2ff;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.btn-test:hover {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}

.test-lockscreen-box {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 10px;
  text-align: center;
}

.btn-lockscreen {
  width: 100%;
  background: #202b3c;
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-lockscreen:hover {
  background: #0f172a;
}

.lockscreen-hint {
  font-size: 12px;
  color: var(--text-sub);
  margin: 8px 0 0;
  line-height: 1.35;
}

/* ============================================================
   PWA & ACTION CONFIRMATION MODALS (DARK WMG ELITE THEME)
============================================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card,
.confirmation-card {
  background: #18181b !important;
  border: 1px solid #27272a !important;
  border-radius: 18px !important;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8) !important;
  overflow: hidden;
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff !important;
}

@keyframes modalIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-header {
  padding: 20px 24px !important;
  border-bottom: 1px solid #27272a !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #141416 !important;
}

.modal-title {
  margin: 0;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.2px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #a1a1aa !important;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.modal-close:hover {
  color: #ffffff !important;
}

.modal-body {
  padding: 24px !important;
  background: #18181b !important;
  color: #ffffff !important;
}

.confirm-text {
  font-size: 15px !important;
  color: #e4e4e7 !important;
  margin-bottom: 24px !important;
  line-height: 1.5 !important;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.confirm-actions button,
#btn-confirm-cancel,
#btn-confirm-action {
  flex: 1;
  padding: 13px 20px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-align: center !important;
  transition: all 0.15s ease !important;
}

#btn-confirm-cancel,
.confirm-actions .btn-secondary {
  background: #27272a !important;
  border: 1px solid #3f3f46 !important;
  color: #ffffff !important;
}

#btn-confirm-cancel:hover,
.confirm-actions .btn-secondary:hover {
  background: #3f3f46 !important;
  color: #ffffff !important;
}

.install-guide-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 16px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.step-num {
  font-size: 22px;
  line-height: 1;
}

.install-guide-step p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}

/* ============================================================
   MEMBER REGISTRATION & PROFILE PHOTO PICKER
============================================================= */
.photo-picker-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.photo-preview-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--blue);
  box-shadow: 0 4px 12px rgba(13, 123, 247, 0.18);
  margin-bottom: 10px;
  background: #f0f4f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-picker-btns {
  display: flex;
  gap: 8px;
}

.btn-photo-action {
  background: #eef5ff;
  border: 1px solid #c7dfff;
  color: var(--blue);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-photo-action:hover {
  background: var(--blue);
  color: #fff;
}

.btn-photo-action.danger {
  background: #fff0f0;
  border-color: #ffd0d0;
  color: var(--error);
}

.btn-photo-action.danger:hover {
  background: var(--error);
  color: #fff;
}

/* ============================================================
   REGISTRATION SUCCESS & APPLICATION STATUS CARDS
============================================================= */
.success-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1.5px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.success-check-icon {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.status-badge-box {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px auto 16px;
  letter-spacing: 0.3px;
}

.status-badge-box.pending {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.28);
}

.status-badge-box .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.member-summary-box {
  background: #141416;
  border: 1px solid #27272a;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 16px 0 22px;
  text-align: left;
}

.summary-avatar-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4px 0 16px 0;
}

.reg-summary-avatar,
.avatar-container.reg-summary-avatar {
  width: 90px !important;
  height: 90px !important;
  min-width: 90px !important;
  min-height: 90px !important;
  max-width: 90px !important;
  max-height: 90px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 2.5px solid #ff1d25 !important;
  box-shadow: 0 4px 18px rgba(255, 29, 37, 0.35) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #18181b !important;
  flex-shrink: 0 !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.reg-summary-avatar img,
.avatar-container.reg-summary-avatar img,
.avatar-container.reg-summary-avatar img.avatar-img-element {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}

.reg-summary-avatar .initials-avatar {
  font-size: 30px;
  font-weight: 800;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed #27272a;
}

.summary-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.summary-row .label {
  color: #71717a;
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-row .value {
  font-weight: 700;
  color: #ffffff;
  font-size: 14.5px;
  text-align: right;
  word-break: break-word;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-secondary {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #3f3f46 !important;
  border-radius: 12px;
  background: linear-gradient(135deg, #27272a 0%, #18181b 100%) !important;
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #3f3f46 0%, #27272a 100%) !important;
  border-color: #52525b !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

.text-logout-btn:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.28);
}

/* Status Result Card */
.status-result-card {
  background: #141416;
  border-radius: 16px;
  border: 1px solid #27272a;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.status-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #27272a;
}

.status-result-card .avatar-sm {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ff1d25;
}

.status-result-card .avatar-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-name {
  font-size: 17px;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}

.company-name {
  font-size: 13.5px;
  color: #a1a1aa;
}

.status-pill-large {
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 14px;
  display: inline-block;
  letter-spacing: 0.3px;
}

.status-pill-large.pending {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.status-pill-large.approved {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-pill-large.rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-desc {
  font-size: 14px;
  color: #d4d4d8;
  line-height: 1.5;
  margin: 0 0 20px;
}

/* ============================================================
   ADMIN PENDING MEMBER REQUEST CARDS
============================================================= */
.requests-list-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member-request-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid #27272a;
  background: #18181b;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.member-request-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border-color: #3f3f46;
  background: #202024;
}

.card-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ff1d25;
  flex-shrink: 0;
}

.card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-info {
  flex: 1;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.member-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}

.badge-pending {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.detail-line {
  font-size: 13.5px;
  color: #d4d4d8;
  margin-bottom: 5px;
}

.date-line {
  font-size: 12px;
  color: #71717a;
  margin-top: 6px;
}

.empty-state-card {
  text-align: center;
  padding: 40px 20px;
  background: #18181b;
  border-radius: 12px;
  border: 1px dashed #27272a;
  color: #a1a1aa;
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

/* ============================================================
   ADMIN MEMBER DETAILS VIEW
============================================================= */
#admin-member-details .page {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.member-detail-profile-card {
  text-align: center;
}

.large-avatar-box {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ff1d25 !important;
  margin: 0 auto 14px;
  box-shadow: 0 6px 20px rgba(255, 29, 37, 0.35) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #141416 !important;
}

.large-avatar-box .avatar-container {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  border: none !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.large-avatar-box .initials-avatar {
  font-size: 34px !important;
  font-weight: 800 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
}

.detail-name {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 4px !important;
}

.detail-role-badge {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #a1a1aa !important;
  margin-bottom: 14px !important;
}

.detail-status-pill {
  display: inline-block;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  margin-bottom: 24px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

.detail-status-pill.pending {
  background: rgba(234, 179, 8, 0.15) !important;
  color: #facc15 !important;
  border: 1px solid rgba(234, 179, 8, 0.3) !important;
}

.detail-status-pill.approved,
.detail-status-pill.accepted {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

.detail-status-pill.rejected,
.detail-status-pill.suspended {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.detail-sections-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px !important;
  text-align: left;
  background: #141416 !important;
  padding: 20px !important;
  border-radius: 14px !important;
  border: 1px solid #27272a !important;
  margin-bottom: 24px !important;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #27272a;
}

.detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-item .label {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #71717a !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  margin-bottom: 2px !important;
}

.detail-item .val {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

.tel-link {
  color: #ff1d25 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

.tel-link:hover {
  text-decoration: underline !important;
}

.detail-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.detail-action-buttons>button {
  flex: 1 1 180px;
}

@media (max-width: 500px) {
  .detail-action-buttons>button {
    flex: 1 1 100%;
  }
}

.btn-approve,
.btn-reactivate,
.btn-suspend,
.btn-reject,
.btn-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.2px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.btn-approve .lucide-icon,
.btn-reactivate .lucide-icon,
.btn-suspend .lucide-icon,
.btn-reject .lucide-icon,
.btn-delete .lucide-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-approve:hover .lucide-icon,
.btn-reactivate:hover .lucide-icon,
.btn-suspend:hover .lucide-icon,
.btn-reject:hover .lucide-icon,
.btn-delete:hover .lucide-icon {
  transform: scale(1.1);
}

.btn-approve {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border: 1.5px solid #34d399 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35) !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px;
}

.btn-approve .lucide-icon {
  stroke: #ffffff !important;
}

.btn-approve:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
  border-color: #6ee7b7 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5) !important;
}

.btn-approve:hover .lucide-icon {
  stroke: #ffffff !important;
}

.btn-approve:active {
  transform: translateY(0) scale(0.98);
}

.btn-reactivate {
  background: linear-gradient(135deg, #05b26b 0%, #00965e 100%) !important;
  border: 1.5px solid #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(5, 178, 107, 0.35) !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
}

.btn-reactivate .lucide-icon {
  stroke: #ffffff !important;
}

.btn-reactivate:hover {
  background: linear-gradient(135deg, #10b981 0%, #046c4e 100%) !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(16, 185, 129, 0.5) !important;
}

.btn-suspend {
  background: linear-gradient(135deg, #e68a00 0%, #d97706 100%) !important;
  border: 1.5px solid #f59e0b !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(230, 138, 0, 0.35) !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
}

.btn-suspend .lucide-icon {
  stroke: #ffffff !important;
}

.btn-suspend:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%) !important;
  border-color: #fbbf24 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.48) !important;
}

.btn-suspend:active {
  transform: translateY(0) scale(0.98);
}

.btn-reject {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.18) 0%, rgba(159, 18, 57, 0.3) 100%) !important;
  border: 1.5px solid #f43f5e !important;
  color: #ff8fa3 !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.2) !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px;
}

.btn-reject .lucide-icon {
  stroke: #ff8fa3 !important;
}

.btn-reject:hover {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.35) 0%, rgba(159, 18, 57, 0.5) 100%) !important;
  border-color: #ff758f !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(244, 63, 94, 0.4) !important;
}

.btn-reject:hover .lucide-icon {
  stroke: #ffffff !important;
}

.btn-reject:active {
  transform: translateY(0) scale(0.98);
}

.btn-delete {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
  border: 1.5px solid #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4) !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px;
}

.btn-delete .lucide-icon {
  stroke: #ffffff !important;
}

.btn-delete:hover {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
  border-color: #fca5a5 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(239, 68, 68, 0.55) !important;
}

.btn-delete:active {
  transform: translateY(0) scale(0.98);
}

/* ============================================================
   PREMIUM VECTOR ICON BADGES (NEUTRAL GREY-WHITE)
============================================================= */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #e4e4e7;
}

.icon-badge svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.icon-badge-email,
.icon-badge-phone,
.icon-badge-company,
.icon-badge-ref,
.icon-badge-date {
  background: #27272a;
  color: #e4e4e7;
  border: 1px solid #3f3f46;
}

/* ============================================================
   LUCIDE SVG ICONS
============================================================= */
.lucide-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 5px;
  flex-shrink: 0;
  stroke: currentColor;
}

.btn .lucide-icon,
.btn-primary .lucide-icon,
.btn-secondary .lucide-icon,
.btn-accept .lucide-icon,
.btn-reject .lucide-icon,
.btn-suspend .lucide-icon,
.btn-delete .lucide-icon {
  width: 15px;
  height: 15px;
  vertical-align: -3px;
}

/* ============================================================
   CIRCULAR AVATAR CONTAINER & INITIALS COMPONENT
============================================================= */
.avatar-container {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid #ffffff;
  aspect-ratio: 1 / 1;
}

.avatar-container img.avatar-img-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  display: block;
}

/* Avatar Size Variants */
.avatar-container.avatar-xs {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
}

.avatar-container.avatar-sm {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
}

.avatar-container.avatar-md {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
}

.avatar-container.avatar-lg {
  width: 90px;
  height: 90px;
  min-width: 90px;
  min-height: 90px;
  border-width: 3px;
}

.avatar-container.avatar-xl {
  width: 110px;
  height: 110px;
  min-width: 110px;
  min-height: 110px;
  border-width: 4px;
  box-shadow: 0 6px 18px rgba(13, 123, 247, 0.2);
}

.initials-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  user-select: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.avatar-xl .initials-avatar,
.avatar-lg .initials-avatar {
  font-size: 28px;
}

.avatar-sm .initials-avatar,
.avatar-xs .initials-avatar {
  font-size: 15px;
}

.summary-avatar-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0 16px 0;
}

/* ============================================================
   A-Z MEMBER DIRECTORY (MOBILE CONTACT LIST)
============================================================= */
.directory-header {
  margin-bottom: 20px;
}

.search-box {
  margin-top: 14px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: #f8fafc;
  outline: none;
}

.search-box input:focus {
  border-color: var(--blue);
  background: #fff;
}

.directory-group {
  margin-bottom: 20px;
}

.directory-letter-header {
  font-size: 14px;
  font-weight: 800;
  color: #ff1d25 !important;
  background: #27272a !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  border: 1px solid #3f3f46 !important;
  margin-bottom: 10px !important;
}

.directory-group-items {
  display: flex;
  flex-direction: column;
  gap: 10px !important;
}

.contact-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px !important;
  background: #18181b !important;
  border: 1px solid #27272a !important;
  border-radius: 12px !important;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease !important;
}

.contact-list-item:hover {
  border-color: #3f3f46 !important;
  background: #202024 !important;
  transform: translateY(-1px);
}

.contact-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ff1d25 !important;
  flex-shrink: 0;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  background: #18181b;
}

.contact-avatar .avatar-container,
.avatar-container.contact-avatar-img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
}

.contact-avatar .avatar-container img.avatar-img-element,
.contact-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}

.contact-avatar .avatar-fallback-element {
  display: none !important;
}

.contact-avatar .initials-avatar {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  border: none !important;
}

.contact-details {
  flex: 1;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.contact-name {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}

.contact-company {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #d4d4d8 !important;
}

.contact-phone {
  font-size: 12.5px !important;
  color: #71717a !important;
}

.dir-status-pill {
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 3px 10px !important;
  border-radius: 12px !important;
  text-transform: uppercase;
}

.dir-status-pill.approved,
.dir-status-pill.active {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

.dir-status-pill.pending {
  background: rgba(234, 179, 8, 0.15) !important;
  color: #facc15 !important;
  border: 1px solid rgba(234, 179, 8, 0.3) !important;
}

.dir-status-pill.rejected,
.dir-status-pill.suspended {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.chevron {
  font-size: 18px;
  color: #71717a !important;
}

/* Confirmation Modal */
.confirmation-card {
  max-width: 400px;
}

.confirm-text {
  font-size: 14.5px;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.45;
}

.confirm-actions {
  display: flex;
  gap: 10px;
}

/* ============================================================
   DISCUSSIONS DASHBOARD
============================================================= */

.discussion-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.discussion-sidebar {
  width: 250px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}

.discussion-categories {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.category-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 4px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.category-item:hover,
.category-item.active {
  background: var(--bg-body);
}

.cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 12px;
}

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

.discussion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.search-bar input {
  padding: 10px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  width: 250px;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13, 123, 247, 0.1);
}

.topic-card {
  margin-bottom: 12px;
  padding: 16px;
}

.topic-tag.announcements {
  background: #ffe4e6;
  color: #e11d48;
}

.topic-tag.introductions {
  background: #d1fae5;
  color: #059669;
}

.topic-tag.feedback {
  background: #ede9fe;
  color: #7c3aed;
}

.topic-tag.off-topic-chatter {
  background: #cffafe;
  color: #0891b2;
}

@media (max-width: 768px) {
  .discussion-layout {
    flex-direction: column;
  }

  .discussion-sidebar {
    width: 100%;
    position: static;
  }
}

.toolbar-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s;
}

.toolbar-btn:hover {
  background: var(--bg-body);
}

.mentions-dropdown li {
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-main);
  transition: background 0.2s;
}

.mentions-dropdown li:hover {
  background: var(--bg-body);
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 29, 37, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(255, 29, 37, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 29, 37, 0);
  }
}

/* ============================================================
   COMMUNITYHUB — HIGH FIDELITY DARK DISCUSSION BOARD STYLES
   Exact implementation matching WMG elite dark mockups
============================================================= */

#discussion-view {
  background-color: #0f0f11 !important;
  color: #ffffff;
  min-height: 100vh;
  width: 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.disc-app-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: #141416;
  background: #141416;
  padding: 12px 32px 100px 32px;
  box-sizing: border-box;
  position: relative;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header Bar */
.disc-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.disc-header-title {
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-align: center;
  flex: 1;
}

.disc-header-back-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.disc-header-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.disc-header-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 16px;
}

.logo-red-box {
  background: #ff1d25;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.logo-white-text {
  color: #ffffff;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.2px;
}

/* Titles */
.disc-screen-title {
  font-size: 26px;
  font-weight: 600;
  color: #ffffff;
  margin: 24px 0 20px 0;
  letter-spacing: -0.3px;
}

/* Categories List */
.disc-categories-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.disc-category-card {
  background: #18181b;
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.disc-category-card:hover {
  transform: translateY(-2px);
  background: #202024;
}

.disc-cat-name {
  font-size: 19px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.disc-cat-underline {
  width: 32px;
  height: 3.5px;
  background: #ff1d25;
  border-radius: 2px;
  margin-top: 10px;
}

.disc-cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

/* Topics Grid / List */
.disc-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.disc-topic-card {
  background: #18181b;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: transform 0.15s ease;
  display: flex;
  flex-direction: column;
}

.disc-topic-card:hover {
  transform: translateY(-2px);
}

.disc-topic-banner-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.disc-topic-content {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.disc-topic-title {
  font-size: 19px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: -0.2px;
}

.disc-topic-desc {
  font-size: 14px;
  color: #9ca3af;
  margin: 0 0 16px 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.disc-topic-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #71717a;
  font-size: 13px;
}

.disc-topic-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.disc-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #71717a;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s ease;
  user-select: none;
}

.disc-stat-item:hover {
  color: #ff1d25;
}

.btn-like-topic {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.15s ease;
}

.btn-like-topic svg {
  transition: fill 0.2s ease, stroke 0.2s ease, transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-like-topic:hover {
  color: #ef4444 !important;
  transform: scale(1.08);
}

.btn-like-topic:hover svg {
  stroke: #ef4444;
}

.btn-like-topic:active {
  transform: scale(0.92);
}

.btn-like-topic.liked {
  color: #ef4444 !important;
}

.btn-like-topic.liked svg {
  fill: #ef4444;
  stroke: #ef4444;
}


/* Floating Action Button (FAB) */
.disc-fab-btn {
  position: fixed;
  bottom: 36px;
  right: 36px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ff1d25;
  color: #ffffff;
  border: none;
  font-size: 32px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 29, 37, 0.45);
  z-index: 99;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 480px) {
  .disc-fab-btn {
    right: 24px;
  }
}

.disc-fab-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(255, 29, 37, 0.6);
}

/* Threaded Comments View */
.disc-topic-main-card {
  background: #18181b;
  border-radius: 14px;
  overflow: hidden;
  padding: 18px 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.disc-comments-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.disc-comment-card {
  background: #18181b;
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.disc-comment-card.nested-reply {
  margin-left: 28px;
  background: #141416;
  border-left: 2px solid #27272a;
}

.disc-comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.disc-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #27272a;
}

.disc-author-name {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.disc-comment-date {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

.disc-comment-body {
  font-size: 14px;
  color: #d4d4d8;
  line-height: 1.5;
  margin-bottom: 10px;
}

.disc-reply-btn {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s;
}

.disc-reply-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

/* Comment Reply Input Box */
.disc-comment-reply-wrapper {
  position: sticky;
  bottom: 12px;
  background: #18181b;
  border-radius: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.disc-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.disc-reply-input,
#new-comment-input {
  flex: 1;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  color: #000000 !important;
  caret-color: #000000 !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  padding: 10px 18px !important;
  font-family: inherit !important;
  line-height: 1.4 !important;
  outline: none !important;
  box-shadow: none !important;
}

.disc-reply-input:focus,
#new-comment-input:focus {
  background: #ffffff !important;
  border-color: #3b82f6 !important;
  color: #000000 !important;
  caret-color: #000000 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
  outline: none !important;
}

.disc-reply-input::placeholder,
#new-comment-input::placeholder {
  color: #64748b !important;
  opacity: 1 !important;
}

.disc-reply-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.disc-icon-action {
  background: none;
  border: none;
  color: #71717a;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s;
}

.disc-icon-action:hover {
  color: #ffffff;
}

.btn-disc-post {
  background: #ff1d25;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

/* Add Topic View Screen */
.disc-add-topic-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.disc-image-dropzone {
  background: #121214;
  border: 1px dashed #27272a;
  border-radius: 14px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}

.disc-image-dropzone:hover {
  border-color: #ff1d25;
}

.disc-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.disc-label {
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 4px;
}

.disc-red-dot {
  color: #ff1d25;
  font-size: 16px;
  line-height: 0;
}

.disc-underline-input,
.disc-underline-select,
.disc-underline-textarea {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #27272a !important;
  color: #ffffff !important;
  font-size: 16px !important;
  padding: 10px 0 !important;
  font-family: inherit !important;
  border-radius: 0 !important;
  width: 100%;
}

.disc-underline-input:focus,
.disc-underline-select:focus,
.disc-underline-textarea:focus {
  border-bottom-color: #ff1d25 !important;
  outline: none !important;
}

.disc-underline-select option {
  background: #18181b;
  color: #ffffff;
}

.disc-add-topic-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.btn-disc-cancel {
  background: #27272a;
  color: #a1a1aa;
  border: none;
  border-radius: 8px;
  padding: 15px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-disc-cancel:hover {
  background: #3f3f46;
  color: #ffffff;
}

.btn-disc-submit {
  background: #ff1d25;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 15px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 29, 37, 0.4);
  transition: background 0.15s, box-shadow 0.15s;
}

.btn-disc-submit:hover {
  background: #e60000;
  box-shadow: 0 6px 20px rgba(255, 29, 37, 0.6);
}

/* ============================================================
   MEMBER DASHBOARD & PROFILE STYLING (DARK THEME)
============================================================= */
.member-app-container {
  max-width: 500px;
  margin: 0 auto;
}

.member-dashboard-content {
  padding: 32px 20px;
}

.member-greeting-box {
  margin-bottom: 32px;
}

.member-greeting-label {
  font-size: 24px;
  font-weight: 300;
  color: #71717a;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.member-greeting-name {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.member-modules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.member-module-card {
  background: #141416;
  border: 1px solid #27272a;
  border-radius: 18px;
  padding: 22px 20px;
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.member-module-card:hover {
  transform: translateY(-2px);
  border-color: #3f3f46;
  background: #18181b;
}

.module-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.module-card-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #ffffff;
  text-transform: uppercase;
}

.module-red-underline {
  width: 28px;
  height: 3px;
  background: #ff1d25;
  border-radius: 2px;
}

.module-card-icon {
  align-self: flex-end;
  color: #52525b;
}

/* Selected Member Profile View (Reference Image 2 Match) */
.selected-member-profile-body {
  padding: 0 20px 40px;
  max-width: 480px;
  margin: 0 auto;
}

.profile-hero-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.profile-portrait-wrap {
  width: 100%;
  max-width: 440px;
  height: 340px;
  border-radius: 20px;
  overflow: hidden;
  margin: 8px auto 24px;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.profile-portrait-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45%;
  background: linear-gradient(to bottom, transparent 0%, rgba(16, 16, 16, 0.95) 100%);
  pointer-events: none;
}

.profile-hero-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-hero-initials {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  font-size: 64px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-title-block {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.profile-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.profile-hero-title {
  font-size: 30px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.5px;
}

.profile-chevron-btn {
  background: none;
  border: none;
  color: #a1a1aa;
  cursor: pointer;
  padding: 4px;
}

.profile-hero-subtitle {
  font-size: 15px;
  color: #d4d4d8;
  margin-bottom: 4px;
  line-height: 1.4;
}

.profile-hero-subtitle-sec {
  font-size: 14px;
  color: #a1a1aa;
  margin-bottom: 16px;
}

.profile-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.prof-tag-outline {
  background: transparent;
  border: 1px solid #3f3f46;
  color: #a1a1aa;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.profile-dotted-divider {
  border: none;
  border-top: 1px dashed #27272a;
  margin: 28px 0;
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.profile-clean-contact-list {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.clean-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
}

.clean-contact-left {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
}

.contact-text-val {
  font-size: 16px;
  font-weight: 500;
  color: #f4f4f5;
  letter-spacing: 0.2px;
}

.red-play-action-btn {
  width: 44px;
  height: 44px;
  background-color: #ff1d25 !important;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 29, 37, 0.4);
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
  flex-shrink: 0;
}

.red-play-action-btn:hover {
  background-color: #e0171e !important;
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(255, 29, 37, 0.6);
}

.profile-social-row {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

.prof-social-icon {
  color: #a1a1aa;
  transition: color 0.15s ease;
}

.prof-social-icon:hover {
  color: #ffffff;
}

.prof-social-icon.disabled {
  opacity: 0.35;
  cursor: default;
}

/* My Profile Form Styling */
.my-profile-scroll-container {
  padding: 24px 20px 60px;
  max-width: 500px;
  margin: 0 auto;
  overflow-y: auto;
  max-height: calc(100vh - 60px);
}

.my-profile-photo-box {
  width: 100%;
  height: 240px;
  background: #141416;
  border: 1.5px dashed #27272a;
  border-radius: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  cursor: pointer;
  overflow: hidden;
}

.my-prof-photo-placeholder-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.my-prof-photo-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: #ff1d25;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 29, 37, 0.5);
}

.prof-field-group {
  margin-bottom: 22px;
}

.prof-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #a1a1aa;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.red-dot {
  color: #ff1d25;
  font-weight: 900;
  margin-right: 4px;
}

.gray-dot {
  color: #52525b;
  margin-right: 4px;
}

.prof-underline-input {
  width: 100%;
  padding: 10px 0;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #27272a !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-family: var(--font-family);
  outline: none !important;
  transition: border-color 0.2s ease;
}

.prof-underline-input:focus {
  border-bottom-color: #ff1d25 !important;
  box-shadow: none !important;
}

.prof-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0 16px;
}

.prof-section-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #ffffff;
  text-transform: uppercase;
}

.prof-section-add {
  font-size: 20px;
  font-weight: 400;
  color: #ffffff;
  cursor: pointer;
}

.prof-industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.prof-tag-btn {
  background: #141416;
  border: 1px solid #27272a;
  color: #71717a;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.prof-tag-btn.active {
  border-color: #ff1d25;
  color: #ffffff;
  background: rgba(255, 29, 37, 0.1);
}

.prof-privacy-options {
  background: #141416;
  border: 1px solid #27272a;
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 32px;
}

.prof-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.btn-prof-cancel {
  background: #27272a;
  color: #a1a1aa;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.btn-prof-submit {
  background: #ff1d25;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 29, 37, 0.4);
}

/* ============================================================
   RESPONSIVE DESKTOP & LAPTOP STYLING (>= 768px)
============================================================= */
@media (min-width: 768px) {

  .disc-app-container,
  .member-app-container {
    max-width: 800px !important;
    margin: 0 auto;
    padding: 24px 36px 100px 36px !important;
  }

  .member-dashboard-content {
    padding: 32px 0 !important;
  }

  .member-greeting-label {
    font-size: 28px;
  }

  .member-greeting-name {
    font-size: 40px;
  }

  .member-modules-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .member-module-card {
    height: 155px;
    padding: 24px;
  }

  .module-card-title {
    font-size: 15.5px;
  }

  .directory-list-box,
  .dark-search-box,
  .requests-list-box,
  .selected-member-profile-body {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .profile-portrait-wrap {
    width: 100%;
    max-width: 520px;
    height: 400px;
    margin: 0 auto 24px;
  }

  .profile-title-block,
  .profile-dotted-divider,
  .profile-clean-contact-list,
  .profile-social-row {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1024px) {

  .disc-app-container,
  .member-app-container {
    max-width: 960px !important;
    padding: 32px 48px 120px 48px !important;
  }

  .member-modules-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
  }

  .member-module-card {
    height: 165px;
    padding: 24px 20px;
  }

  .directory-list-box,
  .dark-search-box,
  .requests-list-box {
    max-width: 100% !important;
  }
}

/* ============================================================
   COMMUNITYHUB — EVENTS MODULE STYLING & POLISH (PREMIUM 3-COL UI)
============================================================= */
#events-view .disc-app-container,
#events-view .member-app-container {
  max-width: 1280px !important;
  width: 100% !important;
  padding: 24px 36px 100px 36px !important;
}

.events-3col-container {
  display: grid;
  grid-template-columns: 300px 1fr 320px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 1024px) {
  .events-3col-container {
    grid-template-columns: 1fr;
  }
}

/* Force Dark Form Input Styling & Override Global White Inputs */
.events-3col-container input[type="text"],
.events-3col-container input[type="tel"],
.events-3col-container input[type="url"],
.events-3col-container input[type="date"],
.events-3col-container input[type="time"],
.events-3col-container textarea,
.ev-input-field {
  background: #141416 !important;
  border: 1px solid #27272a !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  padding: 11px 14px !important;
  outline: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
  font-family: inherit !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.events-3col-container input:focus,
.events-3col-container textarea:focus,
.ev-input-field:focus {
  border-color: #ff1d25 !important;
  box-shadow: 0 0 0 2px rgba(255, 29, 37, 0.2) !important;
  background: #18181b !important;
}

.events-3col-container input::placeholder,
.events-3col-container textarea::placeholder,
.ev-input-field::placeholder {
  color: #71717a !important;
  font-size: 13.5px !important;
}

/* Force dark color scheme on date and time pickers */
#ev-field-date,
#ev-field-time {
  color-scheme: dark !important;
  color: #ffffff !important;
  background: #141416 !important;
}

#ev-field-date::-webkit-calendar-picker-indicator,
#ev-field-time::-webkit-calendar-picker-indicator {
  filter: invert(0.85);
  cursor: pointer;
}

/* Custom Sleek Scrollbar for Members Checklist Box */
#event-members-checklist::-webkit-scrollbar {
  width: 5px;
}

#event-members-checklist::-webkit-scrollbar-track {
  background: transparent;
}

#event-members-checklist::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 10px;
}

#event-members-checklist::-webkit-scrollbar-thumb:hover {
  background: #ff1d25;
}

.event-member-invite-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 10px;
  background: #18181b;
  border: 1px solid #27272a;
  margin-bottom: 6px;
  transition: all 0.15s ease;
}

.event-member-invite-item:hover {
  background: #202024;
  border-color: #3f3f46;
}

.event-member-invite-item.checked {
  background: rgba(255, 29, 37, 0.12);
  border-color: rgba(255, 29, 37, 0.35);
}

.check-circle-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #52525b;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-weight: 800;
  font-size: 12px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.event-member-invite-item.checked .check-circle-icon {
  border-color: #ffffff;
  background: #ffffff;
  color: #141416;
}

.btn-event-cancel:hover {
  background: #3f3f46 !important;
  color: #ffffff !important;
}

.btn-event-submit:hover {
  background: #e0151c !important;
  box-shadow: 0 6px 18px rgba(255, 29, 37, 0.5) !important;
}

/* ============================================================
   PUSH NOTIFICATION ADMIN CONTROLS (ADMIN ONLY)
============================================================= */
body:not(.is-admin) #admin-custom-push-card {
  display: none !important;
}

/* ============================================================
   MOBILE RESPONSIVENESS & MEMBER PROFILE FIT (< 768px)
============================================================= */
@media (max-width: 767px) {

  .disc-app-container,
  .member-app-container {
    padding: 12px 16px 80px 16px !important;
  }

  .selected-member-profile-body {
    padding: 0 4px 30px !important;
    max-width: 100% !important;
  }

  .my-profile-scroll-container {
    padding: 16px 4px 60px !important;
    max-width: 100% !important;
  }

  .profile-portrait-wrap {
    height: 300px !important;
    max-width: 100% !important;
    border-radius: 16px !important;
  }

  .my-profile-photo-box {
    height: 240px !important;
    border-radius: 16px !important;
  }

  .profile-hero-title {
    font-size: 26px !important;
  }
}

/* ============================================================
   PROFILE PHOTO CROPPER MODAL & SUCCESS MESSAGES
============================================================= */
.crop-modal-card {
  max-width: 520px;
  width: 95%;
  background: #18181b !important;
  border: 1px solid #27272a !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9) !important;
  overflow: hidden;
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.crop-viewport-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  background: #09090b;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  touch-action: none;
  border: 1px solid #27272a;
}

.crop-viewport-wrap:active {
  cursor: grabbing;
}

.crop-guide-box {
  position: absolute;
  border: 2px solid #ff1d25;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65);
  cursor: move;
  box-sizing: border-box;
  touch-action: none;
  z-index: 4;
}

.crop-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 2px solid #ff1d25;
  border-radius: 50%;
  box-sizing: border-box;
  z-index: 6;
  touch-action: none;
}

.handle-tl {
  top: -7px;
  left: -7px;
  cursor: nwse-resize;
}

.handle-tr {
  top: -7px;
  right: -7px;
  cursor: nesw-resize;
}

.handle-bl {
  bottom: -7px;
  left: -7px;
  cursor: nesw-resize;
}

.handle-br {
  bottom: -7px;
  right: -7px;
  cursor: nwse-resize;
}

.handle-top {
  top: -7px;
  left: calc(50% - 7px);
  cursor: ns-resize;
}

.handle-bottom {
  bottom: -7px;
  left: calc(50% - 7px);
  cursor: ns-resize;
}

.handle-left {
  top: calc(50% - 7px);
  left: -7px;
  cursor: ew-resize;
}

.handle-right {
  top: calc(50% - 7px);
  right: -7px;
  cursor: ew-resize;
}

.crop-grid-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.grid-h1 {
  top: 33.33%;
  left: 0;
  width: 100%;
  height: 1px;
}

.grid-h2 {
  top: 66.66%;
  left: 0;
  width: 100%;
  height: 1px;
}

.grid-v1 {
  left: 33.33%;
  top: 0;
  width: 1px;
  height: 100%;
}

.grid-v2 {
  left: 66.66%;
  top: 0;
  width: 1px;
  height: 100%;
}

.crop-ratio-btn {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid #27272a;
  background: #141416;
  color: #a1a1aa;
  cursor: pointer;
  transition: all 0.15s ease;
}

.crop-ratio-btn:hover {
  color: #ffffff;
  border-color: #3f3f46;
}

.crop-ratio-btn.active {
  background: rgba(255, 29, 37, 0.15) !important;
  border-color: #ff1d25 !important;
  color: #ffffff !important;
}

.auth-msg-success {
  background: rgba(34, 197, 94, 0.12) !important;
  border: 1px solid rgba(34, 197, 94, 0.35) !important;
  color: #4ade80 !important;
  padding: 12px 16px !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  margin-bottom: 18px !important;
}

.crop-handle::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
}

/* ============================================================
   TERMS & CONDITIONS & PRIVACY POLICY LEGAL PAGES & MODAL
============================================================= */
.page-legal {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 20px 80px;
}

.legal-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.legal-nav-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a1a1aa;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: #18181b;
  border: 1px solid #27272a;
  padding: 8px 16px;
  border-radius: 9999px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.legal-nav-header .back-link:hover {
  color: #ffffff;
  border-color: #3f3f46;
  background: #27272a;
  transform: translateX(-2px);
}

.legal-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 18px;
  padding: 36px 40px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  color: #ffffff;
}

@media (max-width: 640px) {
  .legal-card {
    padding: 24px 20px;
  }
}

.legal-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 29, 37, 0.12);
  color: #ff4d52;
  border: 1px solid rgba(255, 29, 37, 0.3);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.legal-title {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.legal-subtitle {
  font-size: 13.5px;
  color: #a1a1aa;
  margin: 0 0 24px;
  line-height: 1.5;
  border-bottom: 1px solid #27272a;
  padding-bottom: 20px;
}

.legal-toc {
  background: #141416;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 30px;
}

.legal-toc-title {
  font-size: 12px;
  font-weight: 800;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.legal-toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-toc-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #a1a1aa;
  background: #18181b;
  border: 1px solid #27272a;
  padding: 5px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.legal-toc-chip:hover {
  color: #ffffff;
  border-color: #ff1d25;
  background: rgba(255, 29, 37, 0.08);
}

.legal-section {
  margin-bottom: 28px;
  scroll-margin-top: 30px;
}

.legal-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.legal-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #27272a;
  color: #ff4d52;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.legal-section-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.legal-section p {
  font-size: 14px;
  line-height: 1.7;
  color: #d4d4d8;
  margin: 0 0 12px;
}

.legal-section ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: #d4d4d8;
  font-size: 13.5px;
  line-height: 1.65;
}

.legal-section li {
  margin-bottom: 6px;
}

.legal-section li strong {
  color: #ffffff;
}

.legal-callout {
  background: rgba(255, 29, 37, 0.08);
  border-left: 3px solid #ff1d25;
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #e4e4e7;
}

.legal-callout strong {
  color: #ffffff;
}

.legal-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #27272a;
  flex-wrap: wrap;
}

.btn-legal-back {
  background: #27272a;
  color: #e4e4e7;
  border: 1px solid #3f3f46;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-legal-back:hover {
  background: #3f3f46;
  color: #ffffff;
}

.btn-legal-accept {
  background: #ff1d25;
  color: #ffffff;
  border: none;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 29, 37, 0.4);
  transition: all 0.2s ease;
}

.btn-legal-accept:hover {
  background: #e0151c;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 29, 37, 0.5);
}

/* Legal Modal Dialog */
.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.legal-modal-container {
  width: 100%;
  max-width: 760px;
  max-height: 86vh;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { transform: translateY(20px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.legal-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141416;
}

.legal-modal-tabs {
  display: flex;
  gap: 8px;
  background: #18181b;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #27272a;
}

.legal-modal-tab {
  background: transparent;
  border: none;
  color: #a1a1aa;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.legal-modal-tab.active {
  background: #27272a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.legal-modal-close {
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #a1a1aa;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.legal-modal-close:hover {
  background: #3f3f46;
  color: #ffffff;
}

.legal-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
  color: #d4d4d8;
  scroll-behavior: smooth;
}

.legal-modal-body::-webkit-scrollbar {
  width: 6px;
}

.legal-modal-body::-webkit-scrollbar-track {
  background: #141416;
}

.legal-modal-body::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 3px;
}

.legal-modal-body::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

.legal-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141416;
  gap: 12px;
  flex-wrap: wrap;
}

.legal-modal-footer-left {
  font-size: 12.5px;
  color: #71717a;
}

.legal-modal-footer-left a {
  color: #a1a1aa;
  text-decoration: underline;
  cursor: pointer;
}

.legal-modal-footer-left a:hover {
  color: #ffffff;
}

.legal-modal-footer-right {
  display: flex;
  gap: 10px;
}