/* SweatSpot — sistem desain (v2, social sports network).
   Satu tema gelap untuk semua ukuran layar, aksen lime. */

:root {
  --bg: #0a0c0e;
  --surface: #14181b;
  --surface-2: #1c2126;
  --surface-3: #262d34;
  --line: #232a30;
  --line-2: #1b2126;

  --ink: #f3f5f6;
  --ink-2: #a7aeb6;
  --ink-3: #737b84;

  --accent: #d6f84a;
  --accent-2: #c2e534;
  --accent-dim: #26350a;
  --on-accent: #10130b;

  --ok: #4ade80;
  --ok-dim: #0e2c1a;
  --warn: #fbbf24;
  --warn-dim: #33230a;
  --bad: #f87171;
  --bad-dim: #341414;
  --info: #7ea6fb;
  --info-dim: #12203c;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 26px;

  --sh-2: 0 8px 26px rgba(0, 0, 0, .45);
  --sh-3: 0 24px 60px rgba(0, 0, 0, .62);

  --sidebar-w: 236px;
  --topbar-h: 62px;
  --tabbar-h: 64px;
  --maxw: 1180px;

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink);
  font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
.app-boot { min-height: 100vh; background: var(--bg); }

/* Ilustrasi selalu memenuhi wadahnya dan tidak pernah menangkap klik. */
.art { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.art svg, .fill svg { width: 100%; height: 100%; }

/* Wadah berukuran tetap sering ditulis sebagai <span>. Tanpa display block,
   aspect-ratio dan width/height diabaikan dan kotaknya kolaps jadi nol. */
.prod-art, .prod-n, .coach-ph, .coach-tx, .video-th, .video-tx,
.event-date, .event-tx, .venue-art { display: block; }

/* ================= shell ================= */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 60;
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.sb-brand { padding: 20px 20px 14px; flex: none; }
.wordmark { font-size: 21px; font-weight: 800; letter-spacing: -.6px; }
.sb-scroll { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
.sb-group { padding: 16px 12px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-3); }
.nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 11px 12px; border-radius: 12px; margin-bottom: 3px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: background .15s, color .15s;
}
.nav-item svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); transition: color .15s; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active { background: var(--accent); color: var(--on-accent); }
.nav-item.active svg { color: var(--on-accent); }
.nav-label { flex: 1; }
.nav-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent);
  color: var(--on-accent); font-size: 11px; font-weight: 800; display: grid; place-items: center;
}
.nav-item.active .nav-count { background: var(--on-accent); color: var(--accent); }
.sb-foot { flex: none; padding: 12px; }
.sb-me {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px;
  border-top: 1px solid var(--line); flex: none;
}
.sb-me .grow { flex: 1; min-width: 0; text-align: left; }
.sb-me .n { display: block; font-size: 13px; font-weight: 700; }
.sb-me .s { display: block; font-size: 11.5px; color: var(--ink-3); }
.sb-me > svg { width: 16px; height: 16px; color: var(--ink-3); }

.main { margin-left: var(--sidebar-w); min-height: 100vh; }

.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--topbar-h);
  display: flex; align-items: center; gap: 10px; padding: 0 22px;
  background: rgba(10, 12, 14, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.tb-title { font-size: 18px; font-weight: 800; letter-spacing: -.4px; }
.tb-spacer { flex: 1; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; position: relative;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: .15s; flex: none;
}
.icon-btn:hover { border-color: var(--ink-3); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .cnt {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 10px;
  font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg);
}
.burger { display: none; }

.avatar {
  width: 38px; height: 38px; border-radius: 999px; flex: none; overflow: hidden; position: relative;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--on-accent);
  background: linear-gradient(150deg, var(--accent), #86c26a);
}
.avatar.sm { width: 28px; height: 28px; font-size: 10px; }
.avatar.xs { width: 22px; height: 22px; font-size: 8.5px; }
.avatar.lg { width: 56px; height: 56px; font-size: 17px; }
.avatar.xl { width: 84px; height: 84px; font-size: 25px; }
.avatar.photo { background: var(--surface-2); }
.avatar.photo svg { width: 100%; height: 100%; }
.av-stack { display: flex; align-items: center; }
.av-stack .avatar { border: 2px solid var(--bg); margin-left: -9px; }
.av-stack .avatar:first-child { margin-left: 0; }
.av-more {
  height: 22px; min-width: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  background: var(--surface-3); color: var(--ink-2); font-size: 10px; font-weight: 700;
  border: 2px solid var(--bg); margin-left: -9px;
}
.online {
  position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 999px;
  background: var(--ok); border: 2px solid var(--surface);
}

/* ================= tata letak ================= */
.content { padding: 20px 22px 40px; max-width: var(--maxw); }
.content.flush { padding: 0 0 40px; max-width: none; }
.wrap { padding: 0 22px; max-width: var(--maxw); }

.sec { margin-top: 26px; }
.sec:first-child { margin-top: 0; }
.sec-h { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.sec-h .t { font-size: 17px; font-weight: 800; letter-spacing: -.35px; }
.sec-h .s { font-size: 12.5px; color: var(--ink-3); }
.sec-h .grow { flex: 1; }
.seeall { font-size: 12.5px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.seeall svg { width: 14px; height: 14px; }

.page-head { margin-bottom: 18px; }
.page-title { font-size: 25px; font-weight: 800; letter-spacing: -.8px; }
.page-sub { color: var(--ink-2); font-size: 13.5px; margin-top: 4px; }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.split > * { min-width: 0; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.stack > * { min-width: 0; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail.tight { grid-auto-columns: minmax(150px, 1fr); }

/* ================= dasar ================= */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-b { padding: 16px; }
button.card, a.card { display: block; width: 100%; text-align: left; }
button.card:hover, a.card:hover { border-color: var(--surface-3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  background: var(--surface-2); color: var(--ink); border: 1px solid transparent; transition: .15s; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-2); }
.btn.outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.outline:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn.sm { padding: 8px 14px; font-size: 12.5px; }
.btn.xs { padding: 6px 11px; font-size: 11.5px; }
.btn.lg { padding: 14px 24px; font-size: 15px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 12.5px; font-weight: 700; color: var(--ink-2); transition: .15s; white-space: nowrap; flex: none;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); font-size: 11px; font-weight: 700; white-space: nowrap;
}
.tag svg { width: 12px; height: 12px; }
.tag.lime { background: var(--accent-dim); color: #cdf14a; }
.tag.ok { background: var(--ok-dim); color: var(--ok); }
.tag.warn { background: var(--warn-dim); color: var(--warn); }
.tag.bad { background: var(--bad-dim); color: var(--bad); }
.tag.info { background: var(--info-dim); color: var(--info); }

.rate { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; }
.rate svg { width: 13px; height: 13px; color: var(--accent); fill: var(--accent); }
.rate .c { color: var(--ink-3); font-weight: 500; }

.bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

.rows { display: grid; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); text-align: left; width: 100%; }
.rows > .row:first-child { border-top: 0; }
.row-ic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.row-ic svg { width: 18px; height: 18px; }
.row-ic.lime { background: var(--accent-dim); color: #cdf14a; }
.row-ic.ok { background: var(--ok-dim); color: var(--ok); }
.row-ic.bad { background: var(--bad-dim); color: var(--bad); }
.row-tx { display: block; flex: 1; min-width: 0; }
.row-t { display: block; font-size: 13.5px; font-weight: 700; }
.row-s { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.row-r { flex: none; text-align: right; }
.row-r .d1 { display: block; font-size: 13px; font-weight: 700; }
.row-r .d2 { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.note { display: flex; gap: 11px; padding: 14px; border-radius: var(--r); background: var(--surface-2); font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.note svg { width: 17px; height: 17px; flex: none; color: var(--ink-3); margin-top: 1px; }
.note.lime { background: var(--accent-dim); color: #d3f166; }
.note.lime svg { color: #b9dd4d; }

.empty { text-align: center; padding: 44px 20px; }
.empty-ic { width: 56px; height: 56px; border-radius: 999px; background: var(--surface-2); color: var(--ink-3); display: grid; place-items: center; margin: 0 auto 14px; }
.empty-ic svg { width: 24px; height: 24px; }
.empty .t { font-size: 15px; font-weight: 700; }
.empty .s { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

.divider { height: 1px; background: var(--line); }
.kv { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; }
.kv .k { width: 128px; flex: none; font-size: 13px; color: var(--ink-3); }
.kv .v { flex: 1; font-size: 13px; font-weight: 600; }

/* tab garis bawah */
.utabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.utabs::-webkit-scrollbar { display: none; }
.utabs button {
  padding: 12px 14px; font-size: 13.5px; font-weight: 700; color: var(--ink-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.utabs button.on { color: var(--ink); border-bottom-color: var(--accent); }

/* ================= home ================= */
.hero-home { padding: 24px 0 4px; }
.hero-home h1 { font-size: 34px; font-weight: 800; letter-spacing: -1.3px; line-height: 1.08; }
.hero-home h1 em { font-style: normal; color: var(--accent); }
.hero-home p { color: var(--ink-2); font-size: 14px; margin-top: 10px; max-width: 460px; }

.credits {
  background: linear-gradient(140deg, #1b2126, #14181b 62%); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px; position: relative; overflow: hidden;
}
.credits-top { display: flex; align-items: center; gap: 12px; }
.credits-coin {
  width: 38px; height: 38px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; flex: none;
}
.credits-coin svg { width: 20px; height: 20px; }
.credits .lbl { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 700; }
.credits .amt { display: block; font-size: 26px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; }
.credits-foot {
  display: flex; align-items: center; gap: 8px; margin-top: 13px; padding-top: 12px;
  border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); font-weight: 600;
}
.credits-foot b { color: var(--accent); }

/* pemilih cabang olahraga */
.sports { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(72px, 1fr); gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.sports::-webkit-scrollbar { display: none; }
.sport { text-align: center; }
.sport-ic {
  width: 58px; height: 58px; border-radius: 999px; margin: 0 auto 7px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); transition: .15s;
}
.sport-ic svg { width: 26px; height: 26px; }
.sport.on .sport-ic { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sport:hover .sport-ic { border-color: var(--ink-3); }
.sport-n { display: block; font-size: 12px; font-weight: 700; }
.sport.on .sport-n { color: var(--accent); }

/* kartu mabar */
.mabar-h { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.mabar-h svg { width: 14px; height: 14px; }
.mabar-t { font-size: 15px; font-weight: 800; margin-top: 8px; letter-spacing: -.3px; }
.mabar-m { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.mabar-m svg { width: 13px; height: 13px; flex: none; }
.mabar-f { display: flex; align-items: center; gap: 10px; margin-top: 13px; flex-wrap: wrap; }
.slots-left { font-size: 12px; font-weight: 700; color: var(--ink-2); }

/* kartu event */
.event { display: flex; gap: 14px; align-items: center; }
.event-date {
  width: 56px; flex: none; text-align: center; background: var(--surface-2); border-radius: var(--r);
  padding: 9px 4px; border: 1px solid var(--line);
}
.event-date .d { display: block; font-size: 20px; font-weight: 800; line-height: 1.05; }
.event-date .m { display: block; font-size: 10.5px; font-weight: 700; color: var(--accent); letter-spacing: .6px; }
.event-tx { flex: 1; min-width: 0; }

/* ================= discover ================= */
.deck { position: relative; max-width: 420px; margin: 0 auto; }
.swipe {
  position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-2);
  aspect-ratio: 3 / 4; border: 1px solid var(--line);
}
.swipe-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,10,12,.42) 0%, rgba(8,10,12,.05) 34%, rgba(8,10,12,.92) 100%); pointer-events: none; }
.swipe-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 8px; align-items: flex-start; }
.swipe-tx { position: absolute; left: 16px; right: 16px; bottom: 16px; }
.swipe-n { display: flex; align-items: center; gap: 7px; font-size: 24px; font-weight: 800; letter-spacing: -.7px; }
.swipe-n svg { width: 19px; height: 19px; color: var(--accent); }
.swipe-l { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,.82); margin-top: 5px; font-weight: 600; }
.swipe-l svg { width: 14px; height: 14px; flex: none; }
.swipe-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 11px; }
.swipe-chips .tag { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(4px); }
.swipe-chips .tag.lime { background: var(--accent); color: var(--on-accent); }
.swipe-mut { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 11.5px; color: rgba(255,255,255,.72); font-weight: 600; }
.swipe-mut .avatar { border-color: transparent; }

.deck-act { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.round {
  width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; flex: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: .15s;
}
.round svg { width: 22px; height: 22px; }
.round:hover { transform: scale(1.06); border-color: var(--ink-3); }
.round.like { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.round.pass:hover { color: var(--bad); border-color: var(--bad); }

/* ================= community ================= */
.comm-head { display: flex; gap: 14px; align-items: center; }
.comm-ic {
  width: 62px; height: 62px; border-radius: var(--r); flex: none; display: grid; place-items: center;
  background: var(--accent-dim); color: var(--accent);
}
.comm-ic svg { width: 30px; height: 30px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick a, .quick button {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 13px 6px; text-align: center; transition: .15s;
}
.quick a:hover, .quick button:hover { border-color: var(--ink-3); }
.quick svg { width: 19px; height: 19px; margin: 0 auto 7px; color: var(--ink-2); }
.quick span { display: block; font-size: 11.5px; font-weight: 700; }

.post-h { display: flex; align-items: center; gap: 11px; }
.post-n { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; }
.post-n svg { width: 14px; height: 14px; color: var(--accent); }
.post-t { font-size: 11.5px; color: var(--ink-3); }
.post-b { font-size: 14px; color: var(--ink); line-height: 1.6; margin-top: 11px; }
.post-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 11px; }
.post-f { display: flex; align-items: center; gap: 18px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.post-a { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.post-a svg { width: 15px; height: 15px; }
.post-a:hover { color: var(--ink); }
.post-a.on { color: var(--accent); }

.video { position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface-2); margin-top: 12px; display: flex; align-items: center; gap: 12px; padding: 11px; border: 1px solid var(--line); }
.video-th { width: 84px; height: 58px; border-radius: 9px; overflow: hidden; position: relative; flex: none; background: var(--surface-3); }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.video-play svg { width: 26px; height: 26px; }
.video-tx { flex: 1; min-width: 0; }

/* ================= coach ================= */
.coach { display: flex; gap: 13px; }
.coach-ph { width: 78px; flex: none; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; position: relative; background: var(--surface-2); }
.coach-tx { flex: 1; min-width: 0; }
.coach-n { display: block; font-size: 14.5px; font-weight: 800; letter-spacing: -.2px; }
.coach-r { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.coach-p { display: block; font-size: 12.5px; font-weight: 700; color: var(--accent); margin-top: 6px; }
.coach-av { display: flex; gap: 6px; align-items: center; margin-top: 9px; flex-wrap: wrap; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.trust > div { padding: 14px 6px; background: var(--surface-2); border-radius: var(--r); border: 1px solid var(--line); }
.trust svg { width: 20px; height: 20px; margin: 0 auto 8px; color: var(--accent); }
.trust span { display: block; font-size: 11.5px; font-weight: 700; line-height: 1.35; }

/* ================= chat ================= */
.thread { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 520px; }
.thr-list { border-right: 1px solid var(--line); overflow-y: auto; max-height: 620px; }
.thr-item { display: flex; gap: 11px; padding: 13px 15px; width: 100%; text-align: left; border-bottom: 1px solid var(--line-2); }
.thr-item:hover, .thr-item.on { background: var(--surface-2); }
.thr-tx { display: block; flex: 1; min-width: 0; }
.thr-n { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; }
.thr-p { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thr-r { display: grid; gap: 6px; justify-items: end; flex: none; }
.thr-time { font-size: 11px; color: var(--ink-3); }
.unread { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.chat { display: flex; flex-direction: column; }
.chat-h { padding: 13px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 11px; }
.chat-back { display: none; }
.chat-b { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 440px; }
.msg { max-width: 76%; padding: 10px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.45; }
.msg.them { background: var(--surface-2); border-bottom-left-radius: 5px; align-self: flex-start; }
.msg.me { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 5px; align-self: flex-end; font-weight: 600; }
.msg-w { font-size: 11px; color: var(--ink-3); font-weight: 700; margin-bottom: -4px; align-self: flex-start; }
.msg-t { font-size: 10.5px; color: var(--ink-3); margin-top: 4px; }
.msg.me .msg-t { color: rgba(16, 19, 11, .5); }
.chat-f { padding: 12px 15px; border-top: 1px solid var(--line); display: flex; gap: 9px; align-items: center; }
.chat-f input { flex: 1; border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 11px 16px; font-size: 13.5px; outline: none; }
.chat-f input:focus { border-color: var(--ink-3); }

/* ================= wallet & corner ================= */
.wallet-card { background: linear-gradient(140deg, #1e2429, #14181b 60%); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; position: relative; overflow: hidden; }
.wallet-glow { position: absolute; right: -70px; top: -80px; width: 230px; height: 230px; border-radius: 999px; background: var(--accent); opacity: .1; }
.wallet-card .lbl { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.wallet-card .amt { font-size: 40px; font-weight: 800; letter-spacing: -1.6px; margin-top: 4px; }
.wallet-card .amt span { font-size: 14px; font-weight: 700; color: var(--accent); margin-left: 7px; letter-spacing: 0; }

.earn { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 8px; text-align: center; }
.earn svg { width: 20px; height: 20px; margin: 0 auto 9px; color: var(--ink-2); }
.earn .n { display: block; font-size: 12px; font-weight: 700; }
.earn .v { display: block; font-size: 12px; font-weight: 800; color: var(--accent); margin-top: 4px; }

.prod-art { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.prod-n { font-size: 12.5px; font-weight: 700; margin-top: 9px; }
.prod-p { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--accent); margin-top: 4px; }
.prod-p svg { width: 12px; height: 12px; }

.featured { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); min-height: 128px; display: flex; align-items: center; padding: 20px; }
.featured-tx { position: relative; max-width: 62%; }
.featured-tx .t1 { font-size: 12.5px; font-weight: 800; color: var(--accent); }
.featured-tx .t2 { font-size: 18px; font-weight: 800; letter-spacing: -.4px; margin-top: 3px; }
.featured-tx .t3 { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }

/* ================= band pemasaran ================= */
.band { background: var(--surface); border-top: 1px solid var(--line); margin-top: 34px; }
.band-in { padding: 30px 22px 34px; max-width: var(--maxw); }
.corner-banner { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; padding: 22px; }
.corner-tx { position: relative; max-width: 360px; }
.corner-tx h3 { font-size: 22px; font-weight: 800; letter-spacing: -.6px; line-height: 1.15; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.corner-tx p { font-size: 13px; color: rgba(255, 255, 255, .84); margin-top: 8px; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: start; }
.step { text-align: center; position: relative; padding: 0 4px; }
.step-ic { width: 52px; height: 52px; border-radius: 999px; margin: 0 auto 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent); }
.step-ic svg { width: 22px; height: 22px; }
.step .n { display: block; font-size: 14px; font-weight: 800; }
.step .s { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.4; }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 26px; right: -4px; width: 8px; height: 8px;
  border-top: 2px solid var(--line); border-right: 2px solid var(--line); transform: rotate(45deg);
}
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { text-align: center; padding: 16px 8px; background: var(--surface-2); border-radius: var(--r); border: 1px solid var(--line); }
.stat svg { width: 20px; height: 20px; margin: 0 auto 8px; color: var(--accent); }
.stat .n { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.stat .l { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 600; margin-top: 2px; }

.storebar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 22px; margin-top: 24px; border-top: 1px solid var(--line); }
.store-badge { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); }
.store-badge svg { width: 20px; height: 20px; }
.store-badge .s1 { display: block; font-size: 9px; color: var(--ink-3); font-weight: 600; }
.store-badge .s2 { display: block; font-size: 12.5px; font-weight: 700; }

/* ================= jadwal slot (booking lapangan) ================= */
.slotgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 8px; }
.slot { padding: 11px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); text-align: center; transition: .12s; }
.slot .t { display: block; font-size: 13px; font-weight: 700; }
.slot .p { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 2px; font-weight: 600; }
.slot:hover:not(.off) { border-color: var(--ink-3); }
.slot.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.slot.on .p { color: var(--on-accent); opacity: .72; }
.slot.off { opacity: .38; pointer-events: none; text-decoration: line-through; }

.venue-art { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.venue-art svg, .coach-ph svg, .prod-art svg, .video-th svg, .corner-banner .art svg { width: 100%; height: 100%; }
.venue-n { font-size: 14px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail .venue-n { min-height: 2.7em; }
.venue-loc { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.venue-loc svg { width: 13px; height: 13px; flex: none; }
.venue-loc .ell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 999px; background: rgba(10,12,14,.7); display: grid; place-items: center; color: #fff; transition: .15s; }
.fav svg { width: 16px; height: 16px; }
.fav.on { background: var(--accent); color: var(--on-accent); }
.fav.on svg { fill: currentColor; }

/* ================= overlay ================= */
.scrim { position: fixed; inset: 0; background: rgba(4, 6, 8, .68); z-index: 90; opacity: 0; animation: fade .18s forwards; }
@keyframes fade { to { opacity: 1; } }
.sheet {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(500px, 100%); z-index: 91;
  background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--sh-3);
  transform: translateX(26px); opacity: .5; animation: slidein .24s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes slidein { to { transform: none; opacity: 1; } }
.sheet-h { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); flex: none; }
.sheet-h .t { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.sheet-h .s { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.sheet-b { flex: 1; overflow-y: auto; padding: 20px; display: grid; gap: 18px; align-content: start; }
.sheet-f { flex: none; padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.sheet-f .btn { flex: 1; }

.menu { position: fixed; z-index: 91; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); padding: 7px; min-width: 240px; transform: translateY(-6px); opacity: 0; animation: pop .16s forwards; }
@keyframes pop { to { transform: none; opacity: 1; } }
.menu-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 11px; border-radius: 10px; text-align: left; }
.menu-item:hover { background: var(--surface-2); }
.menu-item svg { width: 17px; height: 17px; color: var(--ink-3); flex: none; }
.menu-item > span:not([class]) { display: block; flex: 1; min-width: 0; }
.menu-item .t { display: block; font-size: 13.5px; font-weight: 600; }
.menu-item .s { display: block; font-size: 11.5px; color: var(--ink-3); }
.menu-lbl { padding: 8px 11px 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--ink-3); }
.menu-sep { height: 1px; background: var(--line-2); margin: 6px 0; }
.menu-item .tick { color: var(--accent); margin-left: auto; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 14px); z-index: 95;
  background: var(--accent); color: var(--on-accent); padding: 13px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; box-shadow: var(--sh-3); display: flex; align-items: center; gap: 10px;
  opacity: 0; animation: toastin .22s forwards; max-width: calc(100vw - 28px);
}
.toast svg { width: 17px; height: 17px; flex: none; }
@keyframes toastin { to { transform: translate(-50%, 0); opacity: 1; } }

.tabbar { display: none; }
.drawer-scrim { display: none; }

/* ================= responsif ================= */
@media (max-width: 1240px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s cubic-bezier(.2, .7, .3, 1); box-shadow: var(--sh-3); width: 272px; }
  body.drawer .sidebar { transform: none; }
  body.drawer .drawer-scrim { display: block; position: fixed; inset: 0; z-index: 59; background: rgba(4, 6, 8, .6); }
  .main { margin-left: 0; }
  .burger { display: grid; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thread { grid-template-columns: minmax(0, 1fr); }
  .thr-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 264px; }
}

@media (max-width: 767px) {
  :root { --topbar-h: 56px; }
  .content { padding: 14px 14px calc(var(--tabbar-h) + 28px); }
  .content.flush { padding: 0 0 calc(var(--tabbar-h) + 28px); }
  .wrap { padding: 0 14px; }
  .grid { gap: 12px; }
  .stack { gap: 12px; }
  .g2, .g3, .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-one-mob { grid-template-columns: minmax(0, 1fr) !important; }
  .sec { margin-top: 22px; }
  .sec-h .t { font-size: 16px; }
  .page-title { font-size: 21px; }
  .topbar { padding: 0 14px; }
  .icon-btn { width: 36px; height: 36px; }
  .card-b { padding: 14px; }
  .hero-home { padding: 16px 0 2px; }
  .hero-home h1 { font-size: 28px; letter-spacing: -1px; }
  .hero-home p { font-size: 13.5px; }
  .rail { grid-auto-columns: minmax(200px, 1fr); gap: 10px; }
  .rail.tight { grid-auto-columns: minmax(132px, 1fr); }
  .sports { grid-auto-columns: minmax(64px, 1fr); gap: 8px; }
  .sport-ic { width: 52px; height: 52px; }
  .sport-ic svg { width: 23px; height: 23px; }
  .quick { gap: 8px; }
  .trust { gap: 8px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 8px; }
  .step:not(:last-child)::after { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-in { padding: 24px 14px 28px; }
  .corner-banner { min-height: 270px; padding: 18px; }
  .corner-tx h3 { font-size: 19px; }
  .featured-tx { max-width: 70%; }
  .wallet-card { padding: 18px; }
  .wallet-card .amt { font-size: 34px; }
  /* di HP: daftar chat satu layar penuh, percakapan jadi layar terpisah */
  .thread { grid-template-columns: minmax(0, 1fr); }
  .thr-list { max-height: none; overflow: visible; border-right: 0; border-bottom: 0; }
  body.chat-open .thr-list { display: none; }
  body:not(.chat-open) .chat { display: none; }
  .chat-back { display: grid; }
  .chat-b { max-height: none; min-height: 50vh; }
  .kv .k { width: 104px; }
  .slotgrid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 7px; }
  .sheet { width: 100%; top: auto; height: 90vh; border-radius: var(--r-xl) var(--r-xl) 0 0; transform: translateY(22px); }
  .menu { left: 12px !important; right: 12px; width: auto; min-width: 0; }
  .toast { bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom)); }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 55; left: 0; right: 0; bottom: 0;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(14, 17, 20, .95); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ink-3); font-size: 10px; font-weight: 700; position: relative; }
  .tab svg { width: 20px; height: 20px; }
  .tab.active { color: var(--accent); }
  .tab .nub {
    position: absolute; top: 7px; right: calc(50% - 18px); min-width: 15px; height: 15px; padding: 0 4px;
    border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 9px; font-weight: 800;
    display: grid; place-items: center;
  }
}

@media (max-width: 400px) {
  .g2.g-tight { grid-template-columns: minmax(0, 1fr); }
  .quick { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
