:root {
    --accent: #22c55e; /* fris groen, past bij bowling */
    --accent-soft: rgba(34, 197, 94, 0.15);
}
body {
    font-family: 'Inter', sans-serif;
}

body {
    min-height: 100vh;
}

body {
    padding-bottom: 95px;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 720px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(15, 15, 18, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1000;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s ease;
}

.bottom-nav__item:hover {
    color: #fff;
}


.bottom-nav__item.active {
    background: var(--accent-soft);
    color: var(--accent);
}

.bottom-nav__item.active .bottom-nav__icon {
    transform: scale(1.1);
}

.bottom-nav__icon {
    font-size: 22px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav__label {
    font-size: 12px;
    line;
}

:root {
    --bg: #0b1020;
    --panel: rgba(255, 255, 255, 0.04);
    --panel-border: rgba(255, 255, 255, 0.08);
    --text-soft: rgba(255, 255, 255, 0.58);
    --text-muted: rgba(255, 255, 255, 0.38);
    --accent: #22c55e;
    --accent-soft: rgba(34, 197, 94, 0.14);
    --accent-blue: #3b82f6;
}

body {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 30%),
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 25%),
        var(--bg);
    color: #fff;
}

.app-page {
    max-width: 860px;
    margin: 0 auto;
    padding-top: 4px;
    padding-bottom: 4px;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.page-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.page-title {
    font-size: 32px;
    line-height: 1.05;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.03em;
}

.page-subtitle {
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 14px;
}

.app-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.hero-card {
    padding: 18px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.24), rgba(255, 255, 255, 0.03) 38%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
}

.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hero-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 6px;
}

.hero-name {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.05;
    margin: 0;
    letter-spacing: -0.03em;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.stats-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 20px;
    scroll-snap-type: x proximity;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.stats-strip::-webkit-scrollbar {
    display: none;
}

.stat-card--compact {
    min-width: 135px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 16px;
    border-radius: 14px;
}

.stat-card--compact .stat-label {
    margin-bottom: 10px;
}

.stat-card--compact .stat-value {
    font-size: 24px;
}
.stat-card {
    padding: 18px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 12px;
}

.stat-value {
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin: 0;
}

.section-card {
    padding: 20px;
    margin-bottom: 18px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
	margin-top: 6px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.section-link {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 13px;
}

.group-list,
.session-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.group-item,
.session-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.group-name,
.session-date {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.group-meta,
.session-meta,
.session-submeta {
    font-size: 13px;
    color: var(--text-soft);
    margin-top: 4px;
}

.item-arrow {
    color: rgba(255, 255, 255, 0.34);
    font-size: 20px;
    line-height: 1;
    padding-top: 2px;
}

.item-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.empty-text {
    color: var(--text-soft);
    font-size: 14px;
    margin: 0;
}

@media (max-width: 767px) {
    .page-title {
        font-size: 28px;
    }

    .hero-name {
        font-size: 24px;
    }

    .stat-value {
        font-size: 26px;
    }
}

.hero-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
}

.hero-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.hero-subline {
    margin-top: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.list-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-row {
   display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.18s ease, border-color 0.18s ease;
}

.list-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.list-row__main {
    min-width: 0;
}

.list-row__title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.list-row__meta {
    margin-top: 3px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.56);
}

.list-row__side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.list-row__date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.42);
    white-space: nowrap;
}

.list-row__arrow {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.28);
}

.stat-meta {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.35;
}

.primary-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.primary-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(34, 197, 94, 0.35);
}

.primary-action__icon {
    font-size: 16px;
    line-height: 1;
}

.primary-action__label {
    line-height: 1;
}

.member-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-form__input {
    min-height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.member-form__input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.member-form__input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.12);
    color: #fff;
}

.member-form__button {
    margin-bottom: 0;
}

.app-alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.45;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.app-alert ul {
    margin: 0;
    padding-left: 18px;
}

.app-alert--error {
    border-color: rgba(239, 68, 68, 0.22);
    background: rgba(239, 68, 68, 0.10);
    color: #fecaca;
}

.app-alert--success {
    border-color: rgba(34, 197, 94, 0.24);
    background: rgba(34, 197, 94, 0.10);
    color: #bbf7d0;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.back-link:hover {
    color: #fff;
}
.hero-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
    padding-bottom: 1px;
    transition: all 0.15s ease;
}

.hero-link:hover {
    color: #22c55e;
    border-bottom-color: #22c55e;
}

.create-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.create-form__input {
    min-height: 54px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 16px;
}

.create-form__input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.create-form__input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.12);
    color: #fff;
}

.create-form__button {
    margin-bottom: 0;
}

.session-form {
    display: flex;
    flex-direction: column;
}

.player-select {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.player-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.player-chip input {
    display: none;
}

.player-chip:hover {
    background: rgba(255, 255, 255, 0.06);
}

.player-chip input:checked + span {
    color: #22c55e;
    font-weight: 600;
}

.player-chip input:checked ~ span::before {
    content: "✓ ";
}

.score-form {
    margin-bottom: 14px;
}

.score-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.score-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.score-input span {
    font-size: 14px;
    font-weight: 600;
}

.score-input input {
    width: 96px;
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.score-input input:focus {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.12);
    outline: none;
}

.secondary-action {
    width: 100%;
    padding: 13px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.76);
    font-weight: 600;
}

.winner-card {
    padding: 16px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.20);
    color: #bbf7d0;
    font-weight: 700;
    font-size: 18px;
}
.auth-page {
    background: radial-gradient(
            circle at 20% 20%,
            rgba(34, 197, 94, 0.18),
            transparent 40%
        ),
        radial-gradient(
            circle at 80% 30%,
            rgba(59, 130, 246, 0.18),
            transparent 40%
        ),
        #0b0b0c;

    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 380px;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.auth-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-input {
    min-height: 54px;
    padding: 0 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    font-size: 15px;
}

.auth-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.auth-input:focus {
    border-color: rgba(34,197,94,0.5);
    box-shadow: 0 0 0 0.2rem rgba(34,197,94,0.12);
    background: rgba(255,255,255,0.06);
}

.auth-button {
    margin-top: 6px;
}

.auth-footer {
    margin-top: 18px;
    text-align: center;
}

.auth-link {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.auth-link:hover {
    color: #22c55e;
}

.pwa-install-card {
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(34, 197, 94, 0.28);
    color: #fff;
}

.pwa-install-card__title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}

.pwa-install-card__text {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

.pwa-install-card__highlight {
    color: #22c55e;
    font-weight: 700;
}

.pwa-install-card__button {
    width: 100%;
    margin-top: 12px;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: #22c55e;
    color: #fff;
    font-weight: 700;
}

.list-row__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-form {
    margin: 0;
}

.action-pill,
.action-pill:visited,
.action-pill:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 8px;

    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);

    color: rgba(255,255,255,0.75) !important;
    font-size: 12px;
    font-weight: 600;

    text-decoration: none !important;
}

/* button reset (HEEL belangrijk) */
button.action-pill {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

/* hover */
.action-pill:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
}

/* delete */
.action-pill--danger {
    color: rgba(248,113,113,0.9) !important;
    border-color: rgba(239,68,68,0.25);
}

.action-pill--danger:hover {
    background: rgba(239,68,68,0.15);
    color: #fecaca !important;
}

.alert-dismissible {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    cursor: pointer;
}

.alert-close:hover {
    color: #fff;
}

.inline-profile-link {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.32);
}

.inline-profile-link:hover {
    color: #22c55e;
    border-bottom-color: #22c55e;
}
.stat-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,0.3);
}

.stat-link:hover {
    color: #22c55e;
    border-bottom-color: #22c55e;
}

html,
body {
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 30%),
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 25%),
        var(--bg);
}

body {
    padding-top: env(safe-area-inset-top);
}

.notification-unread {
    border-color: rgba(34, 197, 94, 0.24);
    background: rgba(34, 197, 94, 0.08);
}

.nav-item {
    position: relative;
}

.nav-badge {
    position: absolute;
    top: -4px;
    right: -6px;

    min-width: 16px;
    height: 16px;
    padding: 0 4px;

    border-radius: 999px;
    background: #ef4444;
    color: #fff;

    font-size: 10px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-button {
    position: relative;
    width: 36px;
    height: 36px;

    border-radius: 50%;
    background: rgba(255,255,255,0.04);

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,0.08);
}

.notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;

    min-width: 16px;
    height: 16px;
    padding: 0 4px;

    border-radius: 999px;
    background: #ef4444;
    color: #fff;

    font-size: 10px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;
}

html {
    min-height: 100%;
    background: var(--bg);
}

.app-body {
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 30%),
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 25%),
        var(--bg);
    background-attachment: fixed;
    padding-top: env(safe-area-inset-top);
}

.app-body > .container {
    min-height: calc(100dvh - env(safe-area-inset-top));
}

.notif-overlay {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 58px);
    right: 16px;
    left: 16px;
    z-index: 1200;

    max-width: 420px;
    margin-left: auto;

    padding: 14px;
    border-radius: 14px;
    background: rgba(11, 16, 32, 0.96);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 48px rgba(0,0,0,0.35);
    backdrop-filter: blur(14px);
}

.notif-overlay__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.notif-overlay__link {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.notif-overlay__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notif-item {
    display: block;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
}

.notif-item:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.notif-item--unread {
    border-color: rgba(34,197,94,0.3);
    background: rgba(34,197,94,0.08);
}

.notif-item__title {
    font-size: 13px;
    font-weight: 600;
}

.notif-item__text {
    font-size: 12px;
    opacity: 0.7;
}

.profile-edit-page {
    max-width: 520px;
    margin: 0 auto;
}

.profile-edit-hero {
    height: 150px;
    margin: 0 0 72px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 25% 20%, rgba(34, 197, 94, 0.24), transparent 34%),
        linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(34, 197, 94, 0.18));
    position: relative;
    border: 1px solid rgba(255,255,255,0.06);
}

.profile-edit-avatar {
    position: absolute;
    left: 50%;
    bottom: -52px;
    transform: translateX(-50%);

    width: 104px;
    height: 104px;
    border-radius: 50%;

    background: linear-gradient(135deg, #3b82f6, #22c55e);
    border: 4px solid #1f252b;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 38px;
    font-weight: 700;
}

.profile-edit-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-edit-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.72);
    margin-top: 8px;
}

.profile-edit-input {
    min-height: 50px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    color: #fff;
    padding: 0 14px;
    font-size: 15px;
}

.profile-edit-input:focus {
    outline: none;
    border-color: rgba(34,197,94,0.5);
    box-shadow: 0 0 0 0.2rem rgba(34,197,94,0.12);
    background: rgba(255,255,255,0.06);
}

.profile-edit-meta {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}

.profile-edit-submit {
    margin-top: 20px;
}

.profile-edit-page {
    padding-top: 8px;
}