/* pages.css — pagina-specifieke stijlen, betrouwbaar via Write geschreven.
   Alles is gescoped zodat het NOOIT het template (topbar/sidebar) beïnvloedt. */

/* ── Activiteiten-hub: tab-bar ── */
.act-tabs { position: sticky; top: 0; z-index: 6; flex-shrink: 0; display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 11px 26px; margin-bottom: 6px;
  background: #0b0b12; border-bottom: 1px solid var(--border); box-shadow: 0 6px 14px rgba(0,0,0,.35); -webkit-overflow-scrolling: touch; }
.act-tab { flex-shrink: 0; }
.act-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 768px) { .act-tabs { padding: 10px 15px; } }
.act-tab { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 7px 13px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); text-decoration: none;
  font-size: .78rem; font-weight: 700; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.act-tab i { font-size: .82rem; }
.act-tab:hover { color: var(--text); border-color: var(--border-h); }
.act-tab.active { background: linear-gradient(180deg, rgba(231,76,60,.22), rgba(231,76,60,.08)); border-color: rgba(231,76,60,.45); color: #fff; }
/* Mobiel: alleen iconen (compacte vierkante knoppen). */
@media (max-width: 560px) { .act-tabs { padding: 8px 10px; gap: 5px; } .act-tab span { display: none; } .act-tab { padding: 7px 10px; } .act-tab i { font-size: .92rem; } }

/* ── Gedeelde overzichts-stattegels (dagtaken, uitdagingen, prestaties) ── */
.ov-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ov-stat  { background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 9px 11px; text-align: center; }
.ov-stat .v { font-size: .95rem; font-weight: 800; color: var(--text); line-height: 1.15; }
.ov-stat .l { font-size: .58rem; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .4px; }
.done-banner { display: flex; align-items: center; gap: 12px; border-radius: 12px; padding: 12px 15px; margin-bottom: 14px;
  background: linear-gradient(90deg, rgba(39,174,96,.16), rgba(46,204,113,.05)); border: 1px solid rgba(46,204,113,.28); font-size: .82rem; }
.done-banner i { font-size: 1.3rem; color: #2ecc71; flex-shrink: 0; }
.done-banner b { color: #2ecc71; }
@media (max-width: 560px) { .ov-stats { grid-template-columns: 1fr 1fr; } }

/* ── Dagtaken-pagina (gescoped onder .dq-page) ── */
.dq-page .q-card { background: var(--surface); border: 1px solid rgba(255,255,255,.08); border-radius: 11px; padding: 10px 13px; margin-bottom: 9px; }
.dq-page .q-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 7px; }
.dq-page .q-title { font-weight: 700; font-size: .8rem; }
.dq-page .q-desc { font-size: .68rem; color: var(--muted); margin-top: 3px; }
.dq-page .q-desc a { color: var(--gold); text-decoration: none; font-weight: 600; white-space: nowrap; }
.dq-page .q-desc a:hover { text-decoration: underline; }
.dq-page .q-rew { font-size: .72rem; color: var(--gold); white-space: nowrap; flex-shrink: 0; background: rgba(241,196,15,.12); padding: 4px 9px; border-radius: 20px; }
.dq-page .q-bar { height: 9px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.dq-page .q-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg,#e67e22,#f1c40f); transition: width .4s; }
.dq-page .q-fill.done { background: linear-gradient(90deg,#27ae60,#2ecc71); }
.dq-page .q-sub { font-size: .7rem; color: var(--muted); margin-top: 5px; display: flex; justify-content: space-between; }
.dq-page .ob-step { display: flex; align-items: center; gap: 11px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.dq-page .ob-step:last-child { border-bottom: 0; }
.dq-page .ob-ico { width: 28px; height: 28px; font-size: .8rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(255,255,255,.06); color: var(--muted); }
.dq-page .ob-ico.done { background: rgba(39,174,96,.18); color: #2ecc71; }
.dq-page .ob-main { flex: 1; min-width: 0; }
.dq-page .ob-t { font-weight: 700; font-size: .78rem; }
.dq-page .ob-d { font-size: .66rem; color: var(--muted); }
.dq-page .ob-rew { font-size: .66rem; color: var(--gold); white-space: nowrap; }

/* ── Prestatiespagina (gescoped onder .achv-page) ── */
.achv-page .ach-ring { --p: 0; width: 72px; height: 72px; border-radius: 50%; flex: 0 0 auto; background: conic-gradient(#f1c40f calc(var(--p)*1%), rgba(255,255,255,.08) 0); display: flex; align-items: center; justify-content: center; }
.achv-page .ach-ring span { width: 54px; height: 54px; border-radius: 50%; background: #14141c; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: .95rem; color: #f1c40f; }
.achv-page .ach-cat { display: flex; align-items: center; gap: 8px; margin: 2px 2px 11px; font-weight: 800; font-size: .85rem; color: #eaeaf8; }
.achv-page .ach-cat .ct-ic { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.achv-page .ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.achv-page .ach-desc-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--border); font-size: .76rem; color: var(--muted); }
.achv-page .ach-desc-bar i { color: var(--gold); }
.achv-page .ach-desc-bar a { margin-left: auto; color: var(--gold); text-decoration: none; font-weight: 600; white-space: nowrap; }
.achv-page .ach-desc-bar a:hover { text-decoration: underline; }
.achv-page .ach-card { position: relative; background: #191921; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; padding: 12px 13px 11px; }
.achv-page .ach-card.locked { opacity: .8; }
.achv-page .ach-card.done { background: linear-gradient(150deg, rgba(241,196,15,.13), rgba(25,25,33,.6)); border-color: rgba(241,196,15,.55); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.achv-page .ach-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.achv-page .ach-ic { width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.achv-page .ach-name { font-weight: 800; color: #fff; font-size: .85rem; line-height: 1.15; }
.achv-page .ach-sub { font-size: .68rem; color: var(--muted); margin-top: 2px; }
.achv-page .ach-flag { position: absolute; top: 11px; right: 12px; font-size: .85rem; }
.achv-page .ach-bar { height: 9px; background: rgba(255,255,255,.10); border-radius: 6px; overflow: hidden; }
.achv-page .ach-fill { height: 100%; border-radius: 6px; }
.achv-page .ach-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: .74rem; }
.achv-page .ach-prog { color: var(--muted); font-variant-numeric: tabular-nums; }
.achv-page .ach-rew { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; background: rgba(241,196,15,.14); color: #f3cf52; padding: 3px 9px; border-radius: 20px; }
.achv-page .ach-card.done .ach-rew { background: rgba(39,174,96,.16); color: #6fe09a; }
.achv-page .nav-item .nav-badge { margin-left: auto; font-size: .66rem; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.06); padding: 2px 8px; border-radius: 12px; }
.achv-page .nav-item.active .nav-badge { color: #fff; background: rgba(0,0,0,.22); }
.achv-page .ov-catrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.achv-page .ov-catrow:last-child { border-bottom: 0; }
.achv-page .ov-catrow .ci { width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.achv-page .ov-catbar { flex: 1; height: 8px; background: rgba(255,255,255,.08); border-radius: 6px; overflow: hidden; min-width: 80px; }
.achv-page .ov-mini { display: flex; gap: 11px; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.achv-page .ov-mini:last-child { border-bottom: 0; }
.achv-page .ov-mini .mi { width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.achv-page .ov-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.achv-page .ov-2col .card { margin: 0; }
@media (max-width: 880px) { .achv-page .ov-2col { grid-template-columns: 1fr; } }

/* Toernooi-dropdown in de topbar (vervangt de oude meldingen-knop) */
.tb-dd-tourn { width: 290px; max-width: 92vw; }
.tb-tourn-desc { padding: 9px 14px 0; font-size: .76rem; color: var(--muted); }
.tb-tourn-prizes { padding: 10px 14px; }
.tb-tourn-prizes-h { font-size: .66rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 6px; }
.tb-tourn-prize { display: flex; justify-content: space-between; gap: 12px; font-size: .82rem; padding: 2px 0; }
.tb-tourn-prize span:last-child { color: var(--gold); font-weight: 700; text-align: right; }
.tb-tourn-me { padding: 9px 14px; border-top: 1px solid var(--border); font-size: .8rem; }

/* Marktplaats — "Product toevoegen": gestructureerde secties + live marktwaarde. */
#mk-estval { font-size: .92rem; font-weight: 800; }
.mk-estunit { font-size: .7rem; color: var(--muted); }
.mk-estrow .mft-l { white-space: nowrap; }
.mk-sect { display: flex; align-items: center; gap: 7px; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; margin: 0 0 8px; }
.mk-sect-div { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
