/* DH_CJ Gold Interior v1.0 (2026-10-29)
   Scoped to Discover and My pages. Matches the user's dark-gold reference.
   Preserve existing account, referral and activity business logic. */
body.portal-v3.portal-inner.portal-luxe {
  --portal-bg:#1d1a13;--portal-surface:#342c20;--portal-surface2:#3e3424;
  --portal-ink:#f4e6c9;--portal-muted:#c4ae89;--portal-line:#79613e;
  background:#1d1a13!important;color:#f4e6c9!important;
  min-height:100vh;
  background-image:radial-gradient(ellipse at 18% 18%,rgba(132,97,46,.13),transparent 52%),
    radial-gradient(ellipse at 88% 82%,rgba(117,86,42,.10),transparent 55%)!important;
}
body.portal-luxe .portal-shell-header {
  position:relative;top:auto;z-index:101;
  width:min(1020px,calc(100% - 22px));margin:10px auto 0;
  background:linear-gradient(110deg,#403624,#2f291e 70%,#423623)!important;
  border:1px solid #806740!important;border-radius:15px;
  box-shadow:inset 0 1px 0 rgba(242,201,126,.16),0 7px 24px rgba(0,0,0,.22);
}
body.portal-luxe .portal-shell-inner {
  width:100%;min-height:63px;padding:7px 12px;gap:13px;
}
body.portal-luxe .portal-shell-brand img {
  width:45px;height:45px;border:1px solid #b89756;
  border-radius:12px;box-shadow:0 0 0 2px rgba(197,150,72,.13);
}
body.portal-luxe .portal-shell-brand strong{color:#f8e5bb!important;font-size:20px}
body.portal-luxe .portal-shell-brand small{color:#c5a979!important}
body.portal-luxe .portal-shell-links a{color:#dfc89d!important}
body.portal-luxe .portal-shell-links a.is-current{color:#ffdb91!important}
body.portal-luxe .portal-theme-toggle{display:none!important}
body.portal-luxe .portal-shell-profile{
  background:#4c3c27!important;color:#f8db9e!important;
  border-color:#9a7b4b!important;width:39px;height:39px;
}
body.portal-luxe .portal-shell-profile:hover{background:#665030!important}
body.portal-v3.portal-luxe nav.bottom-nav{
  background:rgba(29,24,17,.98)!important;border:1px solid #826740!important;
  box-shadow:0 5px 26px rgba(0,0,0,.46),inset 0 1px 0 rgba(238,197,120,.15)!important;
}
body.portal-v3.portal-luxe nav.bottom-nav a.nav-item{
  color:#dec393!important;
}
body.portal-v3.portal-luxe nav.bottom-nav a.nav-item .nav-icon{
  color:#dbb675!important;
}
body.portal-v3.portal-luxe nav.bottom-nav a.nav-item.active,
body.portal-v3.portal-luxe nav.bottom-nav a.nav-item[aria-current="page"]{
  background:linear-gradient(135deg,#68512e,#493820)!important;
  color:#ffe5ae!important;
}
body.portal-v3.portal-luxe nav.bottom-nav a.nav-item.active .nav-icon{
  color:#ffe0a2!important;
}

/* Discover: remove the giant empty white container and join the cards. */
body.portal-inner.portal-luxe .discovery-hub {
  box-sizing:border-box;width:min(1020px,calc(100% - 22px))!important;
  max-width:1020px!important;min-height:0!important;height:auto!important;
  margin:11px auto 100px!important;padding:6px 0 20px!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;overflow:visible!important;
}
body.portal-inner.portal-luxe .discovery-hub-header{
  display:grid;grid-template-columns:44px 1fr 44px;align-items:center;
  height:58px;min-height:58px;margin:0 0 13px;padding:0 6px 9px;
  background:transparent!important;border:0!important;
  color:#f4e8d0!important;position:relative;
}
body.portal-inner.portal-luxe .discovery-hub-header::after{
  content:"";position:absolute;bottom:1px;left:calc(50% - 54px);width:108px;height:2px;
  background:linear-gradient(90deg,transparent,#d7b06d,transparent);
}
body.portal-inner.portal-luxe .discovery-hub-header h1{
  margin:0;text-align:center;font-size:23px;color:#f6e6c8!important;
  font-weight:800;letter-spacing:.05em;
}
body.portal-inner.portal-luxe .discovery-hub-avatar{
  width:41px;height:41px;border-radius:50%;background:#3b3020;
  border:2px solid #aa864e;box-shadow:0 0 0 3px rgba(212,174,101,.10);
}
body.portal-inner.portal-luxe .discovery-entry-list{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:11px!important;padding:0 3px!important;
}
body.portal-inner.portal-luxe .discovery-entry{
  display:flex;align-items:center;gap:11px;min-width:0;min-height:99px;
  padding:12px 13px;
  background:linear-gradient(110deg,rgba(68,56,36,.96),rgba(48,40,28,.98)),
    url("../picture/home-v4/card-ornament.svg") center/cover!important;
  border:1px solid #78603b!important;border-radius:15px!important;
  color:#f7e8cc!important;
  box-shadow:inset 0 1px 0 rgba(255,225,160,.13),0 3px 10px rgba(0,0,0,.20)!important;
  text-decoration:none;transition:transform .16s,border-color .16s;
}
body.portal-inner.portal-luxe .discovery-entry:hover{
  border-color:#c59b57!important;transform:translateY(-1px);
}
body.portal-inner.portal-luxe .discovery-entry-icon{
  flex:0 0 49px;width:49px;height:49px;border-radius:13px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(145deg,#655033,#34281c)!important;
  border:1px solid rgba(204,161,90,.35);
  font-size:26px;box-shadow:inset 0 1px 0 rgba(255,215,139,.1);
}
body.portal-inner.portal-luxe .discovery-entry-icon:has(img){background:#2c261c!important}
body.portal-inner.portal-luxe .discovery-entry-icon img{width:100%;height:100%;object-fit:contain;border-radius:10px}
body.portal-inner.portal-luxe .discovery-entry-copy{display:flex;flex:1;flex-direction:column;gap:5px;min-width:0}
body.portal-inner.portal-luxe .discovery-entry-name{
  font-size:15px;line-height:1.2;font-weight:780;color:#fff1d6!important;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
body.portal-inner.portal-luxe .discovery-entry-subtitle{
  display:block;color:#c6b293;font-size:11px;line-height:1.3;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
body.portal-inner.portal-luxe .discovery-entry-side{gap:3px;flex:0 0 auto;color:#e9bb75!important;font-size:23px}
body.portal-inner.portal-luxe .discovery-entry-side-image{width:29px;height:29px}
body.portal-inner.portal-luxe .discovery-entry:last-child:nth-child(odd){grid-column:1/-1}
body.portal-inner.portal-luxe .discovery-hub-hint{
  margin:17px 0 0;text-align:center;color:#ae956f;font-size:12px;
}

/* My: same gold border, no white gap between hero and profile. */
body.portal-inner.portal-luxe .my-center-v3{
  box-sizing:border-box;width:min(1020px,calc(100% - 22px))!important;
  max-width:1020px!important;margin:10px auto 105px!important;
  padding:0!important;color:#f4e7ce!important;
}
body.portal-inner.portal-luxe .my-center-shell{
  width:100%;max-width:1020px;min-width:0;
  background:#2c251b!important;border:1px solid #856a43!important;
  border-radius:18px!important;overflow:hidden!important;
  box-shadow:0 10px 35px rgba(0,0,0,.3),inset 0 1px 0 rgba(237,194,120,.13)!important;
}
body.portal-inner.portal-luxe .my-hero{
  isolation:isolate;position:relative;height:305px;
  background:linear-gradient(120deg,#251e15,#60421f)!important;
  border-bottom:2px solid #9b7a48;
  overflow:hidden;
}
body.portal-inner.portal-luxe .my-hero-custom-image{
  position:absolute;z-index:0;inset:0;width:100%;height:100%;
  display:block;object-fit:cover;object-position:center;
}
body.portal-inner.portal-luxe .my-hero-glow{z-index:1;opacity:.12}
body.portal-inner.portal-luxe .my-hero-glow-one{background:#e6a64c}
body.portal-inner.portal-luxe .my-hero-glow-two{background:#d9a44c}
body.portal-inner.portal-luxe .my-hero-cabinet,
body.portal-inner.portal-luxe .my-hero-ground,
body.portal-inner.portal-luxe .my-hero-arc{display:none!important}
body.portal-inner.portal-luxe .my-hero-shade{
  z-index:2;background:linear-gradient(180deg,rgba(8,7,5,.36),transparent 42%,rgba(10,8,5,.55))!important;
}
body.portal-inner.portal-luxe .my-hero-title{z-index:3;top:28px}
body.portal-inner.portal-luxe .my-hero-title h1{
  color:#fff1cd!important;text-shadow:0 2px 10px rgba(0,0,0,.7);
}
body.portal-inner.portal-luxe .my-hero-edit{
  z-index:4;top:24px;right:18px;border:1px solid #d5ae6e;
  color:#f5d6a1;background:rgba(38,28,18,.75);border-radius:10px;
}
body.portal-inner.portal-luxe .my-cover-change{
  position:absolute;z-index:4;top:24px;right:66px;min-height:36px;
  display:flex;align-items:center;justify-content:center;gap:6px;
  padding:7px 12px;border:1px solid #c49a59;border-radius:10px;
  background:rgba(42,30,18,.76);color:#f8deb0;font-size:12px;font-weight:750;
  cursor:pointer;backdrop-filter:blur(6px);
}
body.portal-inner.portal-luxe .my-cover-change:hover{background:#5a4226}
body.portal-inner.portal-luxe .my-center-content{
  z-index:4;min-height:0!important;margin:-22px 11px 11px!important;
  padding:0 19px 20px!important;
  border:1px solid #94744a!important;border-radius:19px!important;
  background:linear-gradient(160deg,#3b3021,#29241b 75%)!important;
  box-shadow:0 -4px 22px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,215,145,.12);
}
body.portal-inner.portal-luxe .my-avatar-button{
  width:92px;height:92px;margin:-45px 0 10px;
  border:4px solid #c7a46a;background:#3a2d20;
  box-shadow:0 4px 18px rgba(0,0,0,.38);
}
body.portal-inner.portal-luxe .my-avatar-placeholder{
  color:#f8dca4;background:linear-gradient(140deg,#71532d,#2d261b);
}
body.portal-inner.portal-luxe .my-avatar-edit-dot{background:#ad8147;border-color:#f2d8a3}
body.portal-inner.portal-luxe .my-display-name,
body.portal-inner.portal-luxe .my-guest-title{color:#fff0d1!important}
body.portal-inner.portal-luxe .my-signature-text,
body.portal-inner.portal-luxe .my-guest-intro{color:#c6b08b!important}
body.portal-inner.portal-luxe .my-name-arrow,
body.portal-inner.portal-luxe .my-signature-line > i{color:#b99559}
body.portal-inner.portal-luxe .my-level-banner{
  border:1px solid #987647!important;
  background:linear-gradient(115deg,#30251c,#4b3726,#2e251d)!important;
  box-shadow:inset 0 1px 0 rgba(242,196,115,.15),0 4px 12px rgba(0,0,0,.16);
}
body.portal-inner.portal-luxe .my-level-symbol{
  color:#ffe5ad;background:linear-gradient(130deg,#b98c4d,#71512a);
}
body.portal-inner.portal-luxe .my-level-info strong{color:#f8e6c4}
body.portal-inner.portal-luxe .my-level-info small{color:#c9b48e}
body.portal-inner.portal-luxe .my-section-heading{margin:23px 0 11px}
body.portal-inner.portal-luxe .my-section-heading h2{color:#f5e6c9!important}
body.portal-inner.portal-luxe .my-heading-mark{background:#c69b5b}
body.portal-inner.portal-luxe .my-heading-note{color:#b7a17d}
body.portal-inner.portal-luxe .my-feature-list{gap:9px}
body.portal-inner.portal-luxe .my-feature-row{
  min-height:76px;gap:12px;padding:10px 12px;
  border:1px solid #79613e!important;border-radius:13px!important;
  background:linear-gradient(105deg,#403321,#32291d)!important;
  box-shadow:inset 0 1px 0 rgba(244,206,140,.08);
  color:#f6e5c5!important;
}
body.portal-inner.portal-luxe .my-feature-row:last-child{border:1px solid #79613e!important}
body.portal-inner.portal-luxe .my-feature-row:hover{background:#514029!important;border-color:#b48a4e!important}
body.portal-inner.portal-luxe .my-feature-icon{
  flex:0 0 44px;width:44px;height:44px;border-radius:12px;
  color:#ffecbd!important;
  background:linear-gradient(140deg,#bd8b49,#755127)!important;
}
body.portal-inner.portal-luxe .my-feature-label strong{color:#f6e6c7!important}
body.portal-inner.portal-luxe .my-feature-label small{color:#c5af8a!important}
body.portal-inner.portal-luxe .my-feature-arrow{color:#d3aa68}
body.portal-inner.portal-luxe .my-feature-tag{background:#6b4927;color:#ffe2a5}
body.portal-inner.portal-luxe .my-page-footnote{color:#ae956f}
body.portal-inner.portal-luxe .my-guest-login{
  background:linear-gradient(125deg,#c59b59,#87612f);color:#22190f;
}
body.portal-inner.portal-luxe .my-guest-register{
  background:#3d3021;border:1px solid #967345;color:#f3d6a3;
}
/* My cover chooser: visible image previews, upload feedback, reset-to-random */
body.portal-luxe .my-panel-overlay .my-panel-card{
  background:#30281d;border:1px solid #927248;color:#f3e5c8;
}
body.portal-luxe .my-panel-overlay .my-panel-header{
  background:linear-gradient(110deg,#453522,#2f271d);
  border-color:#7c603b;
}
body.portal-luxe .my-panel-overlay .my-panel-header h2{color:#f9e6bf}
body.portal-luxe .my-panel-overlay .my-panel-header small{color:#d6ad6d}
body.portal-luxe .my-panel-overlay .my-panel-close{background:#423321;color:#f3d9a5;border-color:#876b43}
body.portal-luxe .my-panel-overlay .my-panel-subtitle{color:#f3dfb8}
body.portal-luxe .my-panel-overlay .my-edit-form label{color:#e8d2ab}
body.portal-luxe .my-panel-overlay .my-edit-form input[type="text"],
body.portal-luxe .my-panel-overlay .my-edit-form textarea{
  background:#241e18;color:#f5e7cc;border-color:#78613e;
}
body.portal-luxe .my-panel-overlay .my-edit-form p,
body.portal-luxe .my-panel-overlay .my-panel-note{color:#c5af8a}
body.portal-luxe .my-panel-overlay .my-panel-primary{
  background:linear-gradient(120deg,#cba462,#92662e);color:#261b10;
}
body.portal-luxe .my-panel-overlay .my-points-total{
  background:linear-gradient(120deg,#70502a,#aa8249);
}
body.portal-luxe .my-panel-overlay .my-points-stats > div{background:#3c3124}
body.portal-luxe .my-panel-overlay .my-points-stats strong{color:#f4dcac}
body.portal-luxe .my-panel-overlay .my-points-stats span{color:#c4ae8a}
body.portal-luxe .my-panel-overlay .my-level-rules > div{border-color:#584731}
body.portal-luxe .my-panel-overlay .my-level-rules strong{color:#e9d4b0}
body.portal-luxe .my-panel-overlay .my-level-rules small{color:#baa17d}
body.portal-luxe .my-panel-overlay .my-profile-edit-head{border-color:#6a5438}
body.portal-luxe .my-panel-overlay .my-profile-edit-head strong{color:#f7e5c8}
body.portal-luxe .my-panel-overlay .my-avatar-upload-btn{background:#554025;color:#f9db9e;border-color:#98754a}
body.portal-luxe .my-panel-overlay .my-profile-feedback{color:#e9ce9a}
body.portal-luxe .my-panel-overlay .my-profile-feedback.is-error{color:#ff9f8e}
body.portal-luxe .my-cover-preview{
  width:100%;aspect-ratio:1200/520;object-fit:cover;display:block;
  border:1px solid #ad864b;border-radius:12px;background:#1b160f;
}
body.portal-luxe .my-cover-help{
  margin:10px 0 14px;font-size:12px;line-height:1.65;color:#c6ad84;
}
body.portal-luxe .my-cover-presets{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:10px 0 15px;
}
body.portal-luxe .my-cover-preset{
  display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;
  padding:5px 5px 9px;background:#3b3021;border:1px solid #81643e;
  border-radius:11px;color:#f2d9a7;font-size:11px;cursor:pointer;
}
body.portal-luxe .my-cover-preset:hover,
body.portal-luxe .my-cover-preset.is-selected{border-color:#efc57c;background:#5b4225}
body.portal-luxe .my-cover-preset img{
  display:block;width:100%;aspect-ratio:1.8;object-fit:cover;border-radius:7px;
}
body.portal-luxe .my-cover-toolbar{display:flex;gap:10px;flex-wrap:wrap}
body.portal-luxe .my-cover-toolbar button{
  flex:1;min-width:110px;min-height:42px;padding:9px 11px;
  border:1px solid #9c7947;border-radius:10px;
  background:#4b3924;color:#f6dbab;font-size:12px;font-weight:750;cursor:pointer;
}
body.portal-luxe .my-cover-toolbar .my-cover-upload{background:linear-gradient(115deg,#d3a865,#966a36);color:#251b11}
body.portal-luxe .my-cover-toolbar button:disabled{opacity:.6;cursor:wait}
body.portal-luxe .my-cover-feedback{min-height:21px;margin:11px 0 0;color:#f1cf92;font-size:12px}
body.portal-luxe .my-cover-feedback.is-error{color:#ffb2a2}
@media(min-width:700px){
 body.portal-inner.portal-luxe .discovery-entry-list{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.portal-inner.portal-luxe .discovery-entry:last-child:nth-child(odd){grid-column:auto}
 body.portal-inner.portal-luxe .my-center-v3{max-width:900px!important}
}
@media(max-width:540px){
 body.portal-luxe .portal-shell-header{width:calc(100% - 20px);margin-top:8px;border-radius:13px}
 body.portal-luxe .portal-shell-inner{min-height:59px;padding:6px 9px}
 body.portal-luxe .portal-shell-brand img{width:42px;height:42px}
 body.portal-luxe .portal-shell-brand strong{font-size:17px}
 body.portal-luxe .portal-shell-brand small{font-size:9px}
 body.portal-inner.portal-luxe .discovery-hub{width:calc(100% - 20px)!important;margin-top:8px!important}
 body.portal-inner.portal-luxe .discovery-entry-list{gap:9px!important;padding:0!important}
 body.portal-inner.portal-luxe .discovery-entry{
  gap:8px;min-height:92px;padding:10px 8px;border-radius:13px!important;
 }
 body.portal-inner.portal-luxe .discovery-entry-icon{width:43px;height:43px;flex-basis:43px;border-radius:10px}
 body.portal-inner.portal-luxe .discovery-entry-name{font-size:13px}
 body.portal-inner.portal-luxe .discovery-entry-subtitle{font-size:10px}
 body.portal-inner.portal-luxe .discovery-entry-side{font-size:20px}
 body.portal-inner.portal-luxe .my-center-v3{width:calc(100% - 20px)!important;margin-top:8px!important}
 body.portal-inner.portal-luxe .my-hero{height:238px}
 body.portal-inner.portal-luxe .my-hero-title{top:27px}
 body.portal-inner.portal-luxe .my-hero-title h1{font-size:25px}
 body.portal-inner.portal-luxe .my-hero-edit{top:15px;right:11px;width:34px;height:34px}
 body.portal-inner.portal-luxe .my-cover-change{top:15px;right:52px;padding:7px 9px;min-height:34px;font-size:11px}
 body.portal-inner.portal-luxe .my-center-content{margin:-20px 9px 9px!important;padding:0 14px 18px!important}
 body.portal-inner.portal-luxe .my-avatar-button{width:80px;height:80px;margin-top:-39px}
 body.portal-inner.portal-luxe .my-display-name{font-size:19px}
 body.portal-inner.portal-luxe .my-signature-line{min-height:35px;margin:4px 0 11px}
 body.portal-inner.portal-luxe .my-section-heading{margin:20px 0 9px}
 body.portal-inner.portal-luxe .my-section-heading h2{font-size:17px}
 body.portal-inner.portal-luxe .my-feature-row{min-height:68px}
}
@media(max-width:355px){
 body.portal-inner.portal-luxe .discovery-entry{gap:5px;padding:9px 6px}
 body.portal-inner.portal-luxe .discovery-entry-icon{width:36px;height:36px;flex-basis:36px}
 body.portal-inner.portal-luxe .discovery-entry-name{font-size:12px}
 body.portal-inner.portal-luxe .discovery-entry-subtitle{font-size:9px}
 body.portal-inner.portal-luxe .discovery-entry-side{font-size:17px}
 body.portal-inner.portal-luxe .my-cover-change span{display:none}
 body.portal-inner.portal-luxe .my-cover-change{right:52px;min-width:34px}
}
@media(prefers-reduced-motion:reduce){
 body.portal-luxe .discovery-entry{transition:none!important}
}


/* Legacy SPA wrappers used by -user.php must not leak a white strip. */
body.portal-luxe.my-luxe #root,
body.portal-luxe.my-luxe #app,
body.portal-luxe.my-luxe .page-container,
body.portal-luxe.my-luxe .page.active{
  width:100%!important;max-width:none!important;
  background:transparent!important;box-shadow:none!important;
}
body.portal-luxe.my-luxe .page-container{padding-left:0!important;padding-right:0!important}

/* Gold navigation palette matches homepage on Discover and nested views */
body.portal-v3.portal-luxe nav.bottom-nav{background:rgba(28,23,17,.98)!important;border-color:#75603e!important}
body.portal-v3.portal-luxe nav.bottom-nav a.nav-item{color:#e8d1a3!important}
body.portal-v3.portal-luxe nav.bottom-nav a.nav-item .nav-icon{color:#d8b06d!important}
body.portal-v3.portal-luxe nav.bottom-nav a.nav-item.active,body.portal-v3.portal-luxe nav.bottom-nav a.nav-item[aria-current="page"]{background:linear-gradient(135deg,#68512e,#493820)!important;color:#ffe5ae!important}
