:root {
    --card-max-width: 720px;
    --accent: #0d6efd;
    --accent-soft: rgba(13, 110, 253, 0.08);
    --bg-dark: #050814;
}

/* Achtergrond */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
    color: #0f172a;
    min-height: 100vh;
}

.page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.18), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.2), transparent 55%);
    mix-blend-mode: screen;
    opacity: 0.9;
    z-index: -1;
}

/* Kaart */
.profile-card {
    max-width: var(--card-max-width);
    border-radius: 1.5rem;
    backdrop-filter: blur(22px);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.92));
    color: #e5e7eb;
    overflow: hidden;
    position: relative;
}

.profile-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.4), transparent 55%);
    opacity: 0.35;
    pointer-events: none;
}

.profile-card > * {
    position: relative;
    z-index: 1;
}

.profile-card .card-body {
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

h1, h2, .lead {
    color: #f9fafb;
}

/* Avatar */
.avatar-wrapper {
    position: relative;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(from 180deg, #38bdf8, #6366f1, #22c55e, #38bdf8);
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.8),
        0 0 0 1px rgba(148, 163, 184, 0.6);
}

.avatar-img,
.avatar-fallback {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-img {
    display: block;
    width: 100%;
    height: 100%;
}

/* Fallback initialen als de foto niet laadt */
.avatar-img:not([src]),
.avatar-img[src=""],
.avatar-img::before {
    display: none;
}

.avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 0%, #1e293b, #020617);
    color: #e5e7eb;
    font-weight: 700;
    font-size: 2.4rem;
    letter-spacing: 0.04em;
}

/* Kleine details */
.badge {
    background-color: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.text-primary {
    color: #38bdf8 !important;
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    border: none;
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.55);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0ea5e9, #4f46e5);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.75);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(30, 64, 175, 0.8);
}

hr {
    border-color: rgba(148, 163, 184, 0.4);
}

/* Links */
a {
    color: #e5e7eb;
}

a:hover {
    color: #38bdf8;
}

/* Responsiveness */
@media (max-width: 576px) {
    .profile-card {
        border-radius: 1.25rem;
        margin: 1.5rem;
    }
}

/* Simpele print-stijlen, zodat je de kaart mooi kunt afdrukken */
@media print {
    body {
        background: #ffffff;
    }

    .page-bg {
        display: none;
    }

    main {
        min-height: auto;
    }

    .profile-card {
        box-shadow: none !important;
        background: #ffffff;
        color: #0f172a;
    }

    .profile-card::before {
        display: none;
    }

    .btn-primary {
        display: none;
    }
}
