/* Sidebar account menu and personal profile settings. */
.sidebar .profile { display: block; position: relative; margin-top: auto; padding: 0 0 28px!important; border-top: 0; }
.profile-menu { position: relative; margin: 0; padding: 0; border: 0; }
.profile-trigger { display: flex; align-items: center; gap: 10px; min-height: 49px; padding: 6px 7px; border: 1px solid #ffffff29; border-radius: 12px; outline: none; color: #fff; cursor: pointer; list-style: none; transition: border-color .16s,box-shadow .16s,background-color .16s; }
.profile-trigger::-webkit-details-marker { display: none; }
.profile-trigger:hover,.profile-menu[open] .profile-trigger { border-color: #ffffff59; background: #ffffff08; box-shadow: 0 5px 14px #00182724; }
.profile-trigger:focus-visible { outline: 2px solid #5bdbb4; outline-offset: 2px; }
.profile-avatar { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; overflow: hidden; border-radius: 50%; background: #dff8ef; color: #08775a; font-size: 12px; font-weight: 900; }
.profile-avatar img,.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-identity { display: grid; gap: 2px; min-width: 0; flex: 1; }
.profile-identity strong,.profile-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-identity strong { font-size: 12px; color: #fff; }
.profile-identity small { font-size: 10px; color: #9fb1c4; }
.profile-chevron { color: #aac8ca; font-size: 15px; transition: transform .16s; }
.profile-menu[open] .profile-chevron { transform: rotate(180deg); }
.profile-popover { position: absolute; z-index: 120; bottom: calc(100% + 8px); left: 0; width: max(230px,100%); padding: 7px; border: 1px solid #d9e6e6; border-radius: 13px; background: #fff; box-shadow: 0 16px 36px #001f3050; color: #15283b; }
.profile-popover-heading { display: grid; gap: 3px; padding: 10px 10px 12px; border-bottom: 1px solid #e7eff0; }
.profile-popover-heading strong { font-size: 12px; }
.profile-popover-heading small { overflow: hidden; color: #75879a; font-size: 11px; text-overflow: ellipsis; }
.profile-popover a { display: flex; align-items: center; gap: 10px; margin-top: 5px; padding: 10px; border: 1px solid transparent; border-radius: 9px; color: #162b3c; font-size: 13px; font-weight: 800; text-decoration: none; }
.profile-popover a:hover { border-color: #c9e2dc; background: #f2faf7; box-shadow: 0 3px 10px #0d59411a; }
.profile-popover a>span:last-child { display: grid; gap: 2px; }
.profile-popover a small { color: #738598; font-size: 10px; font-weight: 600; }
.profile-popover form { margin-top: 5px; padding-top: 6px; border-top: 1px solid #e7eff0; }
.profile-popover .profile-logout { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px; border: 1px solid #f4b8b8; border-radius: 9px; background: #fff2f2; color: #bf2424; font: 800 13px 'DM Sans',sans-serif; text-align: left; cursor: pointer; }
.profile-popover .profile-logout:hover { border-color: #dd3333; background: #ffe4e4; color: #a31616; box-shadow: 0 4px 12px #ad252525; }
.profile-settings-layout { display: grid; gap: 18px; max-width: 1080px; }
.profile-photo-card { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 22px; align-items: start; padding: 26px; }
.profile-photo-preview { display: grid; place-items: center; width: 96px; height: 96px; overflow: hidden; border-radius: 50%; background: #dff8ef; color: #08775a; font: 900 30px Manrope,sans-serif; }
.profile-settings-kicker { color: #078b68; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.profile-photo-card h2,.profile-settings-card h2 { margin: 5px 0 6px; color: #112236; font: 800 22px Manrope,sans-serif; }
.profile-photo-card p,.profile-settings-card p { margin: 0 0 16px; color: #718398; font-size: 13px; }
.profile-photo-form,.profile-settings-card form { display: grid; gap: 13px; }
.profile-photo-form label,.profile-settings-card label { display: grid; gap: 6px; color: #334b5c; font-size: 12px; font-weight: 800; }
.profile-photo-form label small { color: #74889a; font-weight: 500; }
.profile-photo-form input,.profile-settings-card input { min-height: 42px; padding: 9px 12px; border: 1px solid #cedee2; border-radius: 9px; background: #fff; color: #172338; font: 600 13px 'DM Sans',sans-serif; }
.profile-photo-form input[type="file"] { padding: 8px; }
.profile-photo-card>div:last-child { min-width: 0; }
.profile-photo-form input[type="file"] { display: block; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; font-size: 11px; }
.profile-photo-form input[type="file"]::file-selector-button { margin-right: 7px; padding: 5px 7px; border: 1px solid #cad9dc; border-radius: 6px; background: #f6faf9; color: #243e4d; font: inherit; cursor: pointer; }
.profile-settings-card input[readonly] { background: #f5f8f9; color: #657789; }
.profile-photo-form button,.profile-settings-card button { justify-self: start; padding: 10px 15px; }
.profile-remove-photo { margin-top: 10px; }
.profile-remove-photo button { padding: 8px 11px; border: 1px solid #d7e2e5; border-radius: 8px; background: #fff; color: #60768a; font-weight: 800; cursor: pointer; }
.profile-remove-photo button:hover { border-color: #b7cad0; background: #f6fafb; }
.profile-settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.profile-settings-card { padding: 24px; }
@media(max-width:800px) { .profile-settings-grid { grid-template-columns: 1fr; } .profile-photo-card { grid-template-columns: 70px minmax(0,1fr); padding: 18px; } .profile-photo-preview { width: 70px; height: 70px; font-size: 22px; } }
@media(max-width:700px) {
  .sidebar { display: flex!important; flex-direction: row!important; align-items: center!important; }
  .sidebar nav { flex: 1 1 auto!important; width: auto!important; min-width: 0!important; }
  .sidebar>.profile { display: block!important; flex: 0 0 47px!important; width: 47px!important; margin: 0!important; padding: 0 2px!important; border: 0!important; }
  .profile-trigger { justify-content: center; width: 43px; height: 47px; min-height: 47px; padding: 0; }
  .profile-avatar { flex-basis: 34px; width: 34px; height: 34px; }
  .profile-identity,.profile-chevron { display: none; }
  .profile-popover { right: 0; left: auto; bottom: calc(100% + 12px); width: min(280px,calc(100vw - 20px)); }
}

.profile-currency-card select{width:100%;min-height:44px;padding:10px 12px;border:1px solid #cbded8;border-radius:10px;background:#fff;color:#203c43;font:500 13px 'DM Sans',sans-serif;box-sizing:border-box}
.currency-display-examples{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:14px;color:#203c43;font:700 14px 'DM Sans',sans-serif}
.profile-currency-card>small{display:block;margin-top:14px;color:#6a7c83;font:400 11px/1.6 'DM Sans',sans-serif}
