/*
 * Luxoria v18.73.0 — Luxury Light Only / Global Surface Normalization
 * Loaded last on every member-facing page. It neutralizes historical dark
 * surfaces without changing layout, routes, forms, API behavior or data.
 */
html[data-theme="light"]{
  --lux-bg-page:#f7f4ef;
  --lux-bg-shell:#fdfbf7;
  --lux-bg-header:#fffdfa;
  --lux-bg-sidebar:#fffdfa;
  --lux-surface-primary:#fffdfa;
  --lux-surface-secondary:#faf7f1;
  --lux-surface-soft:#f5f1ea;
  --lux-surface-hover:#f7f1e9;
  --lux-text-primary:#18191e;
  --lux-text-secondary:#54565d;
  --lux-text-muted:#7f8188;
  --lux-text-soft:#9a978f;
  --lux-gold:#d8a743;
  --lux-gold-light:#efcd83;
  --lux-gold-dark:#a87518;
  --lux-gold-soft:rgba(216,167,67,.10);
  --lux-gold-border:rgba(190,137,39,.28);
  --lux-purple:#8556df;
  --lux-purple-soft:rgba(133,86,223,.075);
  --lux-teal:#25ae9f;
  --lux-green-online:#2dbf73;
  --lux-red-like:#ff3e62;
  --lux-border:rgba(93,72,43,.13);
  --lux-border-strong:rgba(166,126,63,.21);
  --lux-divider:rgba(59,48,35,.09);
  --lux-shadow-xs:0 2px 8px rgba(70,49,24,.035);
  --lux-shadow-sm:0 5px 16px rgba(70,49,24,.05);
  --lux-shadow-md:0 10px 30px rgba(70,49,24,.07);
  --bg:var(--lux-bg-page)!important;
  --panel:var(--lux-surface-primary)!important;
  --panel2:var(--lux-surface-secondary)!important;
  --panel3:var(--lux-surface-soft)!important;
  --line:var(--lux-border)!important;
  --text:var(--lux-text-primary)!important;
  --muted:var(--lux-text-muted)!important;
  color-scheme:light!important;
}

html[data-theme="light"],
html[data-theme="light"] body{
  background:
    radial-gradient(circle at 0 42%,rgba(133,86,223,.055),transparent 27%),
    radial-gradient(circle at 100% 48%,rgba(216,167,67,.085),transparent 28%),
    linear-gradient(135deg,#f6f3ef,#fcfaf6 48%,#f7f2e9)!important;
  color:var(--lux-text-primary)!important;
}

/* General surfaces used by legacy and recent pages. */
html[data-theme="light"] body :where(
  .panel,.card,details,
  .account-setting-card,.completion-card,.profile-card,.profile-summary,.profile-settings,.profile-people,
  .phase-two-locked,.phase-two-empty,.phase-two-filterbar,.phase-two-stats,.phase-two-modal-card,
  .search-filters,.notification-list article,.membership-control-card,.membership-action-dialog,
  .support-card,.support-panel,.validation-card,.validation-decision-card,.validation-history-card,
  .event-card,.event-details-card,.video-card,.member-album-card,.protected-album,
  .new-member-card,.member-card,.member-card-v1841,.member-card-v1844,
  .feed-widget-v1865,.create-post-v1865,.feed-post-v1865,.feed-filter-menu-v1865,
  .messenger-layout,.conversation-list,.direct-chat,.direct-compose-v187,.message-attach-menu,
  .chat-panel,.chat-list-panel,.chat-message-area,.chat-room-card,.room-list,
  .profile-stage-panel,.profile-looking-card,.profile-description-card,.profile-reputation-card,
  .profile-friends-v173,.profile-validations-v184,.profile-v172-details,
  .member-header-dropdown,.notification-header-dropdown,.settings-header-menu-v1826,
  .luxoria-popup-card-v1860,.feed-event-dialog-v1865,.feed-invite-dialog-v18651,
  .message-media-dialog,.message-media-modal,.album-lightbox-dialog,
  .feature-option-locked,.feature-locked-mini,.empty-state,.empty-mini
){
  background:linear-gradient(145deg,rgba(255,253,250,.985),rgba(250,247,241,.985))!important;
  background-color:var(--lux-surface-primary)!important;
  border-color:var(--lux-border)!important;
  color:var(--lux-text-primary)!important;
  box-shadow:var(--lux-shadow-sm),inset 0 1px 0 rgba(255,255,255,.88)!important;
}

html[data-theme="light"] body :where(
  .panel,.card,details,.account-setting-card,.completion-card,.profile-card,
  .phase-two-locked,.search-filters,.notification-list article,.membership-control-card,
  .validation-card,.event-card,.new-member-card,.member-card,.feed-widget-v1865,.feed-post-v1865
):hover{
  border-color:rgba(197,145,53,.27)!important;
}

/* Common typography inside all neutralized boxes. */
html[data-theme="light"] body :where(
  .account-settings-shell,.completion-shell,.community-main,.phase-two-main,
  .member-header-dropdown,.notification-header-dropdown,.settings-header-menu-v1826,
  .luxoria-popup-card-v1860,.feed-event-dialog-v1865,.feed-invite-dialog-v18651
) :where(h1,h2,h3,h4,h5,h6,strong,b,legend,summary,label){color:var(--lux-text-primary)!important}
html[data-theme="light"] body :where(
  .account-settings-shell,.completion-shell,.community-main,.phase-two-main,
  .member-header-dropdown,.notification-header-dropdown,.settings-header-menu-v1826
) :where(p,small,time,em,dt,.muted){color:var(--lux-text-muted)!important}

/* Inputs, selects and text areas on every member-facing page. */
html[data-theme="light"] body :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
  color:var(--lux-text-primary)!important;
  background:#fffdfa!important;
  border:1px solid rgba(103,79,44,.17)!important;
  box-shadow:inset 0 1px 2px rgba(70,49,24,.025)!important;
}
html[data-theme="light"] body :where(input,textarea)::placeholder{color:#9a9b9f!important}
html[data-theme="light"] body :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea):focus{
  border-color:rgba(204,151,55,.62)!important;
  box-shadow:0 0 0 3px rgba(215,168,76,.11),0 5px 14px rgba(70,49,24,.035)!important;
}

/* Account Settings / Member Control Center. */
html[data-theme="light"] body.account-settings-body{background:linear-gradient(135deg,#f6f3ef,#fffdfa 50%,#f7f2e9)!important}
html[data-theme="light"] body .account-settings-shell{color:var(--lux-text-primary)!important}
html[data-theme="light"] body .account-settings-shell>header{
  padding:18px 20px!important;border:1px solid var(--lux-border)!important;border-radius:18px!important;
  background:rgba(255,253,250,.96)!important;box-shadow:var(--lux-shadow-sm)!important;
}
html[data-theme="light"] body .account-settings-shell>header h1{color:#18191e!important}
html[data-theme="light"] body .account-settings-shell>header small,
html[data-theme="light"] body .account-settings-shell>header>a:last-child{color:#b77b18!important}
html[data-theme="light"] body .account-settings-nav a{
  color:#4d4f55!important;background:#fffdfa!important;border:1px solid var(--lux-border)!important;
  box-shadow:var(--lux-shadow-xs)!important;
}
html[data-theme="light"] body .account-settings-nav a:hover{
  color:#744d0d!important;background:#faf3e6!important;border-color:var(--lux-gold-border)!important;
}
html[data-theme="light"] body .account-setting-card{
  display:block!important;padding:0!important;overflow:hidden!important;border-radius:18px!important;margin-bottom:14px!important;
}
html[data-theme="light"] body .account-setting-card>summary{
  min-height:126px!important;padding:22px!important;background:linear-gradient(145deg,#fffdfa,#faf7f1)!important;
  color:var(--lux-text-primary)!important;
}
html[data-theme="light"] body .account-setting-card>summary:hover{background:#f9f4eb!important}
html[data-theme="light"] body .account-setting-card>summary small{color:#b77b18!important}
html[data-theme="light"] body .account-setting-card>summary h2{color:#24252a!important;opacity:1!important}
html[data-theme="light"] body .account-setting-card>summary p{color:#666970!important}
html[data-theme="light"] body .account-chevron-v1834{
  color:#a87518!important;background:#fffaf0!important;border-color:rgba(190,137,39,.38)!important;
}
html[data-theme="light"] body .account-setting-content-v1833{
  padding:22px!important;background:#fffdfa!important;border-top:1px solid var(--lux-divider)!important;
}
html[data-theme="light"] body .account-block-list article,
html[data-theme="light"] body .feature-option-locked{
  background:#faf7f1!important;border:1px solid var(--lux-border)!important;color:var(--lux-text-primary)!important;
}
html[data-theme="light"] body .account-block-list img{background:#f3efe8!important}

/* Edit/complete profile form. */
html[data-theme="light"] body.profile-completion-body{background:linear-gradient(135deg,#f6f3ef,#fffdfa 48%,#f7f2e9)!important}
html[data-theme="light"] body .completion-head{
  padding:22px!important;border:1px solid var(--lux-border)!important;border-radius:20px!important;
  background:#fffdfa!important;box-shadow:var(--lux-shadow-sm)!important;
}
html[data-theme="light"] body .completion-head h1,
html[data-theme="light"] body .completion-card :where(h2,h3){color:#24252a!important}
html[data-theme="light"] body .completion-head p,
html[data-theme="light"] body .section-heading p{color:#72747a!important}
html[data-theme="light"] body .completion-card{border-radius:18px!important}
html[data-theme="light"] body .completion-card label{color:#56585f!important}
html[data-theme="light"] body .dynamic-section{border-color:var(--lux-divider)!important}
html[data-theme="light"] body .looking-choice-grid label>span,
html[data-theme="light"] body .profile-photo-manager-grid article{
  background:#faf7f1!important;border-color:var(--lux-border)!important;color:var(--lux-text-primary)!important;
}
html[data-theme="light"] body .completion-ring{background:#fffdfa!important;color:#24252a!important}

/* Member directory, filters, locked states and empty states. */
html[data-theme="light"] body :where(.phase-two-heading,.page-title,.stage-heading) h1,
html[data-theme="light"] body :where(.phase-two-heading,.page-title,.stage-heading) h2{color:#202126!important}
html[data-theme="light"] body .phase-two-locked,
html[data-theme="light"] body .phase-two-empty,
html[data-theme="light"] body .empty-state{
  color:#777981!important;border-style:dashed!important;border-color:rgba(190,137,39,.30)!important;
}
html[data-theme="light"] body .empty-state strong,
html[data-theme="light"] body .phase-two-empty strong{color:#35363b!important}
html[data-theme="light"] body .phase-two-filterbar,
html[data-theme="light"] body .search-filters{background:#fffdfa!important}

/* Events, media, validations, plans, support. */
html[data-theme="light"] body :where(.event-content,.new-member-info,.member-card-info,.membership-control-card,.validation-card,.support-card) :where(h2,h3,strong){color:#25262b!important}
html[data-theme="light"] body :where(.event-content,.new-member-info,.member-card-info,.membership-control-card,.validation-card,.support-card) :where(p,small,span){color:#686a70!important}
html[data-theme="light"] body .membership-control-card footer,
html[data-theme="light"] body .event-card footer{border-color:var(--lux-divider)!important;background:#faf7f1!important}

/* Messaging and chat: eliminate inherited black boxes. */
html[data-theme="light"] body :where(.messenger-layout,.conversation-list,.direct-chat,.chat-panel,.chat-list-panel,.chat-message-area,.room-list){
  background:#fffdfa!important;border-color:var(--lux-border)!important;
}
html[data-theme="light"] body :where(.conversation-list article,.conversation-row,.direct-message,.chat-message):not(.mine){
  background:#faf7f1!important;color:#34363b!important;border-color:var(--lux-divider)!important;
}
html[data-theme="light"] body :where(.direct-message.mine,.chat-message.mine,.direct-bubble.mine){
  background:linear-gradient(145deg,#f5e5bd,#edc96f)!important;color:#3b280a!important;
}
html[data-theme="light"] body :where(.direct-compose-v187,.chat-compose){
  background:#fffdfa!important;border-color:var(--lux-border)!important;
}
html[data-theme="light"] body .message-attach-menu,
html[data-theme="light"] body .message-emoji-panel{background:#fffdfa!important;color:#24252a!important}

/* Popups and dialogs. */
html[data-theme="light"] body :where(.modal-backdrop,.luxoria-popup-backdrop-v1860,.feed-event-modal-v1865,.feed-invite-modal-v18651,.message-media-modal,.album-lightbox){
  background:rgba(51,44,35,.26)!important;backdrop-filter:blur(5px)!important;-webkit-backdrop-filter:blur(5px)!important;
}
html[data-theme="light"] body :where(.luxoria-popup-card-v1860,.phase-two-modal-card,.feed-event-dialog-v1865,.feed-invite-dialog-v18651,.message-media-dialog,.album-lightbox-dialog){
  background:#fffdfa!important;color:#24252a!important;border-color:var(--lux-gold-border)!important;
}

/* Dropdowns. */
html[data-theme="light"] body :where(.member-header-dropdown,.notification-header-dropdown,.settings-header-menu-v1826){
  background:#fffdfa!important;color:#24252a!important;border-color:var(--lux-gold-border)!important;
}
html[data-theme="light"] body :where(.member-header-dropdown,.notification-header-dropdown,.settings-header-menu-v1826) a:hover{
  background:#f7f1e9!important;color:#24252a!important;
}

/* Buttons: retain semantics, normalize standard actions. */
html[data-theme="light"] body :where(button:not(.danger-btn):not(.reject),a.primary,.primary-btn,.lux-primary-btn){
  border-color:rgba(173,112,17,.42)!important;
}
html[data-theme="light"] body :where(.secondary,.lux-secondary-btn){
  color:#6c470d!important;background:#fffdfa!important;border:1px solid rgba(190,137,39,.34)!important;
}

/* Tables and rows. */
html[data-theme="light"] body :where(table,dl){color:#34363b!important}
html[data-theme="light"] body :where(th,.profile-v172-details>header){background:#faf3e6!important;color:#8a5b10!important;border-color:var(--lux-divider)!important}
html[data-theme="light"] body tr:nth-child(odd),
html[data-theme="light"] body .detail-row:nth-child(odd){background:#fffdfa!important}
html[data-theme="light"] body tr:nth-child(even),
html[data-theme="light"] body .detail-row:nth-child(even){background:#faf7f1!important}
html[data-theme="light"] body :where(td,th,.detail-row){border-color:var(--lux-divider)!important;color:#383a3f!important}

/* The member-facing theme selector no longer exists. */
html[data-theme="light"] body :where(.member-theme-switcher-v1872,.theme-choice-group-v1872,[data-theme-switcher]){display:none!important}

@media(max-width:760px){
  html[data-theme="light"] body .account-settings-shell{padding:14px 10px!important}
  html[data-theme="light"] body .account-settings-shell>header{grid-template-columns:1fr!important}
  html[data-theme="light"] body .account-setting-card>summary{min-height:0!important;padding:18px!important}
  html[data-theme="light"] body .completion-head{padding:18px!important}
}

@media(prefers-reduced-motion:reduce){
  html[data-theme="light"] body *{scroll-behavior:auto!important}
}
