/* ============================================================
   TechAmigo — Huisstijl / Brand Identity
   ============================================================

   BRAND GUIDELINES:

   Missie: Technologie toegankelijk maken voor iedereen.
   Tone of voice: Warm, geduldig, betrouwbaar, niet-intimiderend.
   Doelgroep: Senioren, gezinnen, digitaal minder vaardigen.

   KLEURENPALET:
   - Forest Green (primair):    #0B6E4F  — vertrouwen, groei, veiligheid
   - Dark Green:                #084C37  — headers, hover states
   - Mint (accent light):       #A8E6CF  — zachte highlights
   - Warm Amber (CTA):         #F4A023  — opvallend maar vriendelijk
   - Dark Amber (hover):       #D88B1A  — CTA hover
   - Charcoal (tekst):         #1A1A2E  — goed leesbaar
   - Slate (subtekst):         #5A6677  — secundaire tekst
   - Snow (achtergrond):       #F7FAF8  — zachte groene tint
   - White:                    #FFFFFF

   TYPOGRAFIE:
   - Headings: Inter 700/800
   - Body: Inter 400/500
   - Grote, leesbare formaten (min 16px body)

   ============================================================ */

/* Google Fonts loaded via <link> in layout.php (preconnect + non-blocking) */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --green: #0B6E4F;
    --green-dark: #084C37;
    --green-light: #E8F5EE;
    --mint: #A8E6CF;
    --amber: #F4A023;
    --amber-dark: #D88B1A;
    --charcoal: #1A1A2E;
    --slate: #5A6677;
    --snow: #F7FAF8;
    --white: #FFFFFF;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow: 0 2px 16px rgba(11, 110, 79, 0.06);
    --shadow-md: 0 4px 24px rgba(11, 110, 79, 0.08);
    --shadow-lg: 0 12px 48px rgba(11, 110, 79, 0.1);
    --transition: all 0.25s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-dark); }

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

/* === NAVIGATION === */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(11,110,79,0.06);
    padding: 0 24px;
}
.nav-inner {
    max-width: 1140px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center; height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 4px; }
.nav-logo img { height: 36px; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-links {
    display: flex; gap: 20px; list-style: none; align-items: center;
}
.nav-links a {
    color: var(--slate); font-size: 14px; font-weight: 500;
    padding: 8px 0; transition: var(--transition); white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--green); }

.nav-cta {
    background: var(--green) !important; color: var(--white) !important;
    padding: 10px 16px !important; border-radius: 10px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--green-dark) !important; transform: translateY(-1px); }

/* Language dropdown */
.lang-dropdown { position: relative; margin-left: 8px; }
.lang-dropdown-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(11,110,79,0.12);
    background: var(--snow); cursor: pointer; font-size: 13px; font-weight: 600;
    color: var(--charcoal); font-family: inherit; transition: var(--transition);
}
.lang-dropdown-btn:hover { border-color: var(--green); background: #fff; }
.lang-flag-svg { width: 20px; height: 15px; border-radius: 2px; flex-shrink: 0; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.lang-chevron { width: 12px; height: 12px; color: var(--slate); transition: transform 0.2s; flex-shrink: 0; }
.lang-dropdown-btn[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }
.lang-dropdown-menu {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    background: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
    min-width: 160px; overflow: hidden; z-index: 100;
}
.lang-dropdown-menu.open { display: block; animation: langFadeIn 0.15s ease; }
@keyframes langFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.lang-dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; text-decoration: none; color: var(--charcoal);
    font-size: 14px; font-weight: 500; transition: background 0.15s;
}
.lang-dropdown-item:hover { background: #f8fafb; }
.lang-dropdown-item.active { color: var(--green); font-weight: 600; background: rgba(11,110,79,0.04); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--charcoal); margin: 6px 0; transition: var(--transition); }

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-right { display: none; position: absolute; top: 72px; left: 0; right: 0; background: white; flex-direction: column; padding: 24px; gap: 16px; box-shadow: var(--shadow-lg); }
    .nav-right.open { display: flex; }
    .nav-links { flex-direction: column; gap: 12px; }
    .lang-dropdown { margin-left: 0; }
    .lang-dropdown-menu { right: auto; left: 0; }
}

/* === HERO === */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(150deg, #042e22 0%, var(--green-dark) 30%, var(--green) 70%, #12946a 100%);
    color: white; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(168,230,207,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
    background: linear-gradient(to bottom right, transparent 49.5%, white 50%);
}
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(168,230,207,0.15); border: 1px solid rgba(168,230,207,0.25);
    padding: 7px 18px; border-radius: 24px; font-size: 14px; font-weight: 500; margin-bottom: 28px;
}
.hero-badge-dot { width: 8px; height: 8px; background: var(--mint); border-radius: 50%; }
.hero h1 {
    font-size: 50px; font-weight: 800; line-height: 1.12; letter-spacing: -1.5px; margin-bottom: 20px;
}
.hero p { font-size: 19px; opacity: 0.88; line-height: 1.7; margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 12px; font-size: 16px; font-weight: 600;
    cursor: pointer; border: none; transition: var(--transition); font-family: inherit;
    text-decoration: none;
}
.btn-amber { background: var(--amber); color: var(--charcoal); box-shadow: 0 4px 16px rgba(244,160,35,0.3); }
.btn-amber:hover { background: var(--amber-dark); transform: translateY(-2px); color: var(--charcoal); box-shadow: 0 8px 24px rgba(244,160,35,0.35); }
.btn-white { background: white; color: var(--green); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); color: var(--green); }
.btn-outline { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.25); }
.btn-outline:hover { background: rgba(255,255,255,0.2); color: white; }
.btn-green { background: var(--green); color: white; box-shadow: 0 4px 16px rgba(11,110,79,0.25); }
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); color: white; }
.btn-lg { padding: 18px 36px; font-size: 18px; border-radius: 14px; }
.btn-ghost { background: var(--green-light); color: var(--green); }
.btn-ghost:hover { background: #d4edde; color: var(--green-dark); }

/* === SECTIONS === */
section { padding: 88px 0; }
.section-gray { background: var(--snow); }
.section-green { background: linear-gradient(150deg, var(--green-dark), var(--green)); color: white; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.section-header h2 { font-size: 36px; font-weight: 800; letter-spacing: -1px; color: var(--charcoal); margin-bottom: 12px; }
.section-green .section-header h2 { color: white; }
.section-header p { font-size: 17px; color: var(--slate); line-height: 1.65; }
.section-green .section-header p { color: rgba(255,255,255,0.75); }

/* === CARDS === */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 34px; } .hero { padding: 120px 0 70px; } }

.card {
    background: white; border-radius: var(--radius-lg); padding: 32px;
    box-shadow: var(--shadow); transition: var(--transition);
    border: 1px solid rgba(11,110,79,0.04);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
    width: 56px; height: 56px;
    background: var(--green-light); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 20px;
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; color: var(--charcoal); }
.card p { font-size: 15px; color: var(--slate); line-height: 1.65; }

/* === PRICING === */
.pricing-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
    max-width: 880px; margin: 0 auto; align-items: start;
}
@media (max-width: 768px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
    background: white; border-radius: var(--radius-xl); padding: 48px 40px;
    text-align: center; box-shadow: var(--shadow-lg);
    border: 2px solid var(--green-light); position: relative;
}
.pricing-card.featured { border-color: var(--green); }
.btn-outline.btn-green-outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-outline.btn-green-outline:hover { background: var(--green); color: white; }
.pricing-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--green); color: white; padding: 6px 22px; border-radius: 20px;
    font-size: 13px; font-weight: 600;
}
.pricing-price { font-size: 68px; font-weight: 800; color: var(--green); line-height: 1; margin: 24px 0 8px; }
.pricing-price span { font-size: 22px; font-weight: 500; color: var(--slate); }
.pricing-subtitle { font-size: 17px; color: var(--slate); margin-bottom: 32px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 36px; }
.pricing-features li {
    padding: 11px 0; font-size: 15px; display: flex; align-items: center;
    gap: 12px; color: var(--charcoal); border-bottom: 1px solid var(--snow);
}
.pricing-features li:last-child { border: none; }
.check {
    width: 24px; height: 24px; background: var(--green-light); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--green); font-size: 13px; flex-shrink: 0; font-weight: 700;
}

/* === STEPS === */
.steps-list { max-width: 700px; margin: 0 auto; }
.step { display: flex; gap: 24px; margin-bottom: 40px; position: relative; }
.step:not(:last-child)::after {
    content: ''; position: absolute; left: 23px; top: 56px; bottom: -16px;
    width: 2px; background: var(--green-light);
}
.step-number {
    width: 48px; height: 48px; min-width: 48px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 18px;
}
.step-content h3 { font-size: 18px; font-weight: 700; color: var(--charcoal); margin-bottom: 6px; }
.step-content p { font-size: 15px; color: var(--slate); line-height: 1.65; }

/* === PROCESS DIAGRAM === */
.process-diagram { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 40px 0; }
@media (max-width: 768px) { .process-diagram { grid-template-columns: 1fr 1fr; } }
.process-step {
    background: white; border-radius: var(--radius); padding: 28px 20px;
    text-align: center; box-shadow: var(--shadow); position: relative;
}
.process-step-icon { font-size: 36px; margin-bottom: 14px; }
.process-step h4 { font-size: 15px; font-weight: 700; color: var(--charcoal); margin-bottom: 4px; }
.process-step p { font-size: 13px; color: var(--slate); }

/* === SUPPORT BOX === */
.support-box {
    background: white; border-radius: var(--radius-xl); padding: 48px;
    box-shadow: var(--shadow-lg); max-width: 560px; margin: 0 auto; text-align: center;
}
.support-box h3 { font-size: 24px; font-weight: 700; color: var(--charcoal); margin-bottom: 8px; }
.support-box > p { font-size: 15px; color: var(--slate); margin-bottom: 32px; }

.session-field { display: flex; flex-direction: column; gap: 8px; align-items: center; margin-bottom: 28px; }
.session-field label { font-size: 14px; font-weight: 600; color: var(--charcoal); }
.session-input {
    background: var(--snow); border: 2px solid rgba(11,110,79,0.12); border-radius: 12px;
    padding: 16px 20px; font-size: 28px; font-family: 'Courier New', monospace;
    letter-spacing: 8px; font-weight: 700; text-align: center; width: 240px;
    color: var(--green); transition: var(--transition);
}
.session-input:focus { outline: none; border-color: var(--green); background: white; }
.session-input::placeholder { color: #c0d5cb; letter-spacing: 4px; font-weight: 400; }

/* === FAQ === */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(11,110,79,0.06); }
.faq-question {
    padding: 20px 0; font-size: 16px; font-weight: 600; color: var(--charcoal);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-question:hover { color: var(--green); }
.faq-question::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--green); transition: var(--transition); }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding-bottom: 20px; font-size: 15px; color: var(--slate); line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 300px; }

/* === FORM === */
.payment-form { max-width: 440px; margin: 0 auto; text-align: left; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--charcoal); margin-bottom: 6px; }
.form-group input, .form-group select {
    width: 100%; padding: 13px 16px; border: 2px solid rgba(11,110,79,0.1);
    border-radius: 10px; font-size: 15px; font-family: inherit;
    transition: var(--transition); background: var(--snow);
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--green); background: white; }

/* === PAYMENT BADGES === */
.payment-methods { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.payment-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--snow); padding: 8px 14px; border-radius: 8px;
    font-size: 13px; font-weight: 500; color: var(--slate);
}

/* === SECURITY BANNER === */
.security-banner {
    display: flex; gap: 16px; background: var(--green-light);
    border: 1px solid rgba(11,110,79,0.1); border-radius: var(--radius);
    padding: 20px 24px; margin-top: 40px; align-items: flex-start;
    max-width: 640px; margin-left: auto; margin-right: auto;
}
.security-banner .icon { font-size: 24px; min-width: 32px; }
.security-banner h4 { font-size: 14px; font-weight: 600; color: var(--green-dark); margin-bottom: 4px; }
.security-banner p { font-size: 13px; color: var(--slate); line-height: 1.5; }

/* === PAGE HEADER (inner pages) === */
.page-header {
    padding: 130px 0 70px;
    background: linear-gradient(150deg, #042e22 0%, var(--green-dark) 50%, var(--green) 100%);
    color: white; text-align: center; position: relative;
}
.page-header::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
    background: linear-gradient(to bottom right, transparent 49.5%, white 50%);
}
.page-header h1 { font-size: 42px; font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.page-header p { font-size: 18px; opacity: 0.8; max-width: 520px; margin: 0 auto; }

/* === FOOTER === */
.footer { background: var(--charcoal); color: rgba(255,255,255,0.6); padding: 48px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo img { height: 28px; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 14px; }
.footer-links a:hover { color: white; }
.footer-bottom { text-align: center; padding-top: 32px; margin-top: 32px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 13px; }

/* === AUTH NAV BUTTON === */
.nav-auth-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: 10px; border: 2px solid var(--green);
    background: none; cursor: pointer; font-size: 14px; font-weight: 600;
    color: var(--green); font-family: inherit; transition: var(--transition);
    margin-left: 12px; white-space: nowrap;
}
.nav-auth-btn:hover { background: var(--green); color: white; }
.nav-auth-btn.logged-in { background: var(--green-light); border-color: var(--green-light); color: var(--green); }
.nav-auth-btn.logged-in:hover { background: var(--green); border-color: var(--green); color: white; }

@media (max-width: 768px) {
    .nav-auth-btn { margin-left: 0; width: 100%; justify-content: center; }
}

/* === AUTH MODAL === */
.auth-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 24px; opacity: 0; visibility: hidden; transition: all 0.25s ease;
}
.auth-overlay.open { opacity: 1; visibility: visible; }
.auth-modal {
    background: white; border-radius: var(--radius-xl); padding: 48px;
    box-shadow: var(--shadow-lg); max-width: 420px; width: 100%;
    text-align: center; position: relative;
    transform: translateY(20px); transition: transform 0.25s ease;
}
.auth-overlay.open .auth-modal { transform: translateY(0); }
.auth-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; font-size: 24px; cursor: pointer;
    color: var(--slate); padding: 4px 8px; border-radius: 8px; transition: var(--transition);
}
.auth-close:hover { background: var(--snow); color: var(--charcoal); }
.auth-modal h3 { font-size: 24px; font-weight: 700; color: var(--charcoal); margin-bottom: 8px; }
.auth-modal > p { font-size: 15px; color: var(--slate); margin-bottom: 28px; }
.auth-input {
    width: 100%; padding: 14px 16px; border: 2px solid rgba(11,110,79,0.1);
    border-radius: 10px; font-size: 16px; font-family: inherit;
    background: var(--snow); transition: var(--transition); margin-bottom: 16px;
}
.auth-input:focus { outline: none; border-color: var(--green); background: white; }
.auth-input.otp {
    font-size: 28px; font-family: 'Courier New', monospace;
    letter-spacing: 8px; font-weight: 700; text-align: center;
}
.auth-input.otp::placeholder { letter-spacing: 4px; font-weight: 400; }
.auth-btn {
    width: 100%; padding: 14px 28px; border-radius: 12px;
    font-size: 16px; font-weight: 600; cursor: pointer; border: none;
    background: var(--green); color: white; font-family: inherit;
    transition: var(--transition);
}
.auth-btn:hover { background: var(--green-dark); }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-error {
    color: #d32f2f; font-size: 14px; margin-bottom: 16px;
    padding: 10px 14px; background: #ffeaea; border-radius: 8px; display: none;
}
.auth-error.show { display: block; }
.auth-links {
    margin-top: 16px; display: flex; gap: 16px; justify-content: center;
}
.auth-link {
    font-size: 14px; color: var(--green); cursor: pointer;
    background: none; border: none; font-family: inherit; padding: 0;
    transition: var(--transition);
}
.auth-link:hover { color: var(--green-dark); text-decoration: underline; }
.auth-step { display: none; }
.auth-step.active { display: block; }
.auth-sent-to {
    font-size: 14px; color: var(--green); font-weight: 600;
    margin-bottom: 20px; word-break: break-all;
}

/* === ACCOUNT DASHBOARD === */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
@media (max-width: 768px) { .dashboard-grid { grid-template-columns: 1fr; } }
.dashboard-card {
    background: white; border-radius: var(--radius-lg); padding: 32px;
    box-shadow: var(--shadow); border: 1px solid rgba(11,110,79,0.04);
}
.dashboard-card h3 {
    font-size: 18px; font-weight: 700; color: var(--charcoal);
    margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.dashboard-card.full-width { grid-column: 1 / -1; }
.profile-row { display: flex; padding: 12px 0; border-bottom: 1px solid var(--snow); }
.profile-row:last-child { border: none; }
.profile-label { font-size: 14px; color: var(--slate); font-weight: 500; min-width: 100px; }
.profile-value { font-size: 15px; color: var(--charcoal); font-weight: 500; }
.profile-input {
    width: 100%; padding: 8px 12px;
    border: 2px solid rgba(11,110,79,0.15); border-radius: 8px;
    font-size: 14px; font-family: inherit; color: var(--charcoal);
    transition: border-color 0.2s;
}
.profile-input:focus { border-color: var(--green); outline: none; }
.btn-close-ticket {
    background: none; border: 2px solid #d32f2f; color: #d32f2f;
    width: 28px; height: 28px; border-radius: 50%; font-size: 16px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    line-height: 1; transition: all 0.2s; flex-shrink: 0;
}
.btn-close-ticket:hover { background: #d32f2f; color: #fff; }
.order-card {
    background: var(--snow); border-radius: var(--radius); padding: 16px 20px;
    margin-bottom: 12px; display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 12px;
}
.order-card:last-child { margin-bottom: 0; }
.order-info { display: flex; flex-direction: column; gap: 4px; }
.order-desc { font-size: 15px; font-weight: 600; color: var(--charcoal); }
.order-date { font-size: 13px; color: var(--slate); }
.order-right { text-align: right; }
.order-amount { font-size: 18px; font-weight: 700; color: var(--green); }
.order-status {
    display: inline-block; font-size: 12px; font-weight: 600;
    padding: 3px 10px; border-radius: 12px;
    background: var(--green-light); color: var(--green);
}
.sessions-info {
    background: var(--snow); border-radius: var(--radius); padding: 20px 24px;
}
.sessions-info p { font-size: 15px; color: var(--slate); line-height: 1.65; margin-bottom: 16px; }
.dashboard-logout {
    text-align: center; margin-top: 32px;
}

/* === SESSION CODE DISPLAY === */
.session-code-display {
    background: var(--snow); border: 2px solid var(--green-light);
    border-radius: 12px; padding: 20px; text-align: center; margin: 16px 0;
}
.session-code-display .code {
    font-size: 36px; font-weight: 800; letter-spacing: 8px;
    color: var(--green); font-family: 'Courier New', monospace;
}
.session-code-display .code-loading {
    font-size: 14px; color: var(--slate); font-style: italic;
}

/* === CONTENT BODY (long text sections) === */
.content-body { max-width: 800px; margin: 0 auto; }
.content-body h3 { font-size: 22px; font-weight: 700; color: var(--charcoal); margin: 36px 0 12px; }
.content-body h3:first-child { margin-top: 0; }
.content-body p { font-size: 16px; color: var(--slate); line-height: 1.75; margin-bottom: 16px; }
.content-body ul, .content-body ol { margin: 12px 0 20px 24px; }
.content-body li { font-size: 15px; color: var(--slate); line-height: 1.7; margin-bottom: 10px; }
.content-body strong { color: var(--charcoal); }

/* === 4-COLUMN CARD GRID === */
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cards-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-grid-4 { grid-template-columns: 1fr; } }

/* === REVIEWS === */
.reviews-summary {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-bottom: 32px; flex-wrap: wrap;
}
.reviews-avg { font-size: 48px; font-weight: 800; color: var(--green); line-height: 1; }
.reviews-stars-big { font-size: 28px; letter-spacing: 2px; }
.reviews-count { font-size: 15px; color: var(--slate); }

.reviews-carousel {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 8px 0 16px; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.reviews-carousel::-webkit-scrollbar { display: none; }

.review-card {
    background: white; border-radius: var(--radius-lg); padding: 28px;
    box-shadow: var(--shadow); border: 1px solid rgba(11,110,79,0.04);
    min-width: 300px; max-width: 340px; flex-shrink: 0; scroll-snap-align: start;
    transition: var(--transition);
}
.review-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.review-stars { font-size: 18px; margin-bottom: 12px; letter-spacing: 2px; }
.review-text { font-size: 14px; color: var(--slate); line-height: 1.7; margin-bottom: 16px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar {
    width: 36px; height: 36px; border-radius: 50%; background: var(--green-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: var(--green);
}
.review-name { font-size: 14px; font-weight: 600; color: var(--charcoal); }
.review-date { font-size: 12px; color: var(--slate); }

.reviews-cta { margin-top: 24px; }

/* Reviews page grid */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .reviews-grid { grid-template-columns: 1fr; } }
.reviews-grid .review-card { min-width: unset; max-width: unset; }

.reviews-filters { display: flex; gap: 8px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.filter-btn {
    padding: 8px 16px; border-radius: 20px; border: 1px solid rgba(11,110,79,0.15);
    background: white; cursor: pointer; font-size: 13px; font-weight: 500;
    color: var(--slate); font-family: inherit; transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover { background: var(--green); color: white; border-color: var(--green); }

/* Review country flag */
.review-flag { font-size: 16px; margin-right: 4px; vertical-align: middle; }

/* Review translation note */
.review-translation-note {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 12px; font-size: 12px;
}
.review-translated-label { color: var(--slate); font-style: italic; }
.review-toggle-original {
    background: none; border: none; color: var(--green); cursor: pointer;
    font-size: 12px; font-family: inherit; padding: 0; text-decoration: underline;
    transition: var(--transition);
}
.review-toggle-original:hover { color: var(--green-dark); }
.review-original-text {
    display: none; font-size: 13px; color: var(--slate); line-height: 1.65;
    margin-bottom: 12px; padding: 10px 14px; background: var(--snow);
    border-radius: 8px; border-left: 3px solid var(--green-light);
}
.review-card.show-original .review-original-text { display: block; }

.reviews-load-more { margin-top: 32px; }
.reviews-stats-bar { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.reviews-stat { text-align: center; }
.reviews-stat-num { font-size: 28px; font-weight: 800; color: var(--green); }
.reviews-stat-label { font-size: 13px; color: var(--slate); }

/* Rating distribution bars */
.rating-bars { max-width: 320px; margin: 0 auto 32px; }
.rating-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rating-bar-label { font-size: 13px; font-weight: 600; color: var(--charcoal); min-width: 32px; }
.rating-bar-track { flex: 1; height: 8px; background: var(--snow); border-radius: 4px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--green); border-radius: 4px; transition: width 0.6s ease; }
.rating-bar-count { font-size: 12px; color: var(--slate); min-width: 28px; text-align: right; }

/* === PROFILE AVATAR === */
.avatar-section { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.avatar-large {
    width: 64px; height: 64px; border-radius: 50%; background: var(--green-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; cursor: pointer; transition: var(--transition);
    border: 3px solid var(--green);
}
.avatar-large:hover { transform: scale(1.05); box-shadow: var(--shadow-md); }
.avatar-picker {
    display: none; gap: 10px; flex-wrap: wrap; padding: 16px;
    background: var(--snow); border-radius: var(--radius); margin-bottom: 16px;
}
.avatar-picker.open { display: flex; }
.avatar-option {
    width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; cursor: pointer; transition: var(--transition);
    background: white;
}
.avatar-option:hover { border-color: var(--green); transform: scale(1.1); }
.avatar-option.selected { border-color: var(--green); background: var(--green-light); }

/* === ADMIN PAGE === */
.admin-login-box {
    max-width: 400px; margin: 0 auto; background: white;
    border-radius: var(--radius-xl); padding: 48px;
    box-shadow: var(--shadow-lg); text-align: center;
}
.admin-login-box h3 { font-size: 24px; font-weight: 700; color: var(--charcoal); margin-bottom: 8px; }
.admin-login-box > p { font-size: 15px; color: var(--slate); margin-bottom: 28px; }
.admin-login-box .form-group { text-align: left; }
.admin-error {
    color: #d32f2f; font-size: 14px; margin-bottom: 16px;
    padding: 10px 14px; background: #ffeaea; border-radius: 8px; display: none;
}
.admin-error.show { display: block; }

.admin-dashboard { max-width: 1000px; margin: 0 auto; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
@media (max-width: 768px) { .admin-stats-grid { grid-template-columns: repeat(2, 1fr); } }
.admin-stat-card {
    background: white; border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow); text-align: center;
}
.admin-stat-card .icon { font-size: 28px; margin-bottom: 8px; }
.admin-stat-card .num { font-size: 28px; font-weight: 800; color: var(--green); }
.admin-stat-card .label { font-size: 13px; color: var(--slate); margin-top: 4px; }

/* === ADMIN TABS === */
.admin-tabs {
    display: flex; gap: 4px; margin-bottom: 32px;
    background: var(--snow); border-radius: 12px; padding: 4px;
    border: 1px solid rgba(11,110,79,0.08);
}
.admin-tab {
    flex: 1; padding: 12px 20px; border-radius: 10px; border: none;
    background: none; cursor: pointer; font-size: 14px; font-weight: 600;
    color: var(--slate); font-family: inherit; transition: var(--transition);
    text-align: center;
}
.admin-tab:hover { color: var(--green); background: rgba(11,110,79,0.04); }
.admin-tab.active { background: white; color: var(--green); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

/* === ADMIN TABLE === */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
    text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 700;
    color: var(--slate); text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 2px solid var(--snow); background: var(--snow);
}
.admin-table td {
    padding: 14px 16px; border-bottom: 1px solid rgba(11,110,79,0.04);
    color: var(--charcoal); vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(11,110,79,0.02); }
.admin-table tr { cursor: pointer; transition: background 0.15s ease; }
.admin-table .clickable:hover td { background: var(--green-light); }

/* === ADMIN SEARCH === */
.admin-search {
    display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; align-items: center;
}
.admin-search input {
    flex: 1; min-width: 200px; padding: 10px 16px; border: 2px solid rgba(11,110,79,0.1);
    border-radius: 10px; font-size: 14px; font-family: inherit;
    background: var(--snow); transition: var(--transition);
}
.admin-search input:focus { outline: none; border-color: var(--green); background: white; }
.admin-search select {
    padding: 10px 16px; border: 2px solid rgba(11,110,79,0.1);
    border-radius: 10px; font-size: 14px; font-family: inherit;
    background: var(--snow); cursor: pointer;
}

/* === ADMIN BADGE === */
.admin-badge {
    display: inline-block; font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.3px;
}
.admin-badge.active { background: var(--green-light); color: var(--green); }
.admin-badge.used { background: #FFF3E0; color: #E65100; }
.admin-badge.closed { background: #ECEFF1; color: #546E7A; }

/* === ADMIN CUSTOMER DETAIL === */
.admin-customer-detail {
    background: var(--snow); border-radius: var(--radius-lg); padding: 28px;
    margin-top: 16px; border: 1px solid rgba(11,110,79,0.08);
}
.admin-customer-detail h4 {
    font-size: 16px; font-weight: 700; color: var(--charcoal); margin-bottom: 16px;
}
.admin-customer-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 600px) { .admin-customer-info { grid-template-columns: 1fr; } }
.admin-customer-stat {
    background: white; border-radius: var(--radius); padding: 16px; text-align: center;
}
.admin-customer-stat .val { font-size: 24px; font-weight: 800; color: var(--green); }
.admin-customer-stat .lbl { font-size: 12px; color: var(--slate); margin-top: 2px; }

/* === ADMIN MODAL === */
.admin-modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 24px; opacity: 0; visibility: hidden; transition: all 0.25s ease;
}
.admin-modal-overlay.open { opacity: 1; visibility: visible; }
.admin-modal {
    background: white; border-radius: var(--radius-xl); padding: 32px;
    box-shadow: var(--shadow-lg); max-width: 700px; width: 100%;
    max-height: 90vh; overflow-y: auto; position: relative;
    transform: translateY(20px); transition: transform 0.25s ease;
}
.admin-modal-overlay.open .admin-modal { transform: translateY(0); }
.admin-modal-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; font-size: 24px; cursor: pointer;
    color: var(--slate); padding: 4px 8px; border-radius: 8px; transition: var(--transition);
}
.admin-modal-close:hover { background: var(--snow); color: var(--charcoal); }
.admin-modal h3 { font-size: 20px; font-weight: 700; color: var(--charcoal); margin-bottom: 20px; }

/* === ADMIN CREDITS CONTROLS === */
.admin-credits-control {
    display: flex; align-items: center; gap: 8px; margin-top: 12px;
}
.admin-credits-control input {
    width: 80px; padding: 8px 12px; border: 2px solid rgba(11,110,79,0.1);
    border-radius: 8px; font-size: 14px; font-family: inherit; text-align: center;
}
.admin-credits-control button {
    padding: 8px 16px; border-radius: 8px; border: none;
    font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: var(--transition);
}
.admin-credits-control .btn-add { background: var(--green); color: white; }
.admin-credits-control .btn-add:hover { background: var(--green-dark); }
.admin-credits-control .btn-remove { background: #FFEBEE; color: #C62828; }
.admin-credits-control .btn-remove:hover { background: #FFCDD2; }

/* === ADMIN STATS GRID (5 cols) === */
.admin-stats-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 32px; }
@media (max-width: 900px) { .admin-stats-grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .admin-stats-grid-5 { grid-template-columns: repeat(2, 1fr); } }

/* === ADMIN INLINE EDIT === */
.admin-inline-edit {
    display: flex; gap: 8px; align-items: center;
}
.admin-inline-edit input {
    flex: 1; padding: 6px 10px; border: 2px solid rgba(11,110,79,0.15);
    border-radius: 6px; font-size: 13px; font-family: inherit;
}
.admin-inline-edit button {
    padding: 6px 12px; border-radius: 6px; border: none;
    background: var(--green); color: white; font-size: 12px; font-weight: 600;
    cursor: pointer; font-family: inherit;
}

/* === ADMIN EMPTY STATE === */
.admin-empty {
    text-align: center; padding: 48px 24px; color: var(--slate);
}
.admin-empty .icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
.admin-empty p { font-size: 15px; }

/* Footer admin link */
.footer-admin-link {
    color: rgba(255,255,255,0.2) !important;
    font-size: 12px !important;
    transition: color 0.25s ease;
}
.footer-admin-link:hover { color: rgba(255,255,255,0.5) !important; }

/* === TICKET ID & STATUS BADGES === */
.ticket-id-badge {
    display: inline-block; font-family: 'Courier New', monospace; font-size: 13px;
    font-weight: 700; color: var(--green); background: var(--green-light);
    padding: 3px 10px; border-radius: 8px; letter-spacing: 1px;
}
.ticket-status-badge {
    display: inline-block; font-size: 12px; font-weight: 600;
    padding: 3px 12px; border-radius: 12px;
}
.ticket-status-badge.active { background: var(--green-light); color: var(--green); }
.ticket-status-badge.used { background: #FFF3E0; color: #E65100; }
.ticket-status-badge.closed { background: #ECEFF1; color: #546E7A; }

/* === TICKET LINK === */
.ticket-link {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--snow); border-radius: var(--radius); padding: 16px 20px;
    margin-bottom: 12px; cursor: pointer; transition: var(--transition);
    text-decoration: none; color: inherit; flex-wrap: wrap; gap: 12px;
    border: 1px solid transparent;
}
.ticket-link:hover {
    transform: translateX(4px); box-shadow: var(--shadow-md);
    border-color: rgba(11,110,79,0.12); color: inherit;
}
.ticket-link:last-child { margin-bottom: 0; }
.ticket-link-info { display: flex; flex-direction: column; gap: 4px; }
.ticket-link-subject { font-size: 15px; font-weight: 600; color: var(--charcoal); }
.ticket-link-meta { font-size: 13px; color: var(--slate); display: flex; gap: 10px; align-items: center; }
.ticket-link-right { display: flex; align-items: center; gap: 12px; }
.ticket-link-stars { font-size: 14px; letter-spacing: 1px; }

/* === TRANSCRIPT (CHAT BUBBLES) === */
.transcript-container {
    display: flex; flex-direction: column; gap: 12px; padding: 20px 0;
}
.transcript-bubble {
    max-width: 80%; padding: 14px 18px; border-radius: 16px;
    font-size: 14px; line-height: 1.65; position: relative;
}
.transcript-bubble .transcript-time {
    font-size: 11px; color: rgba(0,0,0,0.4); margin-top: 6px; display: block;
}
.transcript-bubble.technician {
    align-self: flex-start; background: var(--green-light); color: var(--charcoal);
    border-bottom-left-radius: 4px;
}
.transcript-bubble.client {
    align-self: flex-end; background: #F0F0F0; color: var(--charcoal);
    border-bottom-right-radius: 4px;
}
.transcript-speaker {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 4px; display: block;
}
.transcript-bubble.technician .transcript-speaker { color: var(--green); }
.transcript-bubble.client .transcript-speaker { color: var(--slate); }

/* === STAR RATING INPUT === */
.star-rating-input { display: flex; gap: 4px; margin-bottom: 12px; }
.star-rating-input .star {
    font-size: 32px; cursor: pointer; color: #D1D5DB;
    transition: color 0.15s ease, transform 0.15s ease;
    background: none; border: none; padding: 0; line-height: 1;
}
.star-rating-input .star:hover,
.star-rating-input .star.active { color: #F4A023; }
.star-rating-input .star:hover { transform: scale(1.15); }

/* === STAR RATING READ-ONLY === */
.star-rating-readonly { font-size: 18px; letter-spacing: 2px; }

/* === REVIEW TEXTAREA === */
.review-textarea {
    width: 100%; min-height: 80px; padding: 12px 16px; border: 2px solid rgba(11,110,79,0.1);
    border-radius: 10px; font-size: 15px; font-family: inherit; resize: vertical;
    background: var(--snow); transition: var(--transition); margin-bottom: 12px;
}
.review-textarea:focus { outline: none; border-color: var(--green); background: white; }

/* === CREDITS DISPLAY === */
.credits-display { text-align: center; padding: 24px 0; }
.credits-balance {
    font-size: 56px; font-weight: 800; color: var(--green); line-height: 1;
    margin-bottom: 8px;
}
.credits-label { font-size: 15px; color: var(--slate); margin-bottom: 4px; }
.credits-info { font-size: 13px; color: var(--slate); margin-bottom: 20px; }

/* === TICKET DETAIL PAGE === */
.ticket-detail-container { max-width: 700px; margin: 0 auto; }
.ticket-detail-card {
    background: white; border-radius: var(--radius-lg); padding: 28px 32px;
    box-shadow: var(--shadow); border: 1px solid rgba(11,110,79,0.04);
    margin-bottom: 24px;
}
.ticket-detail-card h3 {
    font-size: 18px; font-weight: 700; color: var(--charcoal);
    margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.ticket-info-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 500px) { .ticket-info-grid { grid-template-columns: 1fr; } }
.ticket-info-item label {
    font-size: 12px; font-weight: 600; color: var(--slate); text-transform: uppercase;
    letter-spacing: 0.5px; display: block; margin-bottom: 2px;
}
.ticket-info-item span { font-size: 15px; color: var(--charcoal); font-weight: 500; }

.ticket-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* === UTILITIES === */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.flex-center { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Kennisbank / Knowledge Base Styles
   ============================================================ */

/* Listing page */
.kb-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; justify-content: center; }
.kb-empty { text-align: center; padding: 80px 20px; color: #64748b; font-size: 18px; }

.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.kb-card { display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: transform 0.2s, box-shadow 0.2s; }
.kb-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.kb-card-image { aspect-ratio: 20/7; overflow: hidden; background: #f1f5f9; }
.kb-card-image img { width: 100%; height: 100%; object-fit: cover; }
.kb-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.kb-card-category { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #0b6e4f; background: #ecfdf5; padding: 4px 10px; border-radius: 20px; margin-bottom: 8px; align-self: flex-start; }
.kb-card-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; color: #1a1a2e; }
.kb-card-excerpt { font-size: 14px; color: #64748b; line-height: 1.6; flex: 1; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kb-card-meta { display: flex; justify-content: space-between; font-size: 12px; color: #94a3b8; }

/* === Single post === */

/* Breadcrumb bar */
.kb-breadcrumb-bar { background: #f8fafb; border-bottom: 1px solid #e5e7eb; padding: 12px 0; }
.kb-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; flex-wrap: wrap; }
.kb-breadcrumb a { color: #64748b; text-decoration: none; }
.kb-breadcrumb a:hover { color: #0b6e4f; }
.kb-bc-sep { color: #cbd5e1; }
.kb-bc-current { color: #374151; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 400px; }

/* Article header */
.kb-article-header { background: linear-gradient(180deg, #f8fafb 0%, #fff 100%); padding: 48px 0 32px; }
.kb-article-header-inner { max-width: 720px; }
.kb-article-header h1 { font-size: 36px; line-height: 1.25; color: #1a1a2e; margin: 8px 0 16px; font-weight: 800; letter-spacing: -0.02em; }
.kb-post-category { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #0b6e4f; background: rgba(11,110,79,0.1); padding: 4px 12px; border-radius: 20px; }
.kb-post-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #64748b; }
.kb-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.kb-meta-item svg { opacity: 0.6; flex-shrink: 0; }

/* Article section */
.kb-article-section { padding: 40px 0 80px; }

/* Post layout */
.kb-post-layout { display: grid; grid-template-columns: 1fr 280px; gap: 56px; align-items: start; }
.kb-post-content { min-width: 0; max-width: 720px; }

/* Hero image */
.kb-hero-figure { margin: 0 0 32px; }
.kb-post-hero-image { width: 100%; border-radius: 12px; display: block; }

/* Lead paragraph */
.kb-lead { font-size: 18px; line-height: 1.7; color: #374151; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid #e5e7eb; font-weight: 400; }

/* Prose — article body */
.kb-prose { font-size: 17px; line-height: 1.85; color: #374151; }
.kb-prose > *:first-child { margin-top: 0; }

.kb-prose h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 48px 0 16px;
    color: #1a1a2e;
    letter-spacing: -0.01em;
    line-height: 1.3;
    scroll-margin-top: 80px;
}
.kb-prose h3 {
    font-size: 19px;
    font-weight: 600;
    margin: 32px 0 10px;
    color: #1a1a2e;
    line-height: 1.4;
    scroll-margin-top: 80px;
}
.kb-prose h4 {
    font-size: 17px;
    font-weight: 600;
    margin: 24px 0 8px;
    color: #1a1a2e;
}
.kb-prose p { margin-bottom: 20px; }
.kb-prose ul, .kb-prose ol { margin-bottom: 20px; padding-left: 28px; }
.kb-prose li { margin-bottom: 8px; line-height: 1.7; }

/* Images in articles */
.kb-prose figure {
    margin: 32px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafb;
}
.kb-prose figure img {
    display: block;
    width: 100%;
    height: auto;
}
.kb-prose figure figcaption {
    padding: 10px 16px;
    font-size: 13px;
    color: #64748b;
    text-align: center;
    background: #f8fafb;
}
.kb-prose img {
    max-width: 100%;
    border-radius: 8px;
    margin: 24px 0;
    height: auto;
}

/* Links */
.kb-prose a {
    color: #0b6e4f;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(11,110,79,0.3);
    transition: text-decoration-color 0.2s;
}
.kb-prose a:hover {
    text-decoration-color: #0b6e4f;
}

/* Blockquotes */
.kb-prose blockquote {
    border-left: 4px solid #0b6e4f;
    padding: 16px 24px;
    margin: 28px 0;
    background: #f0fdf4;
    border-radius: 0 12px 12px 0;
    font-style: normal;
    color: #374151;
}
.kb-prose blockquote p:last-child { margin-bottom: 0; }

/* Code */
.kb-prose code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 15px; }
.kb-prose pre { background: #1e293b; color: #e2e8f0; padding: 20px 24px; border-radius: 12px; overflow-x: auto; margin: 24px 0; font-size: 14px; line-height: 1.6; }
.kb-prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }

/* Tables */
.kb-prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.kb-prose th { text-align: left; padding: 10px 14px; background: #f8fafb; font-weight: 600; color: #1a1a2e; border-bottom: 2px solid #e5e7eb; }
.kb-prose td { padding: 10px 14px; border-bottom: 1px solid #f1f5f9; }

/* Inline CTA */
.kb-inline-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 2px solid rgba(11,110,79,0.12);
    border-radius: 16px;
    padding: 24px 28px;
    margin-top: 48px;
}
.kb-inline-cta-icon { font-size: 32px; flex-shrink: 0; }
.kb-inline-cta h4 { font-size: 16px; font-weight: 700; color: #1a1a2e; margin: 0 0 4px; }
.kb-inline-cta p { font-size: 14px; color: #64748b; margin: 0; }
.kb-inline-cta .btn { flex-shrink: 0; white-space: nowrap; }

/* === Sidebar === */
.kb-sidebar { position: sticky; top: 90px; }

/* Table of contents */
.kb-toc {
    background: #f8fafb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
}
.kb-toc h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin: 0 0 12px;
}
.kb-toc nav { display: flex; flex-direction: column; gap: 2px; }
.kb-toc-link {
    display: block;
    padding: 6px 10px;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    border-radius: 6px;
    line-height: 1.4;
    transition: background 0.15s, color 0.15s;
}
.kb-toc-link:hover { background: #e5e7eb; color: #1a1a2e; }
.kb-toc-link.active { background: rgba(11,110,79,0.08); color: #0b6e4f; font-weight: 600; }

/* Sidebar related articles */
.kb-sidebar-section { margin-bottom: 24px; }
.kb-sidebar-section h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin: 0 0 12px;
}
.kb-sidebar-link { display: block; padding: 12px 0; border-bottom: 1px solid #e5e7eb; text-decoration: none; color: inherit; }
.kb-sidebar-link:first-of-type { border-top: 1px solid #e5e7eb; }
.kb-sidebar-link:hover .kb-sidebar-title { color: #0b6e4f; }
.kb-sidebar-title { display: block; font-size: 14px; font-weight: 600; color: #374151; line-height: 1.4; }
.kb-sidebar-date { display: block; font-size: 12px; color: #94a3b8; margin-top: 2px; }

/* === Responsive === */
@media (max-width: 1024px) {
    .kb-post-layout { grid-template-columns: 1fr; gap: 40px; }
    .kb-sidebar { position: static; }
    .kb-toc { display: none; }
}
@media (max-width: 768px) {
    .kb-grid { grid-template-columns: 1fr; }
    .kb-article-header h1 { font-size: 28px; }
    .kb-prose { font-size: 16px; }
    .kb-prose h2 { font-size: 21px; margin-top: 36px; }
    .kb-prose h3 { font-size: 18px; }
    .kb-lead { font-size: 16px; }
    .kb-inline-cta { flex-direction: column; text-align: center; padding: 20px; }
    .kb-inline-cta .btn { width: 100%; }
    .kb-bc-current { max-width: 200px; }
}


/* CMS additions for kennisbank */
.cms-table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.cms-table th { text-align: left; padding: 12px 16px; background: #f9fafb; font-size: 13px; font-weight: 600; color: #374151; border-bottom: 2px solid #e5e7eb; }
.cms-table td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid #f1f5f9; }
.cms-table tr:hover td { background: #f9fafb; }
.cms-table code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.cms-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.cms-badge-green { background: #ecfdf5; color: #059669; }
.cms-badge-gray { background: #f1f5f9; color: #64748b; }
.cms-btn-sm { display: inline-block; padding: 5px 12px; font-size: 12px; font-weight: 600; border: 1px solid #e5e7eb; border-radius: 6px; background: white; color: #374151; cursor: pointer; text-decoration: none; font-family: inherit; }
.cms-btn-sm:hover { border-color: #0b6e4f; color: #0b6e4f; }
.cms-btn-danger { color: #dc2626; border-color: #fecaca; }
.cms-btn-danger:hover { background: #fef2f2; border-color: #dc2626; color: #dc2626; }
.kb-cms-empty { text-align: center; padding: 60px 20px; color: #64748b; background: white; border-radius: 8px; }
.cms-kb-card { display: block; background: white; padding: 16px; border-radius: 8px; text-decoration: none; color: inherit; border: 2px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
.cms-kb-card:hover { border-color: #0b6e4f; box-shadow: 0 2px 12px rgba(11,110,79,0.1); }

/* ============================================================
   For-whom clickable cards, mini reviews & inline CTAs
   ============================================================ */

/* Clickable card (anchor styled as card) */
a.card-clickable {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}
a.card-clickable:hover {
    border-color: var(--green);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Section scroll offset for sticky navbar */
#particulieren, #ouderen, #zzpers, #mkb {
    scroll-margin-top: 88px;
}

/* Inline CTA row */
.inline-cta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* Mini review cards in horizontal scroll */
.fw-reviews-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0 16px;
    margin-top: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--green-light) transparent;
}
.fw-reviews-row::-webkit-scrollbar { height: 6px; }
.fw-reviews-row::-webkit-scrollbar-track { background: transparent; }
.fw-reviews-row::-webkit-scrollbar-thumb { background: var(--green-light); border-radius: 3px; }

.fw-review-card {
    flex: 0 0 240px;
    min-width: 220px;
    max-width: 260px;
    background: var(--white);
    border: 1px solid rgba(11,110,79,0.1);
    border-radius: 12px;
    padding: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--charcoal);
}
.section-gray .fw-review-card {
    background: var(--white);
}
.fw-review-card .review-stars { margin-bottom: 8px; font-size: 13px; }
.fw-review-card .fw-review-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    color: var(--slate);
    font-size: 13px;
}
.fw-review-card .fw-review-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--slate);
}
.fw-review-card .fw-review-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.fw-review-card .fw-review-name { font-weight: 600; color: var(--charcoal); }

/* Light CTA section (used on home, kennisbank, etc.) */
.section-cta-light {
    padding: 48px 0;
    text-align: center;
}
.section-cta-light h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 8px;
}
.section-cta-light p {
    font-size: 15px;
    color: var(--slate);
    margin-bottom: 20px;
}

@media (max-width: 576px) {
    .inline-cta-row { flex-direction: column; }
    .inline-cta-row .btn { width: 100%; text-align: center; }
    .fw-review-card { flex: 0 0 200px; min-width: 200px; }
}
/* Scrollable language dropdown for 21 locales */
.lang-dropdown-menu {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--green) transparent;
}
.lang-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}
.lang-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}
.lang-dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: 3px;
}
.lang-flag-emoji {
    font-size: 18px;
    line-height: 1;
}
.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
}

/* ============================================================
   Phone Table — Contact Page
   ============================================================ */
.phone-table-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 2px solid var(--snow);
}
@media (max-width: 768px) {
    .phone-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
.phone-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}
.phone-table thead th {
    background: var(--snow);
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--charcoal);
    text-align: left;
    border-bottom: 2px solid rgba(11,110,79,0.08);
}
.phone-table tbody tr {
    transition: background 0.15s;
}
.phone-table tbody tr:hover {
    background: var(--snow);
}
.phone-table tbody td {
    padding: 12px 20px;
    font-size: 14px;
    color: var(--charcoal);
    border-bottom: 1px solid rgba(11,110,79,0.06);
    vertical-align: middle;
}
.phone-table tbody tr:last-child td {
    border-bottom: none;
}
.pt-country {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    white-space: nowrap;
}
.pt-country .fi {
    font-size: 20px;
    border-radius: 2px;
}
.pt-phone {
    white-space: nowrap;
}
.pt-no-number {
    color: var(--slate);
    font-size: 14px;
}
.pt-action {
    white-space: nowrap;
}
.btn-outline-green {
    background: transparent;
    color: var(--green);
    border: 2px solid var(--green);
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-outline-green:hover {
    background: var(--green);
    color: white;
}
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Call Overlay */
.pt-call-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.pt-call-box {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    min-width: 320px;
    max-width: 400px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.pt-call-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--slate);
    cursor: pointer;
    line-height: 1;
}
.pt-call-close:hover {
    color: var(--charcoal);
}
.pt-call-status {
    font-size: 18px;
    margin: 0;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}

/* Phone table call link — styled like phone number */
.pt-call-link {
    font-size: 15px;
    font-weight: 700;
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    white-space: nowrap;
}
.pt-call-link:hover {
    color: var(--green-dark);
}

/* Center phone + action columns */
.phone-table thead th:nth-child(2),
.phone-table thead th:nth-child(3) {
    text-align: center;
}
.pt-phone, .pt-action {
    text-align: center;
}
