/* ============================================================
   Vextro Shop — design tokens
   ============================================================ */
:root {
    --bg: #0b0d14;
    --bg-soft: #10131c;
    --bg-elevated: #161a26;
    --bg-elevated-hover: #1b2030;
    --border: #262c3d;
    --border-soft: #1d2230;
    --text: #eef0f6;
    --text-muted: #9098ad;
    --text-faint: #6c7488;

    --accent: #7c5cff;
    --accent-2: #4fd1c5;
    --accent-hover: #9078ff;
    --accent-soft: rgba(124, 92, 255, 0.14);

    --success: #35d68f;
    --success-soft: rgba(53, 214, 143, 0.14);
    --danger: #ff5d7a;
    --danger-soft: rgba(255, 93, 122, 0.13);
    --warning: #ffb648;
    --warning-soft: rgba(255, 182, 72, 0.15);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.65);

    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Sora', 'Inter', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(1100px 500px at 15% -10%, rgba(124, 92, 255, 0.10), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(79, 209, 197, 0.07), transparent 55%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

/* ---------- Header ---------- */
.site-header {
    background: rgba(16, 19, 28, 0.82);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: linear-gradient(120deg, var(--text) 30%, var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.92rem;
    transition: color 0.15s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text);
}

.nav-link-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cart-icon {
    width: 17px;
    height: 15px;
    border: 1.6px solid currentColor;
    border-top: none;
    border-radius: 0 0 3px 3px;
    position: relative;
    display: inline-block;
}

.cart-icon::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 2px;
    width: 9px;
    height: 7px;
    border: 1.6px solid currentColor;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    animation: admin-card-in 0.25s ease;
}

.nav-link-admin {
    opacity: 0.55;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
}

.nav-link-admin:hover {
    opacity: 1;
    border-color: var(--accent);
    color: var(--accent-hover);
}

/* ---------- Tabbladen ---------- */
.tabs-wrapper {
    border-top: 1px solid var(--border-soft);
    background: rgba(11, 13, 20, 0.4);
}

.tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    display: inline-block;
    padding: 15px 18px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.tab:hover {
    color: var(--text);
}

.tab.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

/* ---------- Pagina-titel ---------- */
.page-heading {
    padding: 44px 0 26px;
}

.page-heading h1 {
    margin: 0 0 8px;
    font-size: 2.1rem;
    font-weight: 800;
}

.page-subtitle {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
}

/* ---------- Productgrid ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
    padding-bottom: 64px;
}

.empty-state {
    color: var(--text-faint);
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 0;
}

.product-card {
    background: linear-gradient(180deg, var(--bg-elevated), var(--bg-soft));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    animation: admin-card-in 0.35s ease backwards;
    animation-delay: calc(var(--card-i, 0) * 45ms);
}

.product-image-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 92, 255, 0.45);
    box-shadow: var(--shadow);
}

.product-image {
    aspect-ratio: 4 / 3;
    background: #06070b;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}

.product-category {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--accent-2);
    font-weight: 700;
}

.product-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
}

.product-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border-soft);
}

.product-price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
}

.product-footer-acties {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-buy {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), #6446e0);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease;
}

.btn-buy:hover {
    filter: brightness(1.12);
}

.btn-buy:active {
    transform: translateY(1px);
}

.badge-owned {
    background: var(--success-soft);
    color: var(--success);
}

.badge-in-cart {
    background: var(--accent-soft);
    color: var(--accent-hover);
}

/* ---------- Productdetail ---------- */
.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 440px) 1fr;
    gap: 34px;
    padding-bottom: 24px;
    animation: admin-card-in 0.35s ease;
}

.product-detail-image {
    aspect-ratio: 4 / 3;
    background: #06070b;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-detail-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 800;
}

.product-detail-description {
    color: var(--text-muted);
    line-height: 1.7;
}

.product-detail-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border-soft);
    flex-wrap: wrap;
}

.product-price-lg {
    font-size: 1.5rem;
}

/* ---------- Winkelwagen ---------- */
.cart-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(180deg, var(--bg-elevated), var(--bg-soft));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    animation: admin-row-in 0.3s ease backwards;
}

.cart-item-thumb {
    width: 64px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #06070b;
    border: 1px solid var(--border-soft);
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text);
}

.cart-item-name:hover {
    color: var(--accent-hover);
}

.cart-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding: 18px 4px;
    font-size: 1.1rem;
    border-top: 1px solid var(--border-soft);
}

/* ---------- Auth (login/registreren) ---------- */
.auth-page {
    display: flex;
    justify-content: center;
    padding: 56px 0 90px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, var(--bg-elevated), var(--bg-soft));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: var(--shadow);
}

.auth-card h1 {
    margin: 0 0 22px;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
}

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

.auth-card label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 12px;
    color: var(--text-muted);
}

.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="date"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 13px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-card input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400 !important;
    font-size: 0.85rem !important;
    color: var(--text) !important;
    margin-top: 18px !important;
}

.checkbox-label input {
    margin-top: 3px;
    accent-color: var(--accent);
}

.checkbox-label a {
    color: var(--accent-2);
    text-decoration: underline;
}

.btn-primary,
.btn-secondary,
.btn-discord {
    display: block;
    width: 100%;
    text-align: center;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 20px;
    transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #6446e0);
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(124, 92, 255, 0.6);
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    margin-top: 20px;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
}

.btn-discord {
    background: #5865f2;
    color: #fff;
    margin-top: 0;
}

.btn-discord:hover {
    background: #4752c4;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-faint);
    font-size: 0.8rem;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-switch {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 22px;
}

.auth-switch a {
    color: var(--accent-2);
    font-weight: 600;
}

.alert {
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    font-size: 0.85rem;
    margin-bottom: 18px;
}

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

.alert-error {
    background: var(--danger-soft);
    border: 1px solid rgba(255, 93, 122, 0.35);
    color: #ffb0c0;
}

.alert-info {
    background: var(--success-soft);
    border: 1px solid rgba(53, 214, 143, 0.3);
    color: #a4f0cf;
}

/* ---------- Account ---------- */
.account-page {
    padding: 44px 0 90px;
}

.account-page h1 {
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0 0 24px;
}

.account-card {
    max-width: 440px;
    background: linear-gradient(180deg, var(--bg-elevated), var(--bg-soft));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}

.account-card dl {
    margin: 0;
}

.account-card dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-faint);
    margin-top: 16px;
    font-weight: 700;
}

.account-card dt:first-child {
    margin-top: 0;
}

.account-card dd {
    margin: 3px 0 0;
    font-size: 1.08rem;
    font-weight: 500;
}

/* ---------- Admin: algemeen ---------- */
.admin-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 22px;
}

.admin-btn-inline {
    display: inline-block;
    width: auto;
    margin-top: 0;
}

.admin-card {
    background: linear-gradient(180deg, var(--bg-elevated), var(--bg-soft));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 32px;
    margin-bottom: 44px;
    max-width: 620px;
    box-shadow: var(--shadow);
    animation: admin-card-in 0.35s ease;
}

.admin-toolbar,
.page-heading {
    animation: admin-card-in 0.3s ease;
}

.admin-card h2 {
    margin: 0 0 20px;
    font-size: 1.25rem;
    font-weight: 700;
}

.admin-card h3 {
    margin: 0 0 14px;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 9px;
}

.admin-section-hint {
    font-weight: 400;
    color: var(--text-faint);
    font-size: 0.8rem;
}

.admin-section-icon {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    flex-shrink: 0;
    display: inline-block;
    position: relative;
}

.admin-section-icon-image {
    background: var(--accent-soft);
    border: 1px solid rgba(124, 92, 255, 0.4);
}

.admin-section-icon-image::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 2px;
    background: var(--accent-2);
    opacity: 0.8;
}

.admin-section-icon-locked {
    background: var(--warning-soft);
    border: 1px solid rgba(255, 182, 72, 0.45);
}

.admin-section-icon-locked::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    width: 7px;
    height: 6px;
    background: var(--warning);
    border-radius: 1px;
}

.admin-section-icon-locked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 22%;
    transform: translateX(-50%);
    width: 8px;
    height: 6px;
    border: 1.5px solid var(--warning);
    border-bottom: none;
    border-radius: 5px 5px 0 0;
}

.admin-divider {
    height: 1px;
    background: var(--border);
    margin: 26px 0;
}

.admin-cancel-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color 0.15s ease;
}

.admin-cancel-link:hover {
    color: var(--text);
}

/* ---------- Admin: formulieren ---------- */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 12px;
    color: var(--text-muted);
}

.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="file"],
.admin-form select,
.admin-form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 13px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-form textarea {
    resize: vertical;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.admin-form-hint {
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: var(--text-faint);
}

.admin-form-inline {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 22px;
}

.admin-image-preview {
    width: 100px;
    height: 76px;
    flex-shrink: 0;
    background: #06070b;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.admin-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-image-upload {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.admin-license-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.admin-license-count strong {
    color: var(--text);
}

/* ---------- Admin: beveiligd bestand ---------- */
.admin-file-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 14px;
}

.admin-file-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.admin-file-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-file-meta {
    font-size: 0.78rem;
    color: var(--text-faint);
}

.admin-file-empty {
    color: var(--text-faint);
    font-size: 0.85rem;
    margin: 0 0 14px;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
}

/* ---------- Admin: tabel ---------- */
@keyframes admin-row-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes admin-card-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.admin-table-wrapper {
    overflow-x: auto;
    padding-bottom: 24px;
    border-radius: var(--radius);
}

.admin-table {
    width: 100%;
    min-width: 780px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.admin-table col.col-thumb   { width: 76px; }
.admin-table col.col-naam    { width: auto; }
.admin-table col.col-cat     { width: 130px; }
.admin-table col.col-prijs   { width: 90px; }
.admin-table col.col-status  { width: 100px; }
.admin-table col.col-bestand { width: 110px; }
.admin-table col.col-lic     { width: 90px; }
.admin-table col.col-acties  { width: 230px; }

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.9rem;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-table-naam {
    font-weight: 600;
    white-space: normal;
}

.admin-table th {
    color: var(--text-faint);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.02);
    position: sticky;
    top: 0;
    z-index: 1;
}

.admin-table tbody tr {
    background: transparent;
    transition: background 0.15s ease, transform 0.15s ease;
    animation: admin-row-in 0.35s ease backwards;
    animation-delay: calc(var(--row-i, 0) * 35ms);
}

.admin-table tbody tr:hover {
    background: var(--bg-elevated-hover);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-thumb-wrap {
    width: 52px;
    height: 39px;
    border-radius: 7px;
    overflow: hidden;
    background:
        linear-gradient(160deg, rgba(124, 92, 255, 0.16), rgba(79, 209, 197, 0.1)),
        #06070b;
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.admin-thumb-wrap::before {
    content: '';
    width: 18px;
    height: 14px;
    border: 1.6px solid var(--text-faint);
    border-radius: 3px;
    opacity: 0.65;
}

.admin-thumb-wrap::after {
    content: '';
    position: absolute;
    left: 9px;
    bottom: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50% 50% 50% 0;
    background: var(--text-faint);
    opacity: 0;
}

.admin-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: admin-card-in 0.3s ease;
}

.admin-acties {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-inline-form {
    display: inline-block;
}

.admin-btn-small {
    display: inline-block;
    width: auto;
    padding: 7px 13px;
    font-size: 0.8rem;
    margin-top: 0;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.admin-btn-small:active {
    transform: scale(0.96);
}

.btn-danger {
    background: var(--danger-soft);
    border: 1px solid rgba(255, 93, 122, 0.4);
    color: #ffb0c0;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.btn-danger:hover {
    background: rgba(255, 93, 122, 0.25);
}

.btn-danger:active {
    transform: scale(0.96);
}

/* ---------- Admin: badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.6;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.badge-online {
    background: var(--success-soft);
    color: var(--success);
}

.badge-offline {
    background: var(--danger-soft);
    color: #ff8fa3;
}

.badge-file-ok {
    background: var(--success-soft);
    color: var(--success);
}

.badge-file-missing {
    background: var(--warning-soft);
    color: var(--warning);
}

/* ---------- Admin: kaartjes bij smalle schermen ---------- */
@media (max-width: 860px) {
    .admin-table-wrapper {
        overflow: visible;
    }

    .admin-table {
        min-width: 0;
        table-layout: auto;
        border: none;
        background: transparent;
        box-shadow: none;
        display: block;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .admin-table tbody tr {
        display: grid;
        grid-template-columns: 52px 1fr;
        grid-template-areas:
            "thumb naam"
            "thumb meta"
            "acties acties";
        gap: 4px 14px;
        background: linear-gradient(180deg, var(--bg-elevated), var(--bg-soft));
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 14px;
        box-shadow: var(--shadow-sm);
    }

    .admin-table td {
        border-bottom: none;
        padding: 2px 0;
        white-space: normal;
    }

    .admin-table td:nth-child(1) { grid-area: thumb; }
    .admin-table td:nth-child(2) { grid-area: naam; font-size: 1rem; }
    .admin-table td:nth-child(3),
    .admin-table td:nth-child(4),
    .admin-table td:nth-child(5),
    .admin-table td:nth-child(6),
    .admin-table td:nth-child(7) {
        grid-area: meta;
        display: inline-flex;
        margin-right: 10px;
        color: var(--text-muted);
        font-size: 0.82rem;
    }

    .admin-table td:nth-child(8) {
        grid-area: acties;
        margin-top: 8px;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border-soft);
    padding: 28px 0;
    color: var(--text-faint);
    font-size: 0.875rem;
}

/* ---------- Responsief ---------- */
@media (max-width: 640px) {
    .admin-form-inline {
        flex-direction: column;
    }

    .admin-file-current {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-card {
        padding: 24px 20px;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-wrap: wrap;
    }
}