/* Platformbeheer: eenvoudig, neutraal en bruikbaar op gsm (390 px), tablet en computer. */
:root { --ink: #1f2937; --muted: #6b7280; --line: #e5e7eb; --bg: #f5f6f8; --on: #15803d; --accent: #f59e0b; }
html, body { background: var(--bg); color: var(--ink); }
body { min-height: 100vh; }

.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top)); background: var(--ink); color: #fff; }
.topbar-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; margin-right: auto; }
.topbar-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--ink); font-weight: 800; }
.topbar-user { max-width: 40vw; font-size: .85rem; opacity: .8; }
.topbar form { margin: 0; }

.page { max-width: 960px; margin: 0 auto; padding: 16px 16px 96px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.page-head h1 { margin: 0; font-size: 1.6rem; }

.login { max-width: 380px; margin: 8vh auto 0; }

.club-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.club-card { color: inherit; text-decoration: none; transition: box-shadow .15s; }
.club-card:hover, .club-card:focus-visible { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.club-card .card-body { display: grid; gap: 4px; }
.club-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.module-dots { display: flex; gap: 4px; margin: 6px 0 2px; }
.module-dot { width: 14px; height: 14px; border-radius: 4px; background: var(--line); }
.module-dot.is-on { background: var(--on); }

.pkg { background: #e5e7eb; color: var(--ink); }
.pkg-basis { background: #dbeafe; color: #1e3a8a; }
.pkg-club { background: #dcfce7; color: #14532d; }
.pkg-pro { background: #fef3c7; color: #78350f; }

.pkg-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .pkg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pkg-option { display: grid; gap: 4px; text-align: left; padding: 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; min-height: 44px; }
.pkg-option.is-selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.module-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.module-row:first-of-type { border-top: 0; }
.module-text { flex: 1; min-width: 0; margin: 0; cursor: pointer; }
.module-row.is-base .module-text { cursor: default; }
.module-switch { width: 3em !important; height: 1.6em; cursor: pointer; }
.form-switch .form-check-input:checked { background-color: var(--on); border-color: var(--on); }

.save-bar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom)); margin: 0 -16px; background: var(--bg); border-top: 1px solid var(--line); z-index: 5; box-shadow: 0 -4px 12px rgba(0,0,0,.04); }

.change-list { list-style: none; padding: 0; margin: 0; }
.change-list li { padding: 10px 0; border-top: 1px solid var(--line); }

#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: 12px 16px; background: #fef3c7; z-index: 1000; }
#blazor-error-ui .dismiss { float: right; cursor: pointer; }
h1:focus { outline: none; }
@media (max-width: 480px) { .topbar-user { display: none; } }
