/* =========================================================
   PBVSI Kalimantan Barat — Tema Navy & Emas
   ========================================================= */

:root {
    --navy-950: #05080F;
    --navy-900: #070D1B;
    --navy-850: #0A1226;
    --navy-800: #0E1830;
    --navy-750: #121E3B;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);
    --gold: #E9B949;
    --gold-light: #F7D478;
    --gold-deep: #C9962B;
    --gold-soft: rgba(233, 185, 73, .12);
    --text: #EEF2FA;
    --muted: #95A3C2;
    --muted-2: #6E7C9B;
    --green: #45C08A;
    --red: #F0736B;
    --radius: 18px;
    --radius-sm: 11px;
    --shadow: 0 24px 60px rgba(0, 0, 0, .45);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bg-base: #05080F;
    --bg-image: none;
    --bg-tint-top: rgba(5, 8, 15, .82);
    --bg-tint-bottom: rgba(5, 8, 15, .93);
    --bg-tint-top-admin: rgba(5, 8, 15, .9);
    --bg-tint-bottom-admin: rgba(5, 8, 15, .96);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background-color: var(--bg-base);
    color: var(--text);
    font-size: 15.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

body.public {
    background-color: var(--bg-base);
    background-image:
        linear-gradient(180deg, var(--bg-tint-top), var(--bg-tint-bottom)),
        var(--bg-image),
        radial-gradient(900px 600px at 8% -5%, rgba(233, 185, 73, .11), transparent 65%),
        radial-gradient(1000px 700px at 100% 0%, rgba(37, 74, 160, .28), transparent 60%),
        radial-gradient(900px 800px at 50% 120%, rgba(233, 185, 73, .06), transparent 70%);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover, cover, auto, auto, auto;
    background-attachment: scroll, fixed, scroll, scroll, scroll;
}

.bg-ornament { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.orb-1 { width: 420px; height: 420px; background: rgba(28, 68, 158, .55); top: 12%; right: -140px; }
.orb-2 { width: 360px; height: 360px; background: rgba(233, 185, 73, .16); top: 55%; left: -160px; }

a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
small { font-size: .82rem; }
.muted { color: var(--muted); }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; position: relative; z-index: 1; }

.eyebrow {
    font-size: .74rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin: 0 0 .6rem;
}
.lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }

/* ---------- Tombol ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .82rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font);
    font-weight: 700;
    font-size: .92rem;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
    color: #201703;
    box-shadow: 0 10px 30px rgba(233, 185, 73, .22);
}
.btn-gold:hover { color: #201703; box-shadow: 0 14px 34px rgba(233, 185, 73, .32); }
.btn-outline {
    background: rgba(255, 255, 255, .03);
    border-color: var(--line-strong);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; padding-inline: .6rem; }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: .55rem 1rem; font-size: .83rem; }
.btn-danger { background: rgba(240, 115, 107, .12); border-color: rgba(240, 115, 107, .35); color: #FFB3AE; }
.btn-danger:hover { background: rgba(240, 115, 107, .2); color: #FFD3CF; }
.btn-block { width: 100%; }

/* ---------- Topbar publik ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(7, 13, 27, .78);
    backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); min-width: 0; max-width: 100%; }
.brand:hover { color: var(--text); }
.brand-logo { object-fit: contain; border-radius: 6px; flex: 0 0 auto; }
.logo-preview { width: 96px; height: 96px; border-radius: 16px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); display: grid; place-items: center; overflow: hidden; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; padding: .35rem; }
.bg-preview {
    border-radius: var(--radius); border: 1px solid var(--line-strong);
    min-height: 150px; display: grid; place-items: center; text-align: center;
    color: var(--text); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
    background-color: var(--bg-base);
    background-image: linear-gradient(180deg, var(--bg-tint-top), var(--bg-tint-bottom)), var(--bg-image);
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.swatches { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.swatch {
    width: 34px; height: 34px; border-radius: 10px; border: 2px solid transparent;
    cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.swatch:hover { border-color: var(--gold); }
.swatch.active { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233, 185, 73, .2); }
input[type=color] { width: 100%; height: 44px; padding: .25rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: rgba(4, 9, 20, .7); cursor: pointer; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text strong { font-size: 1.06rem; letter-spacing: .16em; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
    color: var(--muted);
    font-size: .89rem;
    font-weight: 600;
    padding: .55rem .75rem;
    border-radius: 999px;
    position: relative;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-links a.active { color: var(--gold-light); }
.nav-links a.active::after {
    content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .1rem;
    height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), transparent);
}
.nav-links a.btn { color: #201703; }
.nav-links a.btn-outline { color: var(--text); }
.nav-toggle, .nav-burger { display: none; }

.site-main { position: relative; z-index: 1; padding-bottom: 4rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 2.5rem; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); margin-bottom: 1rem; }
.hero h1 span { background: linear-gradient(120deg, var(--gold-light), var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.08rem; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .55rem;
    border: 1px solid rgba(233, 185, 73, .35);
    background: var(--gold-soft);
    color: var(--gold-light);
    border-radius: 999px; padding: .4rem .9rem;
    font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
    margin-bottom: 1.3rem;
}
.hero-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

.hero-panel {
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(18, 30, 59, .95), rgba(8, 14, 29, .9));
    box-shadow: var(--shadow);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}
.hero-panel::after {
    content: ""; position: absolute; inset: -40% -10% auto auto; width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(233, 185, 73, .16), transparent 65%);
}
.hero-panel h3 { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.hero-panel .stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1rem; }
.hero-panel .mini {
    border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1rem;
    background: rgba(255, 255, 255, .02);
}
.hero-panel .mini strong { display: block; font-size: 1.55rem; letter-spacing: -.02em; }
.hero-panel .mini span { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.stats-strip {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
    background: linear-gradient(120deg, rgba(18, 30, 59, .7), rgba(10, 18, 38, .5));
    backdrop-filter: blur(10px);
}
.stats-strip .stat { text-align: center; border-right: 1px solid var(--line); }
.stats-strip .stat:last-child { border-right: 0; }
.stats-strip strong { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--gold-light); }
.stats-strip span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Section ---------- */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.8rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .35rem 0 0; color: var(--muted); max-width: 60ch; }

/* ---------- Kartu ---------- */
.grid { display: grid; gap: 1.35rem; }
.grid > *, .footer-grid > *, .split > *, .stat-cards > * { min-width: 0; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    background: linear-gradient(165deg, rgba(17, 28, 55, .92), rgba(9, 15, 31, .92));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease;
}
.card:hover { border-color: rgba(233, 185, 73, .28); }
a.card:hover { transform: translateY(-3px); }
.card-body { padding: 1.4rem 1.5rem; }
.card-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-800); position: relative; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 1.06rem; margin-bottom: .5rem; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--gold-light); }
.card p { color: var(--muted); font-size: .9rem; margin: 0; }
.card-meta { display: flex; gap: .8rem; font-size: .76rem; color: var(--muted-2); margin-top: .9rem; text-transform: uppercase; letter-spacing: .06em; }

.ph {
    width: 100%; height: 100%; min-height: 120px;
    display: grid; place-items: center;
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 10px, transparent 10px 20px),
        linear-gradient(140deg, rgba(233, 185, 73, .16), rgba(18, 30, 59, .6));
    color: rgba(247, 212, 120, .6);
    font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: .74rem;
    text-align: center; padding: 1rem;
}
.ph-round { border-radius: 50%; aspect-ratio: 1; min-height: 0; font-size: .7rem; }

.avatar-square { aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--navy-800); }
.avatar-square img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Profil ketua ---------- */
.profile-card { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; align-items: start; padding: 1.8rem; }
.profile-photo { border-radius: 18px; overflow: hidden; border: 1px solid rgba(233, 185, 73, .3); background: var(--navy-800); aspect-ratio: 3 / 4; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-card .quote { color: var(--text); font-size: 1rem; white-space: pre-line; }
.signature { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.signature strong { display: block; font-size: 1.05rem; }
.signature span { color: var(--gold); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Tabel ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(10, 18, 38, .6); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th {
    text-align: left; padding: .85rem 1rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: .85rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, .05); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: rgba(255, 255, 255, .02); }
table.data td .sub { display: block; color: var(--muted-2); font-size: .78rem; }

/* ---------- Badge / pill ---------- */
.badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .25rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
    background: rgba(255, 255, 255, .06); color: var(--muted); border: 1px solid var(--line);
}
.badge-gold { background: var(--gold-soft); color: var(--gold-light); border-color: rgba(233, 185, 73, .3); }
.badge-green { background: rgba(69, 192, 138, .12); color: #7CE0B4; border-color: rgba(69, 192, 138, .3); }
.badge-red { background: rgba(240, 115, 107, .12); color: #FFA8A2; border-color: rgba(240, 115, 107, .3); }
.pill { margin-left: auto; background: var(--gold); color: #241a03; font-size: .7rem; font-weight: 800; border-radius: 999px; padding: .1rem .45rem; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field > span.lbl {
    display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--muted); margin-bottom: .4rem;
}
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=tel], input[type=search], select, textarea {
    width: 100%; font-family: var(--font); font-size: .93rem;
    color: var(--text); background: rgba(4, 9, 20, .7);
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    padding: .72rem .9rem; transition: border-color .16s ease, box-shadow .16s ease;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 55%, calc(100% - 14px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.4rem; }
textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233, 185, 73, .14); }
input[type=file] {
    width: 100%; color: var(--muted); font-size: .85rem; background: rgba(4, 9, 20, .5);
    border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: .65rem .8rem;
}
input[type=file]::file-selector-button {
    font-family: var(--font); font-weight: 700; font-size: .8rem; margin-right: .8rem;
    background: rgba(233, 185, 73, .14); color: var(--gold-light);
    border: 1px solid rgba(233, 185, 73, .3); border-radius: 8px; padding: .4rem .8rem; cursor: pointer;
}
.hint { font-size: .78rem; color: var(--muted-2); margin: .35rem 0 0; }
.form-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.radio-row { display: flex; gap: 1.2rem; flex-wrap: wrap; padding-top: .3rem; }
.radio-row label { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; color: var(--text); text-transform: none; letter-spacing: 0; margin: 0; }
input[type=radio], input[type=checkbox] { accent-color: var(--gold); width: 16px; height: 16px; }

.panel {
    background: linear-gradient(165deg, rgba(17, 28, 55, .85), rgba(9, 15, 31, .9));
    border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
}
.panel + .panel { margin-top: 1.35rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { margin: 0; }
.panel-note { color: var(--muted); font-size: .88rem; }

.flash { border-radius: var(--radius-sm); padding: .85rem 1.1rem; margin-bottom: 1.1rem; font-size: .9rem; border: 1px solid; }
.flash-ok { background: rgba(69, 192, 138, .1); border-color: rgba(69, 192, 138, .32); color: #A7EFCE; }
.flash-err { background: rgba(240, 115, 107, .1); border-color: rgba(240, 115, 107, .35); color: #FFC0BB; }

.toolbar { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-bottom: 1.2rem; }
.toolbar form { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { width: auto; min-width: 170px; }

.empty { text-align: center; padding: 2.6rem 1.5rem; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty strong { display: block; color: var(--text); margin-bottom: .3rem; }

/* ---------- Halaman hero kecil ---------- */
.page-hero { padding: clamp(2.4rem, 5vw, 4rem) 0 2rem; border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent 55%); }

/* ---------- Detail klub / pengkab ---------- */
.detail-head { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.detail-logo { width: 108px; height: 108px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(233, 185, 73, .3); background: var(--navy-800); display: grid; place-items: center; flex: 0 0 auto; }
.detail-logo img { width: 100%; height: 100%; object-fit: contain; padding: .4rem; }
.detail-logo .ph { min-height: 0; height: 100%; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.5rem; margin: 0; }
.kv dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: .15rem; }
.kv dd { margin: 0; font-size: .95rem; }
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.media-tile { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(6, 11, 22, .6); }
.media-tile .cap { padding: .6rem .8rem; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.media-tile img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.athlete-card { display: flex; gap: .9rem; align-items: center; }
.athlete-card .avatar-square { width: 62px; flex: 0 0 auto; }
.athlete-card strong { display: block; font-size: .95rem; }

.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.tabs a {
    padding: .5rem 1.1rem; border-radius: 999px; font-size: .85rem; font-weight: 700;
    border: 1px solid var(--line-strong); color: var(--muted); background: rgba(255, 255, 255, .02);
}
.tabs a.active { background: var(--gold-soft); border-color: rgba(233, 185, 73, .4); color: var(--gold-light); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(5, 8, 15, .7); padding: 3rem 0 1.6rem; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-grid a { display: block; color: var(--muted); font-size: .9rem; padding: .22rem 0; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-note { margin-top: 1rem; font-size: .87rem; max-width: 46ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 2.4rem; padding-top: 1.3rem; font-size: .8rem; color: var(--muted-2); }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 2rem; position: relative; z-index: 1; }
.login-card { width: min(440px, 100%); max-width: 100%; min-width: 0; padding: 2.2rem; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(165deg, rgba(19, 31, 60, .96), rgba(8, 14, 29, .97)); box-shadow: var(--shadow); }
.login-card .brand { margin-bottom: 1.6rem; }
.login-card h1 { font-size: 1.6rem; margin-bottom: .35rem; }
.login-card .hint { margin-bottom: 1.4rem; }

/* ---------- Admin ---------- */
body.admin {
    background-color: var(--bg-base);
    background-image:
        linear-gradient(180deg, var(--bg-tint-top-admin), var(--bg-tint-bottom-admin)),
        var(--bg-image),
        radial-gradient(900px 600px at 90% -10%, rgba(233, 185, 73, .08), transparent 60%),
        radial-gradient(800px 600px at 0% 100%, rgba(37, 74, 160, .2), transparent 60%);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover, cover, auto, auto;
    background-attachment: scroll, fixed, scroll, scroll;
}
.admin-shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(10, 18, 38, .96), rgba(5, 9, 19, .98));
    padding: 1.6rem 1.1rem;
    display: flex; flex-direction: column; gap: 1.4rem;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-role { display: flex; flex-direction: column; gap: .35rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.sidebar-role strong { font-size: .92rem; }
.sidebar-role small { color: var(--muted-2); font-size: .78rem; }
.sidebar-role .badge { align-self: flex-start; margin-bottom: .2rem; }
.sidebar-nav { display: flex; flex-direction: column; gap: .22rem; }
.sidebar-nav a, .sidebar-foot a {
    display: flex; align-items: center; gap: .7rem; padding: .62rem .8rem;
    border-radius: 11px; color: var(--muted); font-size: .89rem; font-weight: 600;
    border: 1px solid transparent;
}
.sidebar-nav a:hover, .sidebar-foot a:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.sidebar-nav a.active { background: var(--gold-soft); border-color: rgba(233, 185, 73, .3); color: var(--gold-light); }
.sidebar-nav a .ico, .sidebar-foot a .ico { width: 18px; text-align: center; color: var(--gold); font-size: .9rem; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: .15rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.admin-main { display: flex; flex-direction: column; min-width: 0; }
.admin-body, .panel, .table-wrap, .split { min-width: 0; }
.admin-topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: 1.6rem clamp(1.2rem, 3vw, 2.4rem); border-bottom: 1px solid var(--line);
    background: rgba(6, 11, 23, .55); backdrop-filter: blur(12px);
}
.admin-topbar h1 { font-size: 1.5rem; margin: 0; }
.admin-topbar .eyebrow { margin-bottom: .25rem; }
.admin-body { padding: clamp(1.2rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: 1.2rem; }

.stat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.stat-card {
    border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem;
    background: linear-gradient(160deg, rgba(19, 31, 60, .8), rgba(9, 15, 31, .85));
    position: relative; overflow: hidden;
}
.stat-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 185, 73, .14), transparent 70%); }
.stat-card .label { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.stat-card strong { display: block; font-size: 2rem; line-height: 1.2; margin-top: .3rem; letter-spacing: -.02em; }
.stat-card a { font-size: .8rem; color: var(--gold-light); }

.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.2rem; align-items: start; }
.thumb { width: 56px; height: 42px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.row-actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.row-actions a, .row-actions button {
    font-size: .78rem; font-weight: 700; padding: .3rem .65rem; border-radius: 8px;
    border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--text); cursor: pointer; font-family: var(--font);
}
.row-actions a:hover, .row-actions button:hover { border-color: var(--gold); color: var(--gold-light); }
.row-actions .danger { border-color: rgba(240, 115, 107, .35); color: #FFA8A2; }
.inline-form { display: inline; }

.subhead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.subhead h3 { margin: 0; font-size: 1.02rem; }
.divider { height: 1px; background: var(--line); margin: 1.4rem 0; border: 0; }

.pengurus-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: .6rem; margin-bottom: .6rem; align-items: center; }
.filter-bar { display: flex; gap: .7rem; flex-wrap: wrap; align-items: flex-end; }
.filter-bar .field { min-width: 180px; }
.filter-bar .field label { margin-bottom: .3rem; }

.pending-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    border: 1px solid rgba(233, 185, 73, .3); background: var(--gold-soft);
    border-radius: var(--radius); padding: 1rem 1.3rem;
}
.pending-banner p { margin: 0; color: var(--gold-light); font-size: .92rem; }

/* ---------- Responsif ---------- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .profile-card { grid-template-columns: 240px 1fr; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: 1fr; }
    .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .nav-burger { display: flex; flex-direction: column; gap: 4px; padding: .6rem; cursor: pointer; border: 1px solid var(--line-strong); border-radius: 10px; }
    .nav-burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
    .nav-links {
        position: absolute; left: 0; right: 0; top: 76px;
        flex-direction: column; align-items: stretch; gap: .1rem;
        background: rgba(7, 13, 27, .98); border-bottom: 1px solid var(--line);
        padding: .8rem 1.2rem 1.2rem; display: none;
    }
    .nav-links a { padding: .7rem .6rem; }
    .brand-text strong { font-size: .95rem; letter-spacing: .1em; }
    .brand-text span { font-size: .66rem; letter-spacing: .1em; }
    .topbar-inner { gap: .5rem; }
    .brand { max-width: calc(100% - 60px); }
    .nav-links a.btn { margin-top: .5rem; }
    .nav-links a.active::after { display: none; }
    .nav-toggle:checked ~ .nav-links { display: flex; }
    .admin-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; padding: 1.1rem; gap: 1rem; }
    .sidebar-nav { flex-direction: row; flex-wrap: wrap; }
    .sidebar-nav a { font-size: .83rem; padding: .45rem .7rem; }
    .sidebar-role { flex-direction: row; align-items: center; gap: .8rem; flex-wrap: wrap; }
    .sidebar-role .badge { margin: 0; }
    .sidebar-foot { flex-direction: row; flex-wrap: wrap; gap: .3rem; }
}

@media (max-width: 720px) {
    .wrap { width: calc(100% - 32px); }
    .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
    .profile-card { grid-template-columns: 1fr; }
    .profile-photo { max-width: 240px; aspect-ratio: 1; border-radius: 50%; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); gap: .6rem; padding: 1rem; }
    .stats-strip .stat { border-right: 0; padding: .4rem 0; }
    .stats-strip strong { font-size: 1.5rem; }
    .form-grid { grid-template-columns: 1fr; }
    .kv { grid-template-columns: 1fr; }
    .media-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .stat-cards { grid-template-columns: 1fr; }
    .pengurus-row { grid-template-columns: 1fr; }
    .toolbar input, .toolbar select { min-width: 0; width: 100%; }
    .toolbar form { width: 100%; }
}

/* =========================================================
   KARTU ANGGOTA
   ========================================================= */
.member-card {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    width: 85.6mm; height: 54mm;
    border-radius: 4mm;
    background: linear-gradient(135deg, #0B1B3A 0%, #0E2A52 55%, #081126 100%);
    border: 1px solid rgba(233, 185, 73, .55);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    color: #EEF2FA;
    position: relative;
    overflow: hidden;
    padding: 3.2mm 3.6mm;
    display: flex; flex-direction: column;
    font-size: 2.5mm;
    line-height: 1.25;
}
.member-card::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(26mm 26mm at 92% 6%, rgba(233, 185, 73, .28), transparent 70%),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, .045) 0 1.2mm, transparent 1.2mm 4mm);
    pointer-events: none;
}
.member-card > * { position: relative; }
.mc-head { display: flex; align-items: center; gap: 2mm; }
.mc-head img.mc-logo { width: 8mm; height: 8mm; object-fit: contain; }
.mc-org { display: flex; flex-direction: column; line-height: 1.1; }
.mc-org strong { font-size: 2.9mm; letter-spacing: .12em; }
.mc-org span { font-size: 1.9mm; letter-spacing: .08em; color: #F7D478; text-transform: uppercase; }
.mc-title {
    margin-left: auto; font-size: 1.7mm; letter-spacing: .16em; text-transform: uppercase;
    color: #F7D478; border: .2mm solid rgba(233, 185, 73, .5); border-radius: 999px; padding: .6mm 1.8mm;
}
.mc-body { display: flex; gap: 2.6mm; margin-top: 2.2mm; flex: 1; min-height: 0; }
.mc-photo {
    width: 16mm; height: 21mm; border-radius: 1.6mm; overflow: hidden;
    border: .3mm solid rgba(233, 185, 73, .55); background: rgba(255, 255, 255, .06);
    display: grid; place-items: center; flex: 0 0 auto;
    font-size: 1.5mm; letter-spacing: .1em; color: rgba(255, 255, 255, .6); text-align: center;
}
.mc-photo img { width: 100%; height: 100%; object-fit: cover; }
.mc-fields { display: flex; flex-direction: column; gap: .8mm; min-width: 0; flex: 1; }
.mc-name { font-size: 3.4mm; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.mc-no {
    font-size: 3mm; font-weight: 800; letter-spacing: .06em; color: #F7D478;
    font-variant-numeric: tabular-nums;
}
.mc-row { display: flex; gap: 1mm; font-size: 2.1mm; }
.mc-row span { color: rgba(255, 255, 255, .58); min-width: 12mm; text-transform: uppercase; letter-spacing: .06em; font-size: 1.8mm; }
.mc-row strong { font-weight: 600; }
.mc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 2mm; margin-top: 1.4mm; }
.mc-barcode { background: #fff; border-radius: 1mm; padding: .6mm 1mm; flex: 0 1 auto; overflow: hidden; }
.mc-barcode svg { height: 5mm; width: auto; max-width: 55mm; display: block; }
.mc-verify { flex: 0 0 20mm; font-size: 1.5mm; color: rgba(255, 255, 255, .62); text-align: right; line-height: 1.25; }
.mc-verify strong { display: block; color: #F7D478; font-size: 1.8mm; letter-spacing: .02em; }
.mc-verify span { display: block; font-size: 1.4mm; }

/* Pratinjau di layar diperbesar agar mudah dibaca; ukuran cetak tetap 85,6 x 54 mm */
@media screen and (min-width: 760px) {
    .kartu-list { zoom: 1.3; }
}

.member-card-back { justify-content: flex-start; }
.mc-rules { font-size: 1.9mm; color: rgba(255, 255, 255, .78); line-height: 1.35; margin: 1.2mm 0 0; padding-left: 3mm; }
.mc-rules li { margin-bottom: .5mm; }
.mc-sign { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; font-size: 1.9mm; }
.mc-sign .sig { text-align: center; }
.mc-sign .sig span { display: block; border-top: .2mm solid rgba(255, 255, 255, .35); padding-top: .6mm; margin-top: 5mm; font-size: 1.8mm; }

.kartu-preview-wrap { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.kartu-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.4rem; }

.print-toolbar { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
@media print {
    body.public, body.admin { background: #fff !important; color: #000; }
    .topbar, .site-footer, .sidebar, .admin-topbar, .print-toolbar, .bg-ornament, .preview-only { display: none !important; }
    .wrap, .admin-shell, .admin-main, .admin-body { display: block !important; width: auto !important; padding: 0 !important; margin: 0 !important; border: 0 !important; }
    .member-card { box-shadow: none; page-break-inside: avoid; }
    .kartu-preview-wrap { gap: 6mm; }
    @page { size: A4; margin: 12mm; }
}

/* =========================================================
   PERTANDINGAN: bracket & klasemen
   ========================================================= */
.bracket-scroll { overflow-x: auto; padding-bottom: .6rem; }
.bracket { display: flex; gap: 1.1rem; align-items: stretch; min-width: max-content; }
.bracket-col { display: flex; flex-direction: column; gap: .7rem; min-width: 216px; justify-content: space-around; }
.bracket-col-title {
    font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold);
    font-weight: 700; padding-bottom: .35rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem;
}
.bracket-match {
    border: 1px solid var(--line); border-radius: 10px; background: rgba(10, 18, 38, .72);
    padding: .45rem .6rem; font-size: .82rem; display: flex; flex-direction: column; gap: .2rem;
}
.bracket-match.done { border-color: rgba(69, 192, 138, .3); }
.bracket-match.live { border-color: rgba(233, 185, 73, .45); background: rgba(233, 185, 73, .07); }
.bm-row { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.bm-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-row.win .nm { font-weight: 800; color: var(--gold-light); }
.bm-row .sc { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); min-width: 1.2rem; text-align: right; }
.bm-meta { font-size: .68rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.bm-meta .bm-no { color: var(--gold-light); }

.laga-group { margin-bottom: 1.6rem; }
.laga-group h4 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.laga-row {
    display: grid; grid-template-columns: auto 1fr auto 1fr auto; gap: .8rem; align-items: center;
}
.laga-row:not(:has(.laga-no)) { grid-template-columns: 1fr auto 1fr auto; }
.laga-row {
    padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px;
    background: rgba(10, 18, 38, .5); margin-bottom: .5rem; font-size: .88rem;
}
.laga-row .laga-no {
    font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    color: var(--gold-light); background: var(--gold-soft); border: 1px solid rgba(233, 185, 73, .3);
    border-radius: 8px; padding: .2rem .5rem; white-space: nowrap;
}
.laga-row .t1 { text-align: right; }
.laga-row .t2 { text-align: left; }
.laga-row .t1.win, .laga-row .t2.win { color: var(--gold-light); font-weight: 700; }
.laga-row .vs { font-size: .7rem; color: var(--muted-2); letter-spacing: .1em; text-transform: uppercase; }
.laga-row .sets { grid-column: 1 / -1; font-size: .74rem; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.laga-skor-form { display: flex; gap: .35rem; align-items: center; }
.laga-skor-form input[type=text] {
    width: 132px; padding: .3rem .5rem; font-size: .78rem; border-radius: 8px;
}
.laga-skor-form button { padding: .3rem .6rem; font-size: .74rem; }

.juara-strip {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.4rem;
}
.juara-strip .j {
    border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem;
    background: linear-gradient(160deg, rgba(19, 31, 60, .85), rgba(9, 15, 31, .9));
}
.juara-strip .j span { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.juara-strip .j strong { display: block; font-size: 1.1rem; margin-top: .2rem; }
.juara-strip .j.gold { border-color: rgba(233, 185, 73, .45); background: var(--gold-soft); }
.juara-strip .j.gold strong { color: var(--gold-light); }

.isian-sistem { display: grid; gap: .8rem; }
.sistem-opsi {
    display: flex; gap: .8rem; align-items: flex-start; padding: .85rem 1rem;
    border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255, 255, 255, .02); cursor: pointer;
}
.sistem-opsi:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.sistem-opsi input { margin-top: .25rem; }
.sistem-opsi strong { display: block; font-size: .93rem; }
.sistem-opsi small { color: var(--muted); font-size: .8rem; }

@media (max-width: 720px) {
    .laga-row { grid-template-columns: 1fr; text-align: left; }
    .laga-row .laga-no { justify-self: start; }
    .laga-row .t1, .laga-row .t2 { text-align: left; }
    .juara-strip { grid-template-columns: 1fr; }
    .kartu-list { grid-template-columns: 1fr; }
}

/* =========================================================
   POOL, LOGO PESERTA & KLASEMEN FORMAT BUKU PERTANDINGAN
   ========================================================= */
.logo-chip {
    border-radius: 5px; object-fit: contain; background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(255, 255, 255, .18); flex: 0 0 auto; padding: 1px;
}
.logo-chip-text {
    display: inline-grid; place-items: center; font-weight: 800; letter-spacing: .02em;
    background: rgba(233, 185, 73, .16); color: var(--gold-light); text-transform: uppercase;
    border-radius: 5px; border: 1px solid rgba(233, 185, 73, .3);
}
.team-cell { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.team-cell strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bm-team { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; }
.bm-row .bm-team .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tabel-klasemen { font-size: .82rem; }
.tabel-klasemen th, .tabel-klasemen td { padding: .55rem .6rem; white-space: nowrap; }
.tabel-klasemen td:first-child, .tabel-klasemen th:first-child { padding-left: .8rem; }
.tabel-klasemen th { font-size: .62rem; letter-spacing: .04em; line-height: 1.25; max-width: 88px; white-space: normal; }

.pool-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pool-badge {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    font-weight: 800; font-size: 1.1rem; color: var(--gold-light);
    background: var(--gold-soft); border: 1px solid rgba(233, 185, 73, .35);
}
.peserta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .8rem; }
.peserta-chip {
    display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem;
    border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 18, 38, .6);
}
.peserta-chip .meta { min-width: 0; }
.peserta-chip .meta strong { display: block; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peserta-chip .meta small { color: var(--muted-2); font-size: .72rem; }

.pool-assign { display: flex; gap: .35rem; align-items: center; }
.pool-assign select { padding: .3rem .5rem; font-size: .78rem; border-radius: 8px; width: 74px; }
.pool-assign input[type=number] { padding: .3rem .45rem; font-size: .78rem; border-radius: 8px; width: 62px; }
.pool-assign button { padding: .3rem .55rem; font-size: .74rem; }

@media (max-width: 720px) {
    .tabel-klasemen { font-size: .76rem; }
    .peserta-grid { grid-template-columns: 1fr; }
}

.logo-chip-wrap {
    position: relative; display: inline-grid; place-items: center; overflow: hidden;
    border-radius: 5px; border: 1px solid rgba(233, 185, 73, .3); background: rgba(233, 185, 73, .14);
    color: var(--gold-light); font-weight: 800; flex: 0 0 auto; text-transform: uppercase;
}
.logo-chip-wrap .chip-initial { line-height: 1; }
.logo-chip-wrap img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
    background: #fff; padding: 1px; border-radius: 4px;
}
.tabel-ringkas th, .tabel-ringkas td { padding: .45rem .55rem; font-size: .8rem; }
.tabel-ringkas th { white-space: nowrap; }

/* =========================================================
   JADWAL PERTANDINGAN & INPUT POOL
   ========================================================= */
.pool-input-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.pool-input textarea { min-height: 96px; font-size: .85rem; }
.pool-input label { color: var(--gold); }

.tabel-jadwal-admin td { vertical-align: middle; }
.tabel-jadwal-admin input[type=number], .tabel-jadwal-admin input[type=date],
.tabel-jadwal-admin input[type=time], .tabel-jadwal-admin input[type=text] {
    padding: .4rem .5rem; font-size: .82rem; border-radius: 8px;
}
.tabel-jadwal-admin tr.baris-grup td {
    background: rgba(233, 185, 73, .08); color: var(--gold-light);
    font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
    padding: .45rem .8rem;
}

.jadwal-table td { font-size: .85rem; vertical-align: top; }
.jadwal-table .waktu { font-variant-numeric: tabular-nums; white-space: nowrap; }
.jadwal-table .lap { white-space: nowrap; color: var(--muted); }
.jadwal-table .vs-cell { text-align: center; color: var(--muted-2); font-size: .72rem; text-transform: uppercase; }
.jadwal-table .skor { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--gold-light); white-space: nowrap; }
.hari-pisah td {
    background: rgba(255, 255, 255, .04); font-weight: 800; font-size: .8rem;
    letter-spacing: .06em; text-transform: uppercase; color: var(--gold-light);
}
.babak-tag {
    display: inline-block; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
    color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: .1rem .5rem;
}

@media (max-width: 900px) {
    .pool-input-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .pool-input-grid { grid-template-columns: 1fr; }
}

.upload-note {
    display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
    margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line);
    font-size: .82rem; color: var(--muted);
}
.upload-note .badge { font-size: .66rem; }

/* KTA: tulisan manual halaman belakang */
.mc-catatan {
    margin-top: 2mm; font-size: 2mm; line-height: 1.45; color: rgba(255, 255, 255, .88);
    border-top: .2mm solid rgba(233, 185, 73, .35); padding-top: 1.4mm;
    white-space: pre-line; overflow: hidden;
}

/* Admin KTA: pratinjau kartu */
.kta-layout { display: grid; grid-template-columns: 1.25fr .9fr; gap: 1.6rem; align-items: start; }
.kta-preview-box {
    margin-top: .4rem; padding: 1rem; border: 1px dashed var(--line-strong); border-radius: 14px;
    background: rgba(4, 9, 20, .5); display: grid; place-items: center;
}
.kta-preview { transform: scale(1.2); transform-origin: center; margin: 1rem 0 1.2rem; }
.kta-preview-box { overflow: hidden; }
.cek-hapus {
    display: inline-flex; align-items: center; gap: .4rem; margin-top: .45rem;
    text-transform: none; letter-spacing: 0; font-size: .82rem; color: var(--text); font-weight: 500;
}
@media (max-width: 1024px) {
    .kta-layout { grid-template-columns: 1fr; }
    .kta-preview { transform: scale(1.05); }
}
@media (max-width: 560px) {
    .kta-preview { transform: scale(.85); margin: .8rem 0 1.1rem; }
    .kta-preview-box { padding: .7rem .4rem; }
}

.sistem-ringkas {
    display: flex; gap: .7rem; align-items: flex-start; flex-wrap: wrap;
    border: 1px solid rgba(233, 185, 73, .28); background: var(--gold-soft);
    border-radius: 12px; padding: .75rem .9rem;
}
.sistem-ringkas p { margin: 0; font-size: .85rem; color: var(--text); flex: 1; min-width: 200px; }

/* Input manual peserta babak lanjutan & WO */
.laga-manual-form {
    grid-column: 1 / -1; display: flex; gap: .45rem; flex-wrap: wrap; align-items: center;
    padding-top: .45rem; border-top: 1px dashed var(--line);
}
.laga-manual-form select { padding: .28rem .45rem; font-size: .76rem; border-radius: 8px; min-width: 130px; width: auto; }
.laga-manual-form .manual-tag {
    font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800;
    color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: .1rem .45rem;
}
.laga-manual-form .vs { font-size: .68rem; color: var(--muted-2); }
.laga-skor-form select { width: auto; padding: .3rem .4rem; font-size: .72rem; border-radius: 8px; }
