/* =========================================================================
   Panel Panitia DFL — melengkapi style.css
   ========================================================================= */

.admin-shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }

/* ------------------------------------------------------------- sidebar --- */
.aside {
  background: linear-gradient(180deg, var(--navy-850), #04101f);
  border-right: 1px solid var(--line);
  padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.aside__brand { display: flex; align-items: center; gap: 11px; padding: 0 6px 20px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.aside__brand img { width: 40px; height: 40px; }
.aside__brand .n { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .05em; }
.aside__brand .s { font-size: .58rem; letter-spacing: .2em; color: var(--sky); font-weight: 800; text-transform: uppercase; }

.aside__group {
  font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
  color: #5d769c; font-weight: 800; padding: 16px 10px 7px;
}

.aside__link {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px;
  font-size: .87rem; font-weight: 600; color: #b7c8e4; transition: .2s; margin-bottom: 2px;
}
.aside__link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.aside__link.is-active { background: linear-gradient(135deg, rgba(56, 189, 248, .22), rgba(56, 189, 248, .05)); color: #fff; box-shadow: inset 2px 0 0 var(--sky); }
.aside__link .ic { width: 20px; text-align: center; flex: none; }
.aside__link .cnt {
  margin-left: auto; background: var(--orange); color: #2a1000; font-size: .65rem; font-weight: 800;
  padding: 1px 7px; border-radius: 999px;
}

/* --------------------------------------------------------------- main --- */
.amain { min-width: 0; }
.atop {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  padding: 14px 26px; background: rgba(5, 15, 36, .9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.atop h1 { font-size: 1.35rem; }
.atop__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.who { text-align: right; line-height: 1.25; }
.who .n { font-weight: 700; font-size: .85rem; }
.who .r { font-size: .68rem; color: var(--sky); text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.avatar-i {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sky), var(--sky-600)); color: #041226; font-weight: 800;
}
.abody { padding: 26px; }

.aburger { display: none; width: 40px; height: 40px; border-radius: 11px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-strong); cursor: pointer; }

@media (max-width: 980px) {
  .admin-shell { grid-template-columns: 1fr; }
  .aside {
    position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 60;
    transform: translateX(-100%); transition: transform .3s ease;
  }
  .aside.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .6); }
  .aburger { display: grid; place-items: center; }
  .abody { padding: 18px; }
}

/* ---------------------------------------------------------- komponen --- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.kpi { padding: 18px 20px; border-radius: 14px; background: linear-gradient(155deg, var(--navy-800), var(--navy-850)); border: 1px solid var(--line); }
.kpi .l { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.kpi .n { font-family: var(--font-display); font-size: 2rem; line-height: 1.1; margin-top: 6px; }
.kpi .d { font-size: .74rem; color: var(--muted); margin-top: 2px; }
.kpi--sky .n { color: var(--sky); }
.kpi--gold .n { color: var(--gold); }
.kpi--green .n { color: var(--green); }
.kpi--red .n { color: var(--red); }

.panel { background: linear-gradient(160deg, var(--navy-800), var(--navy-850)); border: 1px solid var(--line); border-radius: var(--radius); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel__head h2, .panel__head h3 { font-size: 1.05rem; }
.panel__body { padding: 20px; }

.atable { font-size: .86rem; }
.atable thead th { position: sticky; top: 0; z-index: 1; }
.atable td .row { gap: 8px; }
.atable .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

.iconbtn {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-strong); font-size: .85rem; transition: .2s;
}
.iconbtn:hover { background: rgba(56, 189, 248, .18); border-color: var(--sky); }
.iconbtn--danger:hover { background: rgba(239, 68, 68, .2); border-color: var(--red); }

/* skor cepat */
.scorebox { display: flex; align-items: center; gap: 6px; }
.scorebox input {
  width: 52px; text-align: center; padding: 7px 4px; border-radius: 9px; font-weight: 800;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line-strong); color: #fff;
  font-family: var(--font-display); font-size: 1.05rem;
}
.scorebox input:focus { outline: none; border-color: var(--sky); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab {
  padding: 10px 16px; font-size: .85rem; font-weight: 700; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .2s;
}
.tab:hover { color: #fff; }
.tab.is-active { color: #fff; border-bottom-color: var(--sky); }

/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.login-wrap::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(700px 500px at 75% 15%, rgba(56, 189, 248, .25), transparent 60%),
              radial-gradient(500px 400px at 20% 85%, rgba(249, 115, 22, .15), transparent 60%),
              linear-gradient(160deg, #071630, var(--navy-900));
}
.login-card {
  position: relative; z-index: 1; width: min(100%, 420px); padding: 36px;
  background: rgba(11, 29, 61, .9); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.login-card img { width: 66px; margin: 0 auto 16px; }

.help-note { font-size: .78rem; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px dashed var(--line-strong); padding: 12px 14px; border-radius: 11px; }

/* =========================================================================
   MEJA PERTANDINGAN — layar skoring digital (console-match.php)
   Layar penuh, kontras tinggi, target sentuh besar untuk dipakai di lapangan.
   ========================================================================= */

.console-body { background: radial-gradient(1200px 700px at 50% -10%, #0d2a52, var(--navy-900) 60%); min-height: 100vh; }
.console-body.is-live { background: radial-gradient(1200px 700px at 50% -10%, #3a1220, var(--navy-900) 62%); }

/* Kerangka satu layar: papan skor, tombol kejadian, dan tombol status wajib
   muat tanpa digulir. Ukurannya ikut tinggi layar (vh) — di laptop pendek
   semuanya mengecil bersama, bukan memanjang ke bawah. Riwayat kejadian ada
   di luar kerangka ini, jadi memang perlu digulir. */
.console-shell {
  display: flex; flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
.console-shell > .console-main { flex: 1 1 auto; }

/* Pita utama: tim tuan rumah | papan skor | tim tamu.
   Tombol kejadian ikut ke dalam kolom timnya, jadi lebar layar yang selama ini
   menganggur di kiri-kanan papan skor dipakai — dan tinggi halaman berkurang
   sebanyak tinggi panel tombol yang dulu berdiri sendiri di bawah. */
.console-main {
  display: grid; grid-template-columns: 1fr minmax(230px, auto) 1fr;
  align-items: start; align-content: center; gap: clamp(10px, 1.6vw, 24px);
  padding: clamp(8px, 1.4vh, 22px) clamp(14px, 3vw, 40px);
  width: 100%; max-width: 1500px; margin-inline: auto;
}
.console-col { display: flex; flex-direction: column; gap: clamp(8px, 1.4vh, 16px); min-width: 0; }
.console-main > .sb-center { align-self: center; }

/* Penyesuaian layar sempit ada di bawah, setelah aturan dasar .sb-* dan
   .bigbtn — kalau ditaruh di sini ia justru tertimpa aturan yang menyusul. */

.console-top {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: clamp(6px, 1.2vh, 12px) 20px; border-bottom: 1px solid var(--line);
  background: rgba(5, 15, 36, .75); backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 30;
}
.console-top__info { font-size: .82rem; color: #c4d3ec; flex: 1; min-width: 0; }
.console-top__right { display: flex; align-items: center; gap: 10px; }

/* ------------------------------------------------------------ papan skor */
.sb-team { display: flex; flex-direction: column; align-items: center; gap: clamp(4px, 1vh, 12px); text-align: center; min-width: 0; }
.sb-team img {
  width: clamp(40px, min(7vw, 9vh), 104px); height: clamp(40px, min(7vw, 9vh), 104px);
  object-fit: contain; border-radius: 22px; background: rgba(255, 255, 255, .06);
  padding: clamp(4px, .8vh, 8px); border: 1px solid var(--line-strong);
}
.sb-team__name {
  font-family: var(--font-display); font-size: clamp(1rem, min(2.4vw, 3.2vh), 2rem);
  line-height: 1.1; letter-spacing: .02em; overflow-wrap: anywhere;
}

.sb-center { text-align: center; min-width: min(100%, 260px); }
.sb-score {
  font-family: var(--font-display); font-variant-numeric: tabular-nums;
  font-size: clamp(2.4rem, min(11vw, 15vh), 8rem); line-height: .95; letter-spacing: .02em;
  display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 22px);
}
.sb-score__sep { color: var(--muted); font-size: .6em; }
.sb-score span { transition: transform .18s ease, color .18s ease; }

.sb-clock {
  font-family: var(--font-display); font-size: clamp(1.15rem, min(3.6vw, 4.6vh), 2.4rem);
  font-variant-numeric: tabular-nums; color: var(--muted); margin-top: clamp(2px, .5vh, 4px);
  letter-spacing: .06em;
}
.sb-clock.is-running { color: var(--sky); }

.sb-period { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: clamp(6px, 1.2vh, 12px); }
.sb-period .input { width: auto; padding: 7px 30px 7px 12px; font-size: .82rem; }
.sb-status { margin-top: clamp(6px, 1.2vh, 12px); }


/* --------------------------------------------------------- tombol aksi */
.console-side {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-850));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(8px, 1.3vh, 18px);
}
.console-side__row { display: flex; gap: 10px; margin-top: clamp(5px, .9vh, 10px); }
.console-side__row .bigbtn { flex: 1; }

.bigbtn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: clamp(9px, 1.5vh, 18px) 16px;
  border: 1px solid var(--line-strong); border-radius: 16px;
  background: rgba(255, 255, 255, .05); color: var(--text); cursor: pointer;
  font-weight: 800; font-size: clamp(.86rem, 1.9vh, 1rem); letter-spacing: .03em;
  transition: transform .12s ease, background .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.bigbtn:hover { background: rgba(255, 255, 255, .1); }
.bigbtn:active { transform: scale(.97); }
.bigbtn .ic { font-size: clamp(1.05rem, 2.6vh, 1.5rem); }
.bigbtn--goal {
  padding: clamp(11px, 2.2vh, 26px) 16px; font-size: clamp(1rem, 2.6vh, 1.5rem);
  font-family: var(--font-display); letter-spacing: .08em;
  background: linear-gradient(135deg, var(--sky), var(--sky-600)); color: #041226; border-color: transparent;
  box-shadow: 0 14px 34px -14px var(--sky-glow);
}
.bigbtn--yellow { background: rgba(242, 181, 68, .16); border-color: rgba(242, 181, 68, .45); color: #fde68a; }
.bigbtn--red    { background: rgba(239, 68, 68, .16);  border-color: rgba(239, 68, 68, .45);  color: #fca5a5; }
.bigbtn--ghost  { font-size: clamp(.8rem, 1.7vh, .88rem); padding: clamp(8px, 1.4vh, 13px) 12px; }

.console-adjust { align-items: center; justify-content: flex-end; gap: 8px; margin-top: clamp(8px, 1.4vh, 14px); }

/* Tablet: tiga kolom dipertahankan selama masih cukup lebar. Ditumpuk justru
   membuat semuanya tidak muat — dua panel tombol berdiri sendiri-sendiri jauh
   lebih tinggi daripada berdampingan. */
@media (max-width: 900px) {
  .console-main { grid-template-columns: 1fr minmax(168px, auto) 1fr; gap: 9px; padding-inline: 10px; }
  .sb-team__name { font-size: clamp(.95rem, 2.4vw, 1.3rem); }
  .bigbtn { font-size: .82rem; gap: 6px; padding-inline: 8px; }
  .bigbtn--goal { font-size: 1.05rem; }
  .console-side { padding: 10px 9px; }
  .console-adjust .tiny { display: none; }   /* "Koreksi skor" — ikonnya sudah jelas */
}

/* Ponsel: barulah ditumpuk, papan skor naik ke atas. Sekali ditumpuk ketiga
   blok berbagi tinggi layar yang sama, jadi ukurannya tidak boleh lagi ikut
   tinggi layar (vh) — akan saling mendorong keluar. Di sini memang perlu
   digulir; ponsel bukan meja pertandingan. */
@media (max-width: 720px) {
  .console-main { grid-template-columns: 1fr; }
  .console-main > .sb-center { order: -1; }

  /* Keterangan laga turun ke barisnya sendiri; dijepit di antara tombol
     kembali dan dua lencana, ia menyempit sampai satu kata per baris. */
  .console-top { gap: 8px 10px; }
  .console-top__info { order: 3; flex: 1 0 100%; font-size: .74rem; }

  .sb-score { font-size: clamp(2.4rem, 12vw, 4.4rem); }
  .sb-clock { font-size: clamp(1.15rem, 5vw, 1.8rem); }
  .sb-team img { width: clamp(40px, 9vw, 62px); height: clamp(40px, 9vw, 62px); }
  .sb-team__name { font-size: clamp(1rem, 3.6vw, 1.5rem); }
  .bigbtn { padding: clamp(9px, 1.8vw, 15px) 16px; }
  .bigbtn--goal { padding: clamp(12px, 2.4vw, 20px) 16px; font-size: clamp(1rem, 3.4vw, 1.3rem); }
}

/* ----------------------------------------------------------- status laga */
.console-status {
  display: flex; gap: clamp(7px, 1.2vw, 12px); flex-wrap: wrap; justify-content: center; align-items: center;
  padding: clamp(8px, 1.4vh, 22px) clamp(14px, 3vw, 40px);
  width: 100%; max-width: 1400px; margin-inline: auto;
}
/* Tombol status ikut mengecil di layar pendek supaya tetap sebaris — empat
   tombol yang membungkus jadi dua baris memakan tinggi yang tidak ada. */
.console-status .btn {
  padding: clamp(8px, 1.4vh, 13px) clamp(13px, 1.8vw, 26px);
  font-size: clamp(.76rem, 1.6vh, .92rem);
}
/* Riwayat sengaja di bawah lipatan; tautan ini yang memberitahu bahwa ia ada. */
.console-status__feed {
  font-size: .78rem; color: var(--muted); text-decoration: none;
  border-bottom: 1px dotted var(--line-strong); padding-bottom: 2px;
}
.console-status__feed:hover { color: var(--sky); border-color: var(--sky); }

/* -------------------------------------------------------------- riwayat */
.console-feed {
  max-width: 1000px; margin: 0 auto 60px; padding: clamp(18px, 3vh, 30px) clamp(16px, 4vw, 40px) 0;
  border-top: 1px solid var(--line); scroll-margin-top: 64px;
}
.feed-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .03);
}
.feed-item--away { flex-direction: row-reverse; text-align: right; }
.feed-item__min {
  font-family: var(--font-display); font-size: 1rem; min-width: 44px; text-align: center;
  color: var(--gold); font-variant-numeric: tabular-nums;
}
.feed-item__ic { font-size: 1.3rem; flex: none; }
.feed-item__body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feed-item__body b { font-size: .92rem; }

/* -------------------------------------------------------- pemilih pemain */
.picker {
  position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(3, 9, 22, .82); backdrop-filter: blur(6px); padding: 0;
}
.picker[hidden] { display: none; }
.picker__box {
  width: min(100%, 900px); max-height: 88vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-850));
  border: 1px solid var(--line-strong); border-radius: 24px 24px 0 0; padding: 22px;
  animation: pickerUp .22s ease;
}
@keyframes pickerUp { from { transform: translateY(30px); opacity: 0; } }
@media (min-width: 720px) {
  .picker { align-items: center; padding: 24px; }
  .picker__box { border-radius: 24px; }
}
.picker__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.picker__minute { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.picker__minute .input { width: 220px; }
.picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }

.playerbtn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 14px; border-radius: 14px; cursor: pointer; text-align: left;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-strong); color: var(--text);
  transition: transform .12s ease, background .18s, border-color .18s;
}
.playerbtn:hover { background: rgba(56, 189, 248, .16); border-color: var(--sky); }
.playerbtn:active { transform: scale(.96); }
.playerbtn__no { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); line-height: 1; }
.playerbtn__nm { font-weight: 700; font-size: .88rem; line-height: 1.2; }
.playerbtn__ps { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* panel laga yang sedang berlangsung pada daftar meja pertandingan */
.is-live-panel { border-color: rgba(239, 68, 68, .45); box-shadow: 0 0 0 1px rgba(239, 68, 68, .15); }

.console-pick { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.console-pick__side { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.console-pick__side img { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; background: rgba(255, 255, 255, .05); padding: 4px; }
.console-pick__side span { font-size: .82rem; font-weight: 700; overflow-wrap: anywhere; }
.console-pick__score { font-family: var(--font-display); font-size: 1.7rem; font-variant-numeric: tabular-nums; }

/* ------------------------------------------- screening / check-in laga --- */
.checkin-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .028);
  transition: .2s;
}
.checkin-row:hover { border-color: rgba(56, 189, 248, .45); background: rgba(56, 189, 248, .06); }
.checkin-row.is-open { border-color: var(--sky); background: rgba(56, 189, 248, .1); }
.checkin-row__time { text-align: center; min-width: 62px; flex: none; }

.jersey-chip {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; flex: 1;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 12px;
}
.jersey-chip__dot {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  border: 2px solid rgba(255, 255, 255, .35); box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

/* papan skor: keterangan warna jersey */
.sb-jersey { display: flex; align-items: center; gap: 5px; justify-content: center; flex-wrap: wrap; font-size: .74rem; color: var(--muted); }
.sb-jersey__dot {
  width: 15px; height: 15px; border-radius: 5px; display: inline-block;
  border: 2px solid rgba(255, 255, 255, .4);
}
/* pemisah antara seragam pemain dan seragam kiper */
.sb-jersey__sep { opacity: .5; margin: 0 2px; }

/* gerbang: laga belum boleh dimulai */
.console-gate {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(8px, 1.5vw, 16px); flex-wrap: wrap;
  width: 100%; max-width: 1400px; margin: clamp(6px, 1.2vh, 16px) auto 0;
  padding: clamp(8px, 1.3vh, 16px) clamp(12px, 2vw, 20px);
  background: rgba(242, 181, 68, .12); border: 1px solid rgba(242, 181, 68, .45);
  border-radius: 14px; font-size: clamp(.76rem, 1.6vh, .88rem);
}
.console-gate .btn { padding: clamp(8px, 1.4vh, 13px) clamp(14px, 2vw, 26px); font-size: clamp(.78rem, 1.6vh, .92rem); }
.console-status .btn:disabled { opacity: .45; cursor: not-allowed; }

/* penanda peran pemain pada pemilih */
.playerbtn--starter { border-color: rgba(34, 197, 94, .5); background: rgba(34, 197, 94, .1); }
.playerbtn--bench   { opacity: .78; }

/* ------------------------------------------ baris editor Halaman Tentang --- */
/* Sebelumnya memakai .between + .actions yang boleh membungkus, sehingga di
   kolom sempit tombolnya menumpuk vertikal. Tata letak khusus ini menjaga
   tombol tetap sebaris. */
.about-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 12px;
  padding: 11px 13px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  transition: border-color .2s, background .2s;
}
.about-row:hover { border-color: rgba(56, 189, 248, .35); background: rgba(56, 189, 248, .05); }
.about-row.is-off { opacity: .45; }

.about-row__icon { font-size: 1.35rem; width: 30px; text-align: center; line-height: 1; }
.about-row__title { font-weight: 700; font-size: .88rem; line-height: 1.3; }
.about-row__meta { font-size: .7rem; color: var(--gold); font-weight: 800; margin-bottom: 2px; }
.about-row__desc {
  font-size: .73rem; color: var(--muted); line-height: 1.45; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.about-row__act { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; }
/* form satu tombol tidak boleh membentuk kotak tersendiri di dalam baris tombol */
.about-row__act form { display: contents; }
.about-row__act .iconbtn { width: 30px; height: 30px; font-size: .8rem; }
.about-row__act .iconbtn:disabled { opacity: .3; cursor: not-allowed; }

@media (max-width: 620px) {
  .about-row { grid-template-columns: auto minmax(0, 1fr); }
  .about-row__act { grid-column: 1 / -1; justify-content: flex-end; padding-top: 4px; }
}

/* Kotak ringkasan pembayaran pada kartu pendaftaran */
.pay-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .03);
}
.pay-box .progress { height: 7px; }

/* ============================================================ BUKU KAS */
.kas-row {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.kas-row:last-child { border-bottom: 0; }
.kas-row > div:nth-child(2) { flex: 1; }

.kas-row__tanda {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 800; font-size: 1rem;
}
.kas-row__tanda.is-in  { background: rgba(34, 197, 94, .14); color: #86efac; }
.kas-row__tanda.is-out { background: rgba(239, 68, 68, .14); color: #fca5a5; }

.kas-row__judul { font-weight: 700; font-size: .9rem; line-height: 1.4; }
.kas-row__meta  { color: var(--muted); font-size: .74rem; line-height: 1.55; margin-top: 2px; }
.kas-row__nominal { font-weight: 800; font-size: .95rem; white-space: nowrap; }

/* pilihan dua tombol: pengeluaran / pemasukan */
.seg { display: flex; gap: 8px; }
.seg__opt { flex: 1; cursor: pointer; }
.seg__opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg__opt span {
  display: block; text-align: center; padding: 10px 8px; border-radius: 11px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04);
  font-weight: 700; font-size: .82rem; transition: .18s;
}
.seg__opt input:checked + span { border-color: var(--sky); background: rgba(56, 189, 248, .14); color: var(--sky); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }

@media (max-width: 560px) {
  .kas-row { flex-wrap: wrap; }
  .kas-row > div:last-child { width: 100%; text-align: left !important; padding-left: 47px; }
  .kas-row > div:last-child .row { justify-content: flex-start !important; }
}

/* ============================================ penyusun jadwal manual */
.sched-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 104px 150px auto;
  gap: 8px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.sched-row__teams { min-width: 0; }
.sched-row__act { display: flex; gap: 4px; }
.input--mini { padding: 7px 10px; font-size: .8rem; }
/* Tombol sekunder tiap baris: tarik dari web dan hapus. Sengaja diredupkan —
   keduanya jarang dipakai dan salah satunya tidak bisa dibatalkan. */
.sched-row__extra { gap: 6px; margin: -4px 0 10px; flex-wrap: wrap; }
.sched-row__extra .btn {
  padding: 3px 12px; font-size: .7rem; opacity: .6; letter-spacing: .04em;
}
.sched-row__extra .btn:hover { opacity: 1; }
.sched-del:hover { color: #fca5a5; border-color: rgba(239, 68, 68, .5); }

@media (max-width: 900px) {
  .sched-row { grid-template-columns: 1fr 1fr; }
  .sched-row__teams { grid-column: 1 / -1; }
  .sched-row__act { grid-column: 1 / -1; justify-content: flex-end; }
}

/* usulan pasangan yang belum dijadwalkan */
.sched-sug {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  border-radius: 11px; padding: 9px 12px; margin-bottom: 7px;
  transition: border-color .18s, background .18s;
}
.sched-sug:hover { border-color: var(--sky); background: rgba(56, 189, 248, .08); }
.sched-sug.is-picked { border-color: var(--gold); background: rgba(242, 181, 68, .12); }
/* Pasangan di luar batas awal, dan yang tersaring keluar: tetap ada di halaman
   supaya penyaring bisa menemukannya, tapi tidak ikut memanjangkan daftar. */
.sched-sug.is-extra, .sched-sug.is-saring { display: none; }
#sugDaftar.is-terbuka .sched-sug.is-extra:not(.is-saring) { display: block; }
 /* hanya label grup yang turun baris; nama tim & "vs" tetap sebaris */
.sched-sug > .tiny { display: block; margin-bottom: 2px; }
.sched-sug > .small { display: block; line-height: 1.45; }

/* ================================================ papan pot undian */
.pot-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.pot-col {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, .03);
}
.pot-col--sisa { border-color: rgba(239, 68, 68, .4); background: rgba(239, 68, 68, .05); }
.pot-col__head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-bottom: 9px; margin-bottom: 9px; border-bottom: 1px solid var(--line);
}
.pot-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--line);
}
.pot-item:last-child { border-bottom: 0; }
.pot-item img { width: 26px; height: 26px; border-radius: 7px; object-fit: contain; }
.pot-item__nm {
  font-size: .82rem; font-weight: 600; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pot-item select { grid-column: 1 / -1; }

/* ajakan merekam susunan grup yang sudah ada menjadi pot */
.pot-ambil {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  border: 1px solid rgba(242, 181, 68, .4);
  background: rgba(242, 181, 68, .07);
  border-radius: 14px; padding: 14px 16px;
}
.pot-ambil > div { min-width: 0; flex: 1 1 340px; }

/* ------------------------------ pengatur durasi & keadaan jam hitung mundur */
.sb-durasi {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap; margin-top: clamp(5px, 1vh, 10px);
}
.sb-durasi label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sb-durasi input { width: 74px; text-align: center; }
.sb-hint { margin-top: clamp(4px, .8vh, 8px); font-size: .74rem; color: var(--muted); text-align: center; }
.sb-hint:empty { display: none; }

/* satu menit terakhir, lalu waktu habis */
.sb-clock.is-akhir { color: var(--gold); }
.sb-clock.is-habis {
  color: #fca5a5;
  animation: sbHabis 1.1s ease-in-out infinite;
}
@keyframes sbHabis { 50% { opacity: .45; } }
