/* ============================================
   PerceelInfo Design System - Sky Theme
   Based on Shadcn UI with neutral base
   ============================================ */

/* CSS Variables - Shadcn UI Sky Theme */
:root {
    /* Primary (Sky) */
    --primary: 199 89% 48%;
    --primary-foreground: 0 0% 98%;

    /* Secondary */
    --secondary: 0 0% 96.1%;
    --secondary-foreground: 0 0% 9%;

    /* Background & Foreground */
    --background: 0 0% 100%;
    --foreground: 0 0% 3.9%;

    /* Muted */
    --muted: 0 0% 96.1%;
    --muted-foreground: 0 0% 45.1%;

    /* Accent */
    --accent: 0 0% 96.1%;
    --accent-foreground: 0 0% 9%;

    /* Card/Surface */
    --card: 0 0% 100%;
    --card-foreground: 0 0% 3.9%;

    /* Popover */
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 3.9%;

    /* Border & Input */
    --border: 0 0% 89.8%;
    --input: 0 0% 89.8%;
    --ring: 199 89% 48%;

    /* Destructive */
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;

    /* Radius */
    --radius: 0.5rem;
}

/* Base Reset & Typography */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

html:has(body.page-map) {
    scrollbar-gutter: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    visibility: visible;
}

/* Main Content Area */
main {
    flex: 1;
}

/* ============================================
   Header & Navigation
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid hsl(var(--border));
    background-color: hsl(var(--background) / 0.95);
    backdrop-filter: blur(8px);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Account Link */
.account-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    border-radius: var(--radius);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.account-link:hover {
    color: hsl(var(--foreground));
    background-color: hsl(var(--accent));
}

.account-link svg {
    flex-shrink: 0;
}

/* Header responsive: hide non-essential items at narrower widths */
@media (max-width: 1100px) {
    .search-trigger-hint {
        display: none;
    }
}

@media (max-width: 900px) {
    .account-link span {
        display: none;
    }

    .account-link {
        padding: 0.375rem;
    }
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-logo:hover {
    color: hsl(var(--primary));
}

.site-logo svg {
    width: 1.75rem;
    height: 1.75rem;
    color: hsl(var(--primary));
}

/* Desktop Navigation */
.nav-desktop {
    display: none;
    align-items: center;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
    color: hsl(var(--foreground));
}

.nav-link.active {
    color: hsl(var(--foreground));
    border-bottom-color: hsl(var(--primary));
}

/* Cart Button */
.cart-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.cart-button:hover {
    color: hsl(var(--foreground));
    background-color: hsl(var(--accent));
}

.cart-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    color: hsl(var(--primary-foreground));
    background-color: hsl(var(--primary));
    border-radius: 9999px;
    transform: translate(25%, -25%);
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.mobile-menu-button:hover {
    color: hsl(var(--foreground));
    background-color: hsl(var(--accent));
}

.mobile-menu-button svg {
    width: 1.5rem;
    height: 1.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
}

/* Mobile Actions (Cart visible on mobile) */
.mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-actions {
        display: none;
    }
}

/* Mobile Navigation Drawer */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1101;
    width: 20rem;
    background-color: hsl(var(--background));
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-nav-overlay.open .mobile-nav-drawer {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid hsl(var(--border));
}

.mobile-nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    color: hsl(var(--muted-foreground));
    cursor: pointer;
}

.mobile-nav-close:hover {
    color: hsl(var(--foreground));
    background-color: hsl(var(--accent));
}

.mobile-nav-links {
    padding: 1rem;
    list-style: none;
    margin: 0;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    text-decoration: none;
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: hsl(var(--accent));
}

.mobile-nav-divider {
    height: 1px;
    background-color: hsl(var(--border));
    margin: 0.5rem 1rem;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    border-top: 1px solid hsl(var(--border));
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem 0;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
}

.footer-separator {
    margin: 0 0.5rem;
}

.footer-separator::after {
    content: '\00B7';
}

.footer-links {
    display: flex;
    gap: 0;
}

.footer-links a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a::before {
    content: '\00B7';
    margin: 0 0.5rem;
}

.footer-links a:hover {
    color: hsl(var(--foreground));
}

/* ============================================
   Container & Layout Utilities
   ============================================ */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-narrow {
    max-width: 48rem;
}

.page-content {
    padding: 2rem 0;
}

/* ============================================
   Button Styles (Shadcn-inspired)
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    height: 2.5rem;
    padding: 0 1rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    background-color: hsl(199 89% 42%);
}

.btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
    background-color: hsl(0 0% 90%);
}

.btn-outline {
    border-color: hsl(var(--border));
    background-color: transparent;
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background-color: hsl(var(--accent));
}

.btn-ghost {
    background-color: transparent;
    color: hsl(var(--foreground));
}

.btn-ghost:hover {
    background-color: hsl(var(--accent));
}

.btn-sm {
    height: 2rem;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    height: 3rem;
    padding: 0 2rem;
    font-size: 1rem;
}

.btn-icon {
    width: 2.5rem;
    padding: 0;
}

.btn-icon.btn-sm {
    width: 2rem;
}

.btn-icon.btn-lg {
    width: 3rem;
}

/* ============================================
   Card Styles
   ============================================ */

.card {
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.card-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin: 0.5rem 0 0;
}

.card-content {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.5rem;
    border-top: 1px solid hsl(var(--border));
}

/* ============================================
   Form Styles
   ============================================ */

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.form-input {
    display: block;
    width: 100%;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    background-color: transparent;
    border: 1px solid hsl(var(--input));
    border-radius: var(--radius);
    color: hsl(var(--foreground));
    transition: border-color 0.2s ease;
}

.form-input::placeholder {
    color: hsl(var(--muted-foreground));
}

.form-input:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.form-input:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

textarea.form-input {
    height: auto;
    min-height: 5rem;
    padding: 0.5rem 0.75rem;
    resize: vertical;
}

/* ============================================
   Alert/Badge Styles
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
}

.badge-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.badge-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.badge-outline {
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}

/* ============================================
   Utility Classes
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 10000;
    padding: 0.75rem 1.5rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
    top: 0;
}

.text-muted {
    color: hsl(var(--muted-foreground));
}

.text-primary {
    color: hsl(var(--primary));
}

.text-center {
    text-align: center;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Spacing utilities */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

/* ============================================
   Focus styles for accessibility
   ============================================ */

:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

/* Remove default focus outline when using mouse */
:focus:not(:focus-visible) {
    outline: none;
}

/* ============================================
   Products Page
   ============================================ */

.products-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.products-page h1 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.plot-info-banner {
    background: hsl(var(--accent));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.plot-info-banner h2 {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    margin: 0 0 0.25rem 0;
}

.plot-info-banner p {
    margin: 0;
}

.plot-info-banner-bottom {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 0.5rem;
}

.plot-info-banner .plot-coordinates {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
}

.plot-info-banner .pricing-starting-at {
    font-size: 0.8125rem;
    font-weight: 500;
    color: hsl(var(--primary));
    white-space: nowrap;
}

.no-plot-warning {
    background: hsl(48 96% 89%);
    border: 1px solid hsl(45 93% 47%);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.no-plot-warning p {
    margin: 0 0 1rem 0;
    color: hsl(32 95% 20%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-card .card-content {
    flex: 1;
    padding: 1.5rem;
}

.product-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

.product-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.product-formats {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.format-badge {
    display: inline-block;
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--primary));
}

.product-card .card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid hsl(var(--border));
}

.add-to-cart-btn {
    width: 100%;
}

.add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   Cart Notifications
   ============================================ */

.cart-notification {
    position: fixed;
    top: 5rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.cart-notification-success {
    border-left: 4px solid hsl(142 76% 36%);
}

.cart-notification-error {
    border-left: 4px solid hsl(var(--destructive));
}

/* ============================================
   Cart Page
   ============================================ */

.cart-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.cart-page h1 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.cart-empty .empty-icon {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

.cart-empty h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-empty p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

@media (max-width: 768px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
}

@media (max-width: 640px) {
    .cart-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .cart-item-price {
        order: -1;
    }

    .cart-item .remove-item-btn {
        justify-self: start;
    }
}

.cart-item-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.cart-item .plot-reference {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin: 0 0 0.25rem 0;
}

.cart-item .item-format {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

.cart-item-price {
    font-size: 1.125rem;
    font-weight: 600;
}

.cart-summary {
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 5rem;
}

.cart-summary h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--border));
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 600;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border));
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.checkout-form .form-group {
    margin-bottom: 1rem;
}

.checkout-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.checkout-form .form-help {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.checkout-form .btn-lg {
    width: 100%;
    margin-top: 0.5rem;
}

/* ============================================
   Customer Auth Section
   ============================================ */

.customer-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--border));
}

/* Customer Auth Cards */
.customer-auth-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid;
    font-size: 0.875rem;
}

.customer-auth-card--active {
    background-color: hsl(142 76% 36% / 0.08);
    border-color: hsl(142 76% 36% / 0.2);
}

.customer-auth-card--active .customer-auth-icon {
    color: hsl(142 76% 36%);
}

.customer-auth-card--prompt {
    background-color: hsl(var(--primary) / 0.06);
    border-color: hsl(var(--primary) / 0.15);
}

.customer-auth-card--prompt .customer-auth-icon {
    color: hsl(var(--primary));
}

.customer-auth-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.customer-auth-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
}

.customer-auth-content span {
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
}

.customer-auth-content strong {
    color: hsl(var(--foreground));
    font-weight: 600;
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-auth-action {
    background: none;
    border: none;
    padding: 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.customer-auth-action:hover {
    color: hsl(var(--foreground));
}

/* Legacy classes kept for JS compatibility */
.customer-logged-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.customer-logged-in .customer-email {
    font-size: 0.875rem;
    color: hsl(var(--foreground));
}

.customer-logged-in .customer-email strong {
    font-weight: 600;
}

.customer-login-prompt {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.customer-login-prompt .btn-login-link {
    background: none;
    border: none;
    padding: 0;
    color: hsl(var(--primary));
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.customer-login-prompt .btn-login-link:hover {
    color: hsl(199 89% 42%);
}

/* ============================================
   Login Modal
   ============================================ */

.login-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    padding: 1rem;
}

.login-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.login-modal {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    width: 100%;
    max-width: 28rem;
    transform: translateY(-10px);
    transition: transform 0.2s ease;
}

.login-modal-overlay.open .login-modal {
    transform: translateY(0);
}

.login-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.login-modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.login-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.login-modal-close:hover {
    color: hsl(var(--foreground));
    background-color: hsl(var(--accent));
}

.login-modal-body {
    padding: 1.5rem;
}

.login-modal-body .form-group {
    margin-bottom: 1rem;
}

.login-modal-body .form-group:last-of-type {
    margin-bottom: 0;
}

.login-error {
    display: none;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background-color: hsl(0 84.2% 60.2% / 0.1);
    border: 1px solid hsl(var(--destructive) / 0.3);
    border-radius: var(--radius);
    color: hsl(var(--destructive));
    font-size: 0.875rem;
}

.login-error.visible {
    display: block;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: hsl(var(--primary));
    cursor: pointer;
}

.login-modal-footer {
    padding: 0 1.5rem 1.5rem;
}

.login-modal-footer .btn {
    width: 100%;
}

.login-links {
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem 1.25rem;
    font-size: 0.8125rem;
}

.login-links a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-links a:hover {
    color: hsl(var(--primary));
}

/* ============================================
   Cart Item Discounts
   ============================================ */

.cart-item-discount {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-original {
    text-decoration: line-through;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 400;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    background-color: hsl(142 76% 36% / 0.1);
    color: hsl(142 76% 36%);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ============================================
   Email Display (Authenticated)
   ============================================ */

.email-display {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    padding: 0.5rem 0;
}

.email-display strong {
    color: hsl(var(--foreground));
    font-weight: 500;
}

/* ============================================
   Pricing Tiers
   ============================================ */

.pricing-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pricing-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.pricing-header p {
    color: hsl(var(--muted-foreground));
    font-size: 1.0625rem;
    margin: 0;
}

.pricing-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.pricing-tier-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: visible;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-tier-card:hover {
    box-shadow: 0 8px 25px rgb(0 0 0 / 0.1), 0 2px 8px rgb(0 0 0 / 0.06);
    transform: translateY(-4px);
}

.pricing-tier-featured {
    border: 2px solid hsl(var(--primary));
    transform: scale(1.02);
    box-shadow: 0 4px 16px hsl(var(--primary) / 0.12);
}

.pricing-tier-featured:hover {
    box-shadow: 0 8px 30px hsl(var(--primary) / 0.2), 0 2px 8px hsl(var(--primary) / 0.08);
    transform: scale(1.02) translateY(-4px);
}

.pricing-tier-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-tier-header {
    text-align: center;
    padding: 2rem 1.5rem 1rem;
}

.pricing-tier-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.pricing-tier-audience {
    color: hsl(var(--muted-foreground));
    font-size: 0.8125rem;
    margin: 0 0 1rem 0;
}

.price-amount {
    font-size: 2.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    line-height: 1;
}

.price-excl {
    display: block;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
}

.price-per-unit {
    display: block;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.125rem;
    font-weight: 500;
}

.pricing-starting-at {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.375rem 1rem;
    background: hsl(var(--primary) / 0.08);
    color: hsl(var(--primary));
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-tier-value-note {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--primary));
    padding: 0 1.5rem;
    margin-top: 0.5rem;
}

.pricing-tier-features {
    flex: 1;
    padding: 0 1.5rem;
    margin: 0;
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
}

.feature-check {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    color: hsl(142 76% 36%);
    margin-top: 0.1rem;
}

.pricing-tier-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid hsl(var(--border));
    margin-top: 1rem;
}

.format-included-note {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin: 0 0 1rem 0;
}

.pricing-tier-footer .btn {
    width: 100%;
}

.pricing-tier-footer .btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.pricing-tier-footer .btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

@media (max-width: 1024px) {
    .pricing-tiers {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .pricing-tier-featured {
        order: -1;
        transform: none;
    }
}

/* ============================================
   Product Comparison Table
   ============================================ */

.comparison-section {
    margin-top: 4rem;
    text-align: center;
}

.comparison-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.comparison-subtitle {
    color: hsl(var(--muted-foreground));
    font-size: 0.9375rem;
    margin: 0 0 1.5rem 0;
}

.comparison-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.comparison-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.comparison-toggle-track {
    position: relative;
    width: 2.5rem;
    height: 1.375rem;
    background: hsl(var(--muted));
    border-radius: 2rem;
    transition: background-color 0.2s ease;
    border: 1px solid hsl(var(--border));
}

.comparison-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1rem;
    height: 1rem;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
}

#comparison-diff-toggle:checked ~ .comparison-toggle-track {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
}

#comparison-diff-toggle:checked ~ .comparison-toggle-track .comparison-toggle-thumb {
    transform: translateX(1.125rem);
}

#comparison-diff-toggle:focus-visible ~ .comparison-toggle-track {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.comparison-toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.show-diff-only .comparison-row-same {
    display: none;
}

.comparison-group-hidden {
    display: none;
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid hsl(var(--border));
}

.comparison-table thead th {
    background: hsl(var(--muted));
    font-weight: 600;
    vertical-align: bottom;
    padding: 1.25rem 1rem;
}

.comparison-feature-col {
    text-align: left;
    width: 30%;
    min-width: 180px;
}

.comparison-product-col {
    width: 23.3%;
    min-width: 140px;
}

.comparison-product-name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.comparison-col-featured {
    background: hsl(var(--primary) / 0.04);
}

.comparison-cell-featured {
    background: hsl(var(--primary) / 0.04);
}

.comparison-group-header td {
    background: hsl(var(--muted));
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--muted-foreground));
    text-align: left;
    padding: 0.5rem 1rem;
}

.comparison-group-desc {
    display: block;
    font-weight: 400;
    font-size: 0.75rem;
    text-transform: none;
    letter-spacing: normal;
    color: hsl(var(--muted-foreground) / 0.7);
    margin-top: 0.125rem;
}

.comparison-feature-label {
    text-align: left;
    font-weight: normal;
    color: hsl(var(--foreground));
}

.comparison-group-header-cell {
    font-weight: 600;
    text-align: left;
}

.comparison-feature-desc {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: hsl(var(--muted-foreground));
    margin-top: 0.125rem;
}

.format-icon {
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: middle;
    margin-right: 0.25rem;
    color: hsl(var(--muted-foreground));
    flex-shrink: 0;
}

.comparison-example-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: hsl(var(--primary));
    text-decoration: none;
    margin-top: 0.25rem;
}

.comparison-example-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.comparison-example-link svg {
    width: 0.85rem;
    height: 0.85rem;
}

.comparison-check {
    color: hsl(142 76% 36%);
}

.comparison-check svg {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    vertical-align: middle;
}

.comparison-cross {
    color: hsl(var(--muted-foreground) / 0.4);
}

.comparison-cross svg {
    width: 1.125rem;
    height: 1.125rem;
    display: inline-block;
    vertical-align: middle;
}

.comparison-text {
    font-size: 0.8125rem;
    color: hsl(var(--foreground));
}

.comparison-detail {
    display: block;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.125rem;
}

.comparison-check-inline {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    vertical-align: middle;
    color: hsl(142 76% 36%);
}

.comparison-check-inline-wrap {
    color: hsl(142 76% 36%);
}

.comparison-check-inline-wrap svg {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .comparison-section {
        margin-top: 2.5rem;
    }

    .comparison-title {
        font-size: 1.375rem;
    }

    .comparison-table {
        font-size: 0.8125rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.625rem;
    }

    .comparison-feature-col {
        min-width: 140px;
    }

    .comparison-product-col {
        min-width: 100px;
    }
}

.comparison-table tbody tr:not(.comparison-group-header) {
    transition: background-color 0.15s ease;
}

.comparison-table tbody tr:not(.comparison-group-header):hover {
    background: hsl(var(--muted) / 0.5);
}

.comparison-table tbody tr:not(.comparison-group-header):hover .comparison-cell-featured {
    background: hsl(var(--primary) / 0.07);
}

@media (max-width: 480px) {
    .comparison-product-name {
        font-size: 0.8125rem;
    }

    .comparison-product-price {
        font-size: 0.9375rem;
    }
}

/* ============================================
   Format Selector
   ============================================ */

.format-selector {
    margin: 1rem 0;
}

.format-selector-label {
    display: block;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.format-options {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.format-option {
    cursor: pointer;
}

.format-option .format-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.format-pill {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.15s ease;
    color: hsl(var(--muted-foreground));
}

.format-option:hover .format-pill {
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
}

.format-option.selected .format-pill,
.format-option input:checked + .format-pill {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

/* ============================================
   Format Badge (used in cart and product cards)
   ============================================ */

.format-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    color: hsl(var(--muted-foreground));
}

.format-single {
    margin: 1rem 0;
}

/* ============================================
   PRO Badge
   ============================================ */

.pro-badge {
    display: inline-block;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* ============================================
   Enhanced Product Cards
   ============================================ */

.product-header {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

.product-header h3 {
    margin: 0;
}

.product-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* ============================================
   Cart Item Format Display
   ============================================ */

.item-format-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.format-description {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* ============================================
   Error Pages
   ============================================ */

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
}

.error-card {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 480px;
    width: 100%;
}

.error-icon {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

.error-card h1 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.error-message {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
    line-height: 1.6;
}

.error-suggestion {
    color: hsl(var(--muted-foreground));
    font-size: 0.9375rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-request-id {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

.error-request-id code {
    background: hsl(var(--muted));
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

/* ============================================
   FAQ Accordion
   ============================================ */

.faq-item {
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.faq-question {
    padding: 1rem 1.25rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid hsl(var(--muted-foreground));
    border-bottom: 2px solid hsl(var(--muted-foreground));
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] .faq-question::after {
    transform: rotate(-135deg);
}

.faq-question:hover {
    background: hsl(var(--accent));
}

.faq-answer {
    padding: 0 1.25rem 1rem;
    color: hsl(var(--muted-foreground));
}

.faq-answer p {
    margin: 0;
    line-height: 1.7;
}

/* ============================================
   Loading States & Spinners
   ============================================ */

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.js-animations .pricing-tier-card {
    opacity: 0;
}

.pricing-tier-card.card-visible {
    animation: card-enter 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.pricing-tier-card:nth-child(1).card-visible { animation-delay: 0s; }
.pricing-tier-card:nth-child(2).card-visible { animation-delay: 0.1s; }
.pricing-tier-card:nth-child(3).card-visible { animation-delay: 0.2s; }

.pricing-tier-featured.card-visible {
    animation: card-enter-featured 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes card-enter-featured {
    from {
        opacity: 0;
        transform: scale(1.02) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1.02) translateY(0);
    }
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid hsl(var(--border));
    border-top-color: hsl(var(--primary));
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

.spinner-sm {
    width: 0.75rem;
    height: 0.75rem;
    border-width: 1.5px;
}

.btn.loading {
    pointer-events: none;
    opacity: 0.7;
    cursor: not-allowed;
}

.btn.loading .btn-text {
    margin-left: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
    .spinner {
        animation: none;
        opacity: 0.7;
    }

    .pricing-tier-card {
        transition: none;
    }

    .pricing-tier-card.card-visible {
        animation: none;
        opacity: 1;
    }

    .pricing-tier-card:hover {
        transform: none;
    }

    .pricing-tier-featured {
        transform: scale(1.02);
    }

    .pricing-tier-featured:hover {
        transform: scale(1.02);
    }

    .pricing-tier-footer .btn {
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .pricing-tier-footer .btn:hover:not(:disabled),
    .pricing-tier-footer .btn:active:not(:disabled) {
        transform: none;
    }

    .comparison-table tbody tr:not(.comparison-group-header) {
        transition: none;
    }

    .comparison-toggle-track,
    .comparison-toggle-thumb {
        transition: none;
    }
}

/* ============================================
   Mobile Responsive Polish
   ============================================ */

@media (max-width: 480px) {
    .login-modal {
        width: 95%;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .pricing-tier-card {
        padding: 1.25rem;
    }

    .pricing-tier-header h3 {
        font-size: 1.125rem;
    }

    .price-amount {
        font-size: 1.75rem;
    }

    .pricing-tier-features {
        font-size: 0.875rem;
    }

    .format-options {
        gap: 0.25rem;
    }

    .format-pill {
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
    }

}

@media (max-width: 768px) {
    .products-page {
        padding: 1rem;
    }

    .pricing-header {
        text-align: left;
        margin-bottom: 1.5rem;
    }

    .pricing-header h1 {
        font-size: 1.5rem;
    }

    .pricing-header p {
        font-size: 0.875rem;
    }

    .plot-info-banner,
    .no-plot-warning {
        padding: 1rem;
        text-align: left;
    }
}

/* ============================================
   Legal & Info Pages
   ============================================ */

.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.legal-content {
    padding: 2.5rem;
}

.legal-content h1 {
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-info-section,
.contact-form-section {
    padding: 1.5rem;
}

.contact-logo {
    margin-bottom: 1.25rem;
}

.contact-logo img {
    max-width: 200px;
    height: auto;
}

.contact-intro p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.contact-item svg {
    color: hsl(var(--primary));
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.contact-item a {
    color: hsl(var(--primary));
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form-section h2 {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.contact-submit-btn {
    width: 100%;
    margin-top: 0.5rem;
}

.contact-success {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    border: 1px solid hsl(var(--primary) / 0.3);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.contact-error {
    background: hsl(var(--destructive, 0 84% 60%) / 0.1);
    color: hsl(var(--destructive, 0 84% 60%));
    border: 1px solid hsl(var(--destructive, 0 84% 60%) / 0.3);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.contact-help-section {
    padding: 1.5rem;
}

.contact-help-section a {
    color: hsl(var(--primary));
    text-decoration: none;
}

.contact-help-section a:hover {
    text-decoration: underline;
}

.field-validation-error {
    color: hsl(var(--destructive, 0 84% 60%));
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .legal-content {
        padding: 1.5rem;
    }
}

/* ============================================
   Handleiding Pages
   ============================================ */

.handleiding-page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.handleiding-sidebar {
    position: sticky;
    top: 5rem;
    align-self: start;
}

.handleiding-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.handleiding-nav li {
    margin-bottom: 0.25rem;
}

.handleiding-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.handleiding-nav a:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.handleiding-nav li.active a {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-weight: 500;
}

.handleiding-content {
    min-width: 0;
}

.handleiding-content h1 {
    margin-bottom: 1.5rem;
}

.handleiding-content h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.handleiding-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.handleiding-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.handleiding-content ul,
.handleiding-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.handleiding-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.handleiding-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.handleiding-content th,
.handleiding-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid hsl(var(--border));
}

.handleiding-content th {
    font-weight: 600;
    background: hsl(var(--muted));
}

.handleiding-toc {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.handleiding-toc-card {
    display: block;
    padding: 1.25rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    text-decoration: none;
    color: hsl(var(--foreground));
    transition: all 0.15s ease;
}

.handleiding-toc-card:hover {
    border-color: hsl(var(--primary));
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.08);
}

.handleiding-toc-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: hsl(var(--primary));
}

.handleiding-toc-card p {
    margin: 0;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.handleiding-kennisbank-link {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid hsl(var(--border));
}

.handleiding-kennisbank-link a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    color: hsl(var(--primary));
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.handleiding-kennisbank-link a:hover {
    background: hsl(var(--accent));
}

.handleiding-cta {
    margin-top: 2rem;
    text-align: center;
}

.handleiding-nav-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border));
}

@media (max-width: 768px) {
    .handleiding-page {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .handleiding-sidebar {
        position: static;
        min-width: 0;
        max-width: 100%;
    }

    .handleiding-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0;
    }

    .handleiding-nav li {
        margin-bottom: 0;
    }

    .handleiding-nav a {
        display: inline-block;
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
        border: 1px solid hsl(var(--border));
        border-radius: 999px;
        white-space: nowrap;
    }

    .handleiding-nav li.active a {
        border-color: hsl(var(--primary));
    }

    .handleiding-kennisbank-link {
        display: none;
    }

    .handleiding-content {
        overflow-x: hidden;
        word-wrap: break-word;
        min-width: 0;
        max-width: 100%;
    }

    .handleiding-toc {
        grid-template-columns: 1fr;
    }

    .handleiding-content h1 {
        font-size: 1.5rem;
    }

    .handleiding-content h2 {
        font-size: 1.25rem;
    }
}

/* ============================================
   Pre-generation Status Indicators
   ============================================ */
.render-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    min-height: 1.25rem;
}

.render-status-icon {
    display: flex;
    align-items: center;
}

.render-status-completed .render-status-icon {
    color: hsl(var(--primary));
}

.render-status-completed .render-status-text {
    color: hsl(var(--primary));
}

.render-status-failed .render-status-icon {
    color: hsl(var(--destructive));
}

.render-status-failed .render-status-text {
    color: hsl(var(--destructive));
}

.render-status .btn-retry {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    margin-left: 0.5rem;
    cursor: pointer;
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    background: transparent;
    color: hsl(var(--foreground));
}

.render-status .btn-retry:hover {
    background: hsl(var(--accent));
}

#checkout-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#checkout-btn:disabled #checkout-spinner {
    display: inline-block;
}

#checkout-btn:not(:disabled) #checkout-spinner {
    display: none;
}

/* ============================================
   Trust Badges
   ============================================ */

.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
}

.trust-badges-center {
    margin-bottom: 2rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: hsl(152 56% 96%);
    border: 1px solid hsl(152 44% 72%);
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: hsl(152 44% 28%);
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

a.trust-badge:hover {
    background: hsl(152 56% 92%);
    border-color: hsl(152 44% 58%);
}

.trust-badge svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    color: hsl(152 50% 38%);
}

@media (max-width: 480px) {
    .trust-badges {
        gap: 0.5rem;
    }

    .trust-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

/* ============================================
   Preview Lightbox
   ============================================ */

.preview-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 190;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    padding: 1rem;
}

.preview-lightbox-overlay.open {
    opacity: 1;
    visibility: visible;
}

.preview-lightbox {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    width: 100%;
    max-width: 56rem;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(-10px);
    transition: transform 0.2s ease;
}

.preview-lightbox-overlay.open .preview-lightbox {
    transform: translateY(0);
}

.preview-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
    flex-shrink: 0;
}

.preview-lightbox-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: hsl(var(--foreground));
}

.preview-lightbox-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.preview-lightbox-actions .btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: hsl(var(--primary));
    background: transparent;
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.preview-lightbox-actions .btn-download:hover {
    background: hsl(var(--accent));
    border-color: hsl(var(--primary) / 0.3);
}

.preview-lightbox-actions .btn-download svg {
    width: 0.875rem;
    height: 0.875rem;
}

.preview-lightbox-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    border-radius: calc(var(--radius) - 2px);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.preview-lightbox-close:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--foreground));
}

.preview-lightbox-body {
    flex: 1;
    min-height: 0;
    padding: 0;
}

.preview-lightbox-iframe {
    width: 100%;
    height: 75vh;
    max-height: calc(90vh - 4rem);
    border: none;
    border-radius: 0 0 var(--radius) var(--radius);
    display: block;
}

.preview-lightbox-mobile-fallback {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
}

.preview-lightbox-mobile-fallback p {
    margin-bottom: 1.5rem;
    color: hsl(var(--muted-foreground));
}

/* Preview button styled as link (replaces <a> for reports) */
.comparison-preview-btn {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

@media (max-width: 768px) {
    .preview-lightbox {
        max-width: 100%;
        margin: 0.5rem;
    }

    .preview-lightbox-iframe {
        display: none;
    }

    .preview-lightbox-mobile-fallback {
        display: block;
    }
}

/* ============================================
   Testimonials
   ============================================ */

.testimonials-section {
    margin-top: 4rem;
    text-align: center;
}

.testimonials-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: hsl(var(--foreground));
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.testimonial-card {
    padding: 1.5rem;
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    color: hsl(45 93% 47%);
}

.testimonial-stars svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
    stroke: none;
}

.testimonial-quote {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: hsl(var(--foreground));
    margin: 0 0 1rem 0;
    font-style: italic;
}

.testimonial-author-name {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
}

.testimonial-author-role {
    display: block;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
}

@media (prefers-reduced-motion: reduce) {
    .preview-lightbox-overlay,
    .preview-lightbox {
        transition: none;
    }
}

/* ============================================
   Kennisbank (Knowledge Base)
   ============================================ */

/* Hero section */
.kennisbank-hero {
    padding: 3rem 0 1rem;
    text-align: center;
}

.kennisbank-hero h1 {
    margin-bottom: 0.75rem;
}

.kennisbank-hero p {
    max-width: 600px;
    margin: 0 auto;
}

/* Inline search bar */
.kennisbank-search {
    max-width: 520px;
    margin: 1.5rem auto 0;
    position: relative;
}

.kennisbank-search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kennisbank-search-bar:focus-within {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.kennisbank-search-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--muted-foreground));
    flex-shrink: 0;
}

.kennisbank-search-bar:focus-within .kennisbank-search-icon {
    color: hsl(var(--primary));
}

.kennisbank-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: none;
    font-size: 1rem;
    color: hsl(var(--foreground));
    font-family: inherit;
}

.kennisbank-search-input::placeholder {
    color: hsl(var(--muted-foreground));
}

/* Dropdown results */
.kennisbank-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgb(0 0 0 / 0.12);
    max-height: 400px;
    overflow-y: auto;
    z-index: 50;
    padding: 0.375rem;
}

.kennisbank-search-results.open {
    display: block;
}

.kennisbank-search-result {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: calc(var(--radius) - 2px);
    text-decoration: none;
    color: hsl(var(--foreground));
    transition: background 0.1s ease;
}

.kennisbank-search-result:hover,
.kennisbank-search-result.selected {
    background: hsl(var(--primary) / 0.06);
}

.kennisbank-search-result-icon {
    width: 1.125rem;
    height: 1.125rem;
    color: hsl(var(--muted-foreground));
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.kennisbank-search-result:hover .kennisbank-search-result-icon {
    color: hsl(var(--primary));
}

.kennisbank-search-result-text {
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
    min-width: 0;
}

.kennisbank-search-result-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.kennisbank-search-result-meta {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kennisbank-search-empty {
    padding: 1.5rem 1rem;
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

/* Category cards grid */
.kennisbank-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.kennisbank-category-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    text-decoration: none;
    color: hsl(var(--foreground));
    transition: all 0.15s ease;
}

.kennisbank-category-card:hover {
    border-color: hsl(var(--primary));
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.08);
    transform: translateY(-2px);
}

.kennisbank-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

.kennisbank-category-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
}

.kennisbank-category-card p {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    flex: 1;
}

.kennisbank-article-count {
    font-size: 0.8125rem;
    color: hsl(var(--primary));
    font-weight: 500;
}

.kennisbank-handleiding-link {
    padding: 2rem 0;
    border-top: 1px solid hsl(var(--border));
}

.kennisbank-handleiding-link h2 {
    margin-bottom: 0.5rem;
}

.kennisbank-handleiding-link p {
    color: hsl(var(--muted-foreground));
}

/* Category article list */
.kennisbank-article-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.kennisbank-article-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    text-decoration: none;
    color: hsl(var(--foreground));
    transition: all 0.15s ease;
}

.kennisbank-article-list-item:hover {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.03);
}

.kennisbank-article-list-text {
    flex: 1;
    min-width: 0;
}

.kennisbank-article-list-text h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.kennisbank-article-list-text p {
    margin: 0;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.4;
}

.kennisbank-article-list-arrow {
    flex-shrink: 0;
    color: hsl(var(--muted-foreground));
    transition: color 0.15s ease, transform 0.15s ease;
}

.kennisbank-article-list-item:hover .kennisbank-article-list-arrow {
    color: hsl(var(--primary));
    transform: translateX(2px);
}

/* Article page layout */
.kennisbank-page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Sidebar */
.kennisbank-sidebar {
    position: sticky;
    top: 5rem;
    align-self: start;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
}

.kennisbank-nav-header {
    margin-bottom: 1rem;
}

.kennisbank-nav-header a {
    font-weight: 600;
    font-size: 0.9375rem;
    color: hsl(var(--foreground));
    text-decoration: none;
}

.kennisbank-nav-header a:hover {
    color: hsl(var(--primary));
}

.kennisbank-nav-category {
    margin-bottom: 0.75rem;
}

.kennisbank-nav-category-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--muted-foreground));
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.25rem;
    text-decoration: none;
    border-radius: var(--radius);
    transition: color 0.15s ease;
}

.kennisbank-nav-category-title:hover {
    color: hsl(var(--primary));
}

.kennisbank-nav-category.active > .kennisbank-nav-category-title {
    color: hsl(var(--primary));
    font-weight: 700;
}

.kennisbank-nav-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kennisbank-nav-category li {
    margin-bottom: 0.125rem;
}

.kennisbank-nav-category li a {
    display: block;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.kennisbank-nav-category li a:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.kennisbank-nav-category li.active a {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-weight: 500;
}

/* Article content area */
.kennisbank-content {
    min-width: 0;
}

/* Breadcrumb */
.kennisbank-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    font-size: 0.875rem;
    gap: 0.25rem;
}

.kennisbank-breadcrumb li {
    display: flex;
    align-items: center;
    color: hsl(var(--muted-foreground));
}

.kennisbank-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 0.25rem;
    color: hsl(var(--border));
}

.kennisbank-breadcrumb a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
}

.kennisbank-breadcrumb a:hover {
    color: hsl(var(--primary));
}

.kennisbank-breadcrumb li[aria-current="page"] {
    color: hsl(var(--foreground));
    font-weight: 500;
}

/* Article metadata */
.kennisbank-meta {
    margin-bottom: 1.5rem;
}

.kennisbank-meta-date {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
}

/* Markdown rendered content */
.kennisbank-article-body h1 {
    margin-bottom: 1.5rem;
    font-size: 1.875rem;
    line-height: 1.2;
}

.kennisbank-article-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.375rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.kennisbank-article-body h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.kennisbank-article-body p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: hsl(var(--foreground));
}

.kennisbank-article-body ul,
.kennisbank-article-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.kennisbank-article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.kennisbank-article-body strong {
    font-weight: 600;
}

.kennisbank-article-body a {
    color: hsl(var(--primary));
    text-decoration: underline;
    text-underline-offset: 2px;
}

.kennisbank-article-body a:hover {
    color: hsl(var(--primary) / 0.8);
}

.kennisbank-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.kennisbank-article-body th,
.kennisbank-article-body td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid hsl(var(--border));
}

.kennisbank-article-body th {
    font-weight: 600;
    background: hsl(var(--muted));
}

.kennisbank-article-body blockquote {
    border-left: 3px solid hsl(var(--primary));
    margin: 1.5rem 0;
    padding: 0.75rem 1rem;
    background: hsl(var(--muted));
    border-radius: 0 var(--radius) var(--radius) 0;
}

.kennisbank-article-body blockquote p {
    margin-bottom: 0;
}

.kennisbank-article-body code {
    font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.875em;
    background: hsl(var(--muted));
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

.kennisbank-article-body pre {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: hsl(var(--muted));
    border-radius: var(--radius);
    overflow-x: auto;
}

.kennisbank-article-body pre code {
    background: none;
    padding: 0;
}

/* Previous / Next navigation */
.kennisbank-article-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border));
}

.kennisbank-nav-prev,
.kennisbank-nav-next {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.15s ease;
    max-width: 50%;
}

.kennisbank-nav-prev:hover,
.kennisbank-nav-next:hover {
    border-color: hsl(var(--primary));
}

.kennisbank-nav-next {
    margin-left: auto;
    text-align: right;
}

.kennisbank-nav-label {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.25rem;
}

.kennisbank-nav-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: hsl(var(--primary));
}

/* Woordenlijst / Glossary */
.kennisbank-glossary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--border));
}

.kennisbank-glossary-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: all 0.15s ease;
}

.kennisbank-glossary-nav a:hover,
.kennisbank-glossary-nav a.active {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.kennisbank-glossary-section {
    margin-bottom: 2rem;
}

.kennisbank-glossary-letter {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
    padding-bottom: 0.5rem;
    border-bottom: 2px solid hsl(var(--primary));
    margin-bottom: 1rem;
}

.kennisbank-glossary-term {
    margin-bottom: 1.25rem;
}

.kennisbank-glossary-term dt {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.kennisbank-glossary-term dd {
    margin: 0;
    padding-left: 1rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .kennisbank-hero {
        padding: 2rem 1rem 0.5rem;
        text-align: left;
    }

    .kennisbank-hero p {
        margin: 0;
    }

    .kennisbank-search {
        margin: 1rem 0 0;
        max-width: none;
    }

    .kennisbank-categories {
        grid-template-columns: 1fr;
    }

    .kennisbank-page {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .kennisbank-sidebar {
        display: none;
    }

    .kennisbank-article-nav {
        flex-direction: column;
    }

    .kennisbank-nav-prev,
    .kennisbank-nav-next {
        max-width: 100%;
    }

    .kennisbank-nav-next {
        text-align: left;
    }

    .kennisbank-article-body h1 {
        font-size: 1.5rem;
    }

    .kennisbank-article-body h2 {
        font-size: 1.25rem;
    }
}

/* ============================================
   Unified Search (Spotlight / Cmd+K)
   ============================================ */

/* Trigger button in header */
.search-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 160px;
    padding: 0.5rem 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--muted) / 0.5);
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    font-size: 0.8125rem;
    transition: all 0.15s ease;
}

.search-trigger:hover {
    border-color: hsl(var(--primary));
    color: hsl(var(--foreground));
}

.search-trigger svg {
    width: 1rem;
    height: 1rem;
}

.search-trigger-text {
    flex: 1;
    text-align: left;
    color: hsl(var(--muted-foreground));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-trigger-hint {
    font-size: 0.6875rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    background: hsl(var(--background));
    color: hsl(var(--muted-foreground));
    border: 1px solid hsl(var(--border));
    font-family: inherit;
    margin-left: auto;
}

.search-trigger-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: none;
    color: hsl(var(--foreground));
    cursor: pointer;
    padding: 0;
}

.search-trigger-mobile svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Overlay */
.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgb(0 0 0 / 0.5);
    backdrop-filter: blur(4px);
    padding: 10vh 1rem 1rem;
    align-items: flex-start;
    justify-content: center;
}

.search-overlay.open {
    display: flex;
}

/* Dialog */
.search-dialog {
    width: 100%;
    max-width: 680px;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    box-shadow: 0 24px 80px rgb(0 0 0 / 0.25), 0 0 0 1px rgb(0 0 0 / 0.05);
    overflow: hidden;
    animation: search-dialog-in 0.2s ease;
}

@keyframes search-dialog-in {
    from { opacity: 0; transform: scale(0.95) translateY(-12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Header / input */
.search-dialog-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--muted) / 0.3);
}

.search-dialog-icon {
    width: 1.375rem;
    height: 1.375rem;
    color: hsl(var(--primary));
    flex-shrink: 0;
}

.search-dialog-input {
    flex: 1;
    border: none;
    outline: none;
    background: none;
    font-size: 1.0625rem;
    color: hsl(var(--foreground));
    font-family: inherit;
    font-weight: 500;
}

.search-dialog-input::placeholder {
    color: hsl(var(--muted-foreground));
    font-weight: 400;
}

.search-dialog-close {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.search-dialog-close kbd {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
    font-family: inherit;
    font-weight: 500;
}

/* Results area */
.search-dialog-results {
    max-height: 420px;
    overflow-y: auto;
    padding: 0.5rem;
}

.search-dialog-empty {
    padding: 2.5rem 1rem;
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.search-dialog-empty p {
    margin: 0;
}

/* Result groups */
.search-group {
    margin-bottom: 0.5rem;
}

.search-group:last-child {
    margin-bottom: 0;
}

.search-group-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: hsl(var(--primary));
    padding: 0.625rem 0.75rem 0.375rem;
}

/* Result items */
.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: hsl(var(--foreground));
    transition: all 0.1s ease;
    cursor: pointer;
}

.search-result-item:hover,
.search-result-item.selected {
    background: hsl(var(--primary) / 0.06);
}

.search-result-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--muted-foreground));
    flex-shrink: 0;
    margin-top: 0.0625rem;
}

.search-result-item:hover .search-result-icon,
.search-result-item.selected .search-result-icon {
    color: hsl(var(--primary));
}

.search-result-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.search-result-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .search-trigger {
        display: none;
    }

    .search-overlay {
        padding: 1rem;
    }

    .search-dialog-results {
        max-height: 60vh;
    }
}

/* ============================================
   About / Over ons
   ============================================ */

.about-hero {
    padding: 3rem 0 1rem;
    text-align: center;
}

.about-hero h1 {
    margin-bottom: 0.75rem;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    margin-bottom: 1rem;
    font-size: 1.375rem;
}

.about-section p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.about-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.about-cta-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Data sources grid */
.about-sources {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.625rem;
}

.about-source-card {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.875rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    text-decoration: none;
    color: hsl(var(--foreground));
    transition: all 0.15s ease;
}

.about-source-card:hover {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.03);
}

.about-source-card strong {
    font-size: 0.9375rem;
}

.about-source-card span {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
}

/* Other products */
.about-products {
    display: grid;
    gap: 1rem;
}

.about-product-card {
    display: block;
    padding: 1.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    text-decoration: none;
    color: hsl(var(--foreground));
    transition: all 0.15s ease;
}

.about-product-card:hover {
    border-color: hsl(var(--primary));
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.08);
}

.about-product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.about-product-header strong {
    font-size: 1.125rem;
}

.about-product-header svg {
    color: hsl(var(--muted-foreground));
}

.about-product-card:hover .about-product-header svg {
    color: hsl(var(--primary));
}

.about-product-card p {
    margin: 0;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

@media (max-width: 768px) {
    .about-sources {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Mobile Touch & Usability Fixes
   ============================================ */

@media (max-width: 768px) {
    /* Touch target minimum 44px (2.75rem) for WCAG/Apple guidelines */
    .btn {
        min-height: 2.75rem;
    }

    /* Prevent iOS Safari zoom on input focus (requires >= 16px) */
    .form-input,
    .search-dialog-input,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    select,
    textarea {
        font-size: 1rem;
    }

    /* Cart notification: bottom-center on mobile to avoid header overlap */
    .cart-notification {
        top: auto;
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        transform: translateY(100%);
    }

    .cart-notification.show {
        transform: translateY(0);
    }

    /* Compact header on map page - saves 16px vertical space */
    .page-map .header-container {
        height: 3rem;
        padding: 0 0.75rem;
    }

    .page-map .site-logo span {
        display: none;
    }

    .page-map .site-logo svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}
