:root { --bg: #0f1c2e; --card: #16283f; --line: #28405f; --text: #e8eef6; --muted: #9db0c6; --accent: #e8802a; --ok: #2e9d62; --err: #d9534f; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: #7fb8ff; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; padding: .7rem 1rem; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 1.2rem; color: var(--accent); text-decoration: none; }
.menu { display: flex; flex-wrap: wrap; gap: .25rem; flex: 1; }
.menu a { padding: .4rem .8rem; border-radius: .4rem; color: var(--text); text-decoration: none; }
.menu a:hover, .menu a.is-active { background: var(--line); }
.logout { display: flex; align-items: center; gap: .6rem; margin: 0; }
.who { color: var(--muted); font-size: .9rem; }
.page { max-width: 62rem; margin: 0 auto; padding: 1rem 1rem 3rem; }
h1 { font-size: 1.5rem; margin: .5rem 0 1rem; }
h2 { font-size: 1.15rem; margin: 1.6rem 0 .6rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: .6rem; padding: 1rem; margin-bottom: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.muted { color: var(--muted); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; }
form.stack label { display: block; margin: .7rem 0 .2rem; color: var(--muted); font-size: .9rem; }
input[type=text], input[type=email], input[type=password], select { width: 100%; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: .4rem; background: #0c1726; color: var(--text); font: inherit; }
.checks { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin-top: .2rem; }
.checks label { display: flex; align-items: center; gap: .4rem; margin: 0; color: var(--text); }
button, .btn { display: inline-block; padding: .5rem 1rem; border: 0; border-radius: .4rem; background: var(--accent); color: #fff; font: inherit; cursor: pointer; text-decoration: none; }
button.sec, .btn.sec { background: var(--line); }
button.danger { background: var(--err); }
.row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; align-items: center; }
.alert { padding: .7rem 1rem; border-radius: .4rem; margin-bottom: 1rem; }
.alert-ok { background: rgba(46, 157, 98, .2); border: 1px solid var(--ok); }
.alert-error { background: rgba(217, 83, 79, .2); border: 1px solid var(--err); }
.badge { display: inline-block; padding: .05rem .5rem; border-radius: 1rem; background: var(--line); font-size: .8rem; }
.login { max-width: 24rem; margin: 8vh auto; padding: 0 1rem; }
.login h1 { text-align: center; color: var(--accent); }
.langs { text-align: center; margin-top: 1rem; font-size: .9rem; }
.scroll { overflow-x: auto; }
.two { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 40rem) { .two { grid-template-columns: 1fr; } }
.hint { color: var(--muted); font-size: .85rem; margin: .3rem 0 0; }
.club-logo { height: 2.2rem; width: auto; max-width: 4rem; object-fit: contain; vertical-align: middle; }
.club-logo-lg { height: 5rem; max-width: 8rem; display: block; margin: .3rem 0; }
input[type=file] { color: var(--text); }
.progress { height: .6rem; background: var(--line); border-radius: .3rem; overflow: hidden; margin-top: .6rem; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.three { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr 1fr; align-items: start; }
@media (max-width: 40rem) { .three { grid-template-columns: 1fr; } }
.grid4 { display: grid; gap: 0 1rem; grid-template-columns: repeat(4, 1fr); align-items: start; }
.grid4 .span2 { grid-column: span 2; }
@media (max-width: 40rem) { .grid4 { grid-template-columns: 1fr 1fr; } }
#filter { max-width: 24rem; }
.grid4 .span3 { grid-column: span 3; }
.grid4 .span4 { grid-column: span 4; }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.toggle label { margin: 0; padding: .55rem 1rem; cursor: pointer; border-right: 1px solid var(--line); font-weight: normal; }
.toggle label:last-child { border-right: 0; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle input:checked + span { font-weight: 600; }
.toggle label:has(input:checked) { background: var(--ok); color: #fff; }
.toggle label:has(input:focus-visible) { outline: 2px solid #1f6feb; outline-offset: -2px; }
input[readonly] { background: transparent; color: var(--muted); }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .85rem; }
.badge-paid { background: #d9f2e3; color: #11643a; }
.badge-trial { background: #fff1cc; color: #7a5600; }
.badge-inactive { background: #fde0e0; color: #9b1c1c; }
.qr { text-align: center; }
table.plain th { text-align: left; padding-right: 1rem; font-weight: 600; }
.badge-new { background: #e4e8ee; color: #3d4a5c; }
.actions { display: flex; gap: .4rem; align-items: center; white-space: nowrap; }
.actions form { margin: 0; display: block; }
.actions button, .actions .btn { width: auto; padding: .25rem .6rem; margin: 0; font-size: .85rem; }
#list { font-size: .9rem; }
#list th, #list td { padding: .45rem .5rem; }
td.nowrap { white-space: nowrap; }
.actions .icon { padding: .25rem .55rem; font-size: 1rem; line-height: 1.2; }
th.sort-th { cursor: pointer; user-select: none; white-space: nowrap; }
th.sort-th:hover { color: var(--text); }
th[aria-sort=ascending]::after { content: " \25B2"; font-size: .7rem; }
th[aria-sort=descending]::after { content: " \25BC"; font-size: .7rem; }
tr.filter-row td { padding: .25rem .4rem; border-bottom: 1px solid var(--line); }
tr.filter-row input, tr.filter-row select { width: 100%; min-width: 4.5rem; padding: .25rem .4rem; font-size: .85rem; }
tr[data-hide] { display: none; }
.tcount { margin: 0 0 .4rem; font-size: .85rem; }
#cup_box label { display: flex; align-items: center; gap: .4rem; margin: .4rem 0 0; color: var(--text); }
