/* TapCard app shell - dark theme, gold accent. */
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background: #0c0c0f; color: #f4f1ea; }
a { color: #d4af37; }
.wrap { max-width: 860px; margin: 0 auto; padding: 18px 16px 60px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #26262e; background: #101014; position: sticky; top: 0; z-index: 5; }
.logo { font-size: 20px; font-weight: 800; letter-spacing: .4px; }
.logo span { color: #d4af37; }
.langtoggle { display: flex; gap: 4px; align-items: center; font-size: 13px; }
.langtoggle button { background: none; border: 0; color: #9a958a; font-size: 13px; padding: 4px 6px; cursor: pointer; }
.langtoggle button.on { color: #d4af37; font-weight: 700; }
nav.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 16px 0; max-width: 860px; margin: 0 auto; }
nav.tabs a { color: #cfc9bc; text-decoration: none; padding: 9px 14px; border-radius: 999px; border: 1px solid #26262e; background: #141419; font-size: 14px; }
nav.tabs a.on { background: #d4af37; color: #141414; font-weight: 700; border-color: #d4af37; }
.card { background: #141419; border: 1px solid #26262e; border-radius: 14px; padding: 18px; margin-bottom: 16px; }
h1 { font-size: 24px; margin: 4px 0 14px; }
h2 { font-size: 17px; margin: 0 0 12px; }
.muted { color: #9a958a; font-size: 14px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: #101014; border: 1px solid #26262e; border-radius: 12px; padding: 16px; text-align: center; }
.stat .num { font-size: 30px; font-weight: 800; color: #d4af37; }
.stat .lbl { color: #9a958a; font-size: 13px; margin-top: 4px; }
label.f { display: block; font-size: 13px; color: #9a958a; margin: 12px 0 5px; }
input.in, textarea.in, select.in { width: 100%; background: #1c1c21; border: 1px solid #33333b; border-radius: 10px; color: #f4f1ea; padding: 11px 12px; font-size: 15px; }
.btn { display: inline-block; background: #d4af37; color: #141414; border: 0; border-radius: 10px; padding: 12px 18px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; }
.btn.ghost { background: #1c1c21; color: #f4f1ea; border: 1px solid #33333b; }
.btn.danger { background: #3a1d1d; color: #f0b9b9; border: 1px solid #6e3434; }
.btn.small { padding: 8px 12px; font-size: 13px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 0 0 auto; }
.grow { flex: 1 1 auto; }
.preview { text-align: center; }
.preview img.photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid #d4af37; }
.preview video { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 12%; border-radius: 12px; margin-bottom: 12px; }
.preview .nm { font-size: 24px; font-weight: 800; margin-top: 10px; }
.preview .ti { color: #d4af37; font-weight: 600; }
.linkline { word-break: break-all; background: #101014; border: 1px solid #26262e; border-radius: 10px; padding: 12px; font-size: 14px; }
table.list { width: 100%; border-collapse: collapse; }
table.list td, table.list th { padding: 10px 8px; border-bottom: 1px solid #26262e; text-align: left; font-size: 14px; vertical-align: top; }
@media (max-width: 640px) {
  table.list.members thead { display: none; }
  table.list.members, table.list.members tbody, table.list.members tr, table.list.members td { display: block; width: 100%; }
  table.list.members tr { padding: 10px 0 12px; border-bottom: 1px solid #26262e; }
  table.list.members tr:last-child { border-bottom: none; }
  table.list.members td { border-bottom: none; padding: 3px 8px; }
  table.list.members td[data-label]::before { content: attr(data-label) ": "; color: #9a958a; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
}
.contact { background: #101014; border: 1px solid #26262e; border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.contact .nm { font-weight: 700; font-size: 16px; }
.contact .meta { color: #9a958a; font-size: 13px; }
.qrimg { width: 240px; height: 240px; background: #fff; border-radius: 12px; padding: 8px; display: block; margin: 0 auto; }
.center { text-align: center; }
.notice { background: #17301b; border: 1px solid #2c5a33; color: #b9e4c0; padding: 12px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; word-break: break-all; }
.warn { background: #2c2410; border: 1px solid #6e5a1e; color: #ecd9a0; padding: 12px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: #d4af37; color: #141414; padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; z-index: 50; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.loginbox { max-width: 420px; margin: 60px auto; }
.err { color: #f0a3a3; font-size: 14px; margin-top: 10px; }
.linkrow-edit { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; margin-bottom: 8px; }
@media (max-width: 560px) { .linkrow-edit { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; } }
