/* FreeCard accounts (v20261103m): header link, sign-in window, Save to my account, My Cards page. Dark & gold, RTL-safe. */
.top .nav a.acct-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.top .nav a.acct-link svg { width: 18px; height: 18px; flex: none; }
.top .nav a.acct-link.on { color: #e4c983 !important; }
@media (max-width: 900px) { .top .nav a.acct-link { display: inline-flex !important; border: 1px solid rgba(201,164,90,.6); border-radius: 999px; padding: 6px 11px; font-size: 14px; color: #e4c983 !important; } }
@media (max-width: 400px) { .top .nav a.acct-link { padding: 7px; } .top .nav a.acct-link .acct-lt { display: none; } }
html.acct-lock, html.acct-lock body { overflow: hidden; }
.acct-ov { position: fixed; inset: 0; z-index: 1000; background: rgba(6,8,16,.72); display: flex; align-items: flex-start; justify-content: center; padding: max(24px, env(safe-area-inset-top)) 14px 24px; overflow-y: auto; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.acct-box { position: relative; width: 100%; max-width: 420px; margin: auto 0; background: #151a2e; color: #efe7d4; border: 1px solid rgba(217,181,106,.45); border-radius: 18px; padding: 26px 22px 20px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
.acct-x { position: absolute; top: 10px; inset-inline-end: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #cbbf9f; font-size: 18px; cursor: pointer; }
.acct-x:hover { background: rgba(255,255,255,.06); }
.acct-h { font-family: var(--t-head, Georgia, serif); color: #e4c983; font-size: 24px; margin: 0 40px 10px 0; line-height: 1.2; }
[dir="rtl"] .acct-h { margin: 0 0 10px 40px; }
.acct-why { color: #cfc5ad; font-size: 14.5px; line-height: 1.5; margin: 0 0 14px; }
.acct-tabs { display: flex; gap: 6px; background: rgba(255,255,255,.05); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.acct-tab { flex: 1; border: 0; border-radius: 9px; background: transparent; color: #cfc5ad; font: 600 15px var(--sans, system-ui); padding: 10px 6px; cursor: pointer; min-height: 44px; }
.acct-tab[aria-selected="true"] { background: linear-gradient(180deg, #ecd28f, #b8913f); color: #17130a; }
.acct-form { display: flex; flex-direction: column; gap: 12px; }
.acct-f { display: flex; flex-direction: column; gap: 6px; }
.acct-l { font-size: 13.5px; font-weight: 600; color: #e4d6b4; }
.acct-f input { font: 16px var(--sans, system-ui); padding: 12px 13px; border-radius: 11px; border: 1px solid rgba(217,181,106,.4); background: #0f1322; color: #f5eedc; min-height: 46px; width: 100%; box-sizing: border-box; }
.acct-f input:focus { outline: none; border-color: #e4c983; box-shadow: 0 0 0 3px rgba(228,201,131,.25); }
[dir="rtl"] .acct-f input[dir="ltr"] { text-align: left; }
.acct-show { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #cfc5ad; cursor: pointer; }
.acct-show input { width: 18px; height: 18px; accent-color: #c9a45a; }
.acct-err { color: #ff9e8f; font-size: 14px; margin: 0; min-height: 1em; }
.acct-err:empty { display: none; }
.acct-go { width: 100%; min-height: 48px; font-size: 16px; }
.acct-forgot { display: block; margin: 12px auto 0; color: #e4c983 !important; }
.acct-priv { color: #9f977f; font-size: 12.5px; line-height: 1.5; margin: 10px 0 0; }
.acct-code { font: 700 min(20px, 4.3vw)/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; text-align: center; color: #f5e3b0; white-space: nowrap; overflow-x: auto; background: #0f1322; border: 1.5px dashed #c9a45a; border-radius: 12px; padding: 16px 10px; margin: 6px 0 16px; user-select: all; -webkit-user-select: all; }
.acct-row { display: flex; flex-wrap: wrap; gap: 10px; }
.acct-row > .btn { flex: 1 1 140px; min-height: 46px; }
/* editor */
.acct-save { margin: 12px 0 4px; text-align: center; }
.acct-savebtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; border-color: rgba(217,181,106,.55) !important; color: #e4c983 !important; }
.acct-savebtn svg { width: 20px; height: 20px; flex: none; }
.acct-savebtn[disabled] { opacity: .6; }
.acct-st { font-size: 13px; color: #b6ac98; margin: 8px 0 0; line-height: 1.5; }
.acct-st:empty { display: none; }
.acct-st a { color: #e4c983; font-weight: 700; }
.acct-ok { color: #9fe0a8; font-weight: 700; }
.acct-nm { color: #efe7d4; }
/* My Cards page */
.acct-page { padding: 34px 0 50px; min-height: 60vh; }
.acct-panel { max-width: 460px; margin: 10px auto 0; text-align: center; background: rgba(255,255,255,.03); border: 1px solid rgba(217,181,106,.3); border-radius: 18px; padding: 26px 20px; }
.acct-lead { font-size: 17px; color: #efe7d4; margin: 0 0 16px; }
.acct-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px; border: 1px solid rgba(217,181,106,.3); border-radius: 14px; background: rgba(255,255,255,.03); margin-bottom: 20px; }
.acct-who { flex: 1 1 220px; color: #cfc5ad; font-size: 14.5px; overflow-wrap: anywhere; }
.acct-who b { color: #efe7d4; }
.acct-cnt { color: #b6ac98; font-size: 14px; }
.acct-cnt b { color: #e4c983; }
.acct-out { min-height: 40px; }
.acct-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; }
.acct-item { display: flex; flex-direction: column; min-width: 0; }
.acct-th { width: 100%; max-width: none; margin: 0; aspect-ratio: 2 / 3; border-radius: var(--t-card-r, 6px); overflow: hidden; box-shadow: var(--t-tile-shadow, 0 10px 26px -14px rgba(0,0,0,.7)); pointer-events: none; }
.acct-cap { padding: 9px 2px 8px; min-width: 0; }
.acct-name { font-weight: 700; font-size: 15px; color: #efe7d4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-meta { font-size: 12.5px; color: #9f977f; margin-top: 2px; }
.acct-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; }
.acct-acts .btn { min-height: 40px; padding: 8px 6px; font-size: 13.5px; width: 100%; }
.acct-acts .acct-del, .acct-set .acct-del { color: #ffb4a8 !important; }
.acct-empty { grid-column: 1 / -1; text-align: center; padding: 30px 10px; color: #cfc5ad; }
.acct-empty .btn { margin-top: 10px; }
.acct-set { margin-top: 34px; border-top: 1px solid rgba(217,181,106,.25); padding-top: 14px; max-width: 560px; }
.acct-set summary { cursor: pointer; color: #e4c983; font-weight: 700; font-size: 15px; padding: 6px 0; }
.acct-set-in { display: flex; flex-direction: column; gap: 12px; padding: 10px 0 0; }
.acct-set .acct-row > .btn { flex: 1 1 200px; min-height: 42px; }
@media (max-width: 1080px) { .acct-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .acct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .acct-acts .btn { font-size: 13px; }
  .acct-page { padding-top: 22px; }
}
@media (max-width: 420px) { .top .nav .acct-link { font-size: 14px; } }
.acct-th { position: relative; }
.acct-img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* site owner page */
.adm-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.adm-num { border: 1px solid rgba(217,181,106,.35); border-radius: 14px; padding: 14px; background: rgba(255,255,255,.03); display: flex; flex-direction: column; gap: 4px; }
.adm-num b { font: 700 28px/1 var(--t-head, Georgia, serif); color: #e4c983; }
.adm-num span { font-size: 13px; color: #b6ac98; }
.adm-h { font-family: var(--t-head, Georgia, serif); color: #e4c983; font-size: 22px; margin: 22px 0 12px; }
.adm-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.adm-trow, .adm-card { display: flex; align-items: center; gap: 12px; min-width: 0; }
.adm-rank { width: 26px; text-align: center; font-weight: 700; color: #e4c983; flex: none; }
.adm-tile { flex: none; width: 52px; aspect-ratio: 2 / 3; border-radius: 5px; overflow: hidden; background: #222; display: block; }
.adm-tile.sm { width: 40px; }
.adm-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-mini { display: block; width: 100%; height: 100%; margin: 0; max-width: none; pointer-events: none; }
.adm-tx { min-width: 0; display: flex; flex-direction: column; }
.adm-tx b { color: #efe7d4; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-tx small { color: #9f977f; font-size: 12.5px; overflow-wrap: anywhere; }
.adm-sim { color: #cfc5ad; }
.adm-users { display: flex; flex-direction: column; gap: 8px; }
.adm-user { border: 1px solid rgba(217,181,106,.28); border-radius: 12px; background: rgba(255,255,255,.025); }
.adm-user summary { cursor: pointer; padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.adm-em { color: #efe7d4; overflow-wrap: anywhere; }
.adm-c { color: #e4c983; font-weight: 700; font-size: 13.5px; }
.adm-dt { flex-basis: 100%; color: #9f977f; font-size: 12.5px; }
.adm-cards { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 14px; }
@media (max-width: 640px) { .adm-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } .adm-top { grid-template-columns: 1fr; } }
