/* =====================================================================
   Account settings (Identity/Account/Manage) and the public Delete account page.
   Grouped "inset" lists like iOS Settings / App Store Connect: grey section labels,
   white rounded groups, hairline dividers, chevrons — in FuelCard's Sky & Navy colours.
   ===================================================================== */

.acct-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 2rem; align-items: start; max-width: 1080px; margin: 0 auto; padding: .5rem 0 2rem; }
.min-w-0 { min-width: 0; }

/* ---------- side menu ---------- */
.acct-side { position: sticky; top: 84px; }
.acct-id { display: flex; gap: .9rem; align-items: center; background: #fff; border-radius: 22px; padding: 1.1rem; box-shadow: var(--shadow-sm); margin-bottom: 1.25rem; }
.acct-avatar { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; color: #fff; letter-spacing: .02em;
    background: linear-gradient(135deg, #0B2545 0%, #1D4E89 55%, #2F80ED 100%); box-shadow: 0 6px 16px rgba(47,128,237,.25); }
.acct-id-text { min-width: 0; }
.acct-name { font-weight: 700; color: var(--navy); font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-email { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.acct-tag { font-size: .7rem; font-weight: 600; border-radius: 999px; padding: .12rem .5rem; background: #EEF2F8; color: #475569; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-tag.sky { background: var(--sky-100); color: var(--sky-600); }
.acct-tag.mint { background: #DDF6EC; color: #127A57; }

.acct-nav-label { color: #8A8A8E; font-size: .8rem; font-weight: 600; margin: 0 0 .35rem 1rem; letter-spacing: .01em; }
.acct-nav { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 1.1rem; }
.acct-nav a { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; color: var(--ink); text-decoration: none; font-weight: 500; position: relative; }
.acct-nav a + a::before { content: ""; position: absolute; top: 0; right: 0; left: 3.35rem; border-top: 1px solid #ECEFF4; }
.acct-nav a:hover { background: #F7FAFF; }
.acct-nav a.active { background: var(--sky-100); color: var(--sky-600); font-weight: 650; }
.acct-nav a.danger { color: #D64545; }
.acct-nav a.danger.active { background: #FDE8E8; }
.acct-nav a > span:nth-child(2) { flex: 1; min-width: 0; }
.acct-nav .val { color: #8A8A8E; font-size: .85rem; flex: 0 0 auto !important; }
.acct-nav .chev, .acct-row .chev { color: #C4C9D2; font-size: .85rem; }

/* coloured icon tiles (like iOS Settings) */
.acct-nav .ic, .ic-tile { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: .95rem; }
.ic-tile { flex-basis: 36px; width: 36px; height: 36px; border-radius: 10px; font-size: 1.05rem; }
.ic.sky, .ic-tile.sky { background: linear-gradient(135deg, #5AA2FF, #2F80ED); }
.ic.navy, .ic-tile.navy { background: linear-gradient(135deg, #1D4E89, #0B2545); }
.ic.amber, .ic-tile.amber { background: linear-gradient(135deg, #F7BE6A, #F2A541); color: #3B2A0B; }
.ic.mint, .ic-tile.mint { background: linear-gradient(135deg, #43D3A2, #1FA97A); }
.ic.red, .ic-tile.red { background: linear-gradient(135deg, #F26B6B, #D64545); }

/* ---------- content ---------- */
.acct-head { margin-bottom: 1.25rem; }
.acct-head h1 { font-size: clamp(1.6rem, 1.2vw + 1.2rem, 2.1rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .25rem; }
.acct-head p { color: var(--muted); margin: 0; max-width: 62ch; }

.acct-section-label { color: #8A8A8E; font-size: .95rem; font-weight: 600; margin: 1.4rem 0 .5rem 1.1rem; }
.acct-group { background: #fff; border-radius: 22px; box-shadow: var(--shadow-sm); overflow: hidden; }
.acct-group.danger { box-shadow: 0 0 0 1.5px #F6C9C9, var(--shadow-sm); }
.acct-row { display: flex; align-items: center; gap: 1rem; padding: .95rem 1.25rem; position: relative; min-height: 58px; margin: 0; }
.acct-row + .acct-row::before { content: ""; position: absolute; top: 0; left: 1.25rem; right: 1.25rem; border-top: 1px solid #ECEFF4; }
.acct-row.link { color: inherit; text-decoration: none; }
.acct-row.link:hover { background: #F7FAFF; }
.acct-row-label { flex: 0 0 170px; font-weight: 500; color: var(--ink); margin: 0; }
.acct-row-field { flex: 1; min-width: 0; }
.acct-row-value { flex: 1; min-width: 0; text-align: right; color: #8A8A8E; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-row-value.strong { color: var(--ink); text-align: left; font-weight: 600; }
.acct-row-static { padding: .375rem 0; font-weight: 600; color: var(--navy); }
.acct-row .form-control, .acct-row .form-select { border-radius: 12px; background-color: #F4F7FB; border-color: transparent; padding: .6rem .8rem; }
.acct-row .form-control:focus, .acct-row .form-select:focus { background-color: #fff; border-color: #9CC5FA; }
.acct-row .form-control.is-valid { background-color: #F3FBF7; }
.acct-row .form-control.is-invalid { background-color: #FFF6F6; }
.acct-row .input-group .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.acct-row .input-group .btn { border-radius: 0 12px 12px 0; }

.acct-link-btn { background: none; border: 0; padding: 0; color: var(--sky); font-weight: 500; font-size: 1rem; }
.acct-link-btn:hover { color: var(--sky-600); text-decoration: underline; }

.acct-pill { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 650; border-radius: 999px; padding: .15rem .55rem; margin-left: .35rem; white-space: nowrap; }
.acct-pill.mint { background: #DDF6EC; color: #127A57; }
.acct-pill.amber { background: #FDF1DF; color: #8A520A; }
.acct-pill.red { background: #FDE8E8; color: #B42318; }

.acct-footnote { color: #8A8A8E; font-size: .85rem; margin: .6rem 1.1rem 0; }
.acct-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1.5rem; }
.acct-actions .btn-lg { border-radius: 14px; padding-left: 1.4rem; padding-right: 1.4rem; font-weight: 650; }

.acct-alert { display: flex; gap: .6rem; align-items: flex-start; border-radius: 16px; padding: .8rem 1rem; margin-bottom: 1rem; font-weight: 500; }
.acct-alert ul { margin: 0; padding-left: 1rem; }
.acct-alert.ok { background: #E8F8F1; color: #11663F; }
.acct-alert.bad { background: #FDECEC; color: #9B1C1C; }
.acct-alert.bad:empty, .acct-alert.validation-summary-valid { display: none; }

.acct-hero { display: flex; gap: 1rem; align-items: center; background: #fff; border-radius: 22px; padding: 1.1rem 1.25rem; box-shadow: var(--shadow-sm); }
.acct-hero-icon { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 17px; display: grid; place-items: center; color: #fff; font-size: 1.6rem; box-shadow: 0 6px 16px rgba(11,37,69,.18); }
.acct-hero-title { font-weight: 800; font-size: 1.25rem; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-hero-sub { display: flex; gap: .6rem; align-items: center; color: var(--muted); font-size: .85rem; margin-top: .2rem; }
.acct-hero-sub .acct-pill { margin-left: 0; }

.acct-meter { height: 5px; border-radius: 3px; background: #E8EDF5; overflow: hidden; margin: .5rem 0 .25rem; }
.acct-meter > span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }

/* live phone / ZIP hints (wwwroot/js/phone-input.js) */
.phone-hint { margin-top: .3rem; min-height: 0; }
.phone-hint:empty { display: none; }

/* ---------- public Delete account page ---------- */
.del-wrap { max-width: 760px; margin: 0 auto; padding: 1rem 0 2.5rem; }
.del-hero { text-align: center; margin-bottom: 1.5rem; }
.del-hero .del-icon { width: 84px; height: 84px; border-radius: 24px; margin: 0 auto 1rem; display: grid; place-items: center; font-size: 2.2rem; color: #fff;
    background: linear-gradient(135deg, #0B2545 0%, #1D4E89 55%, #2F80ED 100%); box-shadow: 0 10px 26px rgba(47,128,237,.28); }
.del-hero h1 { font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.8rem, 2vw + 1.2rem, 2.4rem); }
.del-steps { counter-reset: d; list-style: none; padding: 0; margin: 0; }
.del-steps li { counter-increment: d; }
.del-steps li .num::before { content: counter(d); }
.del-steps .num { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--sky-100); color: var(--sky-600); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }

@media (max-width: 991.98px) {
    .acct-shell { grid-template-columns: 1fr; gap: 1rem; }
    .acct-side { position: static; }
    .acct-side .acct-nav-label { display: none; }
    .acct-side { display: flex; flex-direction: column; }
    .acct-side .acct-nav { display: flex; overflow-x: auto; border-radius: 14px; margin-bottom: .5rem; scrollbar-width: none; }
    .acct-side .acct-nav::-webkit-scrollbar { display: none; }
    .acct-side .acct-nav a { flex: 0 0 auto; padding: .55rem .8rem; }
    .acct-side .acct-nav a + a::before { display: none; }
    .acct-side .acct-nav .chev, .acct-side .acct-nav .val { display: none; }
}
@media (max-width: 575.98px) {
    .acct-row { flex-wrap: wrap; gap: .4rem .75rem; padding: .85rem 1rem; }
    .acct-row-label { flex-basis: 100%; font-size: .85rem; color: #8A8A8E; }
    .acct-row + .acct-row::before { left: 1rem; right: 1rem; }
    .acct-row-value { text-align: left; }
    .acct-group { border-radius: 18px; }
}
