:root {
  /* Paleta JOGGA (teste): preto · verde-lima · branco */
  --bg: #050505;
  --bg-2: #0b0b0b;
  --card: #121212;
  --line: #262626;
  --text: #fafafa;
  --muted: #a3a3a3;
  --brand: #a3e635;        /* verde-lima */
  --brand-2: #65a30d;      /* verde-lima escuro */
  --brand-hi: #d9f99d;     /* verde-lima claro */
  --brand-rgb: 163, 230, 53;
  --on-brand: #0a0a0a;     /* texto sobre verde-lima */
  --gold-grad: linear-gradient(135deg, #d9f99d 0%, #a3e635 45%, #65a30d 100%);
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --radius: 16px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --display: 'Outfit', 'Inter', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* ---------- navegação ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(5, 5, 5, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: .04em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--brand), var(--brand-2) 70%); display: grid; place-items: center; font-size: 1rem; box-shadow: 0 0 20px rgba(var(--brand-rgb), .45); }
.logo span { color: var(--brand); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-btn { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 6px 12px; cursor: pointer; font: 600 .8rem var(--font); }
.menu-btn { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 24px; font: 700 .95rem var(--font); cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: var(--gold-grad); color: var(--on-brand); box-shadow: 0 8px 24px rgba(var(--brand-rgb), .35); }
.btn-primary:hover { background: var(--brand-hi); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { padding: 7px 14px; font-size: .82rem; }
.btn-danger { background: transparent; color: var(--bad); border: 1px solid rgba(239, 68, 68, .4); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 120px 0 110px; text-align: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto; height: 700px; background: radial-gradient(ellipse at center, rgba(var(--brand-rgb), .22), transparent 60%); pointer-events: none; }
.hero > * { position: relative; }
.badge { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: .75rem; letter-spacing: .14em; font-weight: 700; color: var(--brand); text-transform: uppercase; background: rgba(var(--brand-rgb), .06); }
.hero h1 { font-family: var(--display); font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1.02; margin: 24px auto 20px; max-width: 900px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { color: var(--muted); font-size: 1.2rem; max-width: 640px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.stats { display: flex; justify-content: center; gap: 56px; margin-top: 72px; flex-wrap: wrap; }
.stats strong { display: block; font-family: var(--display); font-size: 2.2rem; }
.stats span { color: var(--muted); font-size: .9rem; }

/* ---------- secções ---------- */
section { padding: 90px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); margin: 12px 0 8px; }
.section-head p { color: var(--muted); margin: 0; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(var(--brand-rgb), .5); transform: translateY(-2px); }
.card h3 { font-family: var(--display); margin: 0 0 8px; font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0 0 18px; font-size: .95rem; }
.card-meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; }
.price { font-family: var(--display); font-size: 1.6rem; font-weight: 700; }
.price small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.coach { text-align: center; }
.avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font: 800 1.6rem var(--display); background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.tag { display: inline-block; font-size: .78rem; color: var(--brand); font-weight: 600; margin-bottom: 10px; }

/* ---------- Experiência (galeria) ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tile { position: relative; aspect-ratio: 4 / 5; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; padding: 0; background: var(--card); cursor: pointer; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; pointer-events: none; }
.tile:hover img, .tile:hover video { transform: scale(1.04); }
.tile .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(var(--brand-rgb), .9); color: #fff; display: grid; place-items: center; font-size: 1.2rem; padding-left: 4px; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.tile-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); color: #fff; font-size: .85rem; text-align: left; }
.lightbox { background: transparent; border: 0; padding: 0; max-width: min(1000px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox img, .lightbox video { max-width: 100%; max-height: 82vh; display: block; margin: 0 auto; border-radius: 12px; background: #000; }
.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; }
.lightbox-close { position: fixed; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .6); color: #fff; font-size: 1.1rem; cursor: pointer; z-index: 2; }

/* ---------- formulários ---------- */
.form-card { max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
input, select, textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 12px 14px; font: 1rem var(--font); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .2); }
textarea { min-height: 110px; resize: vertical; }
input[type="date"] { color-scheme: dark; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 8px; padding: 8px 12px; cursor: pointer; font: 600 .88rem var(--font); }
.slot.active { background: var(--brand); border-color: var(--brand); }
.slot:disabled { opacity: .3; text-decoration: line-through; cursor: not-allowed; }
.slot small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); }
.slot.active small { color: rgba(10, 10, 10, .65); }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.day { border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 10px; padding: 10px 6px; cursor: pointer; text-align: center; font: 600 .9rem var(--font); }
.day b { display: block; font: 700 1.4rem var(--display); }
.day small { display: block; color: var(--muted); font-size: .72rem; text-transform: capitalize; }
.day.active { background: var(--brand); border-color: var(--brand); }
.day.active small { color: rgba(10, 10, 10, .65); }
.day:disabled { opacity: .3; cursor: not-allowed; }
.season { display: inline-block; margin-top: 10px; color: var(--text); background: rgba(var(--brand-rgb), .12); border: 1px solid rgba(var(--brand-rgb), .35); border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 600; }
.hint { color: var(--muted); font-size: .85rem; }
.alert { padding: 12px 16px; border-radius: 10px; margin-top: 16px; font-size: .92rem; }
.alert-ok { background: rgba(34, 197, 94, .12); color: #86efac; border: 1px solid rgba(34, 197, 94, .3); }
.alert-err { background: rgba(239, 68, 68, .12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, .3); }
.logged-as { background: rgba(var(--brand-rgb), .08); border: 1px solid rgba(var(--brand-rgb), .3); border-radius: 10px; padding: 12px 16px; font-size: .92rem; }

/* ---------- tabs / tabelas ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tab { background: none; border: 0; color: var(--muted); padding: 12px 16px; font: 600 .95rem var(--font); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: var(--text); border-bottom-color: var(--brand); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; background: var(--bg-2); }
tr:last-child td { border-bottom: 0; }
td .sub { color: var(--muted); font-size: .82rem; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.status-pending { background: rgba(245, 158, 11, .15); color: #fcd34d; }
.status-confirmed { background: rgba(var(--brand-rgb), .18); color: var(--brand-hi); }
.status-completed { background: rgba(34, 197, 94, .15); color: #86efac; }
.status-cancelled { background: rgba(239, 68, 68, .15); color: #fca5a5; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 28px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.kpi strong { display: block; font: 700 1.8rem var(--display); }
.kpi span { color: var(--muted); font-size: .85rem; }
.empty { color: var(--muted); text-align: center; padding: 30px; }
.page { padding: 60px 0 90px; min-height: 70vh; }
.page h1 { font-family: var(--display); font-size: 2.2rem; margin: 0 0 24px; }
.auth-box { max-width: 440px; margin: 0 auto; }

/* ---------- rodapé ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: .9rem; }
footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- telemóvel ---------- */
@media (max-width: 820px) {
  .menu-btn { display: block; margin-left: auto; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); margin: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .nav-actions .btn:not(#logout):not(#account-btn) { display: none; }
  #account-btn { padding: 7px 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .hero { padding: 80px 0; }
  .stats { gap: 30px; }
  section { padding: 64px 0; }
}

/* ---------- admin: Experiência ---------- */
.upload-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 22px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px dashed var(--line); border-radius: 12px; padding: 22px; cursor: pointer; text-align: center; margin: 0; color: var(--text); }
.drop:hover { border-color: var(--brand); }
.drop input { width: 100%; max-width: 360px; margin-bottom: 8px; border: 0; background: none; padding: 0; }
.up-row { display: grid; grid-template-columns: 1fr 140px 120px; gap: 10px; align-items: center; margin-top: 10px; font-size: .88rem; }
.up-row progress { width: 100%; accent-color: var(--brand); }
.up-error .up-status { color: #fca5a5; }
.media-admin { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.media-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.media-item input { padding: 8px 10px; font-size: .85rem; }
.media-thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #000; }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-kind { position: absolute; left: 8px; bottom: 8px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .72rem; padding: 3px 8px; border-radius: 999px; }
@media (max-width: 600px) { .up-row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- fundo da página: Contactos + Regras ---------- */
.bottom-info { border-bottom: 0; }
.bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.bottom-col { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.bottom-col h2 { font-family: var(--display); font-size: 1.8rem; margin: 12px 0 6px; }
.bottom-col > .hint { margin: 0 0 18px; }
.rules { margin-top: 14px; }
.rules ol { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; color: var(--muted); }
.rules li::marker { color: var(--brand); font-weight: 700; }
@media (max-width: 820px) { .bottom-grid { grid-template-columns: 1fr; } .bottom-col { padding: 22px; } }

/* ---------- várias páginas ---------- */
.nav-links a.active { color: var(--text); position: relative; }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--brand); }
.page-head { position: relative; padding: 72px 0 36px; text-align: center; overflow: hidden; }
.page-head::before { content: ''; position: absolute; inset: -40% -10% auto; height: 420px; background: radial-gradient(ellipse at center, rgba(var(--brand-rgb), .18), transparent 60%); pointer-events: none; }
.page-head > * { position: relative; }
.page-head h1 { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 16px 0 8px; letter-spacing: -.01em; }
.page-head p { color: var(--muted); margin: 0 auto; max-width: 620px; }
.page-head .season { margin-top: 16px; }
.page-main { padding: 20px 0 90px; min-height: 40vh; }
.page-cta { text-align: center; margin-top: 40px; }
.narrow { max-width: 760px; }
.section-title { font-family: var(--display); font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 12px 0 10px; }
.section-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-link { color: var(--brand); font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-link:hover { text-decoration: underline; }
.gallery-empty { text-align: center; grid-column: 1 / -1; }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.about-text p { color: var(--muted); font-size: 1.05rem; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.facts p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.facts a { color: var(--text); }
.fact-icon { font-size: 1.4rem; line-height: 1; }
.xmas-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(var(--brand-rgb), .16), rgba(var(--brand-rgb), .03)); border: 1px solid rgba(var(--brand-rgb), .35); border-radius: 22px; padding: 34px; }
.xmas-card p { margin: 0 0 6px; color: var(--muted); }
.xmas-card .hint { color: var(--text); font-weight: 600; margin-top: 10px; }
.footer-grid { display: grid !important; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 28px; align-items: start; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a, footer a { color: var(--muted); text-decoration: none; }
.footer-links a:hover, footer a:hover { color: var(--text); }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .xmas-card { padding: 24px; }
  .page-head { padding: 52px 0 24px; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--brand); }
}
.xmas-section { padding: 0 0 80px; }
@media (max-width: 820px) { .xmas-section { padding-bottom: 56px; } }
/* Início mais compacto */
.hero { padding: 88px 0 72px; }
.hero h1 { margin: 20px auto 16px; }
.hero p { margin-bottom: 28px; }
.stats { margin-top: 44px; }
#sobre { padding: 70px 0; }
.bottom-info { padding: 64px 0; }
#contact-form textarea { min-height: 84px; }
@media (max-width: 820px) {
  .hero { padding: 56px 0 48px; }
  .stats { margin-top: 32px; gap: 22px; }
  .stats strong { font-size: 1.8rem; }
  #sobre, .bottom-info { padding: 48px 0; }
}
#account-btn { white-space: nowrap; }
@media (max-width: 820px) {
  .nav .container { gap: 12px; }
  #account-btn { font-size: .78rem; padding: 7px 11px; }
  .lang-btn { padding: 6px 9px; }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stats span { font-size: .78rem; display: block; line-height: 1.3; }
  .hero-cta .btn { padding: 11px 20px; }
}
@media (max-width: 380px) { .logo { font-size: 1.25rem; } .logo-mark { width: 30px; height: 30px; } }


/* ---------- tema preto · dourado · branco ---------- */
::selection { background: var(--brand); color: var(--on-brand); }
.slot.active, .day.active { color: var(--on-brand); }
.slot.active small, .day.active small { color: rgba(10, 10, 10, .7); }
.tile .play { color: var(--on-brand); background: var(--gold-grad); }
.avatar { background: var(--gold-grad); color: var(--on-brand); }
.logo-mark { background: var(--gold-grad); box-shadow: 0 0 18px rgba(var(--brand-rgb), .35); }
.hero h1 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge { color: var(--brand); border-color: rgba(var(--brand-rgb), .35); background: rgba(var(--brand-rgb), .06); letter-spacing: .18em; }
.stats strong { color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.section-link { color: var(--brand); }
.page-head::before, .hero::before { background: radial-gradient(ellipse at center, rgba(var(--brand-rgb), .14), transparent 62%); }
.xmas-card { background: linear-gradient(135deg, rgba(var(--brand-rgb), .12), rgba(var(--brand-rgb), .02)); }
.btn-primary:hover { background: var(--brand-hi); }

/* logótipo: bola sem fundo */
.logo-mark { background: none !important; box-shadow: none !important; width: auto !important; height: auto !important; font-size: 1.35rem; }
.hero h1 { margin-top: 0; }
.hero-cta { margin-top: 32px; }

/* Sobre o projeto */
.about-text p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; margin: 0 0 14px; }
.about-text strong { color: var(--text); font-weight: 600; }
.pillars-title { margin: 22px 0 12px; font-weight: 600; color: var(--text); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pillar { border: 1px solid var(--line); border-top: 2px solid var(--brand); border-radius: 12px; padding: 14px; background: var(--card); display: flex; flex-direction: column; gap: 4px; }
.pillar-n { font: 700 .8rem var(--display); color: var(--brand); letter-spacing: .1em; }
.pillar small { color: var(--muted); font-size: .85rem; line-height: 1.45; }
@media (max-width: 620px) { .pillars { grid-template-columns: 1fr; } }
.pillars-title, .about-text strong { font-weight: 700; color: var(--text); }

/* cartões "Para quem / Onde / Treinos" centrados verticalmente com o texto */
.about-grid > .facts { align-self: center; }

/* rodapé: links em duas colunas */
.footer-links { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 36px; row-gap: 8px; }

/* rodapé: JOGGA à esquerda, "Onde" ao centro, links à direita */
@media (min-width: 821px) {
  .footer-grid { grid-template-columns: 1fr auto 1fr; }
  .footer-grid > div:nth-child(2) { text-align: center; }
  .footer-grid > .footer-links { justify-self: end; }
}

/* rodapé simples numa linha */
footer .footer-row { display: flex !important; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; }

/* topo: logótipo à esquerda, menu ao centro, idioma + conta à direita */
@media (min-width: 821px) {
  .nav .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .nav .logo { justify-self: start; }
  .nav .nav-links { margin-left: 0; justify-self: center; }
  .nav .nav-actions { justify-self: end; grid-column: 3; }
}

/* Treinadores: cartão clicável + janela de perfil */
.grid:has(.coach-card) { grid-template-columns: repeat(auto-fill, minmax(220px, 260px)); justify-content: center; }
.coach-card { font: inherit; color: inherit; cursor: pointer; width: 100%; display: flex; flex-direction: column; align-items: center; }
.coach-card h3 { margin-bottom: 4px; }
.coach-card .tag { margin-bottom: 0; }
.coach-more { margin-top: 16px; color: var(--brand); font-weight: 600; font-size: .9rem; }
.coach-card:hover .coach-more { text-decoration: underline; }
.coach-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.profile { background: var(--card); color: var(--text); border: 1px solid rgba(var(--brand-rgb), .35); border-radius: 20px; padding: 32px; width: min(620px, calc(100vw - 32px)); max-height: 88vh; overflow: auto; }
.profile::backdrop { background: rgba(0, 0, 0, .8); }
.profile-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; }
.profile-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; padding-right: 36px; }
.profile-head .avatar { margin: 0; flex-shrink: 0; }
.profile-head h2 { font-family: var(--display); font-size: 1.7rem; margin: 0 0 4px; }
.profile-head .tag { margin: 0; }
.profile-text p { color: var(--muted); line-height: 1.7; margin: 0 0 14px; }
@media (max-width: 600px) { .profile { padding: 24px 20px; } .profile-head .avatar { width: 64px; height: 64px; font-size: 1.3rem; } }
/* especialidades do treinador: uma por linha */
.tags { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tags .tag { margin: 0; }
.profile-head .tags { align-items: flex-start; }

/* treinadores centrados na página, qualquer que seja o número */
#coaches-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
#coaches-list .coach-card { width: 260px; max-width: 100%; }

/* registo */
.auth-box.auth-wide { max-width: 640px; }
.form-section { font: 700 .78rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.form-grid > .form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.form-grid small.hint { display: block; margin-top: 6px; font-size: .8rem; }

.form-section .optional { color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: .8rem; }
.form-grid > .full.form-section:first-child { border-top: 0; }

/* página Contactos */
.contact-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 0; position: relative; overflow: hidden; }
.contact-page::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(var(--brand-rgb), .12), transparent 60%); pointer-events: none; }
.contact-page > * { position: relative; }
.contact-page h1 { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 4rem); margin: 0 0 18px; letter-spacing: -.01em; }
.contact-email { display: inline-block; font: 600 clamp(1.05rem, 3.4vw, 1.5rem) var(--font); color: var(--brand); text-decoration: none; border-bottom: 1px solid rgba(var(--brand-rgb), .4); padding-bottom: 4px; word-break: break-all; }
.contact-email:hover { color: var(--brand-hi); border-bottom-color: var(--brand-hi); }
.contact-page .badge { margin-bottom: 18px; }
.contact-page h1 { margin-bottom: 12px; }
.contact-lead { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto 26px; }
.contact-email { display: inline-flex; align-items: center; gap: 12px; }
.contact-email span { border-bottom: 1px solid rgba(var(--brand-rgb), .4); padding-bottom: 4px; }
.contact-email { border-bottom: 0 !important; }
.mail-icon { width: 1.4em; height: 1.4em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-email { font-size: 1.05rem !important; gap: 10px; }
@media (max-width: 600px) { .contact-email { font-size: .98rem !important; } }

/* admin: perfil do atleta */
.athlete-profile { width: min(680px, calc(100vw - 32px)); }
.athlete-profile h2 { font-family: var(--display); font-size: 1.7rem; margin: 0 0 2px; padding-right: 40px; }
.pf-section { margin: 22px 0 8px; font: 700 .75rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.pf-row { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.pf-row span { color: var(--muted); }
.pf-row strong { font-weight: 500; word-break: break-word; }
.pf-notes strong { white-space: pre-wrap; }
.athlete-profile .table-wrap { margin-top: 6px; }
@media (max-width: 560px) { .pf-row { grid-template-columns: 1fr; gap: 2px; } }

/* admin: aviso de cancelamento */
.notice-dialog h2 { font-family: var(--display); font-size: 1.5rem; margin: 0 0 12px; padding-right: 40px; }
.notice-status { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .3); color: #fcd34d; font-size: .9rem; }
.notice-status.ok { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .3); color: #86efac; }
.notice-msg { white-space: pre-wrap; font: .88rem/1.55 var(--font); color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 6px 0 0; }
.contact-page .contact-email { margin: 6px 12px; }

/* página Regras: tópicos */
.rules-list { display: grid; gap: 14px; }
.rule-topic { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; }
.rule-topic h2 { font-family: var(--display); font-size: 1.25rem; margin: 0 0 10px; display: flex; align-items: baseline; gap: 12px; }
.rule-n { font: 700 .8rem var(--font); color: var(--brand); letter-spacing: .1em; }
.rule-topic ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--muted); line-height: 1.6; }
.rule-topic li::marker { color: var(--brand); }
.rule-topic strong { color: var(--text); font-weight: 600; }
@media (max-width: 600px) { .rule-topic { padding: 16px 18px; } }

/* instruções de pagamento */
.payment-box { margin-top: 16px; border: 1px solid rgba(var(--brand-rgb), .45); background: rgba(var(--brand-rgb), .07); border-radius: 14px; padding: 18px 20px; }
.payment-box h3 { font-family: var(--display); margin: 0 0 12px; font-size: 1.2rem; }
.pay-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pay-row span { color: var(--muted); } .pay-row strong { text-align: right; }
.pay-amount { color: var(--brand); font-size: 1.3rem; }
.payment-box .hint { margin: 12px 0 0; }
.pay-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.pay-badge.ok { background: rgba(34, 197, 94, .15); color: #86efac; } .pay-badge.no { background: rgba(245, 158, 11, .15); color: #fcd34d; }

/* comprovativos */
.proof-area { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.proof-text { margin: 0 0 10px; font-size: .92rem; }
.proof-btn { cursor: pointer; }
.proof-status { margin: 8px 0 0; } .proof-status.ok { color: #86efac; }
.pay-badge.wait { background: rgba(56, 189, 248, .15); color: #7dd3fc; }
.proof-link { color: var(--brand); font-size: .85rem; text-decoration: none; display: inline-block; margin: 4px 0; } .proof-link:hover { text-decoration: underline; }

/* Preçário */
.narrow-wide { max-width: 900px; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.price-card.highlight { background: var(--brand-2); border-color: var(--brand-2); }
.price-value { font: 800 clamp(3.4rem, 8vw, 4.6rem) var(--display); line-height: 1; color: var(--brand); }
.price-card.highlight .price-value { color: #fff; }
.price-unit { margin-top: 10px; color: var(--muted); font-size: 1.1rem; }
.price-card.highlight .price-unit { color: #fff; }
.price-who { margin-top: 18px; font: 700 1.3rem var(--display); color: #fff; }
.price-note { color: var(--muted); margin: 20px 0 0; }
@media (max-width: 640px) { .price-grid { grid-template-columns: 1fr; } .price-card { padding: 24px; } }
.price-info { margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; color: var(--muted); line-height: 1.6; }
.price-info p { margin: 0 0 10px; color: var(--text); }
.price-info strong { color: var(--brand); font-weight: 700; }
.price-info ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.price-info li::marker { color: var(--brand); }

/* aviso de pagamento em falta */
#account-btn { position: relative; }
.unpaid-dot { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: #f59e0b; color: #111; font-size: .7rem; font-weight: 800; line-height: 19px; text-align: center;
  box-shadow: 0 0 0 2px var(--bg, #0a0a0a); animation: unpaid-pulse 2s ease-in-out infinite; }
@keyframes unpaid-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .unpaid-dot { animation: none; } }
.unpaid-box { margin-bottom: 18px; border: 1px solid rgba(245, 158, 11, .5); background: rgba(245, 158, 11, .08); border-radius: 14px; padding: 16px 18px; }
.unpaid-box h3 { margin: 0 0 8px; font-family: var(--display); font-size: 1.15rem; color: #fcd34d; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.unpaid-total { font-size: .9rem; color: var(--text, #fff); font-family: inherit; font-weight: 600; }
.unpaid-box > p { margin: 0 0 10px; font-size: .92rem; }
.unpaid-box ul { list-style: none; margin: 0 0 10px; padding: 0; }
.unpaid-box li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid rgba(245, 158, 11, .2); }
.unpaid-when { font-size: .85rem; color: #fcd34d; margin-top: 2px; }
.unpaid-box li.late .unpaid-when { color: #fca5a5; font-weight: 600; }
.unpaid-box code { font-family: inherit; background: rgba(255, 255, 255, .06); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.unpaid-box .sub { margin: 4px 0 0; }

/* marcação de vários treinos */
.day { position: relative; }
.day.has-picked { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.day-count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #0a0a0a; font: 800 .72rem/20px var(--font); }
.slots-hint { width: 100%; margin: 6px 0 0; }
.picked { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; }
.picked-head { font-weight: 600; margin-bottom: 8px; }
.picked-head b { color: var(--brand); }
.picked-list { display: flex; flex-wrap: wrap; gap: 8px; }
.picked-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(var(--brand-rgb), .12); border: 1px solid rgba(var(--brand-rgb), .45); border-radius: 999px; padding: 5px 6px 5px 12px; font-size: .85rem; text-transform: capitalize; }
.picked-chip button { border: 0; background: rgba(255, 255, 255, .1); color: var(--text); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1; }
.picked-chip button:hover { background: rgba(239, 68, 68, .35); }
.pay-amount small { font-size: .78rem; color: var(--muted); font-weight: 500; }
.cal-area { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cal-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-google a { color: var(--brand); text-transform: capitalize; }
.forgot-link { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font: inherit; font-size: .88rem; text-decoration: underline; }

/* marcação só com conta */
.login-gate { text-align: center; max-width: 560px; margin: 0 auto; }
.login-gate h2 { font-family: var(--display); margin: 6px 0 8px; font-size: 1.5rem; }
.login-gate p { color: var(--muted); margin: 0 0 18px; }
.gate-icon { font-size: 2rem; }
.gate-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* lista de espera e cancelamentos */
.slot.slot-full { opacity: .75; border-style: dashed; text-decoration: none; }
.slot.slot-full small { color: #fcd34d; }
.slot.slot-full:hover { border-color: #f59e0b; opacity: 1; }
.waitlist-box { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.waitlist-box h3 { margin: 0 0 4px; font-family: var(--display); font-size: 1.1rem; }
.waitlist-box ul { list-style: none; margin: 10px 0 0; padding: 0; }
.waitlist-box li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); text-transform: none; }
.cancel-late { display: inline-block; max-width: 170px; font-size: .78rem; line-height: 1.3; }

/* mudar horário */
.move-dialog { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 18px; padding: 26px; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px); overflow: auto; }
.move-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.move-dialog h2 { margin: 0 0 6px; font-family: var(--display); }
.move-dialog > label { display: block; margin: 16px 0 8px; }
.move-dialog .profile-close { position: absolute; top: 14px; right: 14px; }
.move-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.overdue-tag { margin-top: 6px; font-size: .75rem; font-weight: 700; color: #fca5a5; }

/* logótipo (bola da marca) e rodapé */
.ico { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }
.logo-ball { width: 34px; height: 34px; display: block; filter: drop-shadow(0 0 12px rgba(var(--brand-rgb), .35)); }
.site-footer { padding: 48px 0 28px; }
.site-footer .container { display: block; }
.foot-grid { display: grid !important; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: center; }
.foot-copy { justify-self: end; font-size: .85rem; }
.foot-brand .logo { font-size: 1.35rem; color: var(--text); }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 { margin: 4px 0 4px; color: var(--text); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.foot-col a { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); text-decoration: none; }
.foot-col a .ico { color: var(--brand); }
.foot-col a:hover { color: var(--text); }
.foot-links { flex-direction: row; gap: 24px; justify-content: center; }
.foot-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 16px; justify-items: center; text-align: center; } .foot-copy { justify-self: center; } }
@media print { .site-footer { display: none; } }

/* foto dos treinadores */
.avatar-photo { display: block; object-fit: cover; object-position: center 25%; background: var(--card); border: 3px solid var(--brand); box-shadow: 0 0 24px rgba(var(--brand-rgb), .25); }
.coach-card .avatar-photo { width: 120px; height: 120px; }
.profile-head .avatar-photo { width: 96px; height: 96px; }
@media (max-width: 600px) { .profile-head .avatar-photo { width: 72px; height: 72px; } }
.coach-thumb { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 25%; display: block; border: 2px solid var(--brand); }
.coach-thumb.empty { border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted); }
label.btn.disabled { opacity: .5; pointer-events: none; }

/* foto dos treinadores maior (redonda) */
#coaches-list .coach-card { width: 300px; }
.coach-card .avatar-photo { width: 200px; height: 200px; margin-bottom: 20px; border-width: 4px; }
.profile-head .avatar-photo { width: 150px; height: 150px; border-width: 4px; }
@media (max-width: 600px) { .profile-head .avatar-photo { width: 110px; height: 110px; } }

/* página inicial: cartão de Natal antes de "Sobre o JOGGA" */
.xmas-section + #sobre { padding-top: 0; }

/* marcação: dados do perfil, não editáveis */
input.locked { background: transparent; border-style: dashed; color: var(--muted); cursor: not-allowed; }
input.locked:focus { outline: none; box-shadow: none; }
.profile-lock a { color: var(--brand); }

/* ===== Polimento (revisão unslop): cor sólida, sem brilhos, títulos mais leves, etiquetas em minúsculas ===== */
/* 1. cor: o verde-lima passa a ser uma cor sólida — sem gradientes, brilhos nem manchas de luz */
:root { --gold-grad: var(--brand); }
.btn-primary { background: var(--brand); box-shadow: none; }
.btn-primary:hover { background: var(--brand-hi); }
.hero::before, .page-head::before, .contact-page::before { display: none; }
.hero h1 em { background: none; -webkit-text-fill-color: currentColor; color: var(--brand); }
.xmas-card { background: rgba(var(--brand-rgb), .05); border-color: rgba(var(--brand-rgb), .3); }
.logo-ball, .logo-mark { filter: none; box-shadow: none; }
.avatar { background: var(--brand); }
.avatar-photo { box-shadow: none; }
.season { background: transparent; }
/* 2. tipo: títulos em 600 (a hierarquia vem do tamanho), botões em 600 */
h1, h2, h3, .section-title, .page-head h1, .hero h1, .contact-page h1, .card h3, .profile-head h2 { font-weight: 600; }
.btn { font-weight: 600; }
.price, .price-value, .price-who, .day b, .kpi strong, .avatar, .stat strong { font-weight: 600; }
.status, .pay-badge, .rules li::marker, .pillar-n, .rule-n, .pillars-title, .about-text strong, .price-info strong, .overdue-tag, .day-count, .unpaid-dot { font-weight: 600; }
/* 3. etiquetas sem MAIÚSCULAS espaçadas */
.badge { text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 600; padding: 4px 12px; }
.form-section, .pf-section, .foot-col h4 { text-transform: none; letter-spacing: 0; font-size: .9rem; }
th { text-transform: none; letter-spacing: 0; font-size: .82rem; }
.pillar-n, .rule-n { letter-spacing: 0; }
/* 4. sem animações a pulsar */
.unpaid-dot { animation: none; }
