.profile-gear{display:none}

body[data-page="profile"]:not(.auth-mode){
  background:
    radial-gradient(ellipse at 86% 68%,#e9eefb 0%,transparent 70%),
    linear-gradient(153deg,#f7f8fc,#f1f5fd 80%,#edf2fb);
  color:#101940;
}
body[data-page="profile"]:not(.auth-mode) .app-shell::before{
  height:clamp(140px,34vw,230px);
  border-radius:0 0 0 40%;
  mask-image:linear-gradient(black 80%,transparent);
  background:
    radial-gradient(ellipse 105% 133% at 4% -44%,#f7f8fc 53%,#e6e9f9 72%,transparent 72.6%),
    radial-gradient(ellipse 72% 99% at 105% 112%,#2c71db 32%,#8eb9fa 66%,transparent 66.7%),
    linear-gradient(145deg,#fbfcff 25%,#d3def9 75%,#a2bcef);
}
body[data-page="profile"]:not(.auth-mode) .topbar{
  min-height:clamp(54px,13.8vw,87px);
  padding-inline:6.2% 4.6%;
}
body[data-page="profile"]:not(.auth-mode) .topbar .brand-lockup{width:clamp(103px,28vw,174px)}
body[data-page="profile"]:not(.auth-mode) .topbar-actions :is(.notification-button,.profile-gear){
  display:grid;
  place-items:center;
  width:clamp(35px,8.65vw,52px);
  height:clamp(35px,8.65vw,52px);
  border-radius:clamp(11px,2.8vw,17px);
  box-shadow:0 4px 13px #3a64b321;
}
body[data-page="profile"]:not(.auth-mode) .topbar-actions .avatar-small{display:none}
body[data-page="profile"]:not(.auth-mode) .topbar-actions svg{
  width:clamp(20px,4.9vw,29px);
  height:clamp(20px,4.9vw,29px);
  fill:none;
  stroke-width:1.8;
}
body[data-page="profile"]:not(.auth-mode) .topbar-actions span[data-icon]{display:contents}
body[data-page="profile"]:not(.auth-mode) .notification-button i{background:#df2437;width:9px;height:9px;right:8%;top:8%}
body[data-page="profile"]:not(.auth-mode) main{padding:clamp(6px,1.55vw,12px) 3.8% calc(114px + env(safe-area-inset-bottom))}
body[data-page="profile"]:not(.auth-mode) .bottom-nav{width:calc(100% - 24px);box-shadow:0 7px 22px #284eaa37}
body[data-page="profile"]:not(.auth-mode) .bottom-nav a.active{
  background:radial-gradient(ellipse at 19% -6%,#197bfc,transparent 62%),linear-gradient(156deg,#145cff,#002fc5 74%);
  box-shadow:inset 0 1px 3px #72b6ff,0 6px 13px #1349e04d;
}
body[data-page="profile"]:not(.auth-mode) .bottom-nav a.active svg circle{fill:currentColor}

.account-profile{
  --profile-shadow:0 7px 18px #3558b51c;
  --profile-muted:#536184;
  --profile-radius:clamp(15px,4vw,27px);
  max-width:622px;
  margin-inline:auto;
  min-width:0;
}
.account-profile :is(h1,h2,p){margin:0}
.profile-heading{margin:0 2.6% clamp(14px,4.5vw,29px)}
.profile-heading h1{
  font-size:clamp(26px,6.2vw,42px);
  font-weight:820;
  line-height:1.07;
  letter-spacing:-.045em;
}
.profile-heading p{
  margin-top:clamp(4px,1.2vw,8px);
  color:var(--profile-muted);
  font-size:clamp(12px,3vw,19px);
  line-height:1.3;
}
.profile-identity{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:clamp(10px,3.25vw,23px);
  padding:clamp(10px,3.35vw,23px) clamp(10px,4vw,27px);
  min-height:clamp(83px,23.8vw,157px);
  border:1px solid #fff;
  border-radius:var(--profile-radius);
  background:linear-gradient(142deg,#fbfcff 17%,#e9edfb 74%,#f8faff);
  box-shadow:var(--profile-shadow);
}
.profile-avatar{
  position:relative;
  display:grid;
  place-items:center;
  width:clamp(56px,17.1vw,111px);
  aspect-ratio:1;
  flex:none;
  overflow:hidden;
  color:#fff;
  border-radius:28%;
  background:
    radial-gradient(ellipse at 112% 107%,#0579ed 0%,transparent 38%),
    linear-gradient(139deg,#5872b4 -11%,#14254f 48%,#0d1837);
  box-shadow:inset 0 1px 1px #fff3,0 5px 9px #284d9f30;
  font-size:clamp(30px,9vw,60px);
  font-weight:790;
  line-height:1;
}
.profile-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.profile-identity-copy{min-width:0}
.profile-identity-copy h2{
  font-size:clamp(16px,4.4vw,28px);
  line-height:1.12;
  letter-spacing:-.035em;
  font-weight:810;
  overflow-wrap:anywhere;
}
.profile-role{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-top:clamp(4px,1.4vw,9px);
  padding:3px clamp(7px,2vw,13px);
  border-radius:999px;
  background:linear-gradient(146deg,#f5f8ff,#dce5f8);
  box-shadow:0 3px 8px #4570c018;
  font-size:clamp(10px,2.75vw,17px);
  font-weight:720;
  line-height:1.2;
}
.profile-role svg{width:1.13em;height:1.13em;color:#173e94;stroke-width:2}
.profile-identity-copy p{
  margin-top:clamp(3px,1.2vw,8px);
  color:var(--profile-muted);
  font-size:clamp(10px,2.65vw,17px);
  line-height:1.3;
}
.profile-edit{
  display:grid;
  place-items:center;
  align-self:start;
  width:clamp(37px,7.5vw,49px);
  aspect-ratio:1;
  border:1px solid #fff;
  border-radius:30%;
  background:linear-gradient(155deg,#fff,#e8efff);
  color:#183f8f;
  box-shadow:0 4px 9px #325ab52d;
}
.profile-edit svg{width:clamp(19px,4.55vw,26px);height:clamp(19px,4.55vw,26px);stroke-width:1.9}
.profile-plan{
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:clamp(6px,2.8vw,19px);
  min-height:clamp(68px,18.9vw,126px);
  margin-top:clamp(12px,3.7vw,25px);
  padding:clamp(8px,2.45vw,18px) clamp(10px,3.3vw,24px);
  overflow:hidden;
  color:white;
  border:1px solid #628de0;
  border-radius:var(--profile-radius);
  background:radial-gradient(ellipse at 86% 135%,#054eb9,transparent 47%),linear-gradient(140deg,#24365f,#07173e 75%);
  box-shadow:inset 0 1px 6px #4b77cb68,0 8px 19px #264ba13d;
}
.profile-plan::before,.profile-plan::after{
  content:"";
  position:absolute;
  z-index:-1;
  border-radius:50%;
  pointer-events:none;
  transform:rotate(-15deg);
}
.profile-plan::before{
  width:68%;
  height:99%;
  right:-17%;
  bottom:-70%;
  border-top:2px solid #8aefff;
  box-shadow:0 -4px 15px #17a6ff,inset 0 6px 13px #34aaff;
  background:linear-gradient(#1686ee,#063579 50%);
}
.profile-plan::after{
  width:78%;
  height:126%;
  right:-27%;
  bottom:-68%;
  border-top:2px solid #0769f94c;
  box-shadow:0 -5px 26px #0379ff76;
}
.profile-plan-crown{
  font-size:clamp(24px,9vw,60px);
  line-height:1;
  filter:drop-shadow(0 3px 6px #ffd56956);
}
.profile-plan-copy{min-width:0}
.profile-plan-copy p{
  color:#eef3ff;
  text-transform:uppercase;
  font-size:clamp(8px,2.15vw,14px);
  letter-spacing:.045em;
  font-weight:540;
}
.profile-plan-copy h2{
  margin-top:2px;
  font-size:clamp(16px,4.55vw,30px);
  font-weight:800;
  letter-spacing:-.035em;
  line-height:1.14;
}
.profile-plan-copy>span{
  display:block;
  margin-top:4px;
  color:#dae6ff;
  font-size:clamp(9px,2.55vw,16px);
  line-height:1.2;
}
.profile-plan-button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(3px,1.2vw,8px);
  min-height:clamp(34px,6.75vw,46px);
  padding:4px clamp(6px,2.25vw,17px);
  border:1px solid #dbeaff;
  border-radius:clamp(8px,2.6vw,17px);
  background:linear-gradient(150deg,#fff,#edf4ff);
  box-shadow:0 4px 12px #1d6df35c;
  color:#142249;
  font-size:clamp(10px,2.65vw,17px);
  font-weight:740;
  letter-spacing:-.035em;
  white-space:nowrap;
}
.profile-plan-button svg{width:1.2em;height:1.2em;flex:none;color:#134394;stroke-width:2}

.profile-rows{display:grid;gap:clamp(5px,1.45vw,10px);margin-top:clamp(13px,4.25vw,28px)}
.profile-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:clamp(8px,2.9vw,19px);
  width:100%;
  min-height:clamp(49px,12.45vw,83px);
  padding:clamp(5px,1.65vw,12px) clamp(8px,2.5vw,16px);
  text-align:left;
  color:inherit;
  border:1px solid #fff;
  border-radius:clamp(13px,3.8vw,25px);
  background:linear-gradient(149deg,#fff,#f6f8fd);
  box-shadow:var(--profile-shadow);
}
.profile-row-icon{
  display:grid;
  place-items:center;
  width:clamp(36px,10.65vw,69px);
  height:clamp(32px,9.15vw,61px);
  border-radius:30%;
  background:linear-gradient(146deg,#f2f5fd,#dfe6f8);
  color:#143b8c;
}
.profile-row-icon svg{width:55%;height:64%;stroke-width:1.75}
.profile-row-copy{min-width:0;line-height:1.18}
.profile-row-copy :is(strong,small){display:block}
.profile-row-copy strong{font-size:clamp(13px,3.4vw,22px);font-weight:780;letter-spacing:-.037em}
.profile-row-copy small{margin-top:4px;color:var(--profile-muted);font-size:clamp(10px,2.68vw,17px);letter-spacing:-.022em}
.profile-row-end{display:grid;place-items:center;color:#46537b}
.profile-row-end>svg{width:clamp(15px,4vw,24px);height:clamp(15px,4vw,24px)}
.profile-language-pill{
  display:flex;
  align-items:center;
  gap:clamp(3px,1.3vw,8px);
  padding:clamp(3px,.9vw,6px) clamp(5px,1.4vw,10px);
  border:1px solid #dfe8fa;
  border-radius:999px;
  background:linear-gradient(150deg,#fff,#eaf0fb);
  box-shadow:0 2px 5px #335ab427;
  color:#172447;
  font-size:clamp(9px,2.55vw,17px);
  font-weight:740;
  white-space:nowrap;
}
.profile-language-pill>span{font-size:1.26em}
.profile-language-pill svg{width:1em;height:1em;color:#174096;stroke-width:2.1}
.profile-signout{
  display:flex;
  align-items:center;
  gap:clamp(10px,4.7vw,30px);
  width:100%;
  min-height:clamp(44px,11.5vw,75px);
  margin-top:clamp(10px,3.2vw,21px);
  padding:6px 5%;
  border:1px solid #fff;
  border-radius:clamp(13px,3.8vw,25px);
  background:linear-gradient(146deg,#fff4f8,#faedf2);
  box-shadow:var(--profile-shadow);
  color:#ae1023;
  text-align:left;
  font-size:clamp(13px,3.25vw,21px);
  font-weight:750;
  letter-spacing:-.025em;
}
.profile-signout svg{width:clamp(20px,5.55vw,35px);height:clamp(20px,5.55vw,35px)}
.profile-admin{display:inline-flex;margin:12px 0 0 4px}

.profile-settings-list{display:grid;gap:10px;margin-top:16px}
.profile-settings-list .secondary-button{justify-content:flex-start}
.profile-photo-controls{display:flex;align-items:center;gap:14px;margin-block:15px}
.profile-photo-controls .profile-avatar{width:66px;font-size:34px}
.profile-photo-controls .text-button{display:flex;margin-top:5px}
.info-body .profile-upload{position:relative;display:inline-flex;margin:0;cursor:pointer;font-size:12px}
.profile-upload input{position:absolute;width:1px;height:1px;opacity:0}
.profile-upload:focus-within{outline:2px solid #216bff;outline-offset:3px}
.info-body .avatar-upload-status{font-size:13px;color:#254d89}
.profile-details{display:grid;margin:14px 0;gap:7px}
.profile-details>div,.profile-language-choice,.profile-payments li{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  background:#f1f6ff;
  color:#182b55;
  font-size:13px;
}
.profile-details dt{flex:none;color:#4e628e}
.profile-details dd{margin:0;font-weight:650;text-align:right;overflow-wrap:anywhere}
.profile-language-choice{justify-content:flex-start;margin-top:14px}
.profile-language-choice svg{width:17px;height:17px;margin-left:auto;color:#105bf5}
.profile-payments{display:grid;gap:7px;list-style:none;padding:0;margin:14px 0 0}
.profile-payments small{display:block;margin-top:4px;color:#55678f}
.payment-confirmed{display:inline-flex;align-items:center;gap:3px;color:#087050;font-size:11px;font-weight:700}
.payment-confirmed svg{width:14px;height:14px;flex:none}
