/* Photoalbumz — My account page (uses site.css for the header, buttons and colours). */
:root { --panel-2: #f3ede4; --danger: #c0392b; }
.acct-page { padding: 40px 0 80px; }
.acct-page h1 { font-family: 'Playfair Display', serif; font-size: clamp(30px, 4vw, 42px); margin: 0 0 24px; }
.acct-page h2 { font-family: 'Playfair Display', serif; font-size: 22px; margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head .muted { font-size: 13px; }
.profile { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.profile .av { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 700; overflow: hidden; flex: none; }
.profile .av img { width: 100%; height: 100%; object-fit: cover; }
.profile .who { flex: 1; min-width: 200px; }
.profile .who b { font-size: 20px; display: block; }
.profile .who span { color: var(--muted); font-size: 14px; display: block; word-break: break-all; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.stat { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-size: 22px; }
.stat span { font-size: 12.5px; color: var(--muted); }
.pass { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: linear-gradient(135deg, #fffaf0, #fff); border: 1.5px solid #e8d49a; margin-bottom: 10px; flex-wrap: wrap; }
.pass.standard { border-color: var(--line); background: var(--bg); }
.pass .big { font-size: 26px; }
.pass .info { flex: 1; min-width: 180px; }
.pass .info b { display: block; }
.pass .info span { font-size: 13px; color: var(--muted); }
.meter { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; margin-top: 6px; width: 100%; max-width: 280px; }
.meter i { display: block; height: 100%; background: var(--accent); }
.empty { color: var(--muted); font-size: 14px; margin: 0; }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.alb { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.alb .cov { aspect-ratio: 3 / 2; background: var(--bg-alt) center / cover no-repeat; display: grid; place-items: center; color: #fff; font-weight: 700; }
.alb .meta { padding: 12px 14px; flex: 1; }
.alb .meta h3 { margin: 0 0 4px; font-size: 16px; }
.alb .meta p { margin: 0; font-size: 12.5px; color: var(--muted); }
.alb .acts { display: flex; gap: 8px; padding: 0 14px 14px; }
.alb .acts .btn { height: 34px; padding: 0 14px; font-size: 13.5px; flex: 1; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 20px; padding: 2px 9px; margin-top: 8px; }
.badge.paid { background: #e3f3ea; color: #1d6b43; }
.badge.prem { background: #fbf0d4; color: #7a5a0e; }
.badge.free { background: var(--bg-alt); color: var(--muted); }
table.hist { width: 100%; border-collapse: collapse; font-size: 14px; }
table.hist th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.hist td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.hist td.amt { font-weight: 700; white-space: nowrap; }
table.hist small { color: var(--muted); display: block; font-size: 11.5px; word-break: break-all; }
.test-tag { font-size: 10px; font-weight: 700; background: #fff3cd; color: #6b4e00; border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rows li:last-child { border-bottom: 0; }
.rows .t { flex: 1; min-width: 180px; }
.rows .t b { display: block; }
.rows .t span { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.danger { border-color: var(--danger); color: var(--danger); background: transparent; }
.btn.danger:hover { background: var(--danger); color: #fff; }
.signin-card { text-align: center; padding: 40px 24px; }
.signin-card p { color: var(--muted); max-width: 460px; margin: 10px auto 20px; }
.note { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.ib { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; display: grid; place-items: center; }
.ib svg { width: 20px; height: 20px; }
.ib:hover { background: var(--panel-2); }
@keyframes fade { from { opacity: 0; } }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  table.hist thead { display: none; }
  table.hist tr { display: grid; grid-template-columns: 1fr auto; padding: 8px 0; border-bottom: 1px solid var(--line); }
  table.hist td { border: 0; padding: 2px 0; }
}
/* sign-in dialog (shared with the designer) */
.modal { position: fixed; inset: 0; background: rgba(20,16,12,.45); display: grid; place-items: center; z-index: 100; padding: 20px; animation: fade .15s; }
.modal-card { background: #fff; border-radius: 14px; width: min(560px, 100%); padding: 20px 22px; box-shadow: 0 30px 80px rgba(0,0,0,.3); max-height: 90vh; overflow: auto; }
.modal-card header { display: flex; align-items: center; justify-content: space-between; }
.modal-card h2 { margin: 0; font-family: 'Playfair Display', serif; font-size: 22px; }
.modal-card footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.modal-card footer .muted { margin-right: auto; font-size: 12.5px; }
.pa-acct { z-index: 250; }
.pa-acct .modal-card { width: min(460px, 100%); }
.pa-acct.plans .modal-card { width: min(760px, 100%); }
.pa-acct .muted { margin: 8px 0 12px; line-height: 1.5; }
.pa-acct .fine { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin: 14px 0 0; }
.pa-acct .fine a { color: var(--ink); }
.pa-acct .err { color: var(--danger); font-size: 13px; margin: 10px 0 0; }
.pa-acct .code { background: var(--panel-2); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.signin-opts { display: flex; flex-direction: column; gap: 10px; align-items: stretch; margin: 16px 0 4px; }
.gsi-slot { display: flex; justify-content: center; min-height: 44px; }
.signin-opts .btn[disabled] { opacity: .55; justify-content: space-between; height: 44px; pointer-events: auto; cursor: not-allowed; }
.signin-opts .soon { font-size: 11px; background: var(--panel-2); border-radius: 20px; padding: 2px 8px; font-weight: 700; }
.test-login { display: flex; flex-direction: column; gap: 8px; }
.test-login input { height: 40px; }
.test-badge { background: #fff3cd; color: #6b4e00; border: 1px solid #f3d98b; border-radius: 8px; padding: 6px 10px; font-size: 11.5px; font-weight: 700; margin: 6px 0; }
.test-login input { border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; }
.pw-login { font-size: 13px; color: var(--muted); }
.pw-login summary { cursor: pointer; text-align: center; padding: 4px 0; }
.pw-login form { margin-top: 8px; }
.pw-login input { border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; height: 40px; }
.or-sep { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 2px 0; }
.or-sep::before, .or-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pw-login summary { list-style: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 14px; font-weight: 600; color: var(--ink); font-size: 14px; }
.pw-login summary::-webkit-details-marker { display: none; }
.pw-login summary small { font-weight: 400; color: var(--muted); }
.pw-login[open] summary { border-color: var(--ink); }
.fair-use { background: #fff6e0; border: 1px solid #f0d58c; color: #5c4400; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5; margin: 6px 0 10px; }
.plans.album-only .buy-row { display: none; }
.member-row { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #fff8e6, #fff); border: 1.5px solid #e8c766; border-radius: 12px; padding: 10px 14px; margin: 8px 0 12px; font-size: 13px; }
.member-row > div { flex: 1; }
.member-row b { display: block; font-size: 14px; }
.member-row span { color: #6b5a2a; }
.member-row.on { display: block; font-weight: 600; color: #6b5a2a; }
.buy.main span s { opacity: .7; }
.member-row s.was { color: #9a8f86; text-decoration-color: #e0473a; text-decoration-thickness: 2px; font-weight: 500; }
.member-row .offer-tag { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(90deg, #e0473a, #e8a33a); padding: 2px 8px; border-radius: 999px; margin-left: 4px; white-space: nowrap; }

/* Plans window: clear regular price + member line, and a roomy membership offer card */
.with-member { margin: -2px 0 0; font-size: 12.5px; color: #6b5a2a; }
.with-member em { font-style: normal; color: #9a7b2a; }
.member-panel { position: relative; margin: 18px 0 14px; padding: 26px 22px 20px; border: 2px solid #e8c766; border-radius: 16px; background: linear-gradient(160deg, #fff8e6, #fff 60%); box-shadow: 0 10px 30px rgba(232, 163, 58, .18); }
.mp-ribbon { position: absolute; top: -14px; left: 22px; background: linear-gradient(90deg, #e0473a, #e8a33a); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(224, 71, 58, .3); }
.mp-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.mp-top h3 { margin: 0 0 4px; font-family: 'Playfair Display', serif; font-size: 22px; }
.mp-top p { margin: 0; font-size: 13px; color: var(--muted); }
.mp-price { display: flex; align-items: baseline; gap: 8px; }
.mp-price s { color: #9a8f86; text-decoration-color: #e0473a; text-decoration-thickness: 2px; font-size: 16px; }
.mp-price b { font-size: 30px; }
.mp-price span { color: var(--muted); font-size: 13px; }
.mp-table { width: 100%; border-collapse: collapse; margin: 16px 0 12px; font-size: 13.5px; }
.mp-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid #efe3c4; }
.mp-table td { padding: 9px 8px; border-bottom: 1px solid #f4ecd6; }
.mp-table td:nth-child(2) { color: #6f675f; }
.mp-table td em { font-style: normal; font-size: 12px; color: #1f8a4c; font-weight: 600; margin-left: 4px; }
.mp-perks { margin: 0 0 16px; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 13px; color: #4a4038; }
.mp-perks li::before { content: '✓'; color: #1f8a4c; font-weight: 700; margin-right: 6px; }
.mp-join { width: 100%; justify-content: center; padding: 12px; font-size: 15px; }
@media (max-width: 640px) { .mp-perks { grid-template-columns: 1fr; } .mp-table { font-size: 12.5px; } }

/* ---------- checkout (shared by the website, the designer and Organise) ---------- */
.pa-acct.checkout .modal-card { width: min(440px, 100%); padding: 26px 26px 22px; }
.pa-acct.checkout h2 { font-size: 26px; }
.co-card { margin-top: 18px; padding: 6px 18px 16px; border-radius: 16px; background: var(--panel-2, #f6f2ec); border: 1px solid var(--line, #e6ddd1); }
.co-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line, #e6ddd1); }
.co-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.co-item b { font-size: 15.5px; font-weight: 700; }
.co-item small { font-size: 12.5px; color: var(--muted, #7a7066); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-price { font-size: 17px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.co-price s { margin-right: 8px; font-weight: 500; font-size: 14px; color: var(--muted, #7a7066); }
.co-code { display: flex; gap: 8px; margin-top: 14px; }
.co-code input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line, #d9d0c2); background: var(--panel, #fff); font: inherit; font-size: 14.5px; text-transform: uppercase; letter-spacing: .04em; }
.co-code input::placeholder { text-transform: none; letter-spacing: 0; }
.co-code input:focus { outline: none; border-color: var(--accent, #c2573a); box-shadow: 0 0 0 4px rgba(194,87,58,.14); }
.co-apply { height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--ink, #1f1b16); background: var(--ink, #1f1b16); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.co-apply:hover { opacity: .88; }
.co-msg { min-height: 18px; margin: 8px 2px 0; font-size: 13px; }
.co-msg.ok { color: #2f7d4f; font-weight: 600; }
.co-msg.bad { color: #b3261e; }
.co-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 12px; margin-top: 4px; border-top: 1px dashed var(--line, #e6ddd1); }
.co-total span { font-size: 14px; color: var(--muted, #7a7066); font-weight: 600; }
.co-total b { font-size: 24px; font-variant-numeric: tabular-nums; }
.co-secure { margin: 14px 2px 0; font-size: 12.5px; color: var(--muted, #7a7066); text-align: center; }
.pa-acct.checkout footer { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 16px; }
.co-btn { height: 48px; border-radius: 14px; font-size: 15.5px; justify-content: center; }
