/* The account page. Uses the colours and type of style.css. */
.acct-body { background: var(--panel); min-height: 100vh; }
.acct-top { max-width: 960px; margin: 0 auto; padding: 22px var(--gutter); display: flex; justify-content: space-between; align-items: center; }
.acct-top .logo { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 600; text-decoration: none; }
.acct-top .logo .mark { width: 26px; height: 28px; }
.acct-actions { display: flex; gap: 10px; align-items: center; }
.lang { background: transparent; border: 1.5px solid #bdb5ac; color: var(--ink); border-radius: 999px; padding: 4px 14px; cursor: pointer; font-size: 13px; }
.btn.small { padding: 8px 18px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.acct { max-width: 960px; margin: 0 auto; padding: 0 var(--gutter) 64px; display: grid; gap: 20px; }
.acct-card { background: #fff; border-radius: var(--r); padding: clamp(20px, 3vw, 36px); }
.acct-card.center { text-align: center; max-width: 520px; margin: 40px auto 0; }
.acct-card h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 500; margin-bottom: 8px; }
.acct-card h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; }
.acct-note { color: var(--muted); font-size: 14px; margin-top: 6px; }
.fine { color: var(--muted); font-size: 13px; margin-top: 14px; }
#clerk-sign-in { display: flex; justify-content: center; margin-top: 18px; }
.balance { background: var(--blue); }
.balance .hello { font-weight: 500; }
.balance .big { font-size: clamp(64px, 12vw, 120px); line-height: 1; font-weight: 500; letter-spacing: -0.04em; margin-top: 8px; }
.balance .cap { font-size: 18px; margin-top: 4px; }
.balance .sub { margin-top: 14px; font-size: 14px; }
.balance .fine { color: #0e2c3d; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 18px; }
.pack { background: var(--panel); border-radius: calc(var(--r) * .7); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.pack h3 { font-size: 15px; font-weight: 600; }
.pack-line b { display: block; font-size: 22px; font-weight: 600; }
.pack-line small { color: var(--muted); font-size: 13px; }
.pack-price { font-size: 18px; font-weight: 500; margin: 6px 0 10px; }
.pack .btn { margin-top: auto; width: 100%; }
.notice { background: var(--cream); border-radius: 14px; padding: 12px 16px; font-size: 14px; margin-top: 12px; }
.notice.err { background: #fde9e4; color: #8a2a12; }
.hist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; }
.hist-row { display: grid; grid-template-columns: 1fr 1.2fr 1fr auto; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; align-items: center; }
.hist-row:first-child { border-top: 0; }
.pill-st { padding: 3px 12px; border-radius: 999px; font-size: 12px; background: #eee; }
.st-successful { background: #dff3e4; color: #1d6b3a; }
.st-pending { background: var(--cream); color: #9a4b0c; }
.st-failed, .st-expired { background: #f1f1f1; color: #666; }
.st-flagged { background: #fde9e4; color: #8a2a12; }
.modal { position: fixed; inset: 0; background: rgba(23,23,23,.55); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal[hidden] { display: none; }
.modal-card { background: #fff; border-radius: var(--r); padding: clamp(20px, 3vw, 32px); width: min(460px, 100%); max-height: 90vh; overflow: auto; display: grid; gap: 10px; }
.modal-card h2 { font-size: 22px; font-weight: 500; }
.modal-card label { font-size: 14px; font-weight: 500; margin-top: 8px; display: block; }
.modal-card small { color: var(--muted); font-size: 12.5px; }
.phone { display: flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; margin-top: 6px; }
.phone span { padding: 0 12px; background: var(--panel); align-self: stretch; display: grid; place-items: center; font-weight: 500; }
.phone input { flex: 1; border: 0; outline: 0; padding: 14px; font: inherit; font-size: 17px; min-width: 0; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid #e4ded7; border-top-color: var(--ink); animation: turn 0.9s linear infinite; margin: 8px 0 2px; }
@keyframes turn { to { transform: rotate(360deg); } }
.modal-open { overflow: hidden; }
@media (max-width: 600px) { .hist-row { grid-template-columns: 1fr auto; } .hist-row span:nth-child(3) { grid-column: 1; } }
