:root {
  --bg: #07111d;
  --bg-2: #0d1725;
  --panel: #111b2b;
  --panel-2: #17243a;
  --panel-3: #0d1523;
  --line: #263650;
  --line-2: #344862;
  --text: #eef4ff;
  --muted: #93a1b8;
  --lime: #b4ff39;
  --lime-2: #8ed82f;
  --blue: #54a8ff;
  --orange: #ff8a4d;
  --red: #ff5d67;
  --purple: #b98cff;
  --pink: #ff78ad;
  --gold: #ffd166;
  --shadow: 0 18px 48px rgba(0, 0, 0, .34);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(84, 168, 255, .09), transparent 280px),
    linear-gradient(180deg, var(--bg-2), var(--bg) 42%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

::selection {
  background: var(--lime);
  color: #07111d;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 11px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(180, 255, 57, .13);
}

select option {
  background: #111b2b;
  color: var(--text);
}

textarea {
  resize: vertical;
  min-height: 86px;
}

.public-site {
  min-height: 100vh;
  color: var(--text);
}

.public-nav {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 20px 24px;
}

.public-brand {
  color: var(--text);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.public-brand span { color: var(--lime); }

.public-nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.public-nav-actions a,
.text-link {
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.text-link { border-bottom: 1px solid var(--lime); padding: 0 0 4px; }

.public-hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  background-image: linear-gradient(90deg, rgba(7, 17, 29, .96) 0%, rgba(7, 17, 29, .72) 42%, rgba(7, 17, 29, .17) 100%), var(--public-hero-image, url('https://images.unsplash.com/photo-1626224583764-f87db24ac4ea?auto=format&fit=crop&w=1800&q=85'));
  background-position: center;
  background-size: cover;
}

.public-hero-content {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 140px 24px 72px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-hero h1,
.public-section h2 {
  margin: 0;
  font-family: Rajdhani, Inter, sans-serif;
  text-transform: uppercase;
}

.public-hero h1 { font-size: 64px; line-height: .9; }
.public-hero p:not(.eyebrow) { max-width: 480px; margin: 16px 0 0; color: #d7e1ef; line-height: 1.6; }

.public-section {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 56px 24px;
}

.public-alt {
  width: 100%;
  padding-right: max(24px, calc((100% - 1132px) / 2));
  padding-left: max(24px, calc((100% - 1132px) / 2));
  background: var(--panel-3);
}

.public-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.public-section h2 { font-size: 32px; }

.public-rating-grid,
.public-post-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.public-monthly-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.public-monthly-card {
  min-height: 118px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.public-monthly-card strong { display: block; margin: 7px 0 4px; font-family: Rajdhani, Inter, sans-serif; font-size: 24px; }
.public-monthly-card p { margin: 0; color: var(--muted); font-size: 13px; }

.rekap-period-label {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.public-rating-card,
.post-card,
.public-activity,
.timeline-item,
.suggestion-item,
.club-event {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.public-rating-card { min-height: 130px; padding: 18px; }
.public-rating-card h3 { margin: 18px 0 4px; }
.public-rating-card p { margin: 0; color: var(--muted); font-size: 13px; }

.player-of-month-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
  border-radius: var(--radius);
  background: linear-gradient(110deg, color-mix(in srgb, var(--gold) 13%, var(--panel)), var(--panel));
}
.player-of-month-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #111827;
  background: var(--gold);
}
.player-of-month-icon svg { width: 27px; height: 27px; }
.player-of-month-card h3 { margin: 4px 0 5px; font-family: Rajdhani, Inter, sans-serif; font-size: 28px; }
.player-of-month-card p:not(.eyebrow) { margin: 0; color: var(--muted); }
.player-of-month-empty { border-style: dashed; }

.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #07111d;
  background: var(--lime);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 16px;
  font-weight: 800;
}
.grade-C { background: var(--muted); }
.grade-C- { background: #6b7280; }
.grade-C-plus { background: var(--blue); }
.grade-B- { background: #7dd3fc; }
.grade-B { background: var(--lime); }
.grade-B-plus { background: var(--orange); }
.grade-A { background: var(--gold); }

.team-link .chevron {
  font-size: .72em;
}

.privacy-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.privacy-setting-row h3 {
  margin: 0 0 5px;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 18px;
}

.privacy-setting-row p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.toggle-control {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  cursor: pointer;
}

.toggle-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toggle-track {
  position: relative;
  display: block;
  width: 46px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  transition: background .16s ease, border-color .16s ease;
}

.toggle-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  content: '';
  transition: transform .16s ease, background .16s ease;
}

.toggle-control input:checked + .toggle-track {
  border-color: var(--lime);
  background: rgba(180, 255, 57, .18);
}

.toggle-control input:checked + .toggle-track::after {
  transform: translateX(20px);
  background: var(--lime);
}

.toggle-control input:focus-visible + .toggle-track {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.public-activity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.public-club-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.public-club-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.public-club-card h3 { margin: 0 0 7px; font-family: Rajdhani, Inter, sans-serif; font-size: 20px; }
.public-club-card p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.public-activity { display: grid; grid-template-columns: 112px 1fr; overflow: hidden; }
.public-activity img { width: 112px; height: 100%; min-height: 128px; object-fit: cover; }
.gallery-grid { display: block; }
.gallery-showcase { width: 100%; }
.gallery-stage { position: relative; display: grid; height: clamp(270px, 29vw, 350px); min-height: 0; overflow: hidden; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(circle at 50% 20%, rgba(84, 168, 255, .13), transparent 48%), #08111e; box-shadow: var(--shadow); }
.gallery-stage-image { display: block; width: 100%; height: 100%; min-height: 0; padding: 0; cursor: zoom-in; background: transparent; }
.gallery-stage-image img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery-stage::after { position: absolute; right: 0; bottom: 0; left: 0; height: 42%; content: ""; pointer-events: none; background: linear-gradient(transparent, rgba(3, 9, 17, .88)); }
.gallery-stage-overlay { position: absolute; z-index: 1; right: 24px; bottom: 18px; left: 24px; display: grid; gap: 2px; pointer-events: none; }
.gallery-stage-overlay span { color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.gallery-stage-overlay strong { font-family: Rajdhani, Inter, sans-serif; font-size: clamp(22px, 3vw, 34px); letter-spacing: .02em; text-transform: uppercase; }
.gallery-stage-overlay small { color: rgba(238, 244, 255, .76); font-size: 12px; font-weight: 700; }
.gallery-nav { position: absolute; z-index: 2; top: 50%; display: grid; width: 45px; height: 45px; place-items: center; padding: 0; color: var(--text); border: 1px solid rgba(238, 244, 255, .3); border-radius: 50%; cursor: pointer; background: rgba(7, 17, 29, .64); backdrop-filter: blur(10px); transform: translateY(-50%); transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.gallery-nav:hover { border-color: var(--lime); background: rgba(7, 17, 29, .9); transform: translateY(-50%) scale(1.05); }
.gallery-nav svg { width: 23px; height: 23px; }
.gallery-nav-prev { left: 18px; }
.gallery-nav-next { right: 18px; }
.gallery-delete { position: absolute; z-index: 3; top: 15px; right: 15px; background: rgba(7, 17, 29, .72); backdrop-filter: blur(10px); }
.gallery-thumbs { display: flex; gap: 9px; margin-top: 13px; padding: 2px 1px 6px; overflow-x: auto; scrollbar-width: thin; }
.gallery-thumb { flex: 0 0 86px; height: 62px; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 8px; cursor: pointer; background: var(--panel-2); opacity: .62; transition: opacity .18s ease, border-color .18s ease, transform .18s ease; }
.gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--lime); opacity: 1; transform: translateY(-2px); }
.gallery-hint { margin: 3px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.media-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(3, 10, 18, .88); }
.media-modal-body { position: relative; width: min(900px, 100%); max-height: 90vh; overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.media-modal-body img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; object-fit: contain; }
.media-modal-body p { margin: 12px 0 0; text-align: center; color: var(--muted); }
.media-modal-body h2 { margin-top: 0; }
.media-modal-close { position: fixed; top: 18px; right: 24px; z-index: 101; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: #fff; background: var(--panel); font-size: 28px; cursor: pointer; }
.public-club-card { cursor: pointer; }
.public-activity > div { padding: 17px; }
.public-activity h3, .timeline-item h3, .post-card h3 { margin: 0 0 7px; }
.public-activity p:not(.eyebrow), .timeline-item p:not(.eyebrow), .post-card p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.post-card { position: relative; overflow: hidden; }
.post-card > img, .post-cover-empty { width: 100%; height: 155px; object-fit: cover; background: var(--panel-2); }
.post-cover-empty { display: grid; place-items: center; color: var(--muted); }
.post-card-body { padding: 16px; }
.post-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }

.icon-button { display: inline-grid; width: 34px; height: 34px; place-items: center; padding: 0; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.icon-button svg { width: 16px; height: 16px; }
.icon-button.danger { color: var(--red); }

.suggestion-list, .club-match-list, .activity-timeline { display: grid; gap: 11px; margin-top: 18px; }
.suggestion-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px; }
.suggestion-item p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.suggestion-meta { display: flex; align-items: center; gap: 10px; }

.club-draft-games { display: grid; gap: 14px; }
.club-draft-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); }
.club-draft-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px dashed var(--line); }
.club-draft-head > div { display: grid; min-width: 110px; gap: 2px; }
.club-draft-head small { color: var(--lime); font-size: 10px; font-weight: 700; }
.club-draft-head input { max-width: 180px; margin-left: auto; }
.club-draft-teams { display: grid; grid-template-columns: 1fr 46px 1fr; align-items: center; gap: 12px; padding: 14px; }
.club-team-card { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-3); }
.club-team-home { border-left: 4px solid var(--blue); }
.club-team-away { border-left: 4px solid var(--orange); }
.club-team-card h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 11px; font-family: Rajdhani, Inter, sans-serif; font-size: 16px; text-transform: uppercase; }
.club-team-card h4 svg { width: 15px; height: 15px; }
.club-team-card .field + .field { margin-top: 8px; }
.club-draft-vs { display: grid; place-items: center; width: 42px; height: 42px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; font-family: Rajdhani, Inter, sans-serif; font-weight: 800; }
.club-draft-score { margin: 0 14px 14px; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-3); }
.club-draft-score-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.club-draft-score-head span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.club-draft-score-head h4 { margin: 2px 0 0; font-family: Rajdhani, Inter, sans-serif; font-size: 17px; }
.club-draft-score-head em { padding: 4px 8px; color: var(--lime); border: 1px solid rgba(166,255,47,.2); border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 700; }
.club-draft-score-list { display: grid; gap: 8px; margin-bottom: 11px; }
.club-draft-score-row { display: grid; grid-template-columns: 72px 92px 30px 92px; align-items: center; gap: 8px; }
.club-draft-score-row label { margin: 0; }
.club-draft-score-row input { text-align: center; font-family: Rajdhani, Inter, sans-serif; font-size: 18px; font-weight: 700; }
.club-draft-score-row span { color: var(--muted); text-align: center; font-family: Rajdhani, Inter, sans-serif; font-weight: 700; }
.club-event { overflow: hidden; }
.club-event-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px; background: var(--panel-3); }
.club-event-head h3 { margin: 0; font-family: Rajdhani, Inter, sans-serif; font-size: 21px; }
.club-event-head h3 span { color: var(--lime); }
.club-game-list { display: grid; }
.club-game { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 17px; border-top: 1px solid var(--line); }
.club-game p { margin: 4px 0 0; font-size: 13px; }
.club-score { display: grid; grid-template-columns: repeat(2, 76px); gap: 5px; }
.club-score input { min-height: 34px; padding: 6px; font-size: 11px; }
.club-score button { grid-column: span 2; }
.club-game-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.club-game-editor { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); grid-template-areas: "title title title title" "label member1 member2 opponent1" "opponent2 save cancel ."; gap: 8px; width: 100%; padding: 12px; border-top: 1px dashed var(--line); }
.club-game-editor > strong { grid-area: title; }
.club-game-editor [data-game-label], .club-game-editor [data-new-game-label] { grid-area: label; }
.club-game-editor [data-game-member1], .club-game-editor [data-new-game-member1] { grid-area: member1; }
.club-game-editor [data-game-member2], .club-game-editor [data-new-game-member2] { grid-area: member2; }
.club-game-editor [data-game-opponent1], .club-game-editor [data-new-game-opponent1] { grid-area: opponent1; }
.club-game-editor [data-game-opponent2], .club-game-editor [data-new-game-opponent2] { grid-area: opponent2; }
.club-game-editor [data-save-club-game], .club-game-editor [data-save-new-club-game] { grid-area: save; }
.club-game-editor [data-cancel-club-game], .club-game-editor [data-cancel-new-club-game] { grid-area: cancel; }
.club-game-editor input, .club-game-editor select { min-height: 36px; }

.timeline-item { display: grid; grid-template-columns: 108px 1fr; overflow: hidden; }
.timeline-item img { width: 108px; height: 100%; min-height: 110px; object-fit: cover; }
.timeline-item > div:last-child { padding: 16px; }
.activity-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.timeline-mark { display: grid; place-items: center; color: var(--lime); background: var(--panel-3); }


.is-hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.center {
  text-align: center;
}

.login-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(180, 255, 57, .06), transparent 36%),
    var(--bg);
  z-index: 100;
}

.login-panel {
  width: min(100%, 390px);
  padding: 28px;
  background: rgba(17, 27, 43, .96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: panelIn .32s ease both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-brand,
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
}

.login-brand {
  justify-content: center;
  margin-bottom: 18px;
}

.brand-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 16px rgba(180, 255, 57, .8);
  animation: pulseDot 2.3s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 10px rgba(180, 255, 57, .65);
  }
  50% {
    opacity: .74;
    box-shadow: 0 0 20px rgba(180, 255, 57, .95);
  }
}

.login-brand h1,
.brand-lockup h1,
.section-title h2 {
  font-family: Rajdhani, Inter, sans-serif;
  text-transform: uppercase;
  margin: 0;
}

.login-brand h1 {
  font-size: 27px;
}

.login-brand span,
.brand-lockup span {
  color: var(--lime);
}

.auth-mode label {
  margin-top: 12px;
}

.login-error {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--red);
  font-size: 12px;
  text-align: center;
}

.login-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.banner {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 17, 29, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.banner-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px 24px 0;
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand-lockup h1 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.brand-lockup p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.tabs {
  display: flex;
  gap: 4px;
  margin-top: 18px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 14px 11px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border-bottom: 3px solid transparent;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.tab-btn svg {
  width: 16px;
  height: 16px;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-card {
  min-height: 92px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.summary-card.summary-lime { border-top: 3px solid var(--lime); }
.summary-card.summary-blue { border-top: 3px solid var(--blue); }
.summary-card.summary-orange { border-top: 3px solid var(--orange); }
.summary-card.summary-purple { border-top: 3px solid var(--purple); }

.summary-card .summary-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-card .summary-value {
  margin-top: 9px;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
}

.summary-card .summary-value.compact {
  overflow: hidden;
  font-size: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-card .summary-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn .18s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-card {
  margin-bottom: 16px;
  padding: 20px;
  background: rgba(17, 27, 43, .98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

.checkin-intro { margin: -4px 0 18px; line-height: 1.5; }
.checkin-player-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.checkin-player { min-height: 72px; padding: 12px; cursor: pointer; color: var(--text); text-align: left; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); }
.checkin-player strong, .checkin-player span { display: block; }
.checkin-player strong { font-size: 14px; }
.checkin-player span { margin-top: 6px; color: var(--lime); font-size: 12px; font-weight: 700; }
.checkin-player:hover { border-color: var(--lime); }
.checkin-player:disabled { cursor: default; opacity: .62; }
.checkin-player.is-checked-in span { color: var(--muted); }
.checkin-waitlist { display: grid; gap: 10px; }
.checkin-queue + .checkin-queue { margin-top: 20px; }
.checkin-queue h3 { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.checkin-waiting { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; background: var(--panel-2); border: 1px solid var(--line); border-left: 4px solid var(--lime); border-radius: var(--radius); }
.checkin-waiting strong { font-size: 15px; }
.checkin-waiting p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.checkin-waiting.is-overdue { border-color: rgba(255, 93, 103, .8); border-left-color: var(--red); background: rgba(255, 93, 103, .08); }
.checkin-waiting.is-overdue p { color: #ffc1c5; }
.attendance-month { max-width: 220px; margin-bottom: 18px; }
.attendance-title { justify-content: space-between; gap: 12px; }
.attendance-title > div { display: flex; align-items: center; gap: 10px; }
.attendance-cell { text-align: center; }
.attendance-cell input { width: 20px; min-height: 20px; accent-color: var(--lime); cursor: pointer; }
.menu-visibility-list { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.menu-visibility-item { display: flex; align-items: center; gap: 7px; cursor: pointer; color: var(--text); }
.menu-visibility-item input { accent-color: var(--lime); width: 18px; height: 18px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}

.section-title h2 {
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
}

.title-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--lime);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.member-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-grade-select {
  min-width: 64px;
  min-height: 34px;
  padding: 5px 8px;
}

.form-row.single { grid-template-columns: minmax(180px, 260px); }

.field {
  min-width: 0;
}

.match-entry { display: grid; gap: 18px; }
.match-meta { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 13px 15px; background: linear-gradient(100deg, var(--panel-3), rgba(25, 42, 68, .45)); border: 1px solid var(--line); border-radius: var(--radius); }
.match-meta .field { width: min(100%, 245px); }
.match-meta p { max-width: 345px; margin: 0 0 3px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); align-items: stretch; gap: 12px; }
.team-versus { display: grid; place-items: center; align-self: center; width: 42px; height: 42px; color: var(--muted); background: var(--panel-3); border: 1px solid var(--line); border-radius: 999px; font-family: Rajdhani, Inter, sans-serif; font-size: 15px; font-weight: 800; }

.team-block {
  padding: 16px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.team-a {
  border-left: 4px solid var(--blue);
}

.team-b {
  border-left: 4px solid var(--orange);
}

.team-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  margin-bottom: 12px;
  gap: 8px;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}
.team-heading > span { display: inline-flex; align-items: center; gap: 7px; }
.team-heading svg { width: 15px; height: 15px; }

.score-section { padding: 15px; background: var(--panel-3); border: 1px solid var(--line); border-radius: var(--radius); }
.score-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-kicker { display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.score-section h3 { margin: 0; color: var(--text); font-family: Rajdhani, Inter, sans-serif; font-size: 18px; }
.score-format { padding: 4px 8px; color: var(--lime); background: rgba(166, 255, 47, .08); border: 1px solid rgba(166, 255, 47, .2); border-radius: 999px; font-size: 11px; font-weight: 700; }

.score-board {
  display: grid;
  gap: 9px;
}

.score-row {
  display: grid;
  grid-template-columns: 80px 84px 32px 84px auto;
  align-items: center;
  gap: 10px;
}

.score-row label {
  margin: 0;
}

.score-row .vs {
  color: var(--muted);
  font-family: Rajdhani, Inter, sans-serif;
  font-weight: 700;
  text-align: center;
}

.score-num {
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
}

.score-actions { margin-top: 12px; }
.match-submit-actions { justify-content: flex-end; padding-top: 2px; }

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: var(--radius);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform .12s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn:active {
  transform: scale(.98);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
}

.btn-primary {
  color: #07111d;
  background: var(--lime);
}

.btn-primary:hover {
  background: var(--lime-2);
  box-shadow: 0 0 18px rgba(180, 255, 57, .28);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-2);
}

.btn-ghost:hover {
  border-color: var(--muted);
  background: rgba(255, 255, 255, .035);
}

.btn-danger {
  color: var(--red);
  background: transparent;
  border: 1px solid rgba(255, 93, 103, .7);
}

.btn-danger:hover {
  color: #fff;
  background: var(--red);
}

.btn-small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
}

.wide {
  width: 100%;
  margin-top: 14px;
}

.cat-tabs,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cat-tab {
  min-height: 34px;
  padding: 7px 15px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: Rajdhani, Inter, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.cat-tab.active {
  color: #07111d;
  background: var(--lime);
  border-color: var(--lime);
}

.filter-bar input {
  max-width: 240px;
}

.filter-bar select {
  width: auto;
  min-width: 190px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.member-history-link {
  padding: 0;
  color: var(--text);
  cursor: pointer;
  background: transparent;
  border-bottom: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.member-history-link:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.member-stat {
  display: grid;
  gap: 2px;
  min-width: 130px;
}

.member-stat strong { color: var(--lime); font-family: Rajdhani, Inter, sans-serif; font-size: 19px; line-height: 1; }
.member-stat small, .member-stat-muted { color: var(--muted); font-size: 11px; line-height: 1.35; }
.member-stat-muted { display: inline-block; min-width: 118px; }

.history-filter-bar { align-items: flex-end; margin-bottom: 8px; }
.history-filter-field { min-width: 175px; }
.history-filter-field label { margin: 0 0 5px; }
.history-filter-field input, .history-filter-field select { max-width: none; width: 100%; }
.history-clear-filter { margin-bottom: 1px; }
.history-filter-result { margin: 0 0 17px; color: var(--muted); font-size: 12px; }
.history-filter-result strong { color: var(--text); }
.history-session { overflow: hidden; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-3); }
.history-session:first-of-type { margin-top: 0; }
.history-session-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 16px; border-bottom: 1px solid var(--line); background: rgba(23, 36, 58, .42); }
.history-session-head .eyebrow { margin: 0 0 2px; font-size: 9px; }
.history-session-head h3 { margin: 0; font-family: Rajdhani, Inter, sans-serif; font-size: 22px; }
.history-session-head p:not(.eyebrow) { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.history-session .table-wrap { background: var(--panel); }
.history-select-all { display: flex; align-items: center; gap: 7px; margin: 0 auto 0 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.history-select-all input { width: 16px; min-height: 16px; accent-color: var(--lime); }

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  padding: 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}

th.sortable {
  cursor: pointer;
  user-select: none;
}

th.sortable::after {
  content: "^v";
  display: inline-block;
  margin-left: 7px;
  color: var(--line-2);
  font-size: 11px;
}

th.sortable.sort-asc::after {
  content: "^";
  color: var(--lime);
}

th.sortable.sort-desc::after {
  content: "v";
  color: var(--lime);
}

th.sortable:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -2px;
}

td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(38, 54, 80, .8);
  vertical-align: middle;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--lime);
}

tbody tr:hover td {
  background: rgba(255, 255, 255, .025);
}

.num {
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-member,
.badge-menang {
  color: var(--lime);
  background: rgba(180, 255, 57, .13);
}

.badge-bulanan {
  color: var(--blue);
  background: rgba(84, 168, 255, .14);
}

.badge-nonmember {
  color: var(--muted);
  background: rgba(147, 161, 184, .12);
}

.badge-kalah {
  color: var(--red);
  background: rgba(255, 93, 103, .13);
}

.badge-draw {
  color: var(--gold);
  background: rgba(255, 209, 102, .14);
}

.badge-putra {
  color: var(--blue);
  background: rgba(84, 168, 255, .14);
}

.badge-putri {
  color: var(--pink);
  background: rgba(255, 120, 173, .14);
}

.badge-campuran {
  color: var(--purple);
  background: rgba(185, 140, 255, .14);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel-2);
  font-family: Rajdhani, Inter, sans-serif;
  font-weight: 700;
}

.rank-badge.gold {
  color: #4a3900;
  background: var(--gold);
}

.rank-badge.silver {
  color: #202935;
  background: #c8d0db;
}

.rank-badge.bronze {
  color: #42230c;
  background: #df9f68;
}

.diff-pos {
  color: var(--lime);
}

.diff-neg {
  color: var(--red);
}

.winrate-bar {
  width: 78px;
  height: 6px;
  margin-top: 5px;
  overflow: hidden;
  background: var(--panel-2);
  border-radius: 999px;
}

.winrate-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--lime), var(--blue));
  border-radius: 999px;
  transition: width .7s cubic-bezier(.2, .75, .2, 1);
}

.team-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: var(--lime);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.team-link:hover {
  color: var(--lime-2);
}

.team-detail-row td {
  padding: 0;
  background: var(--panel-3);
}

.team-detail-inline {
  padding: 12px 14px 16px;
}

.team-detail-inline table {
  min-width: 560px;
  font-size: 12px;
}

.rating-detail-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.rating-member-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: var(--lime);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.rating-member-trigger:hover {
  color: var(--lime-2);
}

.rating-detail-trigger:hover .grade-badge,
.rating-detail-trigger:focus-visible .grade-badge {
  box-shadow: 0 0 0 3px rgba(183, 255, 0, .28);
}

.rating-points-trigger {
  color: var(--lime);
  font-weight: 800;
}

.rating-detail-row td {
  padding: 0;
  background: var(--panel-3);
}

.rating-detail-inline {
  padding: 14px;
}

.rating-detail-inline p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.performance-chart {
  margin: 0 0 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}

.performance-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12px;
}

.performance-chart-head span {
  color: var(--muted);
  font-size: 0;
}

.performance-chart-head span::after {
  content: "10 hari pertandingan terakhir";
  font-size: 12px;
}

.performance-chart svg {
  display: block;
  width: 100%;
  max-height: 170px;
  overflow: visible;
}

.performance-chart line {
  stroke: var(--line);
  stroke-width: 1;
}

.performance-chart polyline {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 2px rgba(180, 255, 57, .28));
}

.performance-chart circle {
  fill: var(--lime);
  stroke: var(--panel-2);
  stroke-width: 2;
}

.performance-chart text {
  fill: var(--muted);
  font-size: 11px;
}

@media (max-width: 560px) {
  .performance-chart-head {
    display: block;
  }

  .performance-chart-head span {
    display: block;
    margin-top: 3px;
  }
}

.tool-band {
  padding: 15px;
  background: var(--panel-3);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
}

.tool-band p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.empty {
  padding: 34px 18px;
  color: var(--muted);
  text-align: center;
}

.empty .big {
  margin-bottom: 4px;
  color: var(--text);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 300;
  max-width: min(92vw, 520px);
  padding: 12px 18px;
  color: #07111d;
  background: var(--lime);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, transform .18s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.err {
  color: #fff;
  background: var(--red);
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, .62);
}

.confirm-overlay.show {
  display: flex;
}

.confirm-card {
  width: min(100%, 360px);
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.confirm-card p {
  margin: 0 0 18px;
  color: var(--text);
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 820px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-versus { display: none; }
  .match-meta { align-items: flex-start; flex-direction: column; }
  .match-meta .field { width: 100%; }

  .brand-row {
    align-items: flex-start;
  }

  .score-row {
    grid-template-columns: 70px minmax(66px, 1fr) 30px minmax(66px, 1fr) auto;
  }

  .checkin-player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .banner-inner,
  .wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-row {
    flex-direction: column;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .panel-card,
  .login-panel {
    padding: 16px;
  }

  .score-section { padding: 13px; }
  .match-submit-actions { align-items: stretch; flex-direction: column; }
  .match-submit-actions .btn { width: 100%; justify-content: center; }

  .privacy-setting-row {
    align-items: flex-start;
  }

  .filter-bar input,
  .filter-bar select {
    max-width: none;
    width: 100%;
  }

  .history-filter-field { width: 100%; }
  .history-session-head { align-items: flex-start; flex-direction: column; }
  .history-session-head .btn { width: 100%; justify-content: center; }
  .history-select-all { margin: 0 auto 0 0; }

  .score-row {
    grid-template-columns: 1fr 1fr;
  }

  .score-row label {
    grid-column: 1 / -1;
  }

  .score-row .vs {
    display: none;
  }

  .checkin-waiting { align-items: stretch; flex-direction: column; }
  .checkin-waiting .btn { width: 100%; justify-content: center; }
}

@media (max-width: 760px) {
  .public-nav { padding: 16px; }
  .public-nav-actions { gap: 10px; }
  .public-nav-actions a { display: none; }
  .public-hero { min-height: 490px; background-position: 62% center; }
  .public-hero-content { padding: 128px 20px 54px; }
  .public-hero h1 { font-size: 48px; }
  .public-section { padding: 42px 20px; }
  .public-alt { padding-right: 20px; padding-left: 20px; }
  .public-section h2 { font-size: 27px; }
  .public-rating-grid, .public-post-grid, .post-grid, .public-activity-list, .public-club-list, .public-monthly-grid { grid-template-columns: 1fr; }
  .club-draft-row { grid-template-columns: 1fr 1fr; }
  .club-draft-row strong { grid-column: span 2; }
  .club-draft-row .icon-button { justify-self: end; }
  .club-draft-teams { grid-template-columns: 1fr; }
  .club-draft-vs { display: none; }
  .club-game { align-items: flex-start; flex-direction: column; }
  .club-score { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .club-game-editor { grid-template-columns: 1fr 1fr; grid-template-areas: "title title" "label label" "member1 member2" "opponent1 opponent2" "save cancel"; }
  .club-draft-score-row { grid-template-columns: 70px minmax(0, 1fr) 26px minmax(0, 1fr); }
  .timeline-item { grid-template-columns: 78px 1fr; }
  .timeline-item img { width: 78px; }
  .gallery-stage { height: 270px; min-height: 0; border-radius: 12px; }
  .gallery-stage-overlay { right: 17px; bottom: 15px; left: 17px; }
  .gallery-nav { width: 38px; height: 38px; }
  .gallery-nav-prev { left: 10px; }
  .gallery-nav-next { right: 10px; }
  .gallery-delete { top: 10px; right: 10px; }
  .gallery-thumb { flex-basis: 70px; height: 52px; }
  .gallery-hint { font-size: 11px; }
}
