/* The beta account page (account.php): its content only. The page itself (header, menu,
   footer, cards) uses the live about_styles.css; color themes in beta_themes.css and themes/. */

:root { --blue: #0a7afc; --ink: #26303f; --muted: #7a8496; --line: #e8ecf2; --soft: #f6f8fc;
        --good: #1f9d61; --bad: #d23b3b; }
.bk-error { margin-bottom: 18px; padding: 12px 16px; border-radius: 12px; background: #fdeaea; color: #b42318; font-weight: 600; }
.bk-error[hidden] { display: none; }

/* Account box */
.bk-login label { display: block; font-weight: 700; margin-bottom: 8px; }
.bk-login-row { display: flex; gap: 8px; }
.bk-login input[type=text] { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid #d5dce8; border-radius: 10px; font-size: 15px; }
.bk-hint { margin: 8px 0 0 !important; font-size: 12px !important; color: var(--muted) !important; }
.bk-btn { padding: 10px 18px; border: none; border-radius: 10px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.bk-btn:hover { background: #0862ca; }
.bk-btn-ghost { background: #fff; color: #2f5fd0; border: 1px solid #d5dce8; font-size: 13px; padding: 7px 14px; }
.bk-btn-ghost:hover { background: #f2f6ff; }
.bk-account { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bk-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; }
.bk-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bk-who span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.bk-plan-box { display: flex; align-items: center; gap: 6px; }
.bk-plan { padding: 3px 10px; border-radius: 999px; background: #eef0f3; color: #4a5568; font-size: 12px; font-weight: 700; }
.bk-plan-premium { background: #fff3df; color: #8a5300; }
.bk-until { font-size: 12px; color: var(--muted); }

/* Ads (logged-out visitors only) */
.bk-ad { margin-top: 18px; padding: 10px 14px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.92); }
.bk-ad[hidden] { display: none; }
.bk-ad-label { display: block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.bk-ad-placeholder { padding: 22px; border: 2px dashed #c9d1dd; border-radius: 10px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Feature list */
.bk-features { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.bk-features li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--soft); }
.bk-features .ic { flex: 0 0 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #fff; font-size: 17px; }
.bk-features strong { display: block; }
.bk-features span { font-size: 13px; color: #4a5568; line-height: 1.5; }
.bk-tag { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #fff3df; color: #8a5300; font-size: 11px; font-weight: 700; }

/* Account page */
.ac-hero { display: flex; align-items: center; gap: 16px; }
.ac-avatar { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; font-size: 28px; }
.ac-who { min-width: 0; }
.ac-who h1 { margin-bottom: 4px; }
.ac-who p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.ac-plan { padding: 16px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.ac-plan-premium { background: #fff8ec; border-color: #f3dfb8; }
.ac-plan-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.ac-plan-head strong { display: block; font-size: 16px; }
.ac-plan-head span { font-size: 13px; color: var(--muted); }
.ac-plan-icon { font-size: 26px; }
.ac-usage { margin: 12px 0 0 !important; font-size: 14px; }
.bk-btn { display: inline-block; text-decoration: none; }
.bk-btn-login { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ac-choices { display: flex; gap: 8px; flex-wrap: wrap; }
.ac-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ac-choice > span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; border: 1px solid #d5dce8; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.ac-choice input:checked + span { border-color: var(--blue); background: #eaf2ff; color: #0a4fb0; }
.ac-choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.ac-toggle { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.ac-toggle input { width: 18px; height: 18px; }
.ac-saved { margin: 10px 0 0 !important; color: var(--good) !important; font-weight: 600; }
.ac-saved[hidden] { display: none; }
.ac-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ac-danger { border: 1px solid #f3c9c9; }
.ac-delete { display: flex; gap: 8px; }
.ac-delete input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid #d5dce8; border-radius: 10px; font-size: 15px; }
.ac-btn-danger { background: var(--bad); }
.ac-btn-danger:hover { background: #b22d2d; }
.ac-delete-msg { margin-top: 10px !important; color: var(--bad) !important; font-weight: 600; }
.ac-delete-msg[hidden] { display: none; }

@media (max-width: 600px) {
    .bk-login-row, .ac-delete { flex-direction: column; }
    .ac-hero { align-items: flex-start; }
}

/* Cards: the live .about-content look, stacked */
.ac-main { gap: 18px; }
#account-page { display: flex; flex-direction: column; gap: 18px; }
.ac-main .ac-card { flex-grow: 0; overflow: visible; }
/* Titles in the brand colour, like the live cards' titles (.card-title): the color themes recolour it */
.ac-card h1, .ac-card h2 { margin: 0 0 8px; font-size: 21px; color: var(--primary-dark, #0862ca); }
.ac-card h3 { margin: 18px 0 8px; font-size: 15px; color: var(--primary-dark, #0862ca); }
.ac-card p { margin: 0 0 10px; line-height: 1.6; }
.ac-card .muted { color: var(--muted); font-size: 13px; }
.ac-main .bk-ad { margin: 0; }

/* Support page (about.php -> _support_page.php) */
.sp-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.sp-way { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; background: var(--soft);
          border: 1px solid var(--line); color: inherit; text-decoration: none; }
.sp-way:hover { border-color: var(--blue); }
.sp-way-icon { font-size: 22px; }
.sp-svg { display: inline-flex; width: 34px; height: 34px; }
.sp-svg svg { width: 100%; height: 100%; }
.sp-way strong { color: #0a4fb0; font-size: 15px; }
.sp-way span { font-size: 13px; color: #4a5568; line-height: 1.45; }
.sp-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.sp-tier { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.sp-tier-head { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.sp-cup { width: 64px; height: 64px; }
.sp-cup svg { width: 100%; height: 100%; }
.sp-tagline { font-size: 13px; font-style: italic; color: var(--muted); }
.sp-cancel { margin: 12px 0 0 !important; }
.sp-price { font-size: 26px; font-weight: 800; color: #0a4fb0; }
.sp-price span { font-size: 13px; font-weight: 600; color: var(--muted); }
.sp-tier ul { margin: 0; padding-left: 18px; flex: 1; font-size: 13px; line-height: 1.5; color: #4a5568; }
.sp-tier .bk-btn { text-align: center; }
.sp-feature { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-top: 12px; padding: 14px 16px;
              border-radius: 12px; background: var(--soft); border: 1px dashed #c9d1dd; }
.sp-feature strong { display: block; margin-bottom: 4px; }
.sp-feature span { font-size: 13px; color: #4a5568; line-height: 1.5; }
.sp-kofi-note { margin-top: 10px !important; }
.sp-list { margin: 6px 0 10px; padding-left: 20px; line-height: 1.6; }
.sp-list li { margin-bottom: 6px; }
.sp-supporters .supporters-block > h4 { margin-top: 0; font-size: 21px; color: var(--primary-dark, #0862ca); }
@media (max-width: 700px) {
    .sp-ways, .sp-tiers { grid-template-columns: 1fr; }
    .sp-feature { flex-direction: column; align-items: flex-start; }
}
.bk-features .ic.sp-svg { padding: 5px; box-sizing: border-box; }

/* Support page: icon and title centered in the "ways to help" cards and the coffee club cups
   (the cup's tagline and price with them, as the card's header); the texts and lists below stay left */
.sp-way .sp-way-icon { align-self: center; }
.sp-way strong { text-align: center; }
.sp-cup { align-self: center; }
.sp-tier-head { justify-content: center; }
.sp-tagline, .sp-price { text-align: center; }
