/* Client account pages. Builds on the site's styles.css. */
[hidden] { display: none !important; }
.acct-wrap { width: min(1040px, 100% - 32px); margin: 40px auto 72px; }
.acct-narrow { width: min(520px, 100% - 32px); margin-top: 56px; }
.acct-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.75rem; }
.acct-card h1 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 0 0 .35rem; }
.acct-card h2 { font-size: 1.15rem; margin: 0 0 .9rem; }
.acct-card form { display: grid; gap: .9rem; margin-top: 1.25rem; }
.acct-card label { display: flex; flex-direction: column; gap: .35rem; font-weight: 700; font-size: .9rem; color: var(--ink); }
.acct-card input, .acct-card textarea { font: inherit; font-weight: 400; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--text); width: 100%; }
.acct-card input:focus, .acct-card textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(184, 115, 51, .15); }
.acct-error { margin: 0; color: #C42B2B; font-weight: 500; }
.acct-error:empty { display: none; }
.acct-note { border-radius: var(--radius-sm); padding: .9rem 1rem; font-size: .95rem; color: var(--ink-2); margin: 1rem 0 0; background: var(--green-tint); }
.acct-note.ok { background: #DFF1E8; }
.acct-note.warn { background: #F3E6D8; }
.acct-fine { color: var(--muted); font-size: .88rem; margin: 1.25rem 0 0; }
.acct-fine a { color: var(--blue-dark); }

/* account page */
.acct-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 20px; }
.acct-head h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.acct-head .who { color: var(--muted); margin: .25rem 0 0; }
.acct-stage { display: inline-block; font-size: .8rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; background: var(--tint); color: #3B5E72; margin-bottom: .6rem; }
.acct-stage.live { background: #DFF1E8; color: #2E7A58; }
.acct-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.acct-col { display: grid; gap: 20px; }
.acct-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.acct-rows li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.acct-rows b { font-family: var(--font-display); color: var(--ink); font-size: 1.15rem; white-space: nowrap; }
.acct-rows small { display: block; color: var(--muted); font-size: .88rem; margin-top: .1rem; }
.acct-rows .left { flex: 1 1 200px; }
.acct-pill { font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; }
.acct-pill.paid { background: #2E7A58; color: #fff; }
.acct-pill.due { background: #E4EEF3; color: #3B5E72; }
.acct-pill.overdue, .acct-pill.failed { background: #FBEBEB; color: #C42B2B; }
.acct-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.acct-actions .btn { padding: .6rem 1.1rem; font-size: .92rem; }
.acct-fact { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: .5rem 0 0; }
.acct-fact div { background: var(--cream); border-radius: var(--radius-sm); padding: .65rem .85rem; }
.acct-fact small { display: block; color: var(--muted); font-size: .78rem; }
.acct-fact strong { font-family: var(--font-display); color: var(--ink); font-size: 1.1rem; }
.acct-empty { color: var(--muted); margin: 0; }
.acct-receipt { color: var(--blue-dark); font-weight: 700; text-decoration: none; font-size: .9rem; }
.acct-receipt:hover { text-decoration: underline; }
.acct-state { color: var(--muted); font-size: .88rem; }
.acct-signout { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
@media (max-width: 860px) { .acct-grid { grid-template-columns: 1fr; } .acct-fact { grid-template-columns: 1fr 1fr; } }

/* The account header keeps its Sign out button on phones (the site nav collapses there). */
@media (max-width: 820px) { .site-header .site-nav { display: flex; position: static; flex-direction: row; background: none; border: 0; padding: 0; box-shadow: none; } }
