/* Namirembe Guest House — account.html (guest account: sign in, profile, history, perks).
   Tokens from styles.css :root. No left accent bars. */

.ac-main [hidden], .ac-head [hidden] { display: none !important; }
.ac-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ac-head { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 3vw, 36px); }
.ac-head h1 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 72px); line-height: .98; letter-spacing: -.02em; margin-top: 14px; }
.ac-head h1 em { font-style: italic; color: var(--clay); }
.ac-head .lede { margin: 16px 0 0; max-width: 60ch; color: var(--ink-soft); font-size: 17px; line-height: 1.55; }
.ac-main { padding-bottom: clamp(60px, 8vw, 110px); }
.ac-loading { display: flex; align-items: center; gap: 12px; padding: 28px; border-radius: var(--radius); background: var(--paper-deep); color: var(--ink-soft); }
.ac-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: acSpin .8s linear infinite; flex: 0 0 auto; }
@keyframes acSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ac-spin { animation-duration: 2.4s; } }

/* ---------- Signed out ---------- */
.ac-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ac-why h2, .ac-h2 { font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.02; letter-spacing: -.01em; }
.ac-why h2 em, .ac-h2 em { font-style: italic; color: var(--clay); }
.ac-why ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ac-why li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 14px; background: var(--paper-deep); }
.ac-why li svg { width: 22px; height: 22px; stroke: var(--clay); fill: none; stroke-width: 1.8; margin: 2px 0 0 6px; }
.ac-why li strong { display: block; font-weight: 600; color: var(--ink); }
.ac-why li span { color: var(--ink-soft); font-size: 15px; line-height: 1.45; }

.ac-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: 0 20px 50px rgba(36, 22, 32, .06); }
.ac-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: var(--paper-deep); margin-bottom: 22px; }
.ac-tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font: 500 14px var(--font-body); cursor: pointer; }
.ac-tabs button[aria-selected="true"] { background: var(--clay); color: #fff; }
.ac-tabs button:focus-visible, .ac-btn-link:focus-visible, .ac-eye:focus-visible, .ac-subtabs button:focus-visible, .ac-more:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.ac-form { display: grid; gap: 16px; }
.ac-field label { display: block; font-weight: 500; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.ac-field label .opt { font-weight: 400; color: var(--ink-muted); }
.ac-field input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; font: 400 16px var(--font-body); color: var(--ink); }
.ac-field input:focus-visible { outline: 2px solid var(--clay); outline-offset: 1px; border-color: var(--clay); }
.ac-field input[aria-invalid="true"] { border-color: #B23A2E; }
.ac-field input[readonly] { background: var(--paper-deep); color: var(--ink-soft); }
.ac-hint { margin: 6px 0 0; font-size: 13px; color: var(--ink-muted); line-height: 1.4; }
.ac-err { margin: 6px 0 0; font-size: 13.5px; color: #9B2C1F; line-height: 1.4; }
.ac-err[hidden] { display: none; }
.ac-pw { position: relative; }
.ac-pw input { padding-right: 76px; }
.ac-eye { position: absolute; right: 4px; top: 4px; min-height: 40px; min-width: 64px; border: 0; background: none; border-radius: 10px; color: var(--clay); font: 500 13px var(--font-body); cursor: pointer; }
.ac-meter { margin-top: 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ac-meter span { height: 4px; border-radius: 4px; background: var(--paper-deep); }
.ac-meter[data-score="1"] span:nth-child(-n+1) { background: #B23A2E; }
.ac-meter[data-score="2"] span:nth-child(-n+2) { background: #C27A1A; }
.ac-meter[data-score="3"] span:nth-child(-n+3) { background: #5E8A3A; }
.ac-meter[data-score="4"] span { background: #2F7D4A; }
.ac-alert { padding: 12px 14px; border-radius: 12px; background: #FBEDEA; color: #5E1A12; border: 1px solid #E6B8AF; font-size: 14.5px; line-height: 1.45; }
.ac-alert[hidden] { display: none; }
.ac-alert:focus { outline: 2px solid #B23A2E; outline-offset: 2px; }
.ac-note { padding: 14px 16px; border-radius: 12px; background: var(--paper-deep); font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.ac-note[hidden] { display: none; }
.ac-note a { color: var(--clay); }
.ac-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ac-btn-link { background: none; border: 0; padding: 8px 0; min-height: 44px; color: var(--clay); font: 500 14px var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ac-submit { width: 100%; justify-content: center; min-height: 50px; gap: 10px; }
.ac-submit[disabled] { opacity: .75; cursor: progress; }
.bk-hp, .ac-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Signed in ---------- */
.ac-dash { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.ac-side { display: grid; gap: 16px; position: sticky; top: 96px; }
.ac-profile { text-align: left; }
.ac-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--cathedral); color: var(--paper); display: grid; place-items: center; font-family: var(--font-display); font-size: 26px; }
.ac-profile h2 { font-family: var(--font-display); font-size: 30px; line-height: 1.05; margin-top: 14px; overflow-wrap: anywhere; }
.ac-profile dl { margin: 14px 0 0; display: grid; gap: 10px; }
.ac-profile dt { font: 500 10px var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.ac-profile dd { margin: 2px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.ac-actions { display: grid; gap: 8px; }
.ac-actions .btn { justify-content: center; min-height: 46px; }
.ac-section { margin-bottom: clamp(28px, 4vw, 44px); scroll-margin-top: 96px; }
.ac-section > header { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ac-section > header p { margin: 6px 0 0; color: var(--ink-soft); font-size: 15px; }
.ac-subtabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper-deep); }
.ac-subtabs button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--ink-soft); font: 500 14px var(--font-body); cursor: pointer; }
.ac-subtabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 4px rgba(36, 22, 32, .12); }
.ac-subtabs .n { font: 500 11px var(--font-mono); color: var(--ink-muted); margin-left: 4px; }
.ac-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ac-item { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.ac-item-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; flex-wrap: wrap; }
.ac-item h3 { font-family: var(--font-display); font-size: 24px; line-height: 1.1; }
.ac-item .when { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; }
.ac-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.ac-badge { font: 500 10px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--paper-deep); color: var(--ink-soft); white-space: nowrap; }
.ac-badge.ok { background: #E3EEDF; color: #2C5530; }
.ac-badge.wait { background: #F6EBD3; color: #6B4A0F; }
.ac-badge.bad { background: #FBEDEA; color: #7A2318; }
.ac-badge.info { background: #E1EAF1; color: #23465F; }
.ac-item-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 10px; font: 500 12px var(--font-mono); letter-spacing: .04em; color: var(--ink-soft); }
.ac-item-acts { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ac-more { background: none; border: 0; padding: 0; min-height: 44px; color: var(--ink); font: 500 14px var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ac-detail { margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; padding: 14px; border-radius: 12px; background: var(--paper-deep); }
.ac-detail[hidden] { display: none; }
.ac-detail dt { font: 500 10px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.ac-detail dd { margin: 2px 0 0; font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; }
.ac-empty { padding: 24px; border-radius: 14px; background: var(--paper-deep); color: var(--ink-soft); text-align: center; }
.ac-empty .btn { margin-top: 12px; }

.ac-perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.ac-perk { border-radius: 14px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.ac-perk strong { font-family: var(--font-display); font-size: 22px; font-weight: 400; line-height: 1.1; }
.ac-perk p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.45; }
.ac-perk.demo { background: repeating-linear-gradient(135deg, var(--paper), var(--paper) 10px, #F1EAE5 10px, #F1EAE5 20px); border-style: dashed; border-color: var(--line-strong); }
.ac-demo { justify-self: start; font: 600 10px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; background: #F6EBD3; color: #6B4A0F; border: 1px solid #E2CB95; }
.ac-live { justify-self: start; font: 600 10px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; background: #E3EEDF; color: #2C5530; }
.ac-perk .btn { justify-self: start; margin-top: 6px; }

@media (max-width: 960px) {
  .ac-auth, .ac-dash { grid-template-columns: 1fr; }
  .ac-side { position: static; }
  .ac-auth .ac-card { order: -1; }
}
@media (max-width: 600px) {
  .ac-perks, .ac-detail { grid-template-columns: 1fr; }
  .ac-section > header { align-items: start; }
}
