/* Luxoria v18.72.3 — Light Shell & Profile Precision Hotfix
   Applies only to Luxury Light. Dark mode remains untouched.
*/

/* 1. Sidebar icons: smaller, clean, without floating shadows. */
html[data-theme="light"] body .community-sidebar nav.sidebar-nav-v1862>a{
  grid-template-columns:36px minmax(0,1fr) auto!important;
  gap:10px!important;
  min-height:49px!important;
}
html[data-theme="light"] body .community-sidebar .modern-nav-icon{
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  min-height:36px!important;
  border-radius:11px!important;
  box-shadow:none!important;
  filter:none!important;
  -webkit-filter:none!important;
  text-shadow:none!important;
}
html[data-theme="light"] body .community-sidebar .modern-nav-icon svg{
  width:19px!important;
  height:19px!important;
  filter:none!important;
  -webkit-filter:none!important;
}
html[data-theme="light"] body .community-sidebar nav.sidebar-nav-v1862>a.active .modern-nav-icon,
html[data-theme="light"] body .community-sidebar nav.sidebar-nav-v1862>a:not(.active) .modern-nav-icon,
html[data-theme="light"] body .community-sidebar nav.sidebar-nav-v1862>a:nth-child(n+5) .modern-nav-icon{
  box-shadow:none!important;
  filter:none!important;
}
html[data-theme="light"] body .sidebar-bottom-v1862 :where(a,button),
html[data-theme="light"] body .sidebar-footer-v1862 :where(a,button){
  box-shadow:none!important;
}

/* 2. Sidebar divider: no inherited black plate behind the gold diamond. */
html[data-theme="light"] body .sidebar-section-divider-v1862{
  background:transparent!important;
  box-shadow:none!important;
}
html[data-theme="light"] body .sidebar-section-divider-v1862::before{
  background:linear-gradient(90deg,transparent,rgba(166,126,63,.15) 15%,rgba(166,126,63,.15) 85%,transparent)!important;
}
html[data-theme="light"] body .sidebar-section-divider-v1862::after{
  color:#bd861e!important;
  background:var(--lux-bg-sidebar,#fffdf9)!important;
  box-shadow:none!important;
}

/* 3 & 5. Desktop scroll boundary and merged curved gold line.
   The content becomes the scroll container, so it can never paint below the
   outer gold frame. Its top border begins exactly at the header bottom. */
@media(min-width:761px){
  html[data-theme="light"],
  html[data-theme="light"] body{
    height:100%!important;
    overflow:hidden!important;
  }
  html[data-theme="light"] body:not(.chat-window-mode-v1860) .community-app.luxoria-unified-shell-v1863{
    height:100dvh!important;
    min-height:100dvh!important;
    overflow:hidden!important;
    padding-top:calc(var(--lux-unified-gutter) + var(--lux-unified-top-height))!important;
    padding-bottom:var(--lux-unified-gutter)!important;
  }
  html[data-theme="light"] body:not(.chat-window-mode-v1860) .community-main,
  html[data-theme="light"] body:not(.chat-window-mode-v1860) .phase-two-main{
    height:calc(100dvh - var(--lux-unified-top-height) - (var(--lux-unified-gutter) * 2))!important;
    min-height:0!important;
    margin-top:-1px!important;
    padding-bottom:42px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    scrollbar-gutter:stable!important;
    border-top:1px solid rgba(190,137,39,.22)!important;
    border-left:1px solid rgba(190,137,39,.22)!important;
    border-bottom:1px solid rgba(190,137,39,.18)!important;
    border-top-left-radius:30px!important;
    border-bottom-right-radius:34px!important;
    background:#fdfbf7!important;
    background-image:linear-gradient(135deg,#fdfbf7 0%,#fbf8f3 72%,#f8f3fb 100%)!important;
    box-shadow:inset 1px 1px 0 rgba(255,255,255,.84)!important;
  }
  /* The header lower line and content upper curve share one visual coordinate. */
  html[data-theme="light"] body:not(.chat-window-mode-v1860) .community-topbar.luxoria-unified-topbar-v1863{
    border-bottom-color:rgba(190,137,39,.22)!important;
  }
  html[data-theme="light"] body:not(.chat-window-mode-v1860) .community-app.luxoria-unified-shell-v1863::after{
    content:none!important;
    display:none!important;
  }
}

/* 4. Member profile: complete ivory/champagne treatment matching the new theme. */
html[data-theme="light"] body .embedded-profile-v173{
  color:#18191e!important;
  background:transparent!important;
}
html[data-theme="light"] body .profile-v172-identity,
html[data-theme="light"] body .profile-v172-hero,
html[data-theme="light"] body .profile-v172-left,
html[data-theme="light"] body .profile-v172-right,
html[data-theme="light"] body .profile-v172-media-layout{
  background:transparent!important;
}
html[data-theme="light"] body .profile-v172-identity h1,
html[data-theme="light"] body .profile-v172-identity p,
html[data-theme="light"] body .profile-location-under-name{
  color:#25262b!important;
}
html[data-theme="light"] body .profile-v172-stage{
  background:#fffdfa!important;
  border-color:rgba(163,122,55,.22)!important;
  box-shadow:0 8px 22px rgba(72,49,24,.055)!important;
}
html[data-theme="light"] body .profile-v172-vertical-tabs button,
html[data-theme="light"] body .profile-v172-vertical-tabs>a,
html[data-theme="light"] body .profile-v172-side-edit-v1815{
  color:#4a4b50!important;
  background:#fffdfa!important;
  border-color:rgba(163,122,55,.20)!important;
  box-shadow:0 5px 14px rgba(72,49,24,.045)!important;
}
html[data-theme="light"] body .profile-v172-vertical-tabs button:hover,
html[data-theme="light"] body .profile-v172-vertical-tabs button.active,
html[data-theme="light"] body .profile-v172-vertical-tabs>a:hover{
  color:#724c0e!important;
  background:linear-gradient(180deg,#fffdf9,#faf4e8)!important;
  border-color:rgba(197,145,53,.44)!important;
  box-shadow:0 7px 18px rgba(72,49,24,.065)!important;
}
html[data-theme="light"] body .profile-v172-vertical-tabs .profile-tab-icon-v1837{
  width:27px!important;
  height:27px!important;
  min-width:27px!important;
  min-height:27px!important;
  color:#d49a2d!important;
  filter:none!important;
}
html[data-theme="light"] body .profile-v172-vertical-tabs .profile-tab-icon-v1837 svg{
  width:24px!important;
  height:24px!important;
}
html[data-theme="light"] body :where(
  .profile-looking-card,.profile-description-card,.profile-reputation-card,
  .profile-v172-details,.profile-friends-v173,.profile-validations-v184,
  .profile-self-settings
){
  color:#25262b!important;
  background:#fffdfa!important;
  background-image:none!important;
  border-color:rgba(163,122,55,.18)!important;
  box-shadow:0 8px 22px rgba(72,49,24,.05),inset 0 1px 0 rgba(255,255,255,.92)!important;
}
html[data-theme="light"] body .profile-looking-card small,
html[data-theme="light"] body .profile-description-card small,
html[data-theme="light"] body .profile-friends-v173 header small,
html[data-theme="light"] body .profile-validations-v184 header small{
  color:#a87518!important;
}
html[data-theme="light"] body .profile-looking-card h2,
html[data-theme="light"] body .profile-description-card p,
html[data-theme="light"] body .profile-introduction-v1814>p{
  color:#55575e!important;
}
html[data-theme="light"] body .profile-plan-strip{
  background:linear-gradient(180deg,#fffdfa,#faf6ee)!important;
  border-bottom-color:rgba(190,137,39,.18)!important;
}
html[data-theme="light"] body .profile-plan-strip strong{
  color:#b97d19!important;
  text-shadow:none!important;
}
html[data-theme="light"] body .profile-reputation-card{
  overflow:hidden!important;
}
html[data-theme="light"] body .profile-reputation-card div{
  border-color:rgba(166,126,63,.13)!important;
  background:#fffdfa!important;
}
html[data-theme="light"] body .profile-reputation-card small{color:#8a7d69!important}
html[data-theme="light"] body .profile-reputation-card strong{color:#c68b22!important}
html[data-theme="light"] body .profile-v172-details>header{
  color:#2a2b30!important;
  background:linear-gradient(180deg,#fffdf9,#faf6ed)!important;
  border-bottom:1px solid rgba(166,126,63,.13)!important;
}
html[data-theme="light"] body .profile-v172-details .detail-row{
  color:#33343a!important;
  border-top:1px solid rgba(166,126,63,.07)!important;
}
html[data-theme="light"] body .profile-v172-details .detail-row:nth-child(odd){background:#fffdfa!important}
html[data-theme="light"] body .profile-v172-details .detail-row:nth-child(even){background:#faf6ee!important}
html[data-theme="light"] body .profile-v172-details .detail-row strong{color:#75684f!important}
html[data-theme="light"] body .profile-v172-details .detail-row span{color:#2f3035!important}
html[data-theme="light"] body .profile-friend-cards>a,
html[data-theme="light"] body .profile-validation-cards-v184 article{
  color:#292a2f!important;
  background:#fffdfa!important;
  border-color:rgba(163,122,55,.18)!important;
  box-shadow:0 4px 12px rgba(72,49,24,.04)!important;
}
html[data-theme="light"] body .profile-friend-cards strong,
html[data-theme="light"] body .validation-member-v184 strong{color:#ad7417!important}
html[data-theme="light"] body .profile-friend-cards small,
html[data-theme="light"] body .profile-validation-cards-v184 article>p{color:#66686e!important}
html[data-theme="light"] body :where(.profile-friend-cards,.profile-validation-cards-v184) .empty-state,
html[data-theme="light"] body .profile-friends-v173 .empty-state,
html[data-theme="light"] body .profile-validations-v184 .empty-state{
  color:#8a7d69!important;
  background:#fffdf9!important;
  border-color:rgba(216,167,67,.34)!important;
}
html[data-theme="light"] body .profile-friends-v173>header>span,
html[data-theme="light"] body .profile-validations-v184>header>span{
  color:#ad7417!important;
  background:#fffdfa!important;
  border-color:rgba(163,122,55,.22)!important;
}
html[data-theme="light"] body .profile-action-static,
html[data-theme="light"] body .profile-v172-actions button,
html[data-theme="light"] body .profile-primary-action{
  color:#3a3b40!important;
  background:#fffdfa!important;
  border-color:rgba(163,122,55,.20)!important;
  box-shadow:0 5px 14px rgba(72,49,24,.04)!important;
}
html[data-theme="light"] body .profile-v172-actions small,
html[data-theme="light"] body .profile-primary-action small{color:#8b8170!important}

/* Images remain rich; only their surrounding panels are light. */
html[data-theme="light"] body .profile-main-image,
html[data-theme="light"] body .profile-main-image img,
html[data-theme="light"] body .profile-picture-open-v1831,
html[data-theme="light"] body .profile-picture-open-v1831 img{
  background:#111619!important;
}

@media(max-width:760px){
  html[data-theme="light"] body .community-sidebar .modern-nav-icon{
    width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;
  }
  html[data-theme="light"] body .community-sidebar .modern-nav-icon svg{width:18px!important;height:18px!important}
  html[data-theme="light"] body .profile-v172-vertical-tabs .profile-tab-icon-v1837{width:25px!important;height:25px!important;min-width:25px!important;min-height:25px!important}
  html[data-theme="light"] body .profile-v172-vertical-tabs .profile-tab-icon-v1837 svg{width:22px!important;height:22px!important}
}
