/* Valien accounts: one card on a quiet background, in the colour of the app the person came from (--brand). */
:root {
    --ink: #18181b; --muted: #71717a; --line: #e4e4e7; --bg: #f6f7f9; --danger: #b42318;
    --brand: #174F25;
    --brand-soft: color-mix(in srgb, var(--brand) 10%, #ffffff);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: 'Poppins', 'Tajawal', -apple-system, system-ui, 'Segoe UI', sans-serif; }
.acc-page { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 32px 16px; }
.acc-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(0,0,0,.08); }
.acc-card.is-wide { max-width: 520px; }
.acc-head { padding: 32px 32px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.acc-logo { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--brand) 18%, #ffffff); margin-bottom: 6px; }
.acc-logo img { width: 30px; height: 30px; object-fit: contain; }
.acc-initial { font-size: 24px; font-weight: 700; line-height: 1; color: var(--brand); }
.acc-app { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.acc-title { font-size: 22px; line-height: 1.3; font-weight: 700; margin: 0; }
.acc-sub { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.acc-body { padding: 8px 32px 32px; display: flex; flex-direction: column; gap: 16px; }
.acc-body form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.acc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg); border-radius: 10px; }
.acc-tab { padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; text-decoration: none; transition: all .2s ease; }
.acc-tab.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.acc-field { display: flex; flex-direction: column; gap: 6px; }
.acc-label { font-size: 13px; font-weight: 600; }
.acc-input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 15px; color: var(--ink); outline: none; transition: all .2s ease; }
.acc-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.acc-input.is-invalid { border-color: var(--danger); }
.acc-code { font-size: 22px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; direction: ltr; }
.acc-hint { font-size: 12px; color: var(--muted); }
.acc-error { font-size: 12.5px; color: var(--danger); }
.acc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.acc-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.acc-check input { accent-color: var(--brand); width: 16px; height: 16px; }
.acc-link { font-size: 13px; font-weight: 600; color: var(--brand); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.acc-link:hover { text-decoration: underline; }
.acc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px 16px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .2s ease; }
.acc-btn:hover { filter: brightness(1.08); box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 30%, transparent); }
.acc-btn.is-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.acc-btn.is-ghost:hover { filter: none; background: var(--bg); box-shadow: none; }
.acc-status { font-size: 13.5px; line-height: 1.5; padding: 10px 12px; border-radius: 8px; }
.acc-status.is-ok { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.acc-status.is-warn { background: #fffaeb; color: #93370d; border: 1px solid #fedf89; }
.acc-status.is-error { background: #fef3f2; color: var(--danger); border: 1px solid #fecdca; }
.acc-qr { display: grid; place-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.acc-qr svg { width: 192px; height: 192px; }
.acc-secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; padding: 8px 10px; background: var(--bg); border-radius: 8px; text-align: center; direction: ltr; }
.acc-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; direction: ltr; }
.acc-codes span { padding: 8px; background: var(--bg); border-radius: 8px; text-align: center; }
.acc-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; margin: 0; }
.acc-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; font-size: 14px; }
.acc-list > div + div { border-top: 1px solid var(--line); }
.acc-list dt { color: var(--muted); }
.acc-list dd { margin: 0; }
.acc-foot { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--muted); margin: 0; }
@media (max-width: 480px) {
    .acc-page { padding: 0; justify-content: flex-start; background: #fff; }
    .acc-card { border: 0; border-radius: 0; box-shadow: none; }
    .acc-head { padding: 40px 20px 16px; }
    .acc-body { padding: 8px 20px 24px; }
}
