/* PUBLICBOOST · Account Center 2 — compact premium account experience.
   Presentation only. Existing profile, avatar, Telegram, email, password,
   Recovery Key and Wallet actions keep their original event handlers. */

.account-dashboard.account-dashboard-v2{
 display:grid;
 grid-template-columns:minmax(0,1fr) minmax(0,1fr);
 align-items:start;
 column-gap:18px;
 row-gap:18px;
}
.account-dashboard-v2>.account-profile-card,
.account-dashboard-v2>.account-preferences-card,
.account-dashboard-v2>.account-connections-card{
 min-width:0;
 align-self:start;
 border:1px solid var(--line);
 border-radius:22px;
 box-shadow:0 13px 36px rgba(10,10,35,.08);
 background:var(--surface);
 overflow:hidden;
}
.account-dashboard-v2>.account-profile-card{
 grid-column:1/-1;
 position:relative;
 isolation:isolate;
 padding:0;
 background:
  radial-gradient(ellipse at 100% 0%,color-mix(in srgb,var(--accent) 19%,transparent),transparent 47%),
  linear-gradient(145deg,color-mix(in srgb,var(--accent) 6%,var(--surface)),var(--surface) 74%);
 border-color:color-mix(in srgb,var(--accent) 27%,var(--line));
}
.account-dashboard-v2>.account-profile-card::before{
 content:"";position:absolute;inset:0 0 auto;height:3px;
 background:linear-gradient(90deg,#4d98ff 0%,#9764ef 60%,#cc64e2);
 z-index:2;pointer-events:none;
}
.account-dashboard-v2>.account-profile-card::after{
 content:"";position:absolute;width:245px;height:245px;
 right:-108px;top:-156px;border-radius:50%;
 border:1px solid color-mix(in srgb,var(--accent) 21%,transparent);
 z-index:0;pointer-events:none;
}
.account-dashboard-v2 .account-profile-hero{
 position:relative;z-index:1;
 display:grid;
 grid-template-columns:132px minmax(0,1fr) auto;
 align-items:center;
 gap:20px;
 margin:0;
 padding:23px 28px 20px;
 border:0;
}
.account-dashboard-v2 .account-profile-card .account-avatar-block{
 width:132px;min-height:126px;
 padding:9px 0 0;justify-content:center;
}
.account-dashboard-v2 .account-profile-copy{
 min-width:0;padding:0;
}
.account-dashboard-v2 .account-identity-overline{
 display:block;
 width:max-content;max-width:100%;
 color:var(--accent);
 font-size:11px;font-weight:750;
 text-transform:none;letter-spacing:.1px;
}
.account-dashboard-v2 .account-profile-copy h2{
 color:var(--text);
 font-size:clamp(22px,2.4vw,31px);
 font-weight:800;line-height:1.26;
 letter-spacing:-.5px;
 margin:7px 0 5px;
 overflow-wrap:anywhere;
}
.account-dashboard-v2 .account-profile-copy p{
 color:var(--muted);font-size:12px;line-height:1.8;
 margin:0;max-width:380px;
}
.account-dashboard-v2 .account-profile-actions{
 display:flex;
 flex-wrap:wrap;justify-content:flex-end;align-items:center;
 justify-self:end;
 column-gap:8px;row-gap:9px;
 max-width:310px;
}
.account-dashboard-v2 .account-profile-actions>button{
 min-height:40px;height:40px;
 padding:0 13px;
 border-radius:11px;
 font-weight:750;font-size:11px;
 transition:border-color .15s,background .15s;
}
.account-dashboard-v2 .account-profile-edit{
 border:1px solid color-mix(in srgb,var(--accent) 25%,var(--line));
 background:color-mix(in srgb,var(--accent) 7%,var(--surface));
}
.account-dashboard-v2 .account-profile-edit:hover{
 background:color-mix(in srgb,var(--accent) 13%,var(--surface));
}
.account-dashboard-v2 .account-profile-logout{
 background:color-mix(in srgb,var(--danger) 3%,var(--surface));
}
.account-dashboard-v2 .account-status-pill{
 order:-1;
 display:inline-flex;align-items:center;justify-content:center;gap:7px;
 min-height:31px;padding:5px 11px;margin-right:4px;
 font-size:10px;font-weight:750;
 line-height:1.2;
 border-radius:100px;
 border-color:color-mix(in srgb,var(--green) 25%,var(--line));
 color:var(--green);
 background:color-mix(in srgb,var(--green) 7%,var(--surface));
}
.account-dashboard-v2 .account-status-pill i{
 width:7px;height:7px;display:block;flex:none;
 background:var(--green);border-radius:50%;
 box-shadow:0 0 0 3px color-mix(in srgb,var(--green) 12%,transparent);
}
.account-dashboard-v2 .account-status-pill.is-suspended{
 color:var(--danger);
 border-color:color-mix(in srgb,var(--danger) 30%,var(--line));
 background:color-mix(in srgb,var(--danger) 5%,var(--surface));
}
.account-dashboard-v2 .account-status-pill.is-suspended i{
 background:var(--danger);
 box-shadow:0 0 0 3px color-mix(in srgb,var(--danger) 12%,transparent);
}
/* Info below the hero is laid out as four equal-feeling fields; email gets extra width. */
.account-dashboard-v2 .account-profile-details-heading{
 position:relative;
 z-index:1;
 display:flex;align-items:center;justify-content:space-between;gap:12px;
 margin:0 28px;
 padding:18px 0 12px;
 border-top:1px solid var(--soft-line);
}
.account-dashboard-v2 .account-profile-details-heading small,
.account-dashboard-v2 .account-card-heading small,
.account-dashboard-v2 .account-security-heading small{
 display:block;
 font-size:9px;font-weight:900;line-height:1.4;
 letter-spacing:1.55px;color:var(--accent);
 margin:0 0 5px;
}
.account-dashboard-v2 .account-profile-details-heading h3{
 margin:0;color:var(--text);font-size:17px;
 font-weight:750;line-height:1.5;
}
.account-dashboard-v2 .account-wallet-link{
 display:inline-flex;align-items:center;gap:8px;min-height:34px;
 padding:6px 11px;
 background:color-mix(in srgb,var(--accent) 10%,var(--surface));
 color:var(--accent);
 border:1px solid color-mix(in srgb,var(--accent) 25%,var(--line));
 border-radius:10px;font-size:10px;font-weight:800;
 text-decoration:none;white-space:nowrap;
}
.account-dashboard-v2 .account-wallet-link:hover,
.account-dashboard-v2 .account-wallet-link:focus-visible{
 background:color-mix(in srgb,var(--accent) 18%,var(--surface));
 border-color:var(--accent);
}
.account-dashboard-v2 .account-wallet-link svg{width:14px;height:14px;flex:none}
.account-dashboard-v2 .account-info-grid{
 position:relative;z-index:1;
 display:grid;
 grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,.8fr) minmax(0,.8fr);
 gap:10px;
 margin:0;padding:0 28px 24px;
}
.account-dashboard-v2 .account-info-item{
 display:flex;align-items:center;gap:11px;min-width:0;
 min-height:70px;padding:12px 14px;
 border-radius:13px;
 background:color-mix(in srgb,var(--field) 80%,var(--surface));
 border-color:color-mix(in srgb,var(--accent) 9%,var(--line));
}
.account-dashboard-v2 .account-info-icon{
 width:39px;height:39px;flex:none;border-radius:12px;
 background:color-mix(in srgb,var(--accent) 12%,var(--surface));
}
.account-dashboard-v2 .account-info-icon svg{width:18px;height:18px}
.account-dashboard-v2 .account-info-item>span:last-child{min-width:0;flex:1}
.account-dashboard-v2 .account-info-item small{font-size:10px;line-height:1.5}
.account-dashboard-v2 .account-info-item b{font-size:12px;line-height:1.65;font-weight:680;overflow-wrap:anywhere}
.account-dashboard-v2 .account-info-item .account-balance-value{font-size:19px!important;font-weight:850}
/* Settings and connections are two separate surfaces with natural heights. */
.account-dashboard-v2>.account-preferences-card,
.account-dashboard-v2>.account-connections-card{
 padding:23px 24px 22px;
}
.account-dashboard-v2 .account-card-heading{
 display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
 padding-bottom:16px;border-bottom:1px solid var(--soft-line);
}
.account-dashboard-v2 .account-card-heading h2{
 margin:0;font-size:20px;line-height:1.5;font-weight:780;
}
.account-dashboard-v2 .account-card-heading p{
 margin-top:5px;max-width:400px;
 color:var(--muted);font-size:11px;line-height:1.85;
}
.account-dashboard-v2 .account-card-heading>span,
.account-dashboard-v2 .account-security-heading>span{
 flex:none;
 display:grid;place-items:center;
 width:43px;height:43px;
 border:1px solid color-mix(in srgb,var(--accent) 16%,var(--line));
 border-radius:13px;
 color:var(--accent);
 background:color-mix(in srgb,var(--accent) 12%,var(--surface));
}
.account-dashboard-v2 .account-card-heading>span svg,
.account-dashboard-v2 .account-security-heading>span svg{
 width:20px;height:20px;
}
.account-dashboard-v2 .account-settings-list{
 display:grid;gap:9px;margin:17px 0 0;
}
.account-dashboard-v2 .account-setting-card{
 display:grid;grid-template-columns:42px minmax(0,1fr) auto 17px;
 align-items:center;gap:12px;
 min-height:65px;padding:11px 13px;
 background:color-mix(in srgb,var(--field) 76%,var(--surface));
 border:1px solid var(--line);
 border-radius:13px;
 text-align:left;
 transition:background .15s,border-color .15s,transform .15s;
}
.account-dashboard-v2 .account-setting-card:hover{
 background:color-mix(in srgb,var(--accent) 9%,var(--surface));
 border-color:color-mix(in srgb,var(--accent) 34%,var(--line));
 transform:translateY(-1px);
}
.account-dashboard-v2 .account-setting-icon{
 width:42px;height:42px;border-radius:12px;
 background:color-mix(in srgb,var(--accent) 13%,var(--surface));
}
.account-dashboard-v2 .account-setting-icon svg{width:19px;height:19px}
.account-dashboard-v2 .account-setting-copy b{font-size:12px;font-weight:740}
.account-dashboard-v2 .account-setting-copy small{font-size:10px;line-height:1.65;margin-top:3px}
.account-dashboard-v2 .account-setting-value{
 padding:6px 9px;
 background:color-mix(in srgb,var(--accent) 11%,var(--surface));
 border:1px solid color-mix(in srgb,var(--accent) 16%,var(--line));
 font-weight:730;font-size:10px;
}
.account-dashboard-v2 .account-security-heading{
 display:flex;justify-content:space-between;align-items:center;gap:10px;
 padding-top:23px;margin-top:22px;
 border-top:1px solid var(--soft-line);
}
.account-dashboard-v2 .account-security-heading h3{
 margin:0;color:var(--text);font-size:17px;font-weight:760;line-height:1.4;
}
.account-dashboard-v2 .account-security-heading p{
 margin:5px 0 0;font-size:10px;color:var(--muted);line-height:1.8;
}
.account-dashboard-v2 .account-security-heading>span{
 width:37px;height:37px;border-radius:11px;
}
.account-dashboard-v2 .account-security-actions{
 display:grid;gap:9px;margin-top:15px;
}
.account-dashboard-v2 .account-security-actions>button{
 display:grid;
 grid-template-columns:30px minmax(0,1fr) 18px;
 align-items:center;gap:12px;
 width:100%;min-height:66px;
 padding:12px 14px;
 text-align:left;
 border-radius:13px;
 background:color-mix(in srgb,var(--field) 77%,var(--surface));
 border:1px solid var(--line);
 transition:background .15s,border-color .15s;
}
.account-dashboard-v2 .account-security-actions>button:hover{
 background:color-mix(in srgb,var(--accent) 9%,var(--surface));
 border-color:color-mix(in srgb,var(--accent) 31%,var(--line));
}
.account-dashboard-v2 .account-security-actions>button>svg:first-child{width:19px;height:19px}
.account-dashboard-v2 .account-security-actions>button>span b{font-size:12px;font-weight:720}
.account-dashboard-v2 .account-security-actions>button>span small{font-size:10px;line-height:1.65}
/* Integration section: Email and Telegram cards receive their original dynamic content. */
.account-dashboard-v2 .account-connection-list{
 display:grid;
 grid-template-columns:minmax(0,1fr);
 align-items:start;
 gap:12px;
 margin-top:17px;
}
.account-dashboard-v2 .account-connection-list>#pbEmailSecurityCard{order:1;min-width:0}
.account-dashboard-v2 .account-connection-list>#pbCustomerTelegramCard{order:2;min-width:0}
.account-dashboard-v2 .account-connection-list>.account-privacy-note{order:3}
.account-dashboard-v2 .account-connection-list .pb-email-card,
.account-dashboard-v2 .account-connection-list .pb-telegram-card{
 margin:0;
 padding:16px;
 border-radius:15px;
 background:color-mix(in srgb,var(--field) 76%,var(--surface));
 border-color:color-mix(in srgb,var(--accent) 14%,var(--line));
}
.account-dashboard-v2 .pb-email-card-heading,
.account-dashboard-v2 .pb-telegram-header{gap:12px}
.account-dashboard-v2 .pb-email-card-heading b,
.account-dashboard-v2 .pb-telegram-title b{font-size:12px;font-weight:750}
.account-dashboard-v2 .pb-email-card-heading small,
.account-dashboard-v2 .pb-telegram-title small{font-size:10px;line-height:1.6}
.account-dashboard-v2 .pb-email-card>p,
.account-dashboard-v2 .pb-telegram-card>p{font-size:10px;line-height:1.85;margin:11px 0}
.account-dashboard-v2 .pb-email-chip,
.account-dashboard-v2 .pb-telegram-pill{
 font-size:9px;padding:5px 8px;
}
.account-dashboard-v2 .pb-telegram-actions button,
.account-dashboard-v2 .pb-phone-status button{
 min-height:37px;border-radius:10px;font-size:10px;
}
.account-dashboard-v2 .account-privacy-note{
 display:flex;gap:10px;align-items:flex-start;
 margin:3px 0 0;padding:14px;
 background:color-mix(in srgb,var(--accent) 6%,var(--surface));
 border:1px solid color-mix(in srgb,var(--accent) 16%,var(--line));
 border-radius:13px;
 color:var(--muted);
}
.account-dashboard-v2 .account-privacy-note>svg{
 flex:none;width:18px;height:18px;color:var(--accent);margin-top:2px;
}
.account-dashboard-v2 .account-privacy-note b{font-size:11px;font-weight:730}
.account-dashboard-v2 .account-privacy-note p{font-size:10px;line-height:1.8;margin-top:3px}
/* Text contrast and surface hierarchy in light appearance. */
:root[data-theme=light] .account-dashboard-v2>.account-profile-card{
 background:
  radial-gradient(ellipse at 100% 0%,rgba(140,115,244,.17),transparent 48%),
  linear-gradient(150deg,#fff 0%,#f6f3ff 100%);
 border-color:#dcd4fa;
 box-shadow:0 14px 34px rgba(75,54,150,.08);
}
:root[data-theme=light] .account-dashboard-v2>.account-preferences-card,
:root[data-theme=light] .account-dashboard-v2>.account-connections-card{
 background:#fff;box-shadow:0 10px 34px rgba(37,32,76,.05);
}
:root[data-theme=light] .account-dashboard-v2 .account-info-item,
:root[data-theme=light] .account-dashboard-v2 .account-setting-card,
:root[data-theme=light] .account-dashboard-v2 .account-security-actions>button,
:root[data-theme=light] .account-dashboard-v2 .account-connection-list .pb-email-card,
:root[data-theme=light] .account-dashboard-v2 .account-connection-list .pb-telegram-card{
 background:#faf9ff;border-color:#e5e3f0;
}
:root[data-theme=light] .account-dashboard-v2 .account-setting-copy small,
:root[data-theme=light] .account-dashboard-v2 .account-card-heading p{color:#626478}
@media(max-width:1200px){
 .account-dashboard-v2 .account-profile-hero{
  grid-template-columns:132px minmax(0,1fr);
 }
 .account-dashboard-v2 .account-profile-actions{
  grid-column:2;justify-self:start;justify-content:flex-start;max-width:none;
 }
 .account-dashboard-v2 .account-info-grid{
  grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(0,1fr));
 }
}
@media(max-width:980px){
 .account-dashboard.account-dashboard-v2{
  grid-template-columns:minmax(0,1fr);
  gap:14px;
 }
 .account-dashboard-v2>.account-profile-card{grid-column:auto}
 .account-dashboard-v2 .account-profile-hero{grid-template-columns:116px minmax(0,1fr)}
 .account-dashboard-v2 .account-profile-actions{grid-column:2}
 .account-dashboard-v2 .account-info-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
}
@media(max-width:680px){
 .account-dashboard.account-dashboard-v2{gap:12px}
 .account-dashboard-v2>.account-profile-card,
 .account-dashboard-v2>.account-preferences-card,
 .account-dashboard-v2>.account-connections-card{border-radius:17px}
 .account-dashboard-v2 .account-profile-hero{
  padding:22px 18px 15px;
  grid-template-columns:104px minmax(0,1fr);
  gap:11px;
 }
 .account-dashboard-v2 .account-profile-card .account-avatar-block{
  width:104px;min-height:105px;padding:4px 0 0;
 }
 .account-dashboard-v2 .account-profile-card button.account-avatar-photo.pb-avatar-entry{
  width:88px;height:88px;
 }
 .account-dashboard-v2 .account-identity-overline{font-size:10px}
 .account-dashboard-v2 .account-profile-copy h2{font-size:24px;margin:4px 0}
 .account-dashboard-v2 .account-profile-copy p{font-size:10px}
 .account-dashboard-v2 .account-profile-actions{
  grid-column:1/-1;justify-self:stretch;
  justify-content:flex-start;max-width:none;margin-top:3px;
 }
 .account-dashboard-v2 .account-profile-actions>button{
  flex:0 1 auto;min-height:39px;height:39px;font-size:11px;
 }
 .account-dashboard-v2 .account-status-pill{margin:0}
 .account-dashboard-v2 .account-profile-details-heading{margin:0 17px;padding:16px 0 12px}
 .account-dashboard-v2 .account-profile-details-heading h3{font-size:16px}
 .account-dashboard-v2 .account-wallet-link{font-size:10px;padding:5px 9px}
 .account-dashboard-v2 .account-info-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  padding:0 17px 18px;gap:8px;
 }
 .account-dashboard-v2 .account-info-item{min-height:65px;padding:11px 10px;gap:8px}
 .account-dashboard-v2 .account-info-item:first-child{grid-column:1/-1}
 .account-dashboard-v2 .account-info-item:nth-child(2){grid-column:1/-1}
 .account-dashboard-v2 .account-info-icon{width:36px;height:36px;border-radius:10px}
 .account-dashboard-v2 .account-info-icon svg{width:17px;height:17px}
 .account-dashboard-v2 .account-info-item b{font-size:11px}
 .account-dashboard-v2 .account-info-item .account-balance-value{font-size:18px!important}
 .account-dashboard-v2>.account-preferences-card,
 .account-dashboard-v2>.account-connections-card{padding:20px 17px}
 .account-dashboard-v2 .account-card-heading h2{font-size:19px}
 .account-dashboard-v2 .account-card-heading p{font-size:10px}
 .account-dashboard-v2 .account-setting-card{min-height:62px;gap:9px;padding:10px}
 .account-dashboard-v2 .account-setting-copy b{font-size:12px}
 .account-dashboard-v2 .account-setting-copy small{font-size:9px}
 .account-dashboard-v2 .account-security-actions>button{min-height:60px}
}
@media(max-width:370px){
 .account-dashboard-v2 .account-profile-hero{grid-template-columns:90px minmax(0,1fr);gap:8px}
 .account-dashboard-v2 .account-profile-card .account-avatar-block{width:90px}
 .account-dashboard-v2 .account-profile-card button.account-avatar-photo.pb-avatar-entry{width:78px;height:78px}
 .account-dashboard-v2 .account-profile-copy h2{font-size:21px}
 .account-dashboard-v2 .account-profile-actions{row-gap:7px}
 .account-dashboard-v2 .account-profile-actions>button{padding:0 9px;font-size:10px}
 .account-dashboard-v2 .account-wallet-link{gap:4px;font-size:9px}
 .account-dashboard-v2 .account-wallet-link svg:first-child{display:none}
 .account-dashboard-v2 .account-setting-card{grid-template-columns:37px minmax(0,1fr) auto 14px;gap:7px}
 .account-dashboard-v2 .account-setting-icon{width:35px;height:35px}
 .account-dashboard-v2 .account-setting-value{font-size:9px;padding:4px 6px}
}
@media(prefers-reduced-motion:reduce){
 .account-dashboard-v2 .account-profile-actions>button,
 .account-dashboard-v2 .account-setting-card{transition:none;transform:none!important}
}

/* Small-screen balance must never split the amount across two lines. */
@media(max-width:370px){
 .account-dashboard-v2 .account-info-item:nth-child(3){padding:9px 7px;gap:6px}
 .account-dashboard-v2 .account-info-item:nth-child(3) .account-info-icon{width:29px;height:32px}
 .account-dashboard-v2 .account-info-item:nth-child(3) .account-info-icon svg{width:15px;height:15px}
 .account-dashboard-v2 .account-info-item:nth-child(3) .account-balance-value{
  white-space:nowrap;overflow-wrap:normal;font-size:15px!important;letter-spacing:-.35px
 }
}
