/* SlimCMS Default Frontend Theme - Premium */
:root {
    --primary: #0F172A;
    --accent: #6366F1;
    --bg: #FFFFFF;
    --surface: #F8FAFC;
    --text: #1E293B;
    --muted: #64748B;
    --border: #E2E8F0;
    --max-width: 1100px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); padding: 18px 0; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px); }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.site-brand { font-size: 20px; font-weight: 700; color: var(--primary); text-decoration: none; }
.site-nav { display: flex; gap: 24px; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: var(--accent); }
.site-nav a { display: inline-flex; align-items: center; gap: 6px; }
.nav-badge { background: var(--accent); color: white; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }

/* Main */
.site-main { min-height: calc(100vh - 200px); padding: 48px 0; }
.page-content { max-width: 760px; }
.page-content h1, .page-content h2, .page-content h3 { color: var(--primary); line-height: 1.25; }
.page-content h1 { font-size: 42px; margin: 0 0 24px; font-weight: 800; }
.page-content h2 { font-size: 30px; margin: 40px 0 16px; font-weight: 700; }
.page-content h3 { font-size: 22px; margin: 32px 0 12px; font-weight: 600; }

/* Blocks */
.block-paragraph { font-size: 17px; margin: 0 0 18px; }
.block-heading { line-height: 1.25; }
.block-image { margin: 24px 0; text-align: center; }
.block-image img { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.block-image figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.block-list { margin: 16px 0; padding-left: 28px; }
.block-list li { margin-bottom: 6px; }
.block-quote { border-left: 4px solid var(--accent); margin: 24px 0; padding: 16px 24px; background: var(--surface); border-radius: 8px; font-size: 18px; font-style: italic; color: var(--primary); }
.block-quote cite { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); font-style: normal; }
.block-code { background: #0F172A; color: #E2E8F0; padding: 20px; border-radius: 10px; overflow-x: auto; margin: 24px 0; font-family: 'Monaco', 'Menlo', monospace; font-size: 13px; line-height: 1.6; }
.block-divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.block-video { position: relative; padding-bottom: 56.25%; margin: 24px 0; border-radius: 12px; overflow: hidden; }
.block-video iframe, .block-video video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.block-columns { display: grid; gap: 24px; margin: 24px 0; }
.block-button { margin: 24px 0; }
.btn { display: inline-block; padding: 12px 28px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #4F46E5; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
.btn-secondary { background: var(--surface); color: var(--primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }

/* Hero */
.block-hero { position: relative; padding: 96px 24px; text-align: center; background: linear-gradient(135deg, var(--surface) 0%, #EEF2FF 100%); border-radius: 16px; background-size: cover; background-position: center; margin: 24px 0; color: var(--primary); }
.block-hero[style*="background-image"] { color: white; }
.block-hero[style*="background-image"]::before { content: ''; position: absolute; inset: 0; background: rgba(15,23,42,0.5); border-radius: 16px; }
.block-hero-inner { position: relative; max-width: 700px; margin: 0 auto; }
.block-hero h1 { font-size: 52px; margin: 0 0 16px; font-weight: 800; }
.block-hero .hero-sub { font-size: 20px; margin: 0 0 28px; opacity: 0.85; }

/* Card */
.block-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: all 0.2s; margin: 16px 0; }
.block-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.block-card img { width: 100%; height: 200px; object-fit: cover; }
.block-card-body { padding: 24px; }
.block-card-body h3 { margin: 0 0 8px; }
.block-card-body p { margin: 0; color: var(--muted); }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
.blog-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: all 0.2s; }
.blog-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); transform: translateY(-3px); }
.blog-card-image img { width: 100%; height: 200px; object-fit: cover; display: block; }
.blog-card-body { padding: 24px; }
.blog-card-body h2 { font-size: 20px; margin: 8px 0 12px; line-height: 1.3; }
.blog-card-body h2 a { color: var(--primary); text-decoration: none; }
.blog-card-body h2 a:hover { color: var(--accent); }
.blog-meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.blog-read-more { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--accent); }
.blog-back { display: inline-block; margin-bottom: 16px; color: var(--muted); text-decoration: none; font-size: 14px; }
.blog-categories { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.blog-categories a { background: var(--surface); padding: 4px 12px; border-radius: 20px; font-size: 13px; color: var(--text); text-decoration: none; }
.blog-categories a:hover { background: var(--accent); color: white; }
.blog-single h1 { margin-bottom: 12px; }

/* Customer Portal — auth pages */
.portal-auth-wrap { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: radial-gradient(circle at top right, rgba(99,102,241,0.08), transparent 50%), radial-gradient(circle at bottom left, rgba(14,165,233,0.06), transparent 50%); }
.portal-auth-card { background: white; border-radius: 20px; box-shadow: 0 20px 50px rgba(15,23,42,0.1), 0 8px 16px rgba(15,23,42,0.04); padding: 48px 40px; max-width: 420px; width: 100%; border: 1px solid var(--border); }
.portal-auth-icon { width: 72px; height: 72px; border-radius: 18px; background: linear-gradient(135deg, #6366F1, #8B5CF6); color: white; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; box-shadow: 0 10px 20px rgba(99,102,241,0.25); }
.portal-auth-card h1 { font-size: 26px; text-align: center; margin: 0 0 8px; color: var(--primary); font-weight: 700; }
.portal-auth-sub { text-align: center; color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.portal-form { display: flex; flex-direction: column; gap: 16px; }
.portal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.portal-field label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 8px; }
.portal-field label .req { color: #DC2626; }
.portal-field input, .portal-field textarea, .portal-field select {
    width: 100%; padding: 12px 14px; border: 1.5px solid #E2E8F0; border-radius: 10px;
    font-size: 15px; font-family: inherit; background: #F8FAFC; transition: all 0.15s;
    box-sizing: border-box;
}
.portal-field input:focus, .portal-field textarea:focus, .portal-field select:focus {
    outline: none; border-color: #6366F1; background: white; box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}
.portal-btn { padding: 14px; background: linear-gradient(135deg, #6366F1, #8B5CF6); color: white; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 12px rgba(99,102,241,0.3); margin-top: 8px; }
.portal-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(99,102,241,0.4); }
.portal-btn:active { transform: translateY(0); }
.portal-auth-footer { text-align: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid #F1F5F9; font-size: 14px; color: var(--muted); }
.portal-auth-footer a { color: #6366F1; font-weight: 600; }
.portal-alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.portal-alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.portal-alert-success { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }

/* Customer Portal — ingelogde pagina's */
.portal-nav { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; }
.portal-nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 6px 10px; border-radius: 6px; }
.portal-nav a.active { background: var(--accent); color: white; }
.portal-nav a:hover { color: var(--accent); }
.portal-stat { background: var(--surface); padding: 24px; border-radius: 12px; text-align: center; text-decoration: none; color: var(--text); border: 1px solid var(--border); transition: all 0.2s; }
.portal-stat:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.portal-stat.highlight { background: linear-gradient(135deg, #FEF3C7, #FDE68A); border-color: #F59E0B; }
.portal-stat-num { font-size: 36px; font-weight: 700; color: var(--accent); }
.portal-project { background: var(--surface); padding: 20px; border-radius: 10px; margin-bottom: 12px; border: 1px solid var(--border); }
.portal-progress { background: #E2E8F0; height: 6px; border-radius: 3px; margin: 12px 0 6px; overflow: hidden; }
.portal-progress div { background: var(--accent); height: 100%; transition: width 0.3s; }
.portal-status { font-size: 12px; padding: 3px 10px; border-radius: 20px; font-weight: 600; background: #F1F5F9; color: var(--muted); text-transform: uppercase; }
.portal-status.status-active { background: #DBEAFE; color: #1E40AF; }
.portal-status.status-completed { background: #DCFCE7; color: #166534; }
.portal-status.status-quote { background: #FEF3C7; color: #92400E; }
.portal-status.status-on_hold { background: #E0E7FF; color: #4338CA; }
.portal-doc { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: var(--surface); border-radius: 10px; margin-bottom: 8px; border: 1px solid var(--border); }
.portal-message { padding: 16px; background: var(--surface); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; margin-bottom: 12px; }
.portal-message.from-admin { border-left-color: var(--accent); background: #EEF2FF; }
.portal-status.status-pending { background: #FEF3C7; color: #92400E; }
.portal-status.status-suspended { background: #FEE2E2; color: #991B1B; }
.portal-status.status-expired { background: #F1F5F9; color: #475569; }
.portal-status.status-revoked { background: #FEE2E2; color: #991B1B; }

/* Members shop */
.shop-hero { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px; padding:28px; background:linear-gradient(135deg,#EEF2FF,#FAF5FF); border:1px solid #E0E7FF; border-radius:14px; margin-bottom:24px; }
.shop-hero h1 { margin:0 0 6px; font-size:28px; }
.shop-hero p { margin:0; }
.shop-hero-stats { display:flex; gap:18px; align-items:center; }
.shop-hero-stats > div { text-align:center; padding:10px 18px; background:white; border-radius:10px; border:1px solid #E2E8F0; min-width:80px; }
.shop-hero-stats strong { display:block; font-size:22px; font-weight:700; color:#6366F1; }
.shop-hero-stats small { font-size:11px; text-transform:uppercase; letter-spacing:.5px; color:#64748B; }
.shop-hero-ultimate { padding:10px 16px; background:linear-gradient(135deg,#F59E0B,#D97706); color:white; border-radius:10px; font-weight:700; font-size:14px; }

.shop-ultimate-banner { padding:14px 18px; background:linear-gradient(135deg,#FEF3C7,#FDE68A); border:1px solid #F59E0B; border-radius:10px; margin-bottom:20px; color:#78350F; font-size:14px; }

.shop-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:18px; }
.shop-card { display:flex; gap:14px; padding:18px; background:white; border:1px solid #E2E8F0; border-radius:14px; text-decoration:none; color:inherit; transition:all .18s; position:relative; overflow:hidden; }
.shop-card:hover { transform:translateY(-3px); box-shadow:0 14px 28px rgba(0,0,0,.08); border-color:#6366F1; }
.shop-card.is-owned { border-color:#22C55E; background:linear-gradient(135deg,#FFFFFF,#F0FDF4); }
.shop-card.is-coming { opacity:.7; }
.shop-card.is-coming:hover { transform:none; box-shadow:none; }
.shop-card-icon { width:56px; height:56px; border-radius:12px; display:flex; align-items:center; justify-content:center; color:white; font-size:26px; flex-shrink:0; box-shadow:0 6px 14px rgba(0,0,0,.12); }
.shop-card-body { flex:1; min-width:0; }
.shop-card-head { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:6px; }
.shop-card-head strong { font-size:16px; }
.shop-card p { margin:0 0 8px; font-size:13px; line-height:1.5; }
.shop-card-tier { font-size:11px; color:#94A3B8; }
.shop-card-tier code { background:#F1F5F9; padding:1px 6px; border-radius:4px; font-size:10px; }

.shop-price { font-weight:700; color:#6366F1; font-size:16px; }
.shop-badge { display:inline-block; padding:3px 10px; border-radius:14px; font-size:11px; font-weight:700; letter-spacing:.3px; text-transform:uppercase; white-space:nowrap; }
.shop-badge-owned { background:#DCFCE7; color:#166534; }
.shop-badge-free { background:#EEF2FF; color:#4338CA; }
.shop-badge-coming { background:#FEF3C7; color:#78350F; }
.shop-badge-lg { padding:8px 18px; font-size:14px; }

/* Shop detail */
.shop-detail-hero { display:grid; grid-template-columns:auto 1fr auto; gap:24px; align-items:center; padding:28px; background:white; border:1px solid #E2E8F0; border-radius:16px; margin-bottom:24px; }
.shop-detail-icon { width:88px; height:88px; border-radius:18px; display:flex; align-items:center; justify-content:center; color:white; font-size:40px; box-shadow:0 12px 24px rgba(0,0,0,.15); }
.shop-detail-info h1 { margin:0 0 6px; font-size:28px; }
.shop-detail-info p { margin:0 0 10px; }
.shop-detail-meta { display:flex; gap:14px; flex-wrap:wrap; font-size:13px; color:#64748B; }
.shop-detail-meta code { background:#F1F5F9; padding:1px 6px; border-radius:4px; font-size:11px; }
.shop-detail-buy { text-align:center; }
.shop-price-lg { font-size:32px; font-weight:800; color:#6366F1; margin-bottom:10px; }
.shop-detail-body { padding:24px 28px; background:white; border:1px solid #E2E8F0; border-radius:16px; }
.shop-detail-body h2 { margin-top:0; }
.shop-upgrade-hint { margin-top:24px; padding:14px 18px; background:linear-gradient(135deg,#FEF3C7,#FDE68A); border:1px solid #F59E0B; border-radius:10px; color:#78350F; }

@media (max-width:760px) {
    .shop-detail-hero { grid-template-columns:1fr; text-align:center; }
    .shop-detail-icon { margin:0 auto; }
}

/* Staff badge — wordt gebruikt in forum, comments, profile */
.staff-badge { display:inline-flex; align-items:center; gap:3px; padding:2px 8px; background:linear-gradient(135deg,#DC2626,#B91C1C); color:white; font-size:10px; font-weight:700; border-radius:6px; letter-spacing:.5px; vertical-align:middle; margin-left:6px; text-transform:uppercase; box-shadow:0 1px 3px rgba(220,38,38,.3); }
.staff-badge-sm { padding:1px 5px; font-size:9px; }

/* Members Area */
.members-nav { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; }
.members-nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 6px 10px; border-radius: 6px; }
.members-nav a.active { background: var(--accent); color: white; }
.members-nav a:hover { color: var(--accent); }

.members-hero { display: flex; gap: 20px; align-items: center; padding: 24px; background: linear-gradient(135deg, #EEF2FF 0%, #FAF5FF 100%); border-radius: 14px; border: 1px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; }
.members-hero h1 { margin: 0 0 4px; font-size: 26px; }
.members-hero-info { flex: 1; min-width: 240px; }

.members-avatar-lg, .members-avatar-md, .members-avatar-xl { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #8B5CF6); color: white; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.members-avatar-md { width: 56px; height: 56px; font-size: 18px; }
.members-avatar-lg { width: 88px; height: 88px; font-size: 28px; }
.members-avatar-xl { width: 120px; height: 120px; font-size: 36px; }
.members-avatar-md img, .members-avatar-lg img, .members-avatar-xl img { width: 100%; height: 100%; object-fit: cover; }

.members-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.members-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: white; border: 1.5px solid var(--border); border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--text); }
.members-badge-icon { font-size: 14px; }

.members-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.members-profile-card { max-width: 720px; margin: 0 auto; }
.members-profile-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.members-profile-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); text-align: center; }
.members-profile-stats strong { font-size: 22px; color: var(--accent); display: block; }
.members-bio { padding: 16px 0; color: var(--text); line-height: 1.6; border-top: 1px solid var(--border); margin-top: 16px; }
.members-signature { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--border); font-size: 13px; color: var(--muted); font-style: italic; }

.members-license { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 12px; }
.members-license-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.members-license-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; padding: 10px 14px; background: #0F172A; color: #A5F3FC; border-radius: 8px; letter-spacing: 1px; user-select: all; }
.members-license-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.members-tier { display: inline-block; margin-left: 8px; padding: 2px 8px; background: var(--accent); color: white; font-size: 11px; border-radius: 6px; font-weight: 700; letter-spacing: 0.5px; }

.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.members-tile { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--text); position: relative; transition: all 0.2s; }
.members-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.members-tile-rep { margin-left: auto; font-size: 13px; color: var(--muted); }

/* E-commerce */
.ec-price-row { display: flex; gap: 12px; align-items: baseline; margin: 12px 0; }
.ec-price { font-size: 22px; font-weight: 700; color: var(--accent); }
.ec-compare { text-decoration: line-through; color: var(--muted); font-size: 16px; }
.ec-product-block { display: inline-block; margin: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; text-align: center; }
.ec-product-block img { max-width: 200px; border-radius: 8px; margin-bottom: 8px; }
.ec-product-block a { text-decoration: none; color: var(--text); }
.ec-product-block h3 { margin: 8px 0; font-size: 16px; }

/* Form block */
.block-form { background: var(--surface); padding: 28px; border-radius: 12px; border: 1px solid var(--border); max-width: 560px; margin: 24px 0; }
.block-form .form-field { margin-bottom: 16px; }
.block-form .form-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--primary); }
.block-form input[type=text], .block-form input[type=email], .block-form input[type=tel], .block-form textarea, .block-form select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; font-family: inherit; background: white;
}
.block-form input:focus, .block-form textarea:focus, .block-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.block-form .form-check { display: flex; align-items: center; gap: 8px; font-weight: normal; }
.block-form .form-success { background: #DCFCE7; color: #166534; padding: 14px; border-radius: 8px; margin-bottom: 16px; }
.block-form button { width: 100%; }

/* Footer */
.site-footer { background: var(--primary); color: #94A3B8; padding: 32px 0; text-align: center; }
.site-footer p { margin: 0; font-size: 14px; }

/* Responsive */
@media (max-width: 640px) {
    .page-content h1 { font-size: 32px; }
    .block-hero h1 { font-size: 36px; }
    .site-nav { gap: 16px; }
}
