/* Public profile /u/... — Facebook-inspired layout (Evabiz tokens)
   v8 — self-contained grid (no BS5 gutters); isolated from theme + social home
*/

.lv-profile-home.lux-profile {
  --lux-bg: #f0f2f5;
  --lux-surface: #ffffff;
  --lux-ink: #050505;
  --lux-ink-soft: #050505;
  --lux-muted: #65676b;
  --lux-line: #ced0d4;
  --lux-line-strong: #ccd0d5;
  --lux-gold: #e07a5f;
  --lux-gold-soft: rgba(224, 122, 95, 0.12);
  --lux-gold-hover: #d4654a;
  --lux-radius: 12px;
  --lux-radius-sm: 10px;
  --lux-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  --lux-font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --avatar-size: 168px;
  --avatar-overlap: 84px;
  --lux-max: 1080px;

  font-family: var(--lux-font) !important;
  color: var(--lux-ink) !important;
  background: var(--lux-bg) !important;
  padding: 0 0 2.5rem !important;
  margin: 0 !important;
  -webkit-font-smoothing: antialiased;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  position: relative;
  z-index: 1;
}

/* Theme kill-switches inside profile only */
.lv-profile-home.lux-profile *,
.lv-profile-home.lux-profile *::before,
.lv-profile-home.lux-profile *::after {
  box-sizing: border-box;
}

.lv-profile-home.lux-profile .container,
.lv-profile-home.lux-profile .lux-profile-wrap {
  max-width: var(--lux-max) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  float: none !important;
}

/* Self-contained 2-col grid
 * Desktop: sticky aside (intro) | feed
 * Mobile: single column
 *
 * Sticky needs: no overflow:hidden on ancestors; sticky on the column itself.
 */
.lux-profile-body,
.lux-profile-body .lux-profile-wrap,
.lv-profile-home.lux-profile {
  overflow: visible !important;
}

.lux-profile-grid {
  display: grid !important;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1rem !important;
  align-items: start !important;
  width: 100% !important;
  overflow: visible !important;
}

.lux-profile-col {
  min-width: 0 !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Sticky on ASIDE column (not inner panel — overflow:hidden on panel killed sticky) */
@media (min-width: 992px) {
  .lux-profile-col-side {
    position: sticky !important;
    top: calc(var(--s-nav-h, 56px) + 12px) !important;
    align-self: start !important;
    z-index: 5 !important;
    max-height: calc(100vh - var(--s-nav-h, 56px) - 24px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .lux-profile-col-side .lux-profile-panel,
  .lux-profile-col-side .lux-profile-panel.sticky {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 991.98px) {
  .lux-profile-grid {
    grid-template-columns: 1fr !important;
  }

  .lux-profile-col-side {
    order: 1;
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .lux-profile-col-main {
    order: 2;
  }

  .lv-profile-home.lux-profile {
    --avatar-size: 120px;
    --avatar-overlap: 60px;
  }

  .lux-profile-panel.sticky {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* —— Hero card (FB cover + identity) —— */
.lux-profile-shell {
  background: transparent !important;
  padding: 0.75rem 0 0 !important;
  margin: 0 !important;
}

.lux-profile-card {
  background: var(--lux-surface);
  border: 1px solid var(--lux-line);
  border-radius: var(--lux-radius);
  box-shadow: var(--lux-shadow);
  overflow: hidden;
}

/* Cover: FB-like wide banner */
.lux-profile-cover {
  position: relative;
  height: clamp(180px, 28vw, 348px);
  overflow: hidden;
  background: linear-gradient(135deg, #e4e6eb 0%, #ccd0d5 55%, #bec3c9 100%);
  padding-bottom: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.lux-profile-cover-img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center;
  display: block;
}

.lux-profile-cover-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(28, 25, 23, 0.05) 0%,
    rgba(28, 25, 23, 0) 40%,
    rgba(28, 25, 23, 0.08) 100%
  );
}

/*
 * Identity row (Facebook-style):
 * - Large round avatar overlaps cover bottom-left
 * - Name + handle to the right, aligned to bottom of avatar
 * - Action buttons on the right (desktop)
 */
.lux-profile-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-top: calc(var(--avatar-overlap) * -1);
  padding: 0 1.25rem 0.85rem;
  position: relative;
  z-index: 2;
}

.lux-profile-avatar {
  flex: 0 0 auto;
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;
  border: 4px solid #fff !important;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  position: relative;
  line-height: 0;
  z-index: 3;
}

.lux-profile-avatar img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center;
  border-radius: 50%;
  display: block;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Name block sits next to avatar (below cover edge) */
.lux-profile-meta {
  flex: 1 1 180px;
  min-width: 0;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.lux-profile-identity-compact .lux-profile-meta {
  padding-top: 0.5rem;
  padding-bottom: 0.45rem;
  align-self: flex-end;
}

.lux-profile-identity-compact .lux-profile-name {
  position: relative;
  z-index: 3;
  color: var(--lux-ink) !important;
  text-shadow: none;
  background: transparent;
}

.lux-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.lux-profile-actions-end {
  margin-left: auto;
  margin-top: 0;
  padding-bottom: 0.35rem;
  flex: 0 0 auto;
}

.lux-profile-headline-inline {
  margin: 0.2rem 0 0 !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  color: var(--lux-muted) !important;
  line-height: 1.35 !important;
  max-width: 36rem;
}

@media (max-width: 767.98px) {
  .lux-profile-actions-end {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
  }

  .lux-profile-actions-end .lux-profile-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Defeat theme: header h1 { font-size:0; text-indent:-99999px } if any parent uses <header> */
.lux-profile .lux-profile-name,
.lv-profile-home .lux-profile-name,
h1.lux-profile-name {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100%;
  overflow: visible !important;
  text-indent: 0 !important;
  white-space: normal !important;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em;
  line-height: 1.25 !important;
  color: #1c1917 !important;
  background: transparent !important;
  position: relative;
  z-index: 5;
}

.lux-profile-handle {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--lux-muted);
  letter-spacing: 0.01em;
}

.lux-profile-bio {
  margin: 0.55rem 0 0;
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--lux-ink-soft);
}

.lux-profile-headline {
  margin: 0.4rem 0 0;
  max-width: 40rem;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--lux-ink-soft);
}

.lux-profile-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0.4rem 0 0;
  font-size: 0.86rem;
  color: var(--lux-muted);
}

.lux-profile-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lux-profile-meta-item i {
  font-size: 0.78rem;
  opacity: 0.8;
}

.lux-profile-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.lux-profile-socials > li {
  list-style: none;
}

.lux-profile-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--lux-line-strong);
  background: var(--lux-bg);
  color: var(--lux-ink) !important;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lux-profile-social-link:hover {
  background: var(--lux-gold-soft);
  border-color: rgba(176, 141, 87, 0.35);
  color: var(--lux-ink) !important;
}

.lux-profile-social-link i {
  font-size: 0.85rem;
  width: 1rem;
  text-align: center;
}

.lux-profile-facts {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.lux-profile-facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--lux-ink);
  line-height: 1.4;
}

.lux-profile-facts li i {
  margin-top: 0.2rem;
  width: 1rem;
  text-align: center;
  color: var(--lux-muted);
  font-size: 0.8rem;
}

.lux-profile-facts a {
  color: var(--lux-ink) !important;
  font-weight: 600;
  text-decoration: none !important;
  word-break: break-all;
}

.lux-profile-facts a:hover {
  color: var(--lux-gold-hover) !important;
  text-decoration: underline !important;
}

.lux-profile-panel-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.lux-profile-social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.9rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--lux-line);
  background: var(--lux-bg);
  color: var(--lux-ink-soft) !important;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none !important;
}

.lux-profile-social-chip:hover {
  background: var(--lux-gold-soft);
  color: var(--lux-ink) !important;
  border-color: rgba(176, 141, 87, 0.3);
}

.lux-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0.4rem 0.95rem;
  border-radius: 8px;
  font-size: 0.9rem !important;
  font-weight: 650 !important;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  font-family: var(--lux-font) !important;
}

.lux-profile-btn-ghost {
  color: var(--lux-ink) !important;
  background: #e4e6eb !important;
  border: 1px solid transparent !important;
}

.lux-profile-btn-ghost:hover {
  background: #d8dadf !important;
  color: var(--lux-ink) !important;
}

.lux-profile-btn-gold {
  color: #fff !important;
  background: var(--lux-gold) !important;
  border: 1px solid transparent !important;
  box-shadow: none;
}

.lux-profile-btn-gold:hover {
  background: var(--lux-gold-hover) !important;
  color: #fff !important;
}

/* Tabs — FB underline style */
.lux-profile-nav {
  border-top: 1px solid var(--lux-line);
  padding: 0 1rem;
  margin: 0;
}

.lux-profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lux-profile-tabs .nav-item {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lux-profile-tab {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.65rem 1.1rem;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  font-size: 0.95rem !important;
  font-weight: 650 !important;
  color: var(--lux-muted) !important;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-family: var(--lux-font) !important;
}

.lux-profile-tab:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--lux-ink) !important;
}

.lux-profile-tab.is-active,
.lux-profile-tab.active {
  background: transparent;
  color: var(--lux-gold) !important;
  border-bottom-color: var(--lux-gold);
}

/* —— Body —— */
.lux-profile-body {
  padding: 1rem 0 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

.lux-profile-panel {
  background: var(--lux-surface) !important;
  border: 1px solid var(--lux-line) !important;
  border-radius: var(--lux-radius) !important;
  box-shadow: var(--lux-shadow) !important;
  /* overflow:hidden breaks position:sticky on ancestors — clip via radius only */
  overflow: visible !important;
}

.lux-profile-panel-head {
  border-radius: var(--lux-radius) var(--lux-radius) 0 0;
}

.lux-profile-panel-head {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--lux-line);
  background: var(--lux-surface);
}

.lux-profile-feed-wrap,
.lux-profile-feed {
  min-width: 0;
}

.lux-profile-feed-foot {
  margin-top: 0.75rem;
  padding-bottom: 1.5rem;
}

.lux-profile-load-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
}

.lux-profile-load-end {
  margin: 0.75rem 0 0 !important;
  text-align: center;
  font-size: 0.88rem !important;
  color: #65676b !important;
}

.lux-profile-loading-text {
  font-size: 0.88rem;
  color: #65676b;
}

.lv-snipper-profile {
  padding: 0.75rem !important;
}

.lux-profile-panel-head h2 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lux-muted);
}

.lux-profile-panel-body {
  padding: 1.1rem 1.15rem 1.2rem;
}

.lux-profile-intro {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--lux-ink);
}

.lux-profile-intro-headline {
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}

.lux-profile-intro-soft {
  margin-top: 0;
  color: var(--lux-ink-soft);
}

.lux-profile-intro.is-muted {
  color: var(--lux-muted);
}

.lux-profile-stats {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lux-profile-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--lux-line);
}

.lux-profile-stat:first-child {
  padding-top: 0;
  border-top: 0;
}

.lux-profile-stat dt {
  margin: 0;
  font-size: 0.82rem;
  color: var(--lux-muted);
  font-weight: 500;
}

.lux-profile-stat dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--lux-ink);
  text-align: right;
}

.lux-profile-feed .post-item,
.lux-profile-feed .card {
  border-radius: var(--lux-radius-sm) !important;
  border-color: var(--lux-line) !important;
  box-shadow: var(--lux-shadow);
}

.lux-profile-more {
  background: var(--lux-surface);
  border: 1px solid var(--lux-line);
  border-radius: var(--lux-radius-sm);
  box-shadow: var(--lux-shadow);
  padding: 0.65rem;
}

.lux-profile-more-btn {
  width: 100%;
  min-height: 2.6rem;
  border: 1px solid var(--lux-line-strong);
  border-radius: 999px;
  background: var(--lux-bg);
  color: var(--lux-ink);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lux-profile-more-btn:hover {
  background: var(--lux-gold-soft);
  border-color: rgba(176, 141, 87, 0.35);
}

/* —— Kill legacy theme collision when old classes still appear —— */
.lv-profile-home .profile-cover,
.lv-profile-home .user-detail .profile-img,
.lv-profile-home .user-detail .profile-detail {
  /* no-op fallbacks if partial old markup remains */
}

/* Mobile: FB-style — avatar + name same row (no vertical stack gap) */
@media (max-width: 767.98px) {
  .lv-profile-home.lux-profile {
    --avatar-size: 100px;
    --avatar-overlap: 50px;
  }

  .lux-profile-shell {
    padding-top: 0 !important;
  }

  .lux-profile-card {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }

  .lux-profile-cover {
    height: clamp(140px, 42vw, 200px) !important;
    border-radius: 0 !important;
  }

  .lux-profile .lux-profile-identity,
  .lux-profile .lux-profile-identity-compact,
  body.eb-site-shell .lux-profile-identity,
  body.eb-site-shell .lux-profile-identity-compact {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    gap: 0.55rem 0.75rem !important;
    margin-top: calc(var(--avatar-overlap) * -1) !important;
    padding: 0 0.85rem 0.65rem !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .lux-profile .lux-profile-avatar {
    flex: 0 0 var(--avatar-size) !important;
    width: var(--avatar-size) !important;
    height: var(--avatar-size) !important;
    margin: 0 !important;
  }

  /* Name beside avatar — start at cover bottom (white), not over photo */
  .lux-profile .lux-profile-meta,
  .lux-profile .lux-profile-identity-compact .lux-profile-meta {
    display: block !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    /* identity starts --avatar-overlap into cover; push text down to white */
    padding: calc(var(--avatar-overlap) + 0.15rem) 0 0.25rem !important;
    margin: 0 !important;
    align-self: flex-start !important;
    min-height: 0 !important;
  }

  .lux-profile .lux-profile-name {
    text-shadow: none !important;
    color: #050505 !important;
    background: transparent !important;
  }

  .lux-profile .lux-profile-actions,
  .lux-profile .lux-profile-actions-end {
    flex: 1 1 100% !important;
    width: 100% !important;
    margin: 0.15rem 0 0 !important;
    padding: 0 !important;
    order: 3;
  }

  .lux-profile-name {
    font-size: 1.25rem !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  .lux-profile-handle {
    font-size: 0.85rem !important;
    margin-top: 0.1rem !important;
  }

  .lux-profile-headline-inline {
    margin-top: 0.15rem !important;
    font-size: 0.88rem !important;
  }

  .lux-profile-nav {
    padding: 0 0.35rem !important;
  }

  .lux-profile-tab {
    min-height: 2.75rem !important;
    padding: 0.5rem 0.85rem !important;
    font-size: 0.92rem !important;
  }

  .lux-profile-body {
    padding-top: 0.65rem !important;
  }

  .lux-profile-body .lux-profile-wrap {
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
  }

  .lux-profile-shell .lux-profile-wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .lux-profile-panel.sticky {
    position: static !important;
    max-height: none !important;
  }

  .lux-profile .post-item,
  .lux-profile .fb-feed-card {
    border-radius: 10px !important;
  }

  .lux-profile .fb-post-cover,
  .lux-profile .fb-post-media img {
    max-height: 280px !important;
  }

  .lux-profile-more-btn {
    min-height: 2.75rem !important;
    font-size: 0.92rem !important;
  }
}

@media (max-width: 575.98px) {
  .lv-profile-home.lux-profile {
    --avatar-size: 88px;
    --avatar-overlap: 44px;
  }

  .lux-profile-name {
    font-size: 1.15rem !important;
  }
}

/* ==========================================================================
   Account settings (/quan-ly-tai-khoan/*) — lux form + sidebar
   ========================================================================== */

.lux-account .lux-account-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lux-account-panel {
  background: var(--lux-surface);
  border: 1px solid var(--lux-line);
  border-radius: var(--lux-radius);
  box-shadow: var(--lux-shadow);
  overflow: hidden;
}

.lux-account-panel-head {
  padding: 1.05rem 1.25rem 0.95rem;
  border-bottom: 1px solid var(--lux-line);
  background: linear-gradient(180deg, #fffcf8 0%, var(--lux-surface) 100%);
}

.lux-account-panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lux-ink);
}

.lux-account-panel-head p {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--lux-muted);
}

.lux-account-panel-body {
  padding: 1.2rem 1.25rem 1.3rem;
}

.lux-account .lux-field {
  margin-bottom: 0;
}

.lux-account .lux-field .form-group {
  margin-bottom: 0 !important;
}

.lux-account .lux-field .control-label,
.lux-account .lux-field label.control-label,
.lux-account .lux-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--lux-ink-soft);
}

.lux-account .lux-field .form-control,
.lux-account .lux-field input.form-control,
.lux-account .lux-field select.form-control,
.lux-account .lux-field textarea.form-control {
  min-height: 2.55rem;
  border: 1px solid var(--lux-line-strong) !important;
  border-radius: var(--lux-radius-sm) !important;
  background: #fffcf9 !important;
  color: var(--lux-ink) !important;
  font-size: 0.92rem !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.lux-account .lux-field textarea.form-control {
  min-height: 7rem;
  line-height: 1.5;
  resize: vertical;
}

.lux-account .lux-field .form-control:focus,
.lux-account .lux-field input.form-control:focus,
.lux-account .lux-field select.form-control:focus,
.lux-account .lux-field textarea.form-control:focus {
  border-color: rgba(176, 141, 87, 0.55) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px var(--lux-gold-soft) !important;
  outline: none;
}

.lux-account .lux-field .text-danger,
.lux-account .lux-field .text-danger small,
.lux-account .lux-field .text-danger em {
  color: #8b3a3a !important;
  font-style: normal;
  font-size: 0.8rem;
}

.lux-account .lux-field-media {
  padding: 0.85rem;
  border: 1px dashed var(--lux-line-strong);
  border-radius: var(--lux-radius-sm);
  background: var(--lux-bg);
  text-align: center;
}

.lux-account .lux-field-media img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.08);
}

.lux-account-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--lux-line);
}

.lux-account-submit {
  min-width: 11rem;
  min-height: 2.6rem;
  border: 0;
  cursor: pointer;
}

/* Sidebar nav */
.lux-account-nav {
  background: var(--lux-surface);
  border: 1px solid var(--lux-line);
  border-radius: var(--lux-radius);
  box-shadow: var(--lux-shadow);
  overflow: hidden;
  position: sticky;
  top: 5.5rem;
}

.lux-account-nav-head {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--lux-line);
  background: linear-gradient(180deg, #fffcf8 0%, var(--lux-surface) 100%);
}

.lux-account-nav-head h2 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--lux-muted);
}

.lux-account-nav-list {
  list-style: none;
  margin: 0;
  padding: 0.45rem;
}

.lux-account-nav-list > li {
  list-style: none;
  margin: 0;
}

.lux-account-nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--lux-radius-sm);
  color: var(--lux-ink-soft) !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 550;
  transition: background 0.15s ease, color 0.15s ease;
}

.lux-account-nav-link:hover {
  background: var(--lux-bg);
  color: var(--lux-ink) !important;
}

.lux-account-nav-link.is-active {
  background: var(--lux-gold-soft);
  color: var(--lux-ink) !important;
  font-weight: 650;
}

.lux-account-nav-link.is-danger {
  color: #8b3a3a !important;
}

.lux-account-nav-link.is-danger:hover,
.lux-account-nav-link.is-danger.is-active {
  background: rgba(139, 58, 58, 0.08);
  color: #8b3a3a !important;
}

.lux-account-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  color: inherit;
  opacity: 0.85;
}

.lux-account-nav-divider {
  height: 1px;
  margin: 0.4rem 0.55rem;
  background: var(--lux-line);
}

@media (max-width: 991.98px) {
  .lux-account-nav {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .lux-account-panel-head,
  .lux-account-panel-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .lux-account-form-actions {
    justify-content: stretch;
  }

  .lux-account-submit {
    width: 100%;
  }
}

/* ============================================================
   Feed cards on profile (post-summary HTML)
   Home uses evabiz-social-home.css; profile must NOT load that file.
   These rules are scoped to .lux-profile so home/article stay untouched.
   ============================================================ */

body.eb-site-shell .container {
  background: transparent !important;
  background-color: transparent !important;
}

body.eb-site-shell .footer .container {
  background: transparent !important;
}

.lux-profile-feed {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
  width: 100% !important;
}

.lux-profile .post-item,
.lux-profile .fb-feed-card,
.lux-profile .osahan-post {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 0.85rem !important;
  padding: 0 !important;
  float: none !important;
  clear: both !important;
  background: #fff !important;
  border: 1px solid #ced0d4 !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Header: avatar | name/time | follow */
.lux-profile .fb-post-header {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  padding: 0.85rem 1rem 0.5rem !important;
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
}

.lux-profile .fb-post-avatar {
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  display: block !important;
  margin: 0 !important;
}

.lux-profile .fb-post-avatar img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 50% !important;
  position: static !important;
}

.lux-profile .fb-post-meta {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lux-profile .fb-post-name-row {
  display: flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  flex-wrap: nowrap !important;
}

.lux-profile .fb-post-name {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #050505 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

.lux-profile .fb-verified {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: #3897f0 !important;
  color: #fff !important;
  flex-shrink: 0 !important;
  font-size: 0.55rem !important;
}

.lux-profile .fb-verified i {
  color: #fff !important;
  font-size: 0.55rem !important;
}

.lux-profile .fb-post-time {
  display: block !important;
  font-size: 0.75rem !important;
  color: #65676b !important;
  margin-top: 0.1rem !important;
}

.lux-profile .fb-follow-btn {
  flex-shrink: 0 !important;
  margin-left: auto !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #e7f3ff !important;
  color: #1877f2 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  padding: 0.4rem 0.75rem !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

.lux-profile .fb-follow-btn.is-following {
  background: #e4e6eb !important;
  color: #65676b !important;
}

/* Body stack: title → excerpt → image (strict flow, no absolute) */
.lux-profile .fb-post-body,
.lux-profile .post-item .fb-post-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  position: static !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  float: none !important;
  width: 100% !important;
  height: auto !important;
}

.lux-profile .fb-post-body .article-title,
.lux-profile .post-item .article-title {
  display: block !important;
  position: static !important;
  order: 1 !important;
  flex: 0 0 auto !important;
  padding: 0.35rem 1rem 0.35rem !important;
  margin: 0 !important;
  font-size: 1.05rem !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  color: #050505 !important;
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  background: transparent !important;
  text-indent: 0 !important;
}

.lux-profile .fb-post-body .article-title a,
.lux-profile .post-item .article-title a {
  color: #050505 !important;
  text-decoration: none !important;
  background: none !important;
  display: inline !important;
  position: static !important;
}

.lux-profile .fb-post-body .summary,
.lux-profile .fb-post-body .nang-card-excerpt,
.lux-profile .post-item .summary {
  display: block !important;
  position: static !important;
  order: 2 !important;
  flex: 0 0 auto !important;
  padding: 0 1rem 0.75rem !important;
  margin: 0 !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  color: #65676b !important;
  line-height: 1.5 !important;
  float: none !important;
  clear: both !important;
  width: auto !important;
  max-width: 100% !important;
  max-height: 4.5em !important;
  overflow: hidden !important;
  height: auto !important;
}

/* Cover image — never absolute, never huge uncropped */
.lux-profile .fb-post-media,
.lux-profile .fb-post-body .fb-post-media,
.lux-profile .post-item .fb-post-media {
  display: block !important;
  position: static !important;
  order: 3 !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: both !important;
  height: auto !important;
  overflow: hidden !important;
  background: #e4e6eb !important;
  line-height: 0 !important;
}

.lux-profile .fb-post-media-link {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

.lux-profile .fb-post-cover,
.lux-profile .fb-post-media img,
.lux-profile .post-item .fb-post-media img {
  display: block !important;
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 420px !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  float: none !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
}

/* Action bar */
.lux-profile .fb-action-bar,
.lux-profile .action-panel,
.lux-profile .post-item .action-panel {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 0 !important;
  border-top: 1px solid #ced0d4 !important;
  margin: 0 !important;
  padding: 0.2rem 0.35rem !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
  background: #fff !important;
}

.lux-profile .fb-action-bar .social-button,
.lux-profile .action-panel .social-button {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
  text-align: center !important;
}

.lux-profile .fb-action-btn,
.lux-profile .action-panel .fb-action-btn,
.lux-profile .action-panel .lv-like,
.lux-profile .action-panel a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 0.45rem 0.35rem !important;
  margin: 0 !important;
  border-radius: 8px !important;
  color: #65676b !important;
  text-decoration: none !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  background: transparent !important;
  border: 0 !important;
}

.lux-profile .fb-action-btn:hover,
.lux-profile .action-panel a:hover {
  background: #f0f2f5 !important;
  color: #050505 !important;
}

.lux-profile .fb-action-btn i,
.lux-profile .action-panel a i {
  font-size: 1.05rem !important;
  margin: 0 !important;
}

/* Hide empty hidden count noise */
.lux-profile .lv-number-post-like.d-none {
  display: none !important;
}

.lux-profile-more-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 2.5rem !important;
  padding: 0.55rem 1rem !important;
  border: 1px solid #ced0d4 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #050505 !important;
  font-size: 0.95rem !important;
  font-weight: 650 !important;
  cursor: pointer !important;
}

.lux-profile-more-btn:hover {
  background: #f0f2f5 !important;
}

/* Kill theme absolute image hacks inside profile feed only */
.lux-profile .post-item img.lv-image,
.lux-profile .post-item .image-wrapper,
.lux-profile .post-item .image-wrapper img {
  position: static !important;
  float: none !important;
  width: 100% !important;
  height: auto !important;
  max-height: 420px !important;
  object-fit: cover !important;
}

/* =========================================================
   Feed cards — all post types on /u (status, editorial, video, link, text-bg)
   v16 — synced with home feed partial post-summary
   ========================================================= */

.lux-profile .fb-post-header-actions {
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  flex-shrink: 0 !important;
}

.lux-profile .eb-owner-menu-btn {
  width: 36px !important;
  height: 36px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #65676b !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
}
.lux-profile .eb-owner-menu-btn:hover {
  background: #f0f2f5 !important;
  color: #050505 !important;
}
.lux-profile .eb-owner-menu-list {
  min-width: 11rem !important;
  border-radius: 10px !important;
  border: 1px solid #ced0d4 !important;
  padding: 0.35rem 0 !important;
}
.lux-profile .eb-owner-menu-list .dropdown-item {
  font-size: 0.9rem !important;
  padding: 0.5rem 0.9rem !important;
  display: flex !important;
  align-items: center !important;
}

/* Status text body (no newspaper title) */
.lux-profile .eb-status-feed-body {
  padding: 0.15rem 1rem 0.65rem !important;
}
.lux-profile .eb-status-feed-text {
  font-size: 0.98rem !important;
  line-height: 1.45 !important;
  color: #050505 !important;
  margin: 0.1rem 0 0.35rem !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
}
.lux-profile .eb-status-feed-text a {
  color: inherit !important;
  text-decoration: none !important;
}

/* Text-on-background (FB style) */
.lux-profile .eb-status-bg,
.lux-profile .eb-status-bg-feed {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 200px !important;
  padding: 1.5rem 1.25rem !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  word-break: break-word !important;
  margin: 0.25rem 0 0.5rem !important;
  text-decoration: none !important;
}
.lux-profile .eb-bg-coral { background: linear-gradient(135deg, #e85d4c 0%, #c43a2a 100%) !important; }
.lux-profile .eb-bg-plum { background: linear-gradient(135deg, #5c3d5e 0%, #2d1b2e 100%) !important; }
.lux-profile .eb-bg-ocean { background: linear-gradient(135deg, #1a6b8a 0%, #0d3d52 100%) !important; }
.lux-profile .eb-bg-sunset { background: linear-gradient(135deg, #f5a623 0%, #e85d4c 100%) !important; }
.lux-profile .eb-bg-forest { background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%) !important; }
.lux-profile .eb-bg-night { background: linear-gradient(135deg, #1e1e2f 0%, #0f0f18 100%) !important; }

/* Link preview card */
.lux-profile .eb-link-card {
  display: block !important;
  margin: 0.55rem 0 0.15rem !important;
  border: 1px solid #ced0d4 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  text-decoration: none !important;
  color: inherit !important;
  background: #f0f2f5 !important;
}
.lux-profile .eb-link-card:hover {
  background: #e4e6eb !important;
}
.lux-profile .eb-link-card-media img {
  display: block !important;
  width: 100% !important;
  max-height: 180px !important;
  object-fit: cover !important;
  position: static !important;
}
.lux-profile .eb-link-card-body {
  padding: 0.55rem 0.75rem 0.65rem !important;
  background: #f7f8fa !important;
}
.lux-profile .eb-link-card-host {
  font-size: 0.7rem !important;
  text-transform: uppercase !important;
  color: #65676b !important;
  letter-spacing: 0.03em !important;
  margin-bottom: 0.15rem !important;
}
.lux-profile .eb-link-card-title {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #050505 !important;
  margin-bottom: 0.15rem !important;
}
.lux-profile .eb-link-card-desc {
  font-size: 0.8rem !important;
  color: #65676b !important;
  line-height: 1.35 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Video embeds on profile feed */
.lux-profile .fb-post-media video,
.lux-profile .fb-post-media iframe {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000 !important;
}
.lux-profile .fb-post-media .ratio {
  position: relative !important;
  width: 100% !important;
  padding-bottom: 56.25% !important;
  height: 0 !important;
  overflow: hidden !important;
}
.lux-profile .fb-post-media .ratio > iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Pill: status vs editorial (subtle) */
.lux-profile .post-item[data-type-of-post="0"] .fb-post-time::after {
  content: " · Trạng thái";
  font-weight: 500;
  opacity: 0.75;
}
