/* A stable account header shared by the customer sections. */
.sa-account-hero { padding-top: 64px; padding-bottom: 44px; text-align: center; }
.sa-account-hero h1 { margin: 0 0 12px; font-size: clamp(34px, 4.2vw, 64px); line-height: 1.15; font-weight: 600; letter-spacing: -.035em; color: var(--smplsColorHeading); }
body.dark .sa-account-hero h1 { color: #f0f2f7; }
body.dark .sa-account-hero p { color: #a9afbd; }
.sa-account-hero p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--smplsColorParagraph); }
.sa-account-hero + .sa-account { padding-top: 12px; }
.so-dashboard { display: grid; gap: 20px; }
.so-panel { min-width: 0; padding: 24px; border: 1px solid var(--sa-line); border-radius: 18px; background: var(--sa-surface); }
.so-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.so-panel-heading h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 19px; font-weight: 600; line-height: 1.4; letter-spacing: -.02em; }
.so-eyebrow { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 600; color: var(--sa-muted); }
.so-counter { display: inline-grid; place-items: center; min-width: 25px; min-height: 25px; padding: 2px 7px; font-size: 11px; font-weight: 500; border-radius: 7px; background: var(--sa-tint); color: var(--sa-muted); border: 1px solid var(--sa-line); }
.so-text-link { display: inline-flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12px; font-weight: 600; }
.so-hosting { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding: 20px 0; border-top: 1px solid var(--sa-line); }
.so-hosting:last-child { padding-bottom: 0; }
.so-hosting-name { display: flex; align-items: center; gap: 12px; flex: 1 1 180px; }
.so-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; color: var(--sa-primary); background: color-mix(in srgb, var(--sa-primary) 7%, var(--sa-surface)); border-radius: 12px; font-size: 17px; }
.so-hosting-name h3 { margin: 0 0 3px; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; letter-spacing: -.02em; }
.so-hosting-name span:not(.so-icon) { font-size: 12px; color: var(--sa-muted); }
.so-hosting-facts { display: flex; gap: 26px; margin: 0; flex: 1 1 250px; }
.so-hosting-facts dt { font-size: 11px; color: var(--sa-muted); margin-bottom: 4px; }
.so-hosting-facts dd { margin: 0; font-size: 15px; font-weight: 600; }
.so-hosting-facts dd span { color: var(--sa-muted); font-weight: 400; }
.so-hosting-facts small { display: block; margin-top: 3px; font-size: 10px; color: var(--sa-muted); }
.sa-account .so-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 34px; padding: 6px 12px; border: 1px solid var(--sa-line); border-radius: 9px; color: var(--sa-primary); background: transparent; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sa-account .so-outline:hover, .sa-account .so-shortcut:hover { border-color: var(--sa-primary); }
.so-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sa-account .so-shortcut { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 20px; border: 1px solid var(--sa-line); border-radius: 16px; background: var(--sa-surface); color: var(--sa-ink); transition: border-color .15s; }
.so-shortcut .so-icon { grid-column: 1 / -1; margin-bottom: 6px; }
.so-shortcut strong { font-size: 15px; font-weight: 600; }
.so-shortcut > span:not(.so-icon) { grid-column: 1 / -1; grid-row: 3; font-size: 12px; line-height: 1.6; color: var(--sa-muted); }
.so-shortcut > i { align-self: center; color: var(--sa-primary); font-size: 12px; }
.so-address-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.so-address .so-panel-heading { margin-bottom: 14px; }
.so-address h2 { font-size: 15px; }
.so-address h2 i { color: var(--sa-muted); font-size: 16px; }
.so-address address { font-size: 13px; font-style: normal; line-height: 1.7; margin: 0; }
.so-muted { color: var(--sa-muted); font-size: 12px; line-height: 1.7; margin: 0; }
.so-empty-label { display: inline-block; margin-top: 12px; font-size: 11px; color: var(--sa-muted); }
.so-empty { padding: 32px 16px; text-align: center; color: var(--sa-muted); }
.so-empty > i { display: block; margin-bottom: 14px; font-size: 26px; color: var(--sa-primary); }
.so-empty h3 { margin: 0 0 8px; color: var(--sa-ink); font-size: 17px; font-weight: 600; }
.so-empty p { margin: 0 auto; max-width: 430px; font-size: 13px; line-height: 1.7; }
.so-filters { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px; margin-bottom: 16px; width: fit-content; border: 1px solid var(--sa-line); border-radius: 10px; }
.so-filters a { display: block; padding: 7px 12px; font-size: 12px; font-weight: 500; border: 1px solid transparent; border-radius: 7px; }
.so-filters a[aria-current=page] { background: var(--sa-tint); border-color: var(--sa-line); color: var(--sa-ink); }
.so-table-scroll { overflow-x: auto; }
.so-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.so-table :is(th, td) { padding: 15px 10px; border-bottom: 1px solid var(--sa-line); white-space: nowrap; }
.so-table th { color: var(--sa-muted); font-size: 11px; font-weight: 500; }
.so-table td:first-child, .so-table th:first-child { padding-left: 0; }
.so-table td:last-child { padding-right: 0; text-align: right; }
.so-table tbody tr:last-child td { border-bottom: 0; }
.so-table small { display: block; margin-top: 4px; font-size: 11px; color: var(--sa-muted); font-weight: 400; }
.so-amount { font-weight: 600; }
.so-invoice-status { display: inline-block; padding: 4px 8px; border-radius: 6px; font-size: 11px; background: var(--sa-tint); color: var(--sa-muted); }
.so-invoice-status.is-paid { color: #18794e; background: #daf4e7; }
.so-invoice-status.is-unpaid { color: var(--sa-primary); background: color-mix(in srgb, var(--sa-primary) 8%, var(--sa-surface)); }
.sa-account :is(.so-shortcut, .so-outline, .so-filters a, .so-text-link):focus-visible { outline: 2px solid var(--sa-primary); outline-offset: 3px; }
@media (max-width: 767px) {
    /* Match the fixed header instead of the legacy spacer utility. */
    .sa-account-header-offset.h-40 { height: var(--sp-header-offset, 112px) !important; }
    .sa-account-hero { padding-top: 12px; padding-bottom: 14px; }
    .sa-account-hero h1 { margin-bottom: 6px; font-size: 24px; line-height: 1.2; }
    .sa-account-hero p { font-size: 13px; line-height: 1.5; }
    .sa-account-hero + .sa-account { padding-top: 6px; }
    .sa-account .sa-account-layout { gap: 20px; }
    .so-panel { padding: 18px; }
    .so-shortcuts, .so-address-grid { grid-template-columns: minmax(0, 1fr); }
    .sa-account .so-shortcut { grid-template-columns: 40px 1fr auto; align-items: center; padding: 16px; column-gap: 12px; row-gap: 3px; }
    .so-shortcut .so-icon { grid-column: 1; grid-row: 1 / 3; margin: 0; }
    .so-shortcut strong { grid-column: 2; }
    .so-shortcut > span:not(.so-icon) { grid-column: 2; grid-row: 2; }
    .so-shortcut > i { grid-column: 3; grid-row: 1 / 3; }
    .so-hosting-facts { flex-basis: 100%; }
    .so-panel-heading { flex-wrap: wrap; gap: 10px; }
    .so-panel-heading h2 { font-size: 17px; }
    .so-outline { min-height: 40px; }
    .sa-sidebar-menu > li:has(.sh-submenu) { grid-column: 1 / -1; }
}

/* Profile and security use the same shell as the service pages. */
.so-settings-panel .so-settings-sections { display: grid; gap: 24px; }
.so-settings-sections > div + div { padding-top: 24px; border-top: 1px solid var(--sa-line); }
.so-settings-panel h2 { font-size: 18px; line-height: 1.4; font-weight: 600; letter-spacing: -.015em; margin: 0 0 6px; }
.so-settings-panel p { color: var(--sa-muted); font-size: 13px; line-height: 1.7; }
.so-settings-panel .mt-10 { margin-top: 20px; }
.so-settings-panel .pb-12 { padding-bottom: 0; border-bottom: 0; }
.so-settings-panel .smpls-icon { color: var(--sa-primary); }
.so-settings-panel .smpls-button { min-height: 36px; padding: 8px 16px; font-size: 13px; line-height: 1.5; }
.so-settings-panel .form-floating :is(input, select, textarea) { color: var(--sa-ink); }
.so-settings-panel .form-floating label { color: var(--sa-muted); }
.so-document-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
@media (max-width: 767px) { .so-settings-panel .so-settings-sections { gap: 20px; } .so-settings-sections > div + div { padding-top: 20px; } }
