.profile-name.immortal-name > span,
#sideProfileName.immortal-name > span,
.side-profile-name.immortal-name > span{
  background:linear-gradient(90deg,#fff9d8 0%,#f2cc5e 24%,#c17b1c 48%,#ffeaa2 72%,#f0b93e 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent !important;
  animation: immortalGoldTextShift 3.2s ease-in-out infinite;
}
.immortal-crown{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  color:#ffd86d !important;
  min-width:19px;
  filter:drop-shadow(0 0 7px rgba(255,216,109,.95)) drop-shadow(0 0 13px rgba(255,168,35,.50)) !important;
}
.side-profile-text .immortal-crown{flex:0 0 auto;}
@keyframes immortalAvatarPulseAccent{
  0%,100%{transform:scale(1);filter:saturate(1.04) brightness(1)}
  50%{transform:scale(1.035);filter:saturate(1.22) brightness(1.08)}
}
@keyframes immortalGoldTextShift{
  0%,100%{filter:brightness(1);background-position:0 50%}
  50%{filter:brightness(1.22);background-position:100% 50%}
}

.rank-card.is-guest-rank{
  display:grid !important;
  grid-template-columns:1fr !important;
  justify-items:center !important;
  text-align:center !important;
  gap:18px !important;
  padding:30px 24px !important;
  min-height:245px;
  background:
    radial-gradient(circle at 30% 15%, rgba(var(--lime-rgb),.17), transparent 30%),
    radial-gradient(circle at 82% 82%, rgba(255,216,102,.10), transparent 34%),
    linear-gradient(180deg, rgba(var(--lime-rgb),.10), rgba(0,0,0,.20)) !important;
}
.rank-card.is-guest-rank .rank-guest-emblem{
  margin:0 auto !important;
  width:92px !important;
  height:92px !important;
  border-radius:28px !important;
  font-size:1.55rem !important;
  box-shadow:0 18px 46px rgba(var(--lime-rgb),.25), inset 0 0 16px rgba(255,255,255,.14) !important;
}
.rank-card.is-guest-rank .rank-copy{
  align-items:center !important;
  max-width:560px;
}
.rank-card.is-guest-rank #rankTitle{font-size:1.55rem;}
.rank-card.is-guest-rank #rankDesc{max-width:560px;line-height:1.65;}
.rank-card.is-immortal{
  display:grid !important;
  grid-template-columns:1fr !important;
  justify-items:center !important;
  text-align:center !important;
  gap:18px !important;
  padding:30px 24px !important;
  min-height:330px !important;
}
.rank-card.is-immortal .rank-copy{align-items:center !important;}
.rank-logo-wrap{
  width:170px !important;
  height:170px !important;
  min-width:170px !important;
  border-radius:50% !important;
  display:grid !important;
  place-items:center !important;
  background:radial-gradient(circle, rgba(255,216,102,.12), rgba(123,69,255,.08) 52%, transparent 70%) !important;
  box-shadow:0 0 30px rgba(255,216,102,.18), 0 0 52px rgba(var(--lime-rgb),.15) !important;
}
.immortal-svg-logo{
  width:100%;
  height:100%;
  overflow:visible;
  filter:drop-shadow(0 16px 26px rgba(0,0,0,.36)) drop-shadow(0 0 18px rgba(255,216,102,.24));
}
.immortal-svg-logo .im-aura{
  transform-origin:120px 120px;
  animation:imAuraSpin 10s linear infinite;
}
.immortal-svg-logo .im-knot{
  transform-origin:120px 120px;
  animation:imFloat 3.4s ease-in-out infinite;
}
.immortal-svg-logo .im-band{
  fill:none;
  stroke:url(#imGold);
  stroke-width:15;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.98;
}
.immortal-svg-logo .im-band-back{stroke-width:16;opacity:.78;filter:drop-shadow(0 0 4px rgba(255,216,102,.28));}
.immortal-svg-logo .im-band-front{stroke-width:13;filter:drop-shadow(0 0 7px rgba(255,216,102,.42));}
.immortal-svg-logo .im-band-mid{stroke-width:12;stroke:url(#imGem);opacity:.64;mix-blend-mode:screen;}
.immortal-svg-logo .im-gem-shield{animation:imGemGlow 2.5s ease-in-out infinite;}
.immortal-svg-logo .im-gem-line{stroke-dasharray:10 8;animation:imDash 2.2s linear infinite;}
.immortal-svg-logo .im-cut{animation:imCrystalBlink 2.7s ease-in-out infinite;}
.immortal-svg-logo .im-cut.r{animation-delay:.35s}
.immortal-svg-logo .im-cut.b{animation-delay:.7s}
.immortal-svg-logo .im-sparks{transform-origin:120px 120px;animation:imSparkPulse 2.4s ease-in-out infinite;}
@keyframes imAuraSpin{to{transform:rotate(360deg)}}
@keyframes imFloat{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-4px) scale(1.025)}}
@keyframes imGemGlow{0%,100%{filter:drop-shadow(0 0 7px rgba(255,108,217,.42));opacity:.95}50%{filter:drop-shadow(0 0 18px rgba(255,224,134,.74));opacity:1}}
@keyframes imDash{to{stroke-dashoffset:-36}}
@keyframes imCrystalBlink{0%,100%{filter:brightness(1);opacity:.72}50%{filter:brightness(1.55);opacity:1}}
@keyframes imSparkPulse{0%,100%{opacity:.55;transform:scale(.96)}50%{opacity:1;transform:scale(1.06)}}

@media(max-width:520px){
  .rank-card.is-guest-rank{min-height:235px;padding:28px 20px !important;}
  .rank-logo-wrap{width:146px !important;height:146px !important;min-width:146px !important;}
  .rank-card.is-immortal{min-height:305px !important;}
}

/* V12: Rank Immortal image logo + crown visibility hotfix */
.profile-name.immortal-name,
#sideProfileName.immortal-name,
.side-profile-name.immortal-name{
  overflow:visible !important;
  white-space:nowrap !important;
}
.profile-name.immortal-name .immortal-crown,
#sideProfileName.immortal-name .immortal-crown,
.side-profile-name.immortal-name .immortal-crown{
  display:inline-grid !important;
  place-items:center !important;
  width:24px !important;
  height:24px !important;
  min-width:24px !important;
  margin-left:3px !important;
  vertical-align:middle !important;
  color:#ffd76a !important;
  opacity:1 !important;
  visibility:visible !important;
  filter:drop-shadow(0 0 7px rgba(255,217,106,.95)) drop-shadow(0 0 14px rgba(255,171,50,.55)) !important;
  animation:immortalCrownPulseV12 2s ease-in-out infinite !important;
}
.profile-name.immortal-name .immortal-crown svg,
#sideProfileName.immortal-name .immortal-crown svg,
.side-profile-name.immortal-name .immortal-crown svg{
  display:block !important;
  width:21px !important;
  height:21px !important;
  overflow:visible !important;
}
@keyframes immortalCrownPulseV12{
  0%,100%{transform:translateY(-1px) scale(1);filter:drop-shadow(0 0 7px rgba(255,217,106,.85))}
  50%{transform:translateY(-2px) scale(1.12);filter:drop-shadow(0 0 12px rgba(255,233,157,1)) drop-shadow(0 0 20px rgba(255,178,55,.72))}
}
.rank-image-logo-wrap{
  width:min(230px,58vw) !important;
  height:min(230px,58vw) !important;
  min-width:0 !important;
  border-radius:34px !important;
  padding:0 !important;
  background:radial-gradient(circle at 50% 52%, rgba(255,216,102,.16), rgba(161,94,255,.12) 38%, transparent 68%) !important;
  box-shadow:0 0 34px rgba(255,216,102,.20),0 0 70px rgba(161,94,255,.16) !important;
  overflow:visible !important;
}
.rank-image-logo-wrap::before{
  content:"";
  position:absolute;
  inset:9%;
  border-radius:35%;
  background:radial-gradient(circle,rgba(255,216,102,.16),transparent 64%);
  filter:blur(10px);
  animation:rankImgAuraV12 3s ease-in-out infinite;
}
.rank-image-logo-wrap .rank-immortal-img{
  position:relative;
  z-index:1;
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  display:block !important;
  filter:drop-shadow(0 18px 30px rgba(0,0,0,.38)) drop-shadow(0 0 18px rgba(255,216,102,.28)) drop-shadow(0 0 28px rgba(161,94,255,.20));
  animation:rankImgFloatV12 3.5s ease-in-out infinite;
}
@keyframes rankImgFloatV12{
  0%,100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-5px) scale(1.035)}
}
@keyframes rankImgAuraV12{
  0%,100%{opacity:.42;transform:scale(.94)}
  50%{opacity:.78;transform:scale(1.04)}
}
@media(max-width:520px){
  .rank-image-logo-wrap{width:178px !important;height:178px !important;}
}

/* V13 free limit missions + checkin reward polish */
.limit-hero-card{
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  column-gap:18px;
  row-gap:6px;
}
.limit-hero-card .limit-hero-icon{
  grid-row:1 / span 2;
}
.limit-hero-card b,
.limit-hero-card span{
  min-width:0;
}
.limit-action-grid .primary-wide:nth-child(3){
  grid-column:1 / -1;
}
.free-limit-page{
  display:grid;
  gap:22px;
}
.free-limit-hero,
.free-mission-card{
  border:1px solid rgba(var(--lime-rgb),.22);
  border-radius:28px;
  background:linear-gradient(155deg, rgba(var(--lime-rgb),.12), rgba(255,255,255,.035) 44%, rgba(0,0,0,.18));
  box-shadow:0 18px 44px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.05);
}
.free-limit-hero{
  padding:24px;
  display:grid;
  grid-template-columns:auto 1fr;
  gap:8px 18px;
  align-items:center;
}
.free-limit-icon{
  grid-row:1 / span 2;
  width:64px;
  height:64px;
  border-radius:22px;
  display:grid;
  place-items:center;
  color:#111;
  background:linear-gradient(135deg, rgba(255,255,255,.9), var(--lime));
  box-shadow:0 16px 35px rgba(var(--lime-rgb),.25);
}
.free-limit-hero b{
  font-size:1.35rem;
  color:var(--cream);
}
.free-limit-hero p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}
.free-mission-card{
  padding:22px;
}
.free-mission-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.free-mission-head b{
  display:block;
  color:var(--cream);
  font-size:1.14rem;
}
.free-mission-head small{
  display:block;
  color:var(--muted);
  margin-top:5px;
}
.free-mission-head > span{
  flex:0 0 auto;
  border:1px solid rgba(var(--lime-rgb),.28);
  color:var(--lime);
  border-radius:999px;
  padding:8px 12px;
  background:rgba(var(--lime-rgb),.08);
  font-weight:900;
  font-size:.82rem;
}
.free-mission-list{
  display:grid;
  gap:10px;
  margin:16px 0 18px;
}
.free-mission-row{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:14px;
  padding:14px;
  border-radius:20px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(var(--lime-rgb),.12);
}
.free-mission-row.done{
  background:rgba(var(--lime-rgb),.09);
  border-color:rgba(var(--lime-rgb),.28);
}
.free-mission-icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:16px;
  color:var(--lime);
  background:rgba(var(--lime-rgb),.1);
}
.free-mission-text b{
  display:block;
  color:var(--cream);
}
.free-mission-text small{
  display:block;
  color:var(--muted);
  line-height:1.45;
  margin-top:4px;
}
.free-mission-btn{
  border:1px solid rgba(var(--lime-rgb),.28);
  background:rgba(var(--lime-rgb),.09);
  color:var(--cream);
  border-radius:16px;
  padding:11px 14px;
  font:900 .9rem inherit;
  min-width:82px;
}
.free-mission-row.done .free-mission-btn{
  color:var(--lime);
}
.free-mission-btn:disabled{
  opacity:.75;
}
.checkin-limit{
  line-height:1.55;
}
@media (max-width:560px){
  .free-limit-hero{
    grid-template-columns:1fr;
    text-align:left;
  }
  .free-limit-icon{
    grid-row:auto;
  }
  .free-mission-row{
    grid-template-columns:auto 1fr;
  }
  .free-mission-btn{
    grid-column:1 / -1;
    width:100%;
  }
}

/* V14 Cloudinary profile photo menu */
.profile-avatar-big{cursor:pointer;}
.profile-avatar-big.photo-menu-ready::after{
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:rgba(0,0,0,.0);
  transition:.22s ease;
  pointer-events:none;
}
.profile-avatar-big.photo-menu-ready:hover::after,
.profile-avatar-big.photo-menu-open::after{
  background:rgba(0,0,0,.34);
  box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.35);
}
.profile-avatar-big .photo-camera-overlay{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  border-radius:inherit;
  color:#fff;
  opacity:0;
  transform:scale(.92);
  transition:.2s ease;
  pointer-events:none;
  z-index:3;
  filter:drop-shadow(0 0 12px rgba(var(--accent-rgb),.7));
}
.profile-avatar-big.photo-menu-open .photo-camera-overlay,
.profile-avatar-big.photo-menu-ready:hover .photo-camera-overlay{opacity:1;transform:scale(1);}
.profile-photo-menu{
  position:fixed;
  z-index:10080;
  min-width:230px;
  padding:10px;
  border-radius:24px;
  border:1px solid rgba(var(--accent-rgb),.32);
  background:linear-gradient(180deg, rgba(var(--accent-rgb),.14), rgba(5,8,5,.92));
  box-shadow:0 18px 60px rgba(0,0,0,.58), 0 0 32px rgba(var(--accent-rgb),.16);
  backdrop-filter:blur(20px);
  display:none;
}
.profile-photo-menu.show{display:block;}
.profile-photo-menu button{
  width:100%;
  min-height:50px;
  border:0;
  border-radius:18px;
  padding:12px 14px;
  display:flex;
  gap:12px;
  align-items:center;
  color:var(--text);
  background:transparent;
  font-family:inherit;
  font-weight:900;
  text-align:left;
}
.profile-photo-menu button:hover,
.profile-photo-menu button:focus-visible{background:rgba(var(--accent-rgb),.16);outline:none;}
.profile-photo-menu button.danger{color:#ff7d9f;}
.profile-photo-menu svg{flex:0 0 auto;color:var(--accent);}

/* V15: profile photo two-step picker + stable Cloudinary previews */
.profile-avatar-big.photo-menu-ready:hover::after{
  background:rgba(0,0,0,0) !important;
  box-shadow:none !important;
}
.profile-avatar-big.photo-menu-ready:hover .photo-camera-overlay{
  opacity:0 !important;
  transform:scale(.92) !important;
}
.profile-avatar-big.photo-camera-active::after,
.profile-avatar-big.photo-uploading::after,
.profile-avatar-big.photo-menu-open::after{
  background:rgba(0,0,0,.46) !important;
  box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.42), 0 0 28px rgba(var(--accent-rgb),.24) !important;
}
.profile-avatar-big.photo-camera-active .photo-camera-overlay,
.profile-avatar-big.photo-menu-open .photo-camera-overlay,
.profile-avatar-big.photo-uploading .photo-camera-overlay{
  opacity:1 !important;
  transform:scale(1) !important;
}
.profile-avatar-big .photo-camera-overlay{
  pointer-events:auto;
  width:100%;
  height:100%;
}
.profile-avatar-big.photo-uploading .photo-camera-overlay svg{display:none;}
.profile-avatar-big.photo-uploading .photo-camera-overlay::before{
  content:'';
  width:38px;
  height:38px;
  border-radius:999px;
  border:4px solid rgba(255,255,255,.22);
  border-top-color:var(--accent);
  border-right-color:var(--accent);
  animation:spin .75s linear infinite;
  box-shadow:0 0 22px rgba(var(--accent-rgb),.46);
}
.profile-photo-menu{
  padding:12px !important;
  border-radius:26px !important;
  background:linear-gradient(180deg, rgba(var(--accent-rgb),.18), rgba(10,10,14,.94)) !important;
}
.profile-photo-menu button{
  position:relative;
  overflow:hidden;
  background:rgba(255,255,255,.035) !important;
  border:1px solid rgba(255,255,255,.07) !important;
  margin:5px 0;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}
.profile-photo-menu button::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(var(--accent-rgb),.22), transparent 72%);
  opacity:0;
  transition:.18s ease;
}
.profile-photo-menu button:hover::before,
.profile-photo-menu button:focus-visible::before,
.profile-photo-menu button:active::before{opacity:1;}
.profile-photo-menu button > *{position:relative;z-index:1;}
.profile-photo-menu button.danger{color:#ff6f9a !important;}
.profile-photo-menu button.danger::before{background:linear-gradient(90deg, rgba(255,93,133,.23), transparent 72%);}
.sent-file-uploading .upload-spinner{border-top-color:var(--accent);border-right-color:var(--accent);}

/* V16 - Photo Profile page + Cloudinary upload polish */
.profile-photo-page-card{
  margin: 24px 0 0;
  padding: 28px 24px;
  border-radius: 28px;
  border: 1px solid rgba(var(--accent-rgb), .24);
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--accent-rgb), .18), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: 0 22px 70px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.06);
  text-align: center;
}
.profile-photo-preview-wrap{
  width: 142px;
  height: 142px;
  margin: 0 auto 16px;
  position: relative;
  border-radius: 38px;
  display: grid;
  place-items: center;
}
.profile-photo-preview{
  width: 126px;
  height: 126px;
  border-radius: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 42px;
  font-weight: 1000;
  color: #101010;
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgb(var(--accent-rgb)) 72%);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .28), 0 18px 54px rgba(var(--accent-rgb), .22);
}
.profile-photo-preview img,
.profile-photo-preview .profile-avatar-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.profile-photo-preview-wrap::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:42px;
  background: radial-gradient(circle, rgba(var(--accent-rgb),.28), transparent 66%);
  filter: blur(12px);
  opacity:.8;
  z-index:-1;
}
.profile-photo-page-loading{
  position:absolute;
  inset:8px;
  border-radius:36px;
  display:none;
  place-items:center;
  background:rgba(0,0,0,.48);
  backdrop-filter: blur(5px);
  z-index:5;
}
.profile-photo-page-loading.show{display:grid;}
.profile-photo-page-loading span{
  width:44px;
  height:44px;
  border-radius:999px;
  border:4px solid rgba(255,255,255,.22);
  border-top-color: rgb(var(--accent-rgb));
  animation: spin .8s linear infinite;
}
.profile-photo-page-card h3{
  margin:0 0 8px;
  font-size: 25px;
  color: var(--text);
}
.profile-photo-page-card p{
  margin:0 auto 20px;
  max-width: 520px;
  color: var(--muted);
  line-height:1.55;
}
.profile-photo-actions{
  display:grid;
  gap:12px;
  margin: 14px 0 12px;
}
.primary-wide.danger-soft{
  color:#ff7da3;
  border-color:rgba(255,105,145,.32);
  background:linear-gradient(180deg, rgba(255,105,145,.13), rgba(255,105,145,.055));
}
.primary-wide.danger-soft:hover{background:rgba(255,105,145,.16);}
.profile-photo-page-card .settings-hint{
  margin-top:10px;
  text-align:left;
}
@media (min-width: 640px){
  .profile-photo-actions{grid-template-columns:1fr 1fr;}
}

/* V17 polish: Photo Profile page layout + Cloudinary simple upload UI */
#pageProfilePhoto .photo-profile-sub-head{
  grid-template-columns: 52px 1fr 52px !important;
  align-items: center !important;
  margin: 0 auto 18px !important;
  width: min(680px, 100%) !important;
}
#pageProfilePhoto .photo-profile-sub-head h2{
  text-align: center !important;
  justify-self: center !important;
  font-size: 24px !important;
}
#pageProfilePhoto .settings-back{
  margin-bottom: 0 !important;
}
#pageProfilePhoto{
  padding-top: 0 !important;
}
.profile-photo-page-card{
  width: min(620px, calc(100% - 2px)) !important;
  margin: 18px auto 0 !important;
  padding: 30px 22px 26px !important;
  border-radius: 34px !important;
  text-align: center !important;
  background:
    radial-gradient(circle at 50% -8%, rgba(var(--accent-rgb), .28), transparent 42%),
    radial-gradient(circle at 12% 16%, rgba(255,255,255,.08), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.022)) !important;
  border: 1px solid rgba(var(--accent-rgb), .26) !important;
  box-shadow: 0 24px 80px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.profile-photo-preview-wrap{
  width: 168px !important;
  height: 168px !important;
  margin: 4px auto 18px !important;
  border-radius: 42px !important;
}
.profile-photo-preview{
  width: 150px !important;
  height: 150px !important;
  border-radius: 40px !important;
  font-size: 50px !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12),
    0 0 0 8px rgba(var(--accent-rgb), .08),
    0 24px 70px rgba(var(--accent-rgb), .26) !important;
}
.profile-photo-preview-wrap::before{
  inset: -10px !important;
  opacity: .95 !important;
  filter: blur(16px) !important;
}
.profile-photo-page-card h3{
  margin-top: 2px !important;
  margin-bottom: 10px !important;
  font-size: 28px !important;
  line-height: 1.12 !important;
}
.profile-photo-page-card p{
  max-width: 500px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 22px !important;
  color: rgba(245,245,230,.68) !important;
}
.profile-photo-actions{
  width: min(100%, 520px) !important;
  margin: 18px auto 12px !important;
  display: grid !important;
  gap: 14px !important;
}
.profile-photo-actions .primary-wide{
  min-height: 64px !important;
  border-radius: 22px !important;
}
.profile-photo-page-card .settings-hint{
  width: min(100%, 520px) !important;
  margin: 18px auto 0 !important;
  text-align: center !important;
  color: rgba(255,255,245,.86) !important;
  line-height: 1.5 !important;
}
.profile-photo-page-loading{
  inset: 9px !important;
  border-radius: 38px !important;
  background: rgba(0,0,0,.56) !important;
}
@media (max-width: 520px){
  #pageProfilePhoto .photo-profile-sub-head h2{font-size: 22px !important;}
  .profile-photo-page-card{padding: 26px 18px 22px !important;border-radius: 28px !important;}
  .profile-photo-preview-wrap{width: 152px !important;height: 152px !important;}
  .profile-photo-preview{width: 136px !important;height: 136px !important;border-radius: 36px !important;}
  .profile-photo-page-card h3{font-size: 25px !important;}
}

/* V18 final polish: Photo Profile header benar-benar center + card lebih rapi */
#pageProfilePhoto .photo-profile-sub-head{
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 64px !important;
  width: min(680px, 100%) !important;
  margin: 0 auto 22px !important;
  padding: 0 !important;
}
#pageProfilePhoto .photo-profile-sub-head .settings-back{
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
}
#pageProfilePhoto .photo-profile-sub-head h2{
  margin: 0 !important;
  width: 100% !important;
  text-align: center !important;
  justify-self: center !important;
  font-size: clamp(24px, 5vw, 32px) !important;
  letter-spacing: -.04em !important;
}
#pageProfilePhoto .photo-profile-sub-head > span{display:none !important;}
#pageProfilePhoto .profile-photo-page-card{
  width: min(620px, 100%) !important;
  margin: 0 auto !important;
  padding: clamp(24px, 5vw, 34px) clamp(18px, 5vw, 34px) 28px !important;
  display: grid !important;
  justify-items: center !important;
}
#pageProfilePhoto .profile-photo-page-card > *{
  max-width: 540px !important;
}
#pageProfilePhoto .profile-photo-actions{
  width: min(520px, 100%) !important;
  grid-template-columns: 1fr !important;
}
#pageProfilePhoto #profilePhotoStatus{
  min-height: 52px !important;
  display: grid !important;
  place-items: center !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.035) !important;
  border: 1px solid rgba(var(--accent-rgb), .12) !important;
}

/* V19 - avatar crop + sidebar performance polish */
.profile-avatar-big,
#profileAvatar{
  border-radius: 999px !important;
}
.profile-avatar-big > img,
.profile-avatar-big > .profile-avatar-img,
#profileAvatar > img,
#profileAvatar > .profile-avatar-img{
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 50% !important;
  clip-path: circle(50% at 50% 50%) !important;
  aspect-ratio: 1 / 1 !important;
}
.side-avatar,
#sideAvatar{
  border-radius: 999px !important;
}
.side-avatar > img,
.side-avatar > .profile-avatar-img,
#sideAvatar > img,
#sideAvatar > .profile-avatar-img,
.side-profile-card .side-avatar img{
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 50% !important;
  clip-path: circle(50% at 50% 50%) !important;
  aspect-ratio: 1 / 1 !important;
}
body.sidebar-open .sidebar{
  contain: layout paint style !important;
  will-change: transform !important;
  backdrop-filter: blur(12px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.25) !important;
}
body.sidebar-open .chat-log,
body.sidebar-open .hero,
body.sidebar-open .composer-card{
  animation-play-state: paused !important;
}
body.sidebar-open .voice-logo,
body.sidebar-open .profile-avatar-big.immortal-avatar,
body.sidebar-open .side-avatar.immortal-avatar{
  animation-play-state: paused !important;
}

/* V20: sidebar lighter capsule hover - ngikut feel dropdown model, lebih ringan dan tetap kebaca */
.sidebar{
  background:
    radial-gradient(circle at 22% 12%, rgba(var(--lime-rgb),.075), transparent 34%),
    linear-gradient(180deg, rgba(var(--lime-rgb),.045), rgba(5,9,6,.88) 46%, rgba(3,6,4,.94)) !important;
  border-color:rgba(var(--lime-rgb),.16) !important;
  backdrop-filter:blur(8px) saturate(1.08) !important;
  -webkit-backdrop-filter:blur(8px) saturate(1.08) !important;
  box-shadow:18px 0 54px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.05) !important;
}
.sidebar-backdrop.show{
  background:rgba(0,0,0,.26) !important;
}
.sidebar .side-item,
.sidebar .side-chat{
  border:1px solid transparent !important;
  background:transparent !important;
  box-shadow:none !important;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease !important;
}
.sidebar .side-item:hover,
.sidebar .side-item:focus-visible,
.sidebar .side-item.active,
.sidebar .side-item.primary,
.sidebar .side-chat:hover,
.sidebar .side-chat:focus-visible,
.sidebar .side-chat.active,
.sidebar .side-chat.current,
.sidebar .side-chat.pinned{
  color:var(--lime) !important;
  background:
    linear-gradient(180deg,rgba(var(--lime-rgb),.135),rgba(var(--lime-rgb),.052)),
    rgba(10,16,8,.58) !important;
  border-color:rgba(var(--lime-rgb),.20) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 10px 24px rgba(0,0,0,.12) !important;
}
.sidebar .side-item:active,
.sidebar .side-chat:active{
  transform:scale(.985) !important;
}
.sidebar .side-profile-card{
  background:
    linear-gradient(180deg,rgba(var(--lime-rgb),.10),rgba(var(--lime-rgb),.035)),
    rgba(10,16,8,.60) !important;
  border-color:rgba(var(--lime-rgb),.18) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 10px 28px rgba(0,0,0,.16) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
.sidebar .side-profile-card:hover{
  background:
    linear-gradient(180deg,rgba(var(--lime-rgb),.145),rgba(var(--lime-rgb),.052)),
    rgba(10,16,8,.64) !important;
  border-color:rgba(var(--lime-rgb),.25) !important;
}
.sidebar .side-section-title{
  color:rgba(246,255,233,.48) !important;
}
.sidebar .side-chat-title,
.sidebar .side-item span,
.sidebar .side-item,
.sidebar .side-profile-text b,
.sidebar .side-profile-text span{
  text-shadow:0 1px 8px rgba(0,0,0,.24);
}
body.perf-lite .sidebar{
  background:
    radial-gradient(circle at 22% 12%, rgba(var(--lime-rgb),.065), transparent 34%),
    linear-gradient(180deg, rgba(var(--lime-rgb),.038), rgba(5,9,6,.90) 46%, rgba(3,6,4,.95)) !important;
  backdrop-filter:blur(6px) saturate(1.05) !important;
  -webkit-backdrop-filter:blur(6px) saturate(1.05) !important;
}
body.perf-lite .sidebar .side-item:hover,
body.perf-lite .sidebar .side-item:focus-visible,
body.perf-lite .sidebar .side-item.active,
body.perf-lite .sidebar .side-item.primary,
body.perf-lite .sidebar .side-chat:hover,
body.perf-lite .sidebar .side-chat:focus-visible,
body.perf-lite .sidebar .side-chat.active,
body.perf-lite .sidebar .side-chat.current,
body.perf-lite .sidebar .side-chat.pinned{
  background:
    linear-gradient(180deg,rgba(var(--lime-rgb),.12),rgba(var(--lime-rgb),.045)),
    rgba(10,16,8,.55) !important;
}

/* V21: sidebar tanpa blur total.
   Sidebar dibuat seperti dropdown kapsul provider: gelap, solid/semi transparan,
   ringan, teks tetap jelas, tanpa backdrop-filter blur. */
.sidebar,
body.sidebar-open .sidebar,
body.perf-lite .sidebar{
  background:
    radial-gradient(circle at 18% 8%, rgba(var(--lime-rgb), .085), transparent 34%),
    linear-gradient(180deg, rgba(var(--lime-rgb), .045), rgba(5, 9, 6, .965) 42%, rgba(2, 5, 3, .985)) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
  border-color: rgba(var(--lime-rgb), .18) !important;
  box-shadow: 18px 0 56px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.045) !important;
}
.sidebar::before,
.sidebar::after{
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}
.sidebar-backdrop,
.sidebar-backdrop.show{
  background: rgba(0,0,0,.38) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}
.sidebar .side-head-btn,
.sidebar .side-close,
.sidebar .side-search-panel,
.sidebar .side-profile-card,
.sidebar .side-item,
.sidebar .side-chat,
.sidebar .side-gear{
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}
.sidebar .side-search-panel{
  background: rgba(9, 14, 9, .92) !important;
  border-color: rgba(var(--lime-rgb), .16) !important;
}
.sidebar .side-item,
.sidebar .side-chat{
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}
.sidebar .side-item:hover,
.sidebar .side-item:focus-visible,
.sidebar .side-item.active,
.sidebar .side-item.primary,
.sidebar .side-chat:hover,
.sidebar .side-chat:focus-visible,
.sidebar .side-chat.active,
.sidebar .side-chat.current,
.sidebar .side-chat.pinned,
body.perf-lite .sidebar .side-item:hover,
body.perf-lite .sidebar .side-item:focus-visible,
body.perf-lite .sidebar .side-item.active,
body.perf-lite .sidebar .side-item.primary,
body.perf-lite .sidebar .side-chat:hover,
body.perf-lite .sidebar .side-chat:focus-visible,
body.perf-lite .sidebar .side-chat.active,
body.perf-lite .sidebar .side-chat.current,
body.perf-lite .sidebar .side-chat.pinned{
  color: var(--lime) !important;
  background:
    linear-gradient(180deg, rgba(var(--lime-rgb), .14), rgba(var(--lime-rgb), .055)),
    rgba(10,16,8,.82) !important;
  border-color: rgba(var(--lime-rgb), .22) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 20px rgba(0,0,0,.14) !important;
}
.sidebar .side-profile-card{
  background:
    linear-gradient(180deg, rgba(var(--lime-rgb), .12), rgba(var(--lime-rgb), .045)),
    rgba(8,13,7,.90) !important;
  border-color: rgba(var(--lime-rgb), .20) !important;
}
.sidebar .side-profile-card:hover{
  background:
    linear-gradient(180deg, rgba(var(--lime-rgb), .16), rgba(var(--lime-rgb), .06)),
    rgba(8,13,7,.94) !important;
  border-color: rgba(var(--lime-rgb), .28) !important;
}
.sidebar.search-open .side-title-wrap{
  filter: none !important;
}
