.account-page { min-height: 100vh; background: #f4f4f1; }
.account-site-header { position: sticky; top: 0; }
.account-main { min-height: calc(100vh - 232px); }
.account-loading { min-height: calc(100vh - 72px); display: grid; place-content: center; justify-items: center; gap: 16px; color: #747985; }
.account-loading p { margin: 0; font-size: 12px; }
.account-spinner { width: 28px; height: 28px; border: 2px solid #d6d8dd; border-top-color: var(--blue); border-radius: 50%; animation: account-spin .8s linear infinite; }
@keyframes account-spin { to { transform: rotate(360deg); } }

.account-gate { width: min(620px, calc(100% - 40px)); margin: clamp(60px, 10vh, 120px) auto; padding: clamp(36px, 6vw, 64px); background: white; border: 1px solid #e0e1e4; text-align: center; box-shadow: 0 24px 70px rgba(16,18,24,.08); }
.account-gate-icon { width: 58px; height: 58px; margin: 0 auto 25px; display: grid; place-items: center; background: #11141b; color: var(--lime); transform: rotate(45deg); }
.account-gate-icon svg { transform: rotate(-45deg); }
.account-gate .eyebrow { justify-content: center; margin-bottom: 16px; }
.account-gate h1 { margin: 0; font: 400 clamp(34px, 5vw, 50px)/1.05 Georgia, serif; letter-spacing: -.04em; }
.account-gate > p:not(.eyebrow) { max-width: 460px; margin: 19px auto 27px; color: #6f7580; font-size: 13px; line-height: 1.7; }
.account-gate-actions { display: flex; justify-content: center; gap: 9px; }
.account-primary-button, .account-secondary-button { min-height: 48px; padding: 0 20px; border: 1px solid #171a21; font-size: 12px; font-weight: 800; cursor: pointer; }
.account-primary-button { display: inline-flex; align-items: center; gap: 30px; background: var(--blue); border-color: var(--blue); color: white; }
.account-primary-button svg { width: 15px; }
.account-secondary-button { background: white; }
.account-gate > a { display: inline-block; margin-top: 27px; border-bottom: 1px solid #b9bcc2; color: #646a75; font-size: 11px; }

.account-hero { min-height: 360px; padding: clamp(50px, 7vw, 92px) max(24px, calc((100vw - 1240px) / 2)); display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: end; gap: 60px; position: relative; overflow: hidden; background: radial-gradient(circle at 78% 20%, rgba(49,84,213,.42), transparent 27%), linear-gradient(120deg, #0b0e14, #151925); color: white; }
.account-hero-grid { position: absolute; inset: 0 0 0 55%; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(90deg, transparent, #000); }
.account-identity, .account-balance-card { position: relative; z-index: 1; }
.account-identity .eyebrow { margin-bottom: 18px; }
.account-identity h1 { margin: 0; font: 400 clamp(48px, 6vw, 76px)/.94 Georgia, serif; letter-spacing: -.055em; }
.account-identity h1 em { color: #aeb3be; font-weight: 400; }
.account-email-line { display: flex; align-items: center; gap: 11px; margin-top: 27px; color: #c3c7cf; font-size: 12px; }
.verified-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid rgba(216,255,62,.28); color: var(--lime); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.verified-badge svg { width: 12px; }
.account-balance-card { padding: 26px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(14px); }
.account-balance-card > span { color: #aeb4c0; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.account-balance-card > strong { display: block; margin-top: 7px; color: var(--lime); font: 400 51px/1 Georgia, serif; }
.account-balance-card > strong small { color: #e1e4e9; font: 700 11px Inter, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.account-balance-card p { margin: 9px 0 22px; color: #aeb4be; font-size: 11px; }
.account-balance-card a { min-height: 43px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; background: var(--lime); color: #101218; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.account-balance-card a svg { width: 15px; }

.account-shell { max-width: 1240px; margin: 0 auto; padding: 0 24px 100px; }
.account-toolbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #d8dade; }
.account-tabs { align-self: stretch; display: flex; gap: 29px; overflow-x: auto; scrollbar-width: none; }
.account-tabs button { position: relative; min-height: 82px; padding: 0; border: 0; background: none; color: #747985; white-space: nowrap; font-size: 12px; cursor: pointer; }
.account-tabs button span { min-width: 20px; padding: 2px 5px; margin-left: 5px; border-radius: 20px; background: #e1e2e4; color: #626873; font-size: 9px; }
.account-tabs button.active { color: #101218; font-weight: 800; }
.account-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); }
.account-tools { display: flex; gap: 7px; }
.account-tools button { min-height: 38px; padding: 0 12px; border: 1px solid #d7d9de; background: white; display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 800; cursor: pointer; }
.account-tools svg { width: 14px; }
.account-panel { padding-top: 38px; }

.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.account-stat { min-height: 155px; padding: 24px; display: grid; grid-template-columns: 1fr auto; align-content: space-between; background: white; border: 1px solid #e0e1e4; }
.account-stat > span { color: #737984; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.account-stat > svg { color: var(--blue); }
.account-stat strong { grid-column: 1 / -1; font: 400 38px/1 Georgia, serif; }
.account-stat strong small { color: #787e88; font: 600 11px Inter, sans-serif; }
.overview-columns { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.account-card, .account-list-card { background: white; border: 1px solid #e0e1e4; }
.account-card { min-height: 350px; padding: 24px; }
.account-card-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid #e4e5e8; }
.account-card-heading span { color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .11em; }
.account-card-heading h2 { margin: 5px 0 0; font: 400 27px/1 Georgia, serif; }
.account-card-heading button { padding: 0 0 3px; border: 0; border-bottom: 1px solid #aeb1b7; background: none; color: #696f79; font-size: 10px; cursor: pointer; }
.account-mini-row { min-height: 75px; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 13px; border-bottom: 1px solid #ececee; }
.account-mini-row:last-child { border-bottom: 0; }
.account-mini-icon { width: 38px; height: 38px; display: grid; place-items: center; background: #f0f1ed; color: #525966; }
.account-mini-icon svg { width: 17px; }
.account-mini-preview { width: 52px; height: 52px; display: block; overflow: hidden; background: #eef0ec; }
.account-mini-image { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .2s ease; }
.account-mini-preview:hover .account-mini-image:not(.fallback) { transform: scale(1.05); }
.account-mini-image.fallback { display: grid; place-items: center; color: #525966; }
.account-mini-image.fallback[hidden] { display: none; }
.account-mini-image.fallback svg { width: 18px; }
.account-mini-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 800; }
.account-mini-title:hover { color: var(--blue); }
.account-mini-row small { display: block; margin-top: 3px; color: #888d96; font-size: 9px; }
.account-mini-row > span:last-child { color: #636974; font-size: 10px; font-weight: 700; }
.account-mini-view { display: flex; align-items: center; gap: 7px; color: #636974; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.account-mini-view:hover { color: var(--blue); }
.account-mini-view svg { width: 12px; }
.account-empty-inline { min-height: 220px; display: grid; place-content: center; justify-items: center; text-align: center; color: #868b94; }
.account-empty-inline svg { width: 25px; height: 25px; margin-bottom: 10px; color: #a9adb4; }
.account-empty-inline p { margin: 0; font-size: 11px; }

.account-section-heading { min-height: 140px; display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-bottom: 29px; }
.account-section-heading .eyebrow { margin-bottom: 10px; }
.account-section-heading h2 { margin: 0; font: 400 clamp(34px, 4vw, 46px)/1 Georgia, serif; letter-spacing: -.035em; }
.account-section-heading > div > p:last-child { margin: 12px 0 0; color: #737984; font-size: 11px; }
.account-section-heading > a { min-height: 42px; padding: 0 14px; display: flex; align-items: center; gap: 25px; border: 1px solid #cfd1d6; background: white; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.account-section-heading > a:hover { border-color: var(--blue); color: var(--blue); }
.account-section-heading > a svg { width: 14px; }

.owned-assets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.owned-asset { min-width: 0; overflow: hidden; display: flex; flex-direction: column; background: white; border: 1px solid #e0e1e4; }
.owned-asset-preview { aspect-ratio: 1.28; position: relative; display: block; overflow: hidden; background: #eceee9; }
.owned-asset-image { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.owned-asset-image.fallback { display: grid; place-items: center; color: #525966; }
.owned-asset-image.fallback[hidden] { display: none; }
.owned-asset-image.fallback svg { width: 34px; }
.owned-asset-preview > span:last-child { position: absolute; inset: auto 12px 12px auto; min-height: 34px; padding: 0 11px; display: flex; align-items: center; gap: 14px; background: rgba(13,16,22,.9); color: white; opacity: 0; transform: translateY(5px); transition: opacity .2s ease, transform .2s ease; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.owned-asset-preview > span:last-child svg { width: 12px; }
.owned-asset-preview:hover .owned-asset-image:not(.fallback) { transform: scale(1.035); }
.owned-asset-preview:hover > span:last-child, .owned-asset-preview:focus-visible > span:last-child { opacity: 1; transform: none; }
.owned-asset-body { min-height: 188px; padding: 19px; display: flex; flex-direction: column; }
.owned-asset-top { display: flex; align-items: center; justify-content: space-between; }
.owned-asset-type { color: #777d87; font-size: 9px; font-weight: 800; letter-spacing: .09em; }
.owned-asset-top > span:last-child { color: #8a8f98; font-size: 9px; }
.owned-asset h3 { margin: 19px 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 21px/1.1 Georgia, serif; }
.owned-asset h3 a:hover { color: var(--blue); }
.owned-asset p { margin: 0; color: #858a94; font-size: 10px; }
.owned-asset-actions { margin-top: auto; padding-top: 19px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.owned-asset-actions > a, .owned-asset button { min-height: 41px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.owned-asset-actions > a { border: 1px solid #cfd2d8; }
.owned-asset-actions > a:hover { border-color: var(--blue); color: var(--blue); }
.owned-asset-download-controls { display: grid; gap: 5px; }
.owned-asset-download-controls select { min-width: 0; height: 32px; padding: 0 8px; border: 1px solid #cfd2d8; background: white; color: var(--ink); font-size: 9px; font-weight: 800; }
.owned-asset-download-controls select[hidden] { display: none; }
.owned-asset button { border: 0; background: var(--blue); color: white; cursor: pointer; }
.owned-asset button:hover { background: var(--cobalt); }
.owned-asset button:disabled { opacity: .65; cursor: wait; }
.owned-asset-actions svg { width: 13px; }

.account-list-row { min-height: 86px; padding: 16px 20px; display: grid; grid-template-columns: 45px minmax(170px, 1fr) minmax(130px, .55fr) minmax(110px, .45fr) auto; align-items: center; gap: 16px; border-bottom: 1px solid #e6e7e9; }
.account-list-row:last-child { border: 0; }
.account-list-icon { width: 42px; height: 42px; display: grid; place-items: center; background: #f0f1ed; color: #515965; }
.account-list-icon svg { width: 18px; }
.account-list-main strong { display: block; font-size: 12px; }
.account-list-main small, .account-list-detail small, .account-list-date small { display: block; margin-top: 4px; color: #898e97; font-size: 9px; }
.account-list-detail strong, .account-list-date strong { display: block; font-size: 10px; }
.account-status { padding: 5px 8px; background: #eff5dd; color: #526113; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.account-status.pending { background: #fff3d5; color: #7a5b08; }
.account-status.failed, .account-status.refunded { background: #f7e3e3; color: #8a3535; }
.activity-amount { font: 400 19px Georgia, serif; }
.activity-amount.positive { color: #3d6e22; }
.activity-amount.negative { color: #9c4040; }
.account-list-empty { min-height: 280px; padding: 40px; display: grid; place-content: center; justify-items: center; text-align: center; color: #7d828c; }
.account-list-empty svg { width: 30px; height: 30px; margin-bottom: 12px; }
.account-list-empty h3 { margin: 0; font: 400 25px Georgia, serif; color: #1b1e25; }
.account-list-empty p { margin: 9px 0 0; font-size: 11px; }

.account-footer { min-height: 160px; padding: 34px max(24px, calc((100vw - 1240px) / 2)); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px 55px; background: #0e1015; color: white; }
.account-footer > div { justify-self: end; display: flex; gap: 25px; color: #9ea2ab; font-size: 10px; }
.account-footer > div a:hover { color: white; }
.account-footer small { grid-column: 1 / -1; color: #6f747e; font-size: 9px; }

@media (max-width: 900px) {
  .account-hero { grid-template-columns: 1fr; gap: 36px; }
  .account-balance-card { max-width: 420px; }
  .account-toolbar { align-items: stretch; flex-direction: column; padding-bottom: 17px; }
  .account-tabs { min-height: 62px; }
  .account-tabs button { min-height: 62px; }
  .account-tools { justify-content: flex-end; }
  .overview-columns { grid-template-columns: 1fr; }
  .owned-assets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-list-row { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .account-list-detail { grid-column: 2; }
  .account-list-date { grid-column: 2; }
  .account-list-row > .account-status, .account-list-row > .activity-amount { grid-column: 3; grid-row: 1; }
}

@media (max-width: 700px) {
  .account-site-header .primary-nav { display: none; }
  .account-site-header .credit-pill { padding: 0 10px; }
  .account-site-header .credit-pill #creditLabel { display: none; }
  .account-hero { min-height: 430px; padding-top: 55px; }
  .account-stats { grid-template-columns: 1fr; }
  .account-stat { min-height: 120px; }
  .owned-assets { grid-template-columns: 1fr; }
  .account-section-heading { align-items: flex-start; flex-direction: column; }
  .account-footer { grid-template-columns: 1fr; }
  .account-footer > div { justify-self: start; flex-wrap: wrap; gap: 13px 20px; }
  .account-footer small { grid-column: auto; }
}

@media (max-width: 460px) {
  .account-gate-actions { flex-direction: column; }
  .account-primary-button { justify-content: space-between; }
  .account-shell { padding-inline: 12px; }
  .account-hero { padding-inline: 24px; }
  .account-tools button span { display: none; }
  .account-card { padding: 18px; }
  .account-list-row { padding-inline: 14px; gap: 11px; }
}
