/* Futlify — shared styles for Matchday (index.html) and Pro Clubs (pro-clubs.html).
   Page-specific styles live in each page's <style> block. */

:root {
  --navy: #0B1030;
  --panel: #141C4A;
  --blue: #5F7FD0;
  --blue-soft: #A2BEF5;
  --green: #1C6B3D;
  --mint: #9FE0B8;
  --ink-soft: #E6EBF8;
  --bar-h: 72px;
  --accent: var(--mint);
}
.page-pc { --accent: var(--blue-soft); }

*, *::before, *::after { box-sizing: border-box; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- Top bar + product switcher ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 48, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(162, 190, 245, 0.18);
  font-family: 'Mulish', system-ui, sans-serif;
}
.topbar__in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px max(4vw, 16px);
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  flex: none;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}
.brand__a { color: #FFFFFF; }
.brand__b { color: var(--blue-soft); }

.switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(162, 190, 245, 0.28);
}
.switch__opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.switch__opt svg { flex: none; }
.switch__opt:hover { background: rgba(255, 255, 255, 0.1); color: #FFFFFF; }
.switch__opt[aria-current="page"],
.switch__opt[aria-current="page"]:hover { background: var(--accent); color: var(--navy); }

.links { display: flex; gap: 2px; margin-left: auto; }
.links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.links a:hover { color: #FFFFFF; }

/* Language toggle (EN | ID) */
.lang { flex: none; display: inline-flex; align-items: center; }
.lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 40px; padding: 0 8px;
  color: var(--ink-soft); font-weight: 800; font-size: 14px; letter-spacing: .02em; text-decoration: none;
}
.lang a + a::before { content: "|"; margin-right: 8px; margin-left: -4px; opacity: .35; font-weight: 400; }
.lang a:hover { color: #FFFFFF; }
.lang a[aria-current="true"] { color: #FFFFFF; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

.topbar__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--navy);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.page-pc .topbar__cta { background: var(--blue-soft); }
.topbar__cta:hover { color: var(--navy); filter: brightness(0.94); }

.topbar a:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; }

@media (max-width: 980px) {
  .links { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 640px) {
  :root { --bar-h: 122px; }
  .topbar__in { flex-wrap: wrap; row-gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .brand { font-size: 26px; }
  .topbar__in { gap: 8px; }
  .switch { order: 3; flex: 1 1 100%; }
  .switch__opt { flex: 1 1 0; min-height: 44px; padding: 0 10px; }
}

/* ---------- Tabs (step tabs, role pills) ---------- */
.tab { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.tab--dark { border: 1.5px solid rgba(162, 190, 245, 0.35); background: transparent; color: var(--ink-soft); }
.tab--dark:hover { border-color: var(--blue-soft); }
.tab--dark[aria-pressed="true"] { background: #FFFFFF; color: var(--navy); border-color: #FFFFFF; }
.tab--light { border: 1.5px solid #D5DBEA; background: #FFFFFF; color: var(--navy); }
.tab--light:hover { border-color: var(--navy); }
.tab--light[aria-pressed="true"] { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }

/* A panel keeps the parent's flex layout: its children sit in the parent row. */
.panel { display: contents; }

/* ---------- Access form states ---------- */
.form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FDECEA;
  color: #8A1F14;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
input[aria-invalid="true"] { border-color: #D92D30 !important; }
button[aria-busy="true"] { opacity: 0.7; cursor: progress !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
