/* Galaxy Helpdesk - klantportaal. Kleuren via variabelen zodat ze eenvoudig aan te passen zijn. */
.gd {
    --gd-primary: #2563eb;
    --gd-border: #e5e7eb;
    --gd-muted: #6b7280;
    --gd-bg-soft: #f8fafc;
    --gd-radius: 10px;
    margin-bottom: 30px;
}
.gd *, .gd *::before, .gd *::after { box-sizing: border-box; }
.gd-muted { color: var(--gd-muted); }
.gd-small { font-size: 13px; }
.gd-section-title { margin: 28px 0 12px; font-size: 18px; font-weight: 600; }

/* Tabs */
.gd-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--gd-border); margin-bottom: 20px; }
.gd-tabs a { padding: 10px 16px; color: #374151; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
.gd-tabs a:hover { color: var(--gd-primary); text-decoration: none; }
.gd-tabs a.active { border-bottom-color: var(--gd-primary); color: var(--gd-primary); font-weight: 600; }

/* Badges */
.gd-badge, .gd-prio, .gd-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.gd-badge { color: #fff; }
.gd-prio-low { background: #f3f4f6; color: #374151; }
.gd-prio-normal { background: #dbeafe; color: #1e40af; }
.gd-prio-high { background: #ffedd5; color: #9a3412; }
.gd-prio-urgent { background: #dc2626; color: #fff; }
.gd-status-open, .gd-status-in_progress, .gd-status-customer_reply { background: #dcfce7; color: #166534; }
.gd-status-answered { background: #fee2e2; color: #991b1b; }
.gd-status-on_hold { background: #fef3c7; color: #92400e; }
.gd-status-closed { background: #e5e7eb; color: #4b5563; }

.gd-bar { display: block; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; margin: 6px 0; min-width: 120px; }
.gd-bar span { display: block; height: 100%; background: var(--gd-primary); border-radius: 4px; }

/* Abonnement-strook */
.gd-plan-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 18px; border: 1px solid var(--gd-border); border-left: 5px solid #9ca3af; border-radius: var(--gd-radius); background: #fff; margin-bottom: 20px; }
.gd-plan-name { font-size: 18px; margin: 0 4px; }
.gd-plan-bundle { flex: 1; max-width: 320px; font-size: 13px; }
.gd-link { font-weight: 600; white-space: nowrap; }

/* Ticketlijst */
.gd-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.gd-pills { display: flex; gap: 6px; }
.gd-pills a { padding: 6px 14px; border-radius: 999px; background: #f3f4f6; color: #374151; text-decoration: none; font-size: 14px; }
.gd-pills a span { color: var(--gd-muted); margin-left: 4px; }
.gd-pills a.active { background: var(--gd-primary); color: #fff; }
.gd-pills a.active span { color: rgba(255, 255, 255, .8); }
.gd-ticket-list { border: 1px solid var(--gd-border); border-radius: var(--gd-radius); overflow: hidden; background: #fff; }
.gd-ticket { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--gd-border); color: inherit; text-decoration: none; }
.gd-ticket:last-child { border-bottom: 0; }
.gd-ticket:hover { background: var(--gd-bg-soft); text-decoration: none; color: inherit; }
.gd-ticket-attn { border-left: 4px solid #dc2626; }
.gd-ticket-main { display: flex; flex-direction: column; min-width: 0; }
.gd-ticket-subject { font-weight: 600; font-size: 15px; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-ticket-main .gd-muted { font-size: 13px; }
.gd-ticket-side { display: flex; gap: 6px; flex-shrink: 0; }
.gd-note { font-size: 12px; color: #92400e; }
.gd-empty { text-align: center; padding: 36px 20px; border: 1px dashed var(--gd-border); border-radius: var(--gd-radius); background: var(--gd-bg-soft); }
.gd-empty-icon { font-size: 40px; margin: 0; }

/* Formulier nieuw ticket */
.gd-step { background: #fff; border: 1px solid var(--gd-border); border-radius: var(--gd-radius); padding: 20px; margin-bottom: 16px; }
.gd-step h3 { font-size: 17px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.gd-step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gd-primary); color: #fff; font-size: 14px; }
.gd-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.gd-choice { position: relative; margin: 0; cursor: pointer; font-weight: normal; }
.gd-choice input { position: absolute; opacity: 0; }
.gd-choice span { display: flex; flex-direction: column; height: 100%; padding: 12px 14px; border: 2px solid var(--gd-border); border-radius: 8px; transition: border-color .15s, background .15s; }
.gd-choice small { color: var(--gd-muted); }
.gd-choice:hover span { border-color: #93c5fd; }
.gd-choice input:checked + span { border-color: var(--gd-primary); background: #eff6ff; }
.gd-choice input:focus-visible + span { outline: 3px solid #bfdbfe; }
.gd-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 16px; }
.gd-rush { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px; border: 2px dashed #f59e0b; border-radius: 8px; background: #fffbeb; cursor: pointer; font-weight: normal; }
.gd-rush input { margin-top: 4px; }
.gd-rush span { display: flex; flex-direction: column; }
.gd-rush small { color: #78350f; }
.gd-suggestions { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 12px 16px; margin-bottom: 14px; }
.gd-suggestions p { margin: 0 0 6px; }
.gd-suggestions ul { margin: 0; padding-left: 18px; }
.gd-suggestions small { color: var(--gd-muted); }
.gd-actions { text-align: right; }

/* Ticket bekijken */
.gd-ticket-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.gd-ticket-header h2 { margin: 0 0 4px; font-size: 22px; }
.gd-ticket-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.gd-info { background: #eff6ff; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; }
.gd-thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.gd-bubble { border: 1px solid var(--gd-border); border-radius: var(--gd-radius); background: #fff; max-width: 92%; }
.gd-bubble-client { align-self: flex-end; background: #eff6ff; border-color: #bfdbfe; }
.gd-bubble-admin { align-self: flex-start; }
.gd-bubble-system { align-self: center; background: var(--gd-bg-soft); font-style: italic; font-size: 13px; }
.gd-bubble-head { padding: 8px 14px; border-bottom: 1px solid rgba(0, 0, 0, .06); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; }
.gd-bubble-body { padding: 12px 14px; word-wrap: break-word; }
.gd-files { padding: 0 14px 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.gd-files a { background: rgba(0, 0, 0, .05); padding: 4px 10px; border-radius: 6px; font-size: 13px; }
.gd-reply-box { background: #fff; border: 1px solid var(--gd-border); border-radius: var(--gd-radius); padding: 16px; }
.gd-reply-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.gd-close-form { text-align: center; margin-top: 10px; }
.gd-rating { margin-top: 20px; padding: 16px; border: 1px solid var(--gd-border); border-radius: var(--gd-radius); background: var(--gd-bg-soft); }
.gd-stars { color: #f59e0b; font-size: 20px; }
.gd-star-input { display: inline-flex; flex-direction: row-reverse; margin-bottom: 8px; }
.gd-star-input input { display: none; }
.gd-star-input label { font-size: 32px; color: #d1d5db; cursor: pointer; padding: 0 2px; margin: 0; }
.gd-star-input input:checked ~ label, .gd-star-input label:hover, .gd-star-input label:hover ~ label { color: #f59e0b; }
.gd-rating textarea { margin-bottom: 8px; }

/* Abonnement */
.gd-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.gd-summary-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--gd-border); border-top: 4px solid var(--gd-primary); border-radius: var(--gd-radius); background: #fff; }
.gd-summary-card strong { font-size: 20px; }
.gd-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.gd-plan { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--gd-border); border-top: 5px solid #9ca3af; border-radius: var(--gd-radius); background: #fff; }
.gd-plan-current { box-shadow: 0 0 0 2px var(--gd-primary); }
.gd-plan h4 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.gd-plan-features { list-style: none; padding: 0; margin: 8px 0 12px; }
.gd-plan-features li { padding: 3px 0; }
.gd-targets { width: 100%; font-size: 13px; margin-bottom: 14px; border-collapse: collapse; }
.gd-targets th, .gd-targets td { padding: 4px 6px; border-bottom: 1px solid var(--gd-border); text-align: left; }
.gd-targets th { color: var(--gd-muted); font-weight: 500; }
.gd-plan-cta { margin-top: auto; text-align: center; }
.gd-plan-cta-current { padding: 8px; border-radius: 6px; background: #eff6ff; color: var(--gd-primary); font-weight: 600; }

/* FAQ */
.gd-hero { text-align: center; padding: 36px 20px; margin-bottom: 24px; border-radius: 14px; background: linear-gradient(135deg, #eff6ff, #f5f3ff); }
.gd-hero h2 { margin: 0 0 16px; font-size: 26px; font-weight: 700; }
.gd-hero-small { padding: 16px; }
.gd-search { position: relative; max-width: 640px; margin: 0 auto; display: flex; }
.gd-search input[type=search] { flex: 1; font-size: 17px; padding: 14px 18px; border: 1px solid #d1d5db; border-radius: 999px 0 0 999px; outline: none; min-width: 0; }
.gd-search input[type=search]:focus { border-color: var(--gd-primary); box-shadow: 0 0 0 3px #bfdbfe; }
.gd-search button { border: 1px solid var(--gd-primary); background: var(--gd-primary); color: #fff; padding: 0 22px; border-radius: 0 999px 999px 0; font-size: 18px; }
.gd-live { position: absolute; top: 100%; left: 0; right: 0; z-index: 50; margin-top: 6px; background: #fff; border: 1px solid var(--gd-border); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); overflow: hidden; text-align: left; }
.gd-live a { display: flex; flex-direction: column; padding: 10px 16px; color: #111827; text-decoration: none; border-bottom: 1px solid #f3f4f6; }
.gd-live a span { font-size: 12px; color: var(--gd-muted); }
.gd-live a:hover, .gd-live a.active { background: #eff6ff; text-decoration: none; }
.gd-live-empty { padding: 12px 16px; color: var(--gd-muted); }
.gd-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gd-cat { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--gd-border); border-radius: var(--gd-radius); background: #fff; color: #111827; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.gd-cat:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .08); text-decoration: none; color: #111827; }
.gd-cat-icon { font-size: 30px; }
.gd-cat strong { font-size: 16px; }
.gd-cat .gd-muted { font-size: 13px; }
.gd-cat-count { margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--gd-primary); font-weight: 600; }
.gd-article-list { list-style: none; padding: 0; columns: 2 320px; column-gap: 24px; }
.gd-article-list li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--gd-border); }
.gd-faq-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.gd-faq-side { display: flex; flex-direction: column; }
.gd-faq-side a { padding: 8px 12px; border-radius: 6px; color: #374151; text-decoration: none; }
.gd-faq-side a.active, .gd-faq-side a:hover { background: #eff6ff; color: var(--gd-primary); }
.gd-results { display: flex; flex-direction: column; gap: 10px; }
.gd-result { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--gd-border); border-radius: var(--gd-radius); background: #fff; color: #111827; text-decoration: none; }
.gd-result:hover { border-color: var(--gd-primary); text-decoration: none; color: #111827; }
.gd-result .gd-muted { font-size: 13px; }
.gd-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: start; }
.gd-article { background: #fff; border: 1px solid var(--gd-border); border-radius: var(--gd-radius); padding: 24px 28px; }
.gd-article h1 { font-size: 26px; margin: 8px 0 18px; }
.gd-related { position: sticky; top: 20px; padding: 16px; border: 1px solid var(--gd-border); border-radius: var(--gd-radius); background: var(--gd-bg-soft); }
.gd-related h4 { margin-top: 0; font-size: 15px; }
.gd-related ul { padding-left: 18px; margin: 0; }
.gd-related li { padding: 3px 0; }
.gd-vote { display: flex; align-items: center; gap: 8px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--gd-border); }
.gd-vote-no { margin-top: 10px; padding: 10px 14px; background: #fffbeb; border-radius: 8px; }
.gd-cta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; padding: 18px 22px; border-radius: var(--gd-radius); background: var(--gd-bg-soft); border: 1px solid var(--gd-border); }
.gd-cta > div { display: flex; flex-direction: column; }

.faq-body { line-height: 1.7; font-size: 15px; }
.faq-body h2 { font-size: 20px; margin: 24px 0 10px; }
.faq-body h3 { font-size: 17px; margin: 20px 0 8px; }
.faq-body img { max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--gd-border); }
.faq-body ol, .faq-body ul { padding-left: 22px; }
.faq-body li { margin-bottom: 4px; }
.faq-body code { background: #f3f4f6; padding: 1px 6px; border-radius: 4px; font-size: 90%; }
.faq-body pre { background: #111827; color: #f9fafb; padding: 14px; border-radius: 8px; overflow: auto; }
.faq-body table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.faq-body th, .faq-body td { border: 1px solid var(--gd-border); padding: 6px 10px; }
.faq-body .gd-tip, .faq-body .gd-info { background: #eff6ff; border-left: 4px solid var(--gd-primary); padding: 10px 14px; border-radius: 6px; }
.faq-body .gd-warning { background: #fffbeb; border-left: 4px solid #f59e0b; padding: 10px 14px; border-radius: 6px; }

@media (max-width: 768px) {
    .gd-faq-layout, .gd-article-layout { grid-template-columns: 1fr; }
    .gd-faq-side { flex-direction: row; flex-wrap: wrap; }
    .gd-ticket { flex-direction: column; align-items: flex-start; }
    .gd-bubble { max-width: 100%; }
    .gd-article { padding: 18px; }
    .gd-related { position: static; }
}
