/* Account styles are isolated from the legacy dashboard and trading tables. */
.sc-account-page { min-height: 100vh; background: var(--sc-bg); color: var(--sc-text); }
.sc-account-page *, .sc-account-page *::before, .sc-account-page *::after { box-sizing: border-box; }
.sc-account-main { max-width: 1530px; margin: 0 auto; padding: 38px 38px 48px 103px; min-width: 0; }
.sc-account-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.sc-account-header .sc-account-eyebrow { color: #75c9ed; letter-spacing: .15em; font-size: 10px; font-weight: 700; margin: 0 0 10px; }
.sc-account-header h1 { color: #f4f7fc; font-size: 36px; font-weight: 650; line-height: 1.15; letter-spacing: -1.3px; margin: 0 0 10px; }
.sc-account-header p { color: var(--sc-muted); font-size: 13px; line-height: 1.5; margin: 0; }
.sc-account-back { color: #b9cbe2; font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 9px; padding: 10px 0; white-space: nowrap; text-decoration: none !important; }
.sc-account-back:hover { color: #7ed9ff; }
.sc-account-back svg, .sc-account-button svg { width: 17px; height: 17px; flex: none; }
.sc-account-layout { display: grid; grid-template-columns: minmax(285px, .8fr) minmax(0, 1.6fr); gap: 24px; align-items: start; }
.sc-account-card { background: #141f31; border: 1px solid #29394f; border-radius: 14px; min-width: 0; overflow: hidden; }
.sc-account-section-heading { display: flex; align-items: center; gap: 13px; padding: 23px 24px; border-bottom: 1px solid #29394f; }
.sc-account-section-icon { width: 38px; height: 38px; border: 1px solid #30516c; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; color: #84cceb; background: #182e43; }
.sc-account-section-icon svg { width: 21px; height: 21px; }
.sc-account-section-heading h2 { font-size: 16px; line-height: 1.4; color: #eef4fc; font-weight: 600; letter-spacing: -.25px; margin: 0 0 3px; }
.sc-account-section-heading p { color: #a6b8ce; font-size: 11px; line-height: 1.5; margin: 0; }
.sc-account-profile form { padding: 0 24px 24px; }
.sc-account-identity { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 0 25px; gap: 7px; }
.sc-account-avatar { display: flex; align-items: center; justify-content: center; position: relative; width: 86px; height: 86px; border: 3px solid #314c69; background: #254465; border-radius: 50%; overflow: hidden; margin-bottom: 9px; }
.sc-account-avatar > span { font-size: 28px; font-weight: 600; letter-spacing: -.7px; color: #bfebff; }
.sc-account-avatar > img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; }
.sc-account-identity > strong { font-size: 17px; font-weight: 600; color: #eff5fc; max-width: 100%; overflow-wrap: anywhere; }
.sc-account-email { color: #a8bbd2; font-size: 12px; overflow-wrap: anywhere; max-width: 100%; }
.sc-account-identity .sc-account-button { margin-top: 10px; min-height: 35px; font-size: 11px; }
.sc-account-page .sc-account-file-input { display: none; }
.sc-account-filename { font-size: 11px; color: #b2ddf1; overflow-wrap: anywhere; max-width: 100%; }
.sc-account-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; min-width: 0; }
.sc-account-field > label { color: #d6e2f2; font-size: 12px; line-height: 1.4; font-weight: 500; margin: 0; }
.sc-account-field input { display: block; width: 100%; max-width: 100%; min-width: 0; height: 43px; border: 1px solid #384b64; border-radius: 8px; padding: 0 12px; font-size: 12px; font-weight: 400; line-height: 1.4; background: #0e192a; color: #edf4fd; font-family: inherit; outline: none; box-shadow: none; }
.sc-account-field input::placeholder { color: #8d9db4; opacity: 1; }
.sc-account-field input:focus { border-color: #60c7f1; }
.sc-account-field input[readonly] { color: #a3b7ce; background: #172336; border-color: #293b51; }
.sc-account-page .sc-account-hint { color: #91a8c2; font-size: 10px; line-height: 1.6; margin: 0; font-weight: 400; }
.sc-account-actions { display: flex; gap: 10px; align-items: center; margin-top: 23px; }
.sc-account-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 9px 16px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-family: inherit; font-weight: 600; line-height: 1.5; cursor: pointer; transition: background .15s, border-color .15s; text-decoration: none; }
.sc-account-button-primary { background: #58c4ee; color: #062133; border-color: #58c4ee; }
.sc-account-button-primary:hover { background: #8bddfa; border-color: #8bddfa; }
.sc-account-button-secondary { background: #1a2c42; border-color: #3d536c; color: #d8eafa; }
.sc-account-button-secondary:hover { background: #25405b; border-color: #597b9a; }
.sc-account-button-quiet { color: #a8bdd6; background: transparent; padding-inline: 10px; }
.sc-account-button-quiet:hover { color: #e8f4ff; background: #1c2e44; }
.sc-account-page button:disabled, .sc-account-page input:disabled { opacity: .5; cursor: not-allowed; }
.sc-account-feedback { color: #a5e6c7; background: #12392e; border: 1px solid #27644b; padding: 12px 14px; border-radius: 8px; font-size: 12px; line-height: 1.6; margin-top: 15px; }
.sc-account-feedback.is-error { color: #ffc0c2; background: #3c2430; border-color: #73404e; }
.sc-account-settings { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sc-account-disclosure > summary { display: flex; align-items: center; gap: 13px; padding: 23px 24px; cursor: pointer; list-style: none; user-select: none; }
.sc-account-disclosure > summary::-webkit-details-marker { display: none; }
.sc-account-disclosure > summary > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sc-account-summary-title { color: #eef4fc; font-size: 16px; line-height: 1.4; font-weight: 600; letter-spacing: -.25px; }
.sc-account-summary-description { color: #a6b8ce; font-size: 11px; line-height: 1.5; }
.sc-account-disclosure > summary:hover { background: #19283c; }
.sc-account-disclosure > summary:focus-visible { outline: 2px solid #7cd8fd; outline-offset: -3px; border-radius: 13px; }
.sc-account-chevron { width: 19px; height: 19px; color: #95afcc; margin-left: auto; flex-shrink: 0; transition: transform .15s; }
.sc-account-disclosure[open] > summary { border-bottom: 1px solid #29394f; }
.sc-account-disclosure[open] .sc-account-chevron { transform: rotate(180deg); }
.sc-account-card-body { padding: 23px 24px 25px; }
.sc-account-password-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 19px; }
.sc-account-password-heading h3 { color: #e2ebf7; font-size: 13px; font-weight: 600; line-height: 1.5; margin: 0; }
.sc-account-text-button { min-height: 28px; border: 0; border-radius: 5px; background: transparent; color: #88cfee; font-size: 11px; font-weight: 500; padding: 3px 1px; cursor: pointer; font-family: inherit; }
.sc-account-text-button:hover { color: #c8f0ff; }
.sc-account-password-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.sc-account-password-grid .sc-account-field { margin-bottom: 8px; }
.sc-account-billing .sc-account-card-body > p { font-size: 12px; line-height: 1.7; color: #aebfd6; margin: 0 0 19px; max-width: 540px; }
.sc-account-terms { padding: 24px; max-height: 460px; overflow-y: auto; scrollbar-color: #465d7a #142034; scrollbar-width: thin; overscroll-behavior: contain; }
.sc-account-terms .termsText { color: #bdcce0 !important; line-height: 1.8; overflow-wrap: anywhere; }
.sc-account-terms h3.termsText { color: #eff4fb !important; font-size: 18px; line-height: 1.4; margin-top: 0; }
.sc-account-terms h4.termsText { color: #d2e1f4 !important; font-size: 13px; line-height: 1.5; }
.sc-account-terms p.termsText { font-size: 12px !important; font-weight: 400 !important; margin-bottom: 15px; }
@media (max-width: 1151px) {
    .sc-account-main { padding: 28px 24px 40px; }
    .sc-account-layout { grid-template-columns: minmax(270px, .85fr) minmax(0, 1.4fr); gap: 20px; }
}
@media (max-width: 850px) {
    .sc-account-layout { grid-template-columns: minmax(0, 1fr); }
    .sc-account-profile form { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 1fr); gap: 0 30px; padding-top: 24px; }
    .sc-account-identity { grid-row: span 4; padding: 0; }
    .sc-account-profile .sc-account-actions, .sc-account-profile .sc-account-feedback { grid-column: 2; margin-top: 0; margin-bottom: 15px; }
}
@media (max-width: 600px) {
    .sc-account-main { padding: 24px 16px 32px; }
    .sc-account-header { flex-wrap: wrap; gap: 13px; margin-bottom: 24px; }
    .sc-account-header h1 { font-size: 30px; }
    .sc-account-header p { font-size: 12px; }
    .sc-account-back { font-size: 11px; padding: 4px 0; }
    .sc-account-section-heading, .sc-account-disclosure > summary { padding: 20px; gap: 11px; }
    .sc-account-profile form { display: block; padding: 0 20px 20px; }
    .sc-account-identity { padding: 25px 0; }
    .sc-account-profile .sc-account-actions { margin: 23px 0 0; }
    .sc-account-profile .sc-account-feedback { margin: 15px 0 0; }
    .sc-account-section-heading h2, .sc-account-summary-title { font-size: 15px; }
    .sc-account-card-body { padding: 20px; }
    .sc-account-password-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .sc-account-field input { font-size: 16px; }
    .sc-account-terms { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .sc-account-button, .sc-account-chevron { transition: none; }
}
