/* =====================================================================
 * KINKMARKET site.css
 *
 * v3.1 - C13.2 (May 10, 2026): bigger card tagline, profile magazine-cover, PNG category icons: matches the KinkCoach aesthetic family.
 * Drops the editorial Fraunces/burgundy direction, adopts the
 * magenta + pure black + Poppins design system used across kinkcoach.me
 * and the storefronts, so kinkmarket.me reads as a sister site.
 *
 * Design tokens copied from kinkcoach.me your-website-marketplace page:
 *   - Magenta:    #E0115F (primary), #c70f54 (hover/deep)
 *   - Black:      #0a0a0a (page bg), #121212/#0d0d0d (surface), #1a1a1a (borders)
 *   - Text:       #ffffff (primary), #c8c8c8 (secondary), #888 (muted), #555 (faint)
 *   - Type:       Poppins 400-800
 *   - Buttons:    pill shape, magenta primary with hover lift
 *   - Cards:      surface gradient + thin border, hover lift + magenta glow
 *
 * Structure (homepage layout, cards, browse-by-category) is preserved;
 * only the visual skin changes.
 * ===================================================================== */

@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:optional;src:url('/assets/fonts/poppins-400.woff2') format('woff2')}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:optional;src:url('/assets/fonts/poppins-500.woff2') format('woff2')}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:optional;src:url('/assets/fonts/poppins-600.woff2') format('woff2')}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:optional;src:url('/assets/fonts/poppins-700.woff2') format('woff2')}
@font-face{font-family:'Poppins';font-style:normal;font-weight:800;font-display:optional;src:url('/assets/fonts/poppins-800.woff2') format('woff2')}

:root {
    /* Surfaces */
    --km-bg: #0a0a0a;
    --km-surface: #121212;
    --km-surface-2: #1a1a1a;
    --km-surface-3: #232323;
    --km-line: #1a1a1a;
    --km-line-strong: #2a2a2a;

    /* Text */
    --km-text: #ffffff;
    --km-text-soft: #c8c8c8;
    --km-text-mute: #999;
    --km-text-faint: #555;

    /* Accent: KinkCoach magenta */
    --km-accent: #E0115F;
    --km-accent-deep: #c70f54;
    --km-accent-soft: rgba(224, 17, 95, 0.1);
    --km-accent-border: rgba(224, 17, 95, 0.3);
    --km-accent-glow: rgba(224, 17, 95, 0.35);

    /* Type */
    --km-sans: 'Poppins', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

    /* Spacing scale */
    --km-space-1: 4px;
    --km-space-2: 8px;
    --km-space-3: 16px;
    --km-space-4: 24px;
    --km-space-5: 40px;
    --km-space-6: 64px;
    --km-space-7: 96px;
    --km-space-8: 144px;

    /* Container widths */
    --km-container: 1440px;
    --km-container-narrow: 880px;

    /* Radii */
    --km-radius: 14px;
    --km-radius-lg: 18px;
    --km-radius-pill: 50px;
}

/* =====================================================================
 * Reset
 * ===================================================================== */

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { padding: 0; margin: 0; }

body {
    background: var(--km-bg);
    color: var(--km-text);
    font-family: var(--km-sans);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* =====================================================================
 * Layout primitives
 * ===================================================================== */

.km-container {
    width: 100%;
    max-width: var(--km-container);
    margin: 0 auto;
    padding: 0 var(--km-space-4);
}

.km-container-narrow {
    width: 100%;
    max-width: var(--km-container-narrow);
    margin: 0 auto;
    padding: 0 var(--km-space-4);
}

.km-prose {
    color: var(--km-text-soft);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 400;
}

/* =====================================================================
 * Typography utilities
 * ===================================================================== */

.km-eyebrow,
.km-eyebrow-gold {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--km-accent);
    margin-bottom: var(--km-space-3);
}

/* =====================================================================
 * Buttons
 * ===================================================================== */

.km-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--km-sans);
    font-size: 14px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--km-radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.km-btn-primary {
    background: var(--km-accent);
    color: #fff;
    border-color: var(--km-accent);
    box-shadow: 0 4px 20px rgba(224, 17, 95, 0.3);
}

.km-btn-primary:hover {
    background: var(--km-accent-deep);
    border-color: var(--km-accent-deep);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(224, 17, 95, 0.4);
}

.km-btn-ghost {
    background: transparent;
    color: var(--km-text);
    border-color: var(--km-line-strong);
}

.km-btn-ghost:hover {
    border-color: var(--km-accent-border);
    color: var(--km-accent);
}

/* =====================================================================
 * Header
 * ===================================================================== */

.km-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--km-line);
}

.km-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--km-space-4);
    height: 72px;
    max-width: var(--km-container);
    margin: 0 auto;
    padding: 0 var(--km-space-4);
}

.km-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--km-sans);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--km-text);
    text-transform: uppercase;
}

.km-brand-mark-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--km-accent);
    flex-shrink: 0;
}

.km-brand-mark-icon svg {
    width: 100%;
    height: 100%;
}

.km-brand-mark-text {
    display: inline-block;
    line-height: 1;
}

.km-brand-mark-text .accent {
    color: var(--km-accent);
}

.km-nav {
    display: flex;
    align-items: center;
    gap: var(--km-space-5);
}

.km-nav a {
    font-size: 13px;
    color: var(--km-text-soft);
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

.km-nav a:hover {
    color: var(--km-accent);
}

.km-search-stub {
    display: none;
}

/* Become a creator — filled pink CTA in the top nav (parallel to
   the buyer-side .kmnv-cta in buyer-nav-km.php). Sits inside
   .km-creator-group alongside the Creator dashboard ghost link. */
.km-creator-cta {
    background: var(--km-accent);
    color: #fff !important;
    padding: 7px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    transition: filter 0.18s ease;
    white-space: nowrap;
}
.km-creator-cta:hover { filter: brightness(1.1); color: #fff !important; }

/* Sign-out form when injected into header.php between the primary
   nav and the creator-group. Form element itself takes no space
   beyond the button; the .kmnv-logout-form base styles from
   buyer-nav-km.php (still loaded) handle button reset.
   Selector is `form.km-nav-signout button` (specificity 0,1,2) to
   beat `.kmnv-logout-form button` (0,1,1) from buyer-nav-km.php,
   which otherwise wins because it loads after site.css in the body. */
.km-nav-signout {
    display: inline-flex;
    align-items: center;
}
form.km-nav-signout button {
    font-size: 13px;
    color: var(--km-accent);
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1;
}
form.km-nav-signout button:hover { filter: brightness(1.15); }

/* Buyer avatar (circular). Used on /profile.php editor, /buyer.php
   public viewer, and eventually the creator-side hover card. Three
   sizes; pick the right class at the call site. Object-fit:cover so
   non-square uploads still display cleanly inside the circle. */
.km-buyer-avatar {
    display: inline-block;
    border-radius: 50%;
    object-fit: cover;
    background: var(--km-surface);
    border: 1px solid var(--km-line);
    flex-shrink: 0;
    vertical-align: middle;
}
.km-buyer-avatar-sm { width: 40px;  height: 40px; }
.km-buyer-avatar-md { width: 80px;  height: 80px; }
.km-buyer-avatar-lg { width: 110px; height: 110px; }

@media (max-width: 900px) {
    .km-header-inner { height: 64px; padding: 0 var(--km-space-3); }
    .km-brand-mark { font-size: 16px; letter-spacing: 1.5px; }
    .km-brand-mark-icon { width: 28px; height: 28px; }
    .km-nav { gap: var(--km-space-3); }
    .km-nav a { font-size: 12px; }
}

@media (max-width: 600px) {
    .km-nav a:not(.km-nav-keep) {
        display: none;
    }
}

/* =====================================================================
 * Tight hero (buyer-led homepage)
 * ===================================================================== */

.km-hero-tight {
    padding: var(--km-space-7) 0 var(--km-space-6);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.km-hero-tight::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1100px;
    height: 700px;
    background: radial-gradient(ellipse at center, var(--km-accent-glow) 0%, transparent 60%);
    filter: blur(80px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.km-hero-tight .km-container {
    position: relative;
    z-index: 1;
}

.km-hero-headline {
    font-family: var(--km-sans);
    font-size: clamp(40px, 7vw, 80px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--km-text);
    margin: 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 800;
}

.km-hero-headline em {
    font-style: italic;
    color: var(--km-accent);
    font-weight: 800;
}

@media (max-width: 720px) {
    .km-hero-tight {
        padding: var(--km-space-6) 0 var(--km-space-5);
    }
    .km-hero-headline {
        font-size: clamp(32px, 9vw, 48px);
    }
}

/* =====================================================================
 * Section frames
 * ===================================================================== */

.km-section {
    padding: var(--km-space-6) 0;
    position: relative;
}

.km-section-first {
    padding-top: var(--km-space-3);
}

.km-section-tight {
    padding: var(--km-space-5) 0 var(--km-space-6);
}

/* Clean section header (used by buyer-led homepage) */
.km-section-header-clean {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--km-space-3);
    flex-wrap: wrap;
    text-align: left;
    margin-bottom: var(--km-space-5);
    padding-bottom: var(--km-space-3);
    border-bottom: 1px solid var(--km-line);
}

.km-section-header-clean.km-section-header-stack {
    flex-direction: column;
    align-items: flex-start;
}

.km-section-eyebrow {
    display: block;
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--km-accent);
    line-height: 1;
}

.km-section-title-clean {
    font-family: var(--km-sans);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    color: var(--km-text);
    margin: 0;
    letter-spacing: -0.01em;
    font-weight: 700;
}

.km-section-sub {
    margin: 14px 0 0;
    max-width: 60ch;
    font-size: 15px;
    line-height: 1.65;
    color: var(--km-text-soft);
}

.km-section-sub a {
    color: var(--km-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.km-section-link {
    align-self: flex-end;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--km-text-soft);
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.km-section-link:hover {
    color: var(--km-accent);
}

.km-section-link span {
    transition: transform 0.2s ease;
    display: inline-block;
}

.km-section-link:hover span {
    transform: translateX(3px);
}

/* =====================================================================
 * Why Kinkmarket section (3 buyer-side reasons)
 * ===================================================================== */

.km-why {
    padding: var(--km-space-5) 0 var(--km-space-6);
    position: relative;
}

.km-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--km-space-4);
}

.km-why-item {
    background: linear-gradient(180deg, var(--km-surface) 0%, #0d0d0d 100%);
    border: 1px solid var(--km-line);
    border-radius: var(--km-radius);
    padding: var(--km-space-4) var(--km-space-4) var(--km-space-5);
    position: relative;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.km-why-item:hover {
    border-color: var(--km-accent-border);
    transform: translateY(-2px);
}

.km-why-num {
    display: inline-block;
    font-family: var(--km-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--km-accent);
    margin-bottom: var(--km-space-3);
}

.km-why-title {
    font-family: var(--km-sans);
    font-size: 22px;
    line-height: 1.2;
    color: var(--km-text);
    margin: 0 0 var(--km-space-2);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.km-why-text {
    color: var(--km-text-soft);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 600px) {
    .km-why-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
 * Visual-dominant creator cards (buyer-led)
 * ===================================================================== */

.km-creator-grid {
    display: grid;
    /* Cap each track at 420px so a category with 1 or 2 creators doesn't
       stretch their cards across the full row. 3+ creators fill nicely;
       fewer creators sit left-aligned at a natural size. */
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 420px));
    justify-content: start;
    gap: var(--km-space-4);
}

.km-creator-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--km-surface) 0%, #0d0d0d 100%);
    border: 1px solid var(--km-line);
    border-radius: var(--km-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.km-creator-card:hover {
    transform: translateY(-4px);
    border-color: var(--km-accent-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
                0 0 30px var(--km-accent-soft);
}

.km-creator-card-image {
    position: relative;
    aspect-ratio: 4 / 5;
    background-size: cover;
    background-position: center top;
    background-color: var(--km-surface-2);
    overflow: hidden;
}

.km-creator-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        transparent 50%,
        rgba(10, 10, 10, 0.4) 80%,
        rgba(10, 10, 10, 0.85) 100%);
    pointer-events: none;
}

.km-creator-card-image-letter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--km-sans);
    font-size: 96px;
    font-weight: 800;
    color: var(--km-accent);
    opacity: 0.4;
    line-height: 1;
}

.km-creator-card-body {
    padding: var(--km-space-3) var(--km-space-4) var(--km-space-4);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.km-creator-card-name {
    font-family: var(--km-sans);
    font-size: 22px;
    line-height: 1.15;
    color: var(--km-text);
    margin: 0;
    letter-spacing: -0.01em;
    font-weight: 700;
}

.km-creator-card-tagline {
    font-size: 16px;
    color: var(--km-accent);
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.km-creator-card-signals {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: var(--km-space-2);
}

.km-signal-chip {
    font-size: 11px;
    color: var(--km-text-soft);
    padding: 5px 12px;
    background: var(--km-surface-2);
    border: 1px solid var(--km-line-strong);
    border-radius: var(--km-radius-pill);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.km-signal-chip strong {
    color: var(--km-accent);
    font-weight: 800;
    margin-right: 2px;
}

@media (max-width: 480px) {
    .km-creator-grid {
        grid-template-columns: 1fr;
        gap: var(--km-space-3);
    }
    .km-creator-card-name {
        font-size: 20px;
    }
}

/* =====================================================================
 * Browse-by-category tiles
 * ===================================================================== */

.km-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--km-space-3);
}

.km-group-tile {
    background: linear-gradient(180deg, var(--km-surface) 0%, #0d0d0d 100%);
    border: 1px solid var(--km-line);
    border-radius: var(--km-radius);
    padding: var(--km-space-4);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.km-group-tile:hover {
    border-color: var(--km-accent-border);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.km-group-tile-name {
    font-family: var(--km-sans);
    font-size: 17px;
    line-height: 1.2;
    color: var(--km-text);
    margin: 0 0 var(--km-space-2);
    font-weight: 700;
}

.km-group-tile-count {
    font-size: 12px;
    color: var(--km-text-mute);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.km-group-tile-count strong {
    color: var(--km-accent);
    font-weight: 800;
    margin-right: 4px;
}

/* =====================================================================
 * Footer
 * ===================================================================== */

.km-footer {
    padding: var(--km-space-6) 0 var(--km-space-4);
    border-top: 1px solid var(--km-line);
    background: var(--km-bg);
    margin-top: var(--km-space-7);
}

.km-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--km-space-5);
    margin-bottom: var(--km-space-5);
}

.km-footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--km-space-3);
}

.km-footer-brand-mark {
    font-family: var(--km-sans);
    font-size: 22px;
    font-weight: 800;
    color: var(--km-text);
    letter-spacing: 2px;
}

.km-footer-brand-mark span {
    color: var(--km-accent);
}

.km-footer-brand-text {
    color: var(--km-text-mute);
    font-size: 13px;
    line-height: 1.6;
    max-width: 320px;
}

.km-footer-col-title {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--km-text-faint);
    margin: 0 0 var(--km-space-3) 0;
    font-weight: 700;
}

.km-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.km-footer-links a {
    color: var(--km-text-soft);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.km-footer-links a:hover {
    color: var(--km-accent);
}

.km-footer-bottom {
    padding-top: var(--km-space-4);
    border-top: 1px solid var(--km-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--km-space-3);
    font-size: 12px;
    color: var(--km-text-faint);
    font-weight: 500;
}

@media (max-width: 768px) {
    .km-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .km-footer-brand {
        grid-column: 1 / -1;
    }
}

/* =====================================================================
 * Age gate
 * ===================================================================== */

.km-age-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--km-space-4);
}

.km-age-gate::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle at center, var(--km-accent-soft) 0%, transparent 60%);
    filter: blur(60px);
    pointer-events: none;
}

.km-age-gate-card {
    position: relative;
    max-width: 520px;
    width: 100%;
    text-align: center;
    padding: var(--km-space-6) var(--km-space-5);
}

.km-age-gate-mark {
    font-family: var(--km-sans);
    font-size: 48px;
    color: var(--km-accent);
    margin-bottom: var(--km-space-4);
    font-weight: 800;
    letter-spacing: 2px;
}

.km-age-gate-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--km-accent);
    margin-bottom: var(--km-space-3);
}

.km-age-gate-prose {
    color: var(--km-text-soft);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 auto var(--km-space-5);
    max-width: 420px;
}

.km-age-gate-buttons {
    display: flex;
    gap: var(--km-space-3);
    justify-content: center;
    flex-wrap: wrap;
}

.km-age-gate-fineprint {
    margin-top: var(--km-space-4);
    font-size: 12px;
    color: var(--km-text-faint);
    line-height: 1.5;
}

/* =====================================================================
 * Avatar (used on seller profile pages)
 * ===================================================================== */

.km-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-family: var(--km-sans);
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
}

/* =====================================================================
 * Category chips
 * ===================================================================== */

.km-cat-chip {
    display: inline-block;
    font-size: 12px;
    color: var(--km-text-soft);
    padding: 6px 14px;
    background: var(--km-surface-2);
    border: 1px solid var(--km-line-strong);
    border-radius: var(--km-radius-pill);
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-right: 6px;
    margin-bottom: 6px;
}

.km-seller-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: var(--km-space-3) 0;
}

/* =====================================================================
 * Placeholder pages (404, _placeholder.php for stubs)
 * ===================================================================== */

.km-placeholder {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--km-space-7) var(--km-space-4);
}

.km-placeholder-inner {
    max-width: 540px;
}

.km-placeholder-mark {
    font-family: var(--km-sans);
    font-size: 80px;
    color: var(--km-accent);
    line-height: 1;
    margin-bottom: var(--km-space-3);
    font-weight: 800;
}

.km-placeholder-title {
    font-family: var(--km-sans);
    font-size: 32px;
    margin: 0 0 var(--km-space-3);
    font-weight: 800;
    color: var(--km-text);
    letter-spacing: -0.01em;
}

.km-placeholder-text {
    color: var(--km-text-soft);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: var(--km-space-4);
}

/* =====================================================================
 * Animations
 * ===================================================================== */

@keyframes km-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.km-fade-up { animation: km-fade-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) both; }
.km-fade-up-1 { animation-delay: 0.05s; }
.km-fade-up-2 { animation-delay: 0.15s; }
.km-fade-up-3 { animation-delay: 0.25s; }
.km-fade-up-4 { animation-delay: 0.35s; }
.km-fade-up-5 { animation-delay: 0.45s; }
.km-fade-up-6 { animation-delay: 0.55s; }

/* =====================================================================
 * LEGACY CLASSES
 *
 * Kept for backwards compatibility with seller.php, about.php, and
 * sellers.OLD.php references. Styled with the same magenta tokens.
 * ===================================================================== */

.km-hero {
    padding: var(--km-space-7) 0 var(--km-space-6);
    text-align: center;
    position: relative;
}

.km-hero-mark {
    font-family: var(--km-sans);
    font-size: clamp(40px, 8vw, 88px);
    line-height: 1;
    color: var(--km-text);
    margin: 0 0 var(--km-space-3);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.km-hero-mark em {
    font-style: italic;
    color: var(--km-accent);
}

.km-hero-tagline {
    font-size: 17px;
    color: var(--km-text-soft);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
}

.km-seller-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--km-space-3);
}

.km-seller-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--km-surface) 0%, #0d0d0d 100%);
    border: 1px solid var(--km-line);
    border-radius: var(--km-radius);
    padding: var(--km-space-4);
    transition: all 0.3s ease;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.km-seller-card:hover {
    border-color: var(--km-accent-border);
    transform: translateY(-2px);
}

.km-seller-card-head {
    display: flex;
    align-items: center;
    gap: var(--km-space-3);
    margin-bottom: var(--km-space-3);
}

.km-seller-card-name {
    font-family: var(--km-sans);
    font-size: 20px;
    line-height: 1.15;
    color: var(--km-text);
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.km-seller-card-tagline {
    font-size: 12px;
    color: var(--km-accent);
    margin-top: 4px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.km-seller-card-bio {
    color: var(--km-text-soft);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 var(--km-space-3);
    flex-grow: 1;
}

.km-seller-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--km-space-3);
    border-top: 1px solid var(--km-line);
}

.km-seller-card-num {
    font-size: 11px;
    color: var(--km-text-faint);
    font-weight: 700;
    letter-spacing: 1px;
}

.km-seller-card-stat {
    font-size: 12px;
    color: var(--km-text-mute);
    font-weight: 600;
}

.km-seller-card-stat strong {
    color: var(--km-accent);
    font-weight: 800;
    margin-right: 4px;
}

.km-seller-card-cta {
    font-size: 13px;
    font-weight: 700;
    color: var(--km-text);
    transition: color 0.2s ease;
}

.km-seller-card-cta:hover { color: var(--km-accent); }

.km-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--km-space-5);
    padding-bottom: var(--km-space-3);
    border-bottom: 1px solid var(--km-line);
    gap: var(--km-space-3);
    flex-wrap: wrap;
}

.km-section-header-left {
    display: flex;
    align-items: baseline;
    gap: var(--km-space-3);
}

.km-section-header-right {
    font-size: 12px;
    color: var(--km-text-mute);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.km-section-num {
    font-size: 14px;
    color: var(--km-accent);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.km-section-title {
    font-family: var(--km-sans);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    color: var(--km-text);
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.km-section-title em {
    font-style: italic;
    color: var(--km-accent);
}

/* Old hero issue numbering and manifesto - hidden, no longer used */
.km-hero-issue { display: none; }
.km-hero-meta { display: none; }
.km-manifesto { display: none; }

/* End of site.css */

/* =====================================================================
 * Homepage v2 (May 9 mock): hero backdrop + glowing category icons
 * ===================================================================== */

/* Hero with full-bleed dark atmospheric backdrop */
.km-hero-backdrop {
    position: relative;
    width: 100%;
    height: clamp(560px, 90vh, 820px);
    background: var(--km-bg);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.km-hero-backdrop-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    /* No background-* properties: the hero is now an <img> element so the
       browser can prioritise it via fetchpriority and paint without
       waiting for the stylesheet to apply a background-image rule. */
}

.km-hero-backdrop-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.6) 55%, rgba(10,10,10,0.25) 100%),
        linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.0) 30%, rgba(10,10,10,0.6) 100%);
}

.km-hero-backdrop-content {
    position: relative;
    width: 100%;
    max-width: var(--km-container);
    margin: 0 auto;
    padding: 0 var(--km-space-5);
}

.km-hero-backdrop-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--km-accent);
    margin-bottom: var(--km-space-3);
}

.km-hero-backdrop-headline {
    font-family: var(--km-sans);
    font-size: clamp(38px, 5.5vw, 76px);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: var(--km-text);
    margin: 0 0 var(--km-space-4) 0;
    max-width: 1100px;
}

.km-hero-backdrop-headline em {
    color: var(--km-accent);
    font-style: italic;
    font-weight: 800;
    display: block;
}

.km-hero-backdrop-sub {
    font-size: clamp(16px, 1.6vw, 19px);
    font-weight: 400;
    line-height: 1.6;
    color: var(--km-text-soft);
    max-width: 540px;
    margin: 0;
}

/* Glowing icon category tiles (Lady Void style, magenta variant) */
.km-icon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--km-space-3);
}

@media (max-width: 1100px) {
    .km-icon-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 700px) {
    .km-icon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.km-icon-tile {
    position: relative;
    background: linear-gradient(180deg, var(--km-surface), #0d0d0d);
    border: 1px solid var(--km-line);
    border-radius: var(--km-radius);
    padding: var(--km-space-5) var(--km-space-4);
    text-align: center;
    text-decoration: none;
    color: var(--km-text);
    transition: all 0.25s ease;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--km-space-3);
}

.km-icon-tile::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: var(--km-radius);
    background: radial-gradient(circle at 50% 30%, var(--km-accent-soft), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.km-icon-tile:hover {
    border-color: var(--km-accent-border);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.km-icon-tile:hover::before {
    opacity: 1;
}

.km-icon-tile-icon {
    position: relative;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--km-text);
    filter:
        drop-shadow(0 0 8px var(--km-accent-glow))
        drop-shadow(0 0 24px rgba(224, 17, 95, 0.45));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.km-icon-tile:hover .km-icon-tile-icon {
    transform: scale(1.06);
    filter:
        drop-shadow(0 0 12px var(--km-accent))
        drop-shadow(0 0 32px var(--km-accent));
}

.km-icon-tile-icon svg,
.km-icon-tile-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.km-icon-tile-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--km-text);
    line-height: 1.3;
    margin: 0;
}

.km-icon-tile-count {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--km-text-mute);
    margin: 0;
}

.km-icon-tile-count strong {
    color: var(--km-accent);
    font-weight: 700;
}

@media (max-width: 600px) {
    .km-hero-backdrop {
        height: clamp(480px, 80vh, 640px);
    }
    .km-icon-tile {
        padding: var(--km-space-4);
    }
    .km-icon-tile-icon {
        width: 72px;
        height: 72px;
    }
}

/* =====================================================================
 * Seller profile page (magazine-cover treatment)
 * Used by /seller/{slug} via seller.php
 * Added C13 (May 9, 2026) per C12 design decision.
 * Redesign pass C15 (May 14, 2026): shorter hero, action buttons moved
 * into the hero overlay, flat category chips rebuilt as icon-led offer
 * cards, About paired with a listings-stat callout.
 * C15.1: About renders a curated multi-paragraph marketplace bio.
 * ===================================================================== */

/* Hero: image with name, tagline and actions overlaid bottom-left */
.km-profile-hero {
    position: relative;
    display: flex;
    align-items: stretch;
    max-width: var(--km-container);
    width: calc(100% - 48px);
    margin: var(--km-space-5) auto;
    min-height: 300px;
    background: #121214;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
}
.km-profile-hero-media {
    position: relative;
    flex: 0 0 clamp(220px, 32%, 340px);
    align-self: stretch;
    overflow: hidden;
    background: #0a0a0a;
}

.km-profile-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.km-profile-hero-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.km-profile-hero-fallback-letter {
    font-family: var(--km-sans);
    font-size: clamp(160px, 28vw, 300px);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
}

.km-profile-hero-overlay { display: none; }

.km-profile-hero-content {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--km-space-5);
}

.km-profile-hero-content-inner {
    max-width: var(--km-container);
    margin: 0 auto;
}

.km-profile-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--km-accent);
    margin-bottom: var(--km-space-2);
}

.km-profile-name {
    font-family: var(--km-sans);
    font-size: clamp(30px, 4vw, 50px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--km-text);
    margin: 0 0 var(--km-space-2) 0;
}

.km-profile-tagline {
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    color: var(--km-text-soft);
    max-width: 640px;
    margin: 0;
}

/* Action buttons inside the hero overlay */
.km-profile-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--km-space-3);
    margin-top: var(--km-space-4);
}

/* Ghost button variant tuned for sitting on hero imagery */
.km-btn-ghost-onhero {
    background: rgba(10, 10, 10, 0.55);
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.km-btn-ghost-onhero:hover {
    background: rgba(10, 10, 10, 0.7);
    border-color: var(--km-accent-border);
    color: var(--km-accent);
}

/* Body: about + stat, then offerings */
.km-profile-body {
    padding: var(--km-space-6) var(--km-space-5);
}

.km-profile-body-inner {
    max-width: var(--km-container);
    margin: 0 auto;
}

.km-profile-block {
    margin-bottom: var(--km-space-6);
}

.km-profile-block:last-child {
    margin-bottom: 0;
}

.km-profile-block-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--km-accent);
    margin-bottom: var(--km-space-3);
}

/* About paired with the listings-stat callout */
.km-profile-intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--km-space-4);
}

@media (min-width: 900px) {
    .km-profile-intro {
        grid-template-columns: minmax(0, 1fr) 300px;
        align-items: start;
    }
}

.km-profile-intro-about {
    min-width: 0;
}

.km-profile-bio {
    font-size: 18px;
    line-height: 1.7;
    color: var(--km-text-soft);
    margin: 0 0 var(--km-space-3) 0;
    max-width: 680px;
}

.km-profile-bio:last-child {
    margin-bottom: 0;
}

/* Active listings stat callout */
.km-profile-stat {
    background: linear-gradient(180deg, var(--km-surface), #0d0d0d);
    border: 1px solid var(--km-line-strong);
    border-radius: var(--km-radius-lg);
    padding: var(--km-space-5) var(--km-space-4);
    text-align: center;
}

.km-profile-stat-num {
    display: block;
    font-size: clamp(44px, 7vw, 68px);
    font-weight: 800;
    line-height: 1;
    color: var(--km-accent);
    letter-spacing: -0.02em;
    margin-bottom: var(--km-space-2);
}

.km-profile-stat-label {
    font-size: 14px;
    color: var(--km-text-soft);
    line-height: 1.5;
    margin: 0;
}

.km-profile-stat-label strong {
    color: var(--km-text);
    font-weight: 700;
}

/* Right column wrapper. Stacks the listings stat and the teaser gallery
   inside column 2 of the .km-profile-intro grid. */
.km-profile-aside {
    display: flex;
    flex-direction: column;
    gap: var(--km-space-4);
    min-width: 0;
}

/* Teaser strip: full-width horizontal band BELOW the bio (not inside
   the right-hand aside any more). 6 portraits across at desktop so
   the strip stays short vertically rather than dwarfing the bio.
   Reflows to 3 then 2 columns on smaller screens. Empty trailing
   slots simply don't render (PHP filters them out before the loop). */
.km-profile-teaser-strip { padding-top: 0; }
.km-profile-teasers {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--km-space-3);
}
@media (max-width: 1100px) {
    .km-profile-teasers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .km-profile-teasers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--km-space-2);
    }
}

.km-profile-teaser-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--km-radius);
    border: 1px solid var(--km-line);
    background: var(--km-surface);
}

/* Offerings: icon-led cards, one per category group. 3-wide, stepping
   down to 2 on tablet and 1 on mobile (mobile rule in the media block). */
.km-profile-offers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--km-space-3);
}

@media (max-width: 820px) {
    .km-profile-offers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.km-profile-offer-card {
    display: flex;
    align-items: flex-start;
    gap: var(--km-space-3);
    background: linear-gradient(180deg, var(--km-surface), #0d0d0d);
    border: 1px solid var(--km-line);
    border-radius: var(--km-radius);
    padding: var(--km-space-4);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.km-profile-offer-card:hover {
    border-color: var(--km-accent-border);
    transform: translateY(-2px);
}

.km-profile-offer-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter:
        drop-shadow(0 0 6px var(--km-accent-glow))
        drop-shadow(0 0 16px rgba(224, 17, 95, 0.4));
}

.km-profile-offer-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.km-profile-offer-body {
    min-width: 0;
}

.km-profile-offer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--km-text);
    letter-spacing: -0.01em;
    margin: 0 0 var(--km-space-2) 0;
}

.km-profile-offer-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Closing CTA band, full-bleed magenta-tinted gradient */
.km-profile-cta-band {
    background: linear-gradient(135deg, #1a0814, var(--km-bg));
    border-top: 1px solid rgba(224, 17, 95, 0.2);
    padding: var(--km-space-7) var(--km-space-5);
    text-align: center;
}

.km-profile-cta-band-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--km-accent);
    margin-bottom: var(--km-space-3);
}

.km-profile-cta-band-text {
    font-family: var(--km-sans);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--km-text);
    margin: 0 auto var(--km-space-5) auto;
    max-width: 720px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .km-profile-hero {
        flex-direction: column;
        width: auto;
        margin: var(--km-space-4) var(--km-space-3);
    }
    .km-profile-hero-media {
        flex: 0 0 240px;
        width: 100%;
    }
    .km-profile-hero-content {
        padding: var(--km-space-4);
    }
    .km-profile-hero-actions .km-btn {
        flex: 1 1 100%;
    }
    .km-profile-body {
        padding: var(--km-space-6) var(--km-space-4);
    }
    .km-profile-block {
        margin-bottom: var(--km-space-5);
    }
    .km-profile-offers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--km-space-2);
    }
    .km-profile-offer-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .km-profile-offer-chips {
        justify-content: center;
    }
    .km-profile-cta-band {
        padding: var(--km-space-6) var(--km-space-4);
    }
}

/* ============================================================
   ROUND 2: BROWSE SYSTEM
   /category/{slug}, /categories, /sellers
   v3.2 - C14 (May 10, 2026)
   ============================================================ */

/* === Category landing hero ============================================ */
.km-cat-hero {
    padding: var(--km-space-7) 0 var(--km-space-5);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    background: linear-gradient(180deg, rgba(224,17,95,0.06) 0%, transparent 100%);
}
.km-cat-hero-back {
    display: inline-block;
    color: var(--km-text-soft);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.04em;
    margin-bottom: var(--km-space-5);
    transition: color 0.18s ease;
}
.km-cat-hero-back:hover { color: var(--km-accent); }
.km-cat-hero-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--km-space-5);
    align-items: center;
    max-width: 1100px;
}
.km-cat-hero-icon {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px var(--km-accent-glow))
            drop-shadow(0 0 32px rgba(224,17,95,0.4));
}
.km-cat-hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.km-cat-hero-title {
    font-family: var(--km-sans);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 var(--km-space-3) 0;
    color: var(--km-text);
}
.km-cat-hero-intro {
    font-size: 18px;
    line-height: 1.55;
    color: var(--km-text-soft);
    margin: 0 0 var(--km-space-3) 0;
    max-width: 640px;
}
.km-cat-hero-count {
    font-size: 13px;
    color: var(--km-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}
.km-cat-hero-count strong {
    color: var(--km-accent);
    font-weight: 800;
    font-size: 15px;
}
@media (max-width: 700px) {
    .km-cat-hero-inner {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .km-cat-hero-icon {
        width: 80px;
        height: 80px;
    }
}

/* === Empty state on category landing ================================== */
.km-cat-empty {
    text-align: center;
    padding: var(--km-space-7) var(--km-space-5);
    max-width: 560px;
    margin: 0 auto;
}
.km-cat-empty-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--km-text);
    margin: 0 0 var(--km-space-3) 0;
}
.km-cat-empty-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--km-text-soft);
    margin: 0 0 var(--km-space-5) 0;
}

/* === Other-categories cross-link grid (on category landing) =========== */
.km-cat-other {
    padding: var(--km-space-6) 0 var(--km-space-5);
    border-top: 1px solid rgba(255,255,255,0.04);
}
.km-cat-other-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--km-space-3);
    margin-top: var(--km-space-4);
}
.km-cat-other-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--km-space-2);
    padding: var(--km-space-4) var(--km-space-2);
    background: var(--km-surface);
    border: 1px solid var(--km-line);
    border-radius: var(--km-radius);
    text-decoration: none;
    color: var(--km-text);
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.km-cat-other-tile:hover {
    transform: translateY(-2px);
    border-color: var(--km-accent);
}
.km-cat-other-tile-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 6px var(--km-accent-glow));
}
.km-cat-other-tile-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.km-cat-other-tile-name {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.02em;
}
@media (max-width: 1100px) {
    .km-cat-other-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .km-cat-other-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === CTA band at bottom of category landing =========================== */
.km-cat-cta-band {
    padding: var(--km-space-5) 0 var(--km-space-7);
    text-align: center;
}
.km-cat-cta-band-text {
    font-size: 18px;
    color: var(--km-text-soft);
    margin: 0;
}
.km-cat-cta-band-link {
    color: var(--km-accent);
    text-decoration: none;
    font-weight: 600;
    margin-left: var(--km-space-2);
    transition: opacity 0.18s ease;
}
.km-cat-cta-band-link:hover { opacity: 0.8; }

/* === /categories index - large tiles with intro ====================== */
.km-cats-hero,
.km-sellers-hero {
    padding: var(--km-space-7) 0 var(--km-space-5);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    background: linear-gradient(180deg, rgba(224,17,95,0.06) 0%, transparent 100%);
}
.km-cats-hero-eyebrow,
.km-sellers-hero-eyebrow {
    display: block;
    color: var(--km-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: var(--km-space-3);
}
.km-cats-hero-title,
.km-sellers-hero-title {
    font-family: var(--km-sans);
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin: 0 0 var(--km-space-3) 0;
    color: var(--km-text);
}
.km-cats-hero-lede,
.km-sellers-hero-lede {
    font-size: 18px;
    line-height: 1.55;
    color: var(--km-text-soft);
    margin: 0;
    max-width: 720px;
}

.km-cats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--km-space-4);
}
.km-cats-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--km-space-3);
    padding: var(--km-space-5) var(--km-space-4);
    background: var(--km-surface);
    border: 1px solid var(--km-line);
    border-radius: var(--km-radius);
    text-decoration: none;
    color: var(--km-text);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.km-cats-tile:hover {
    transform: translateY(-3px);
    border-color: var(--km-accent);
    box-shadow: 0 0 0 1px var(--km-accent), 0 12px 32px rgba(224,17,95,0.18);
}
.km-cats-tile-icon {
    width: 80px;
    height: 80px;
    margin-top: var(--km-space-2);
    filter: drop-shadow(0 0 10px var(--km-accent-glow))
            drop-shadow(0 0 24px rgba(224,17,95,0.35));
}
.km-cats-tile-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.km-cats-tile-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--km-text);
    letter-spacing: -0.01em;
}
.km-cats-tile-intro {
    font-size: 14px;
    line-height: 1.5;
    color: var(--km-text-soft);
    margin: 0;
    flex: 1;
}
.km-cats-tile-count {
    font-size: 11px;
    color: var(--km-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
    padding-top: var(--km-space-3);
    border-top: 1px solid rgba(255,255,255,0.06);
    width: 100%;
}
.km-cats-tile-count strong {
    color: var(--km-accent);
    font-weight: 800;
    font-size: 13px;
}
@media (max-width: 1000px) {
    .km-cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    /* minmax(0,1fr) lets the two columns shrink to equal width instead of taking
       their content min-width (which overflowed narrow phones). Tighter gap + tile
       padding so both tiles fit on a 360px screen. */
    .km-cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .km-cats-tile { padding: 22px 14px; }
    .km-cats-tile-intro { font-size: 13px; }
}

/* ============================================================
   ABOUT PAGE
   /about via about.php
   v3.3 - C16 (May 14, 2026): full rebuild in the homepage family
   (text-led hero, numbered pitch cards reusing .km-why, closing
   CTA band). Self-contained: no existing rules touched.
   ============================================================ */

/* Text-led hero: magenta gradient wash, no image */
.km-about-hero {
    padding: var(--km-space-7) 0 var(--km-space-6);
    border-bottom: 1px solid var(--km-line);
    background: linear-gradient(180deg, rgba(224, 17, 95, 0.07) 0%, transparent 100%);
}

.km-about-hero-inner {
    width: 100%;
    max-width: var(--km-container);
    margin: 0 auto;
    padding: 0 var(--km-space-5);
}

.km-about-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--km-accent);
    margin-bottom: var(--km-space-3);
}

.km-about-headline {
    font-family: var(--km-sans);
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: var(--km-text);
    margin: 0 0 var(--km-space-4) 0;
    max-width: 1000px;
}

.km-about-headline em {
    display: block;
    font-style: italic;
    font-weight: 800;
    color: var(--km-accent);
}

.km-about-sub {
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.6;
    color: var(--km-text-soft);
    max-width: 620px;
    margin: 0;
}

/* Pitch card grid: layered on .km-why-grid, 3 across stepping to 2 then 1
   so 5 cards land as a clean 3+2 rather than an auto-fit squeeze */
.km-about-pitch {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .km-about-pitch {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .km-about-pitch {
        grid-template-columns: 1fr;
    }
}

/* "That's the whole pitch." closer line under the cards */
.km-about-closer {
    text-align: center;
    font-family: var(--km-sans);
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    color: var(--km-text);
    letter-spacing: -0.01em;
    margin: var(--km-space-6) 0 0 0;
}

/* For-creators closing CTA band */
.km-about-cta {
    background: linear-gradient(135deg, #1a0814, var(--km-bg));
    border-top: 1px solid rgba(224, 17, 95, 0.2);
    padding: var(--km-space-7) var(--km-space-5);
    text-align: center;
}

.km-about-cta-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--km-accent);
    margin-bottom: var(--km-space-3);
}

.km-about-cta-text {
    font-family: var(--km-sans);
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--km-text);
    margin: 0 auto var(--km-space-5) auto;
    max-width: 760px;
}

@media (max-width: 600px) {
    .km-about-hero {
        padding: var(--km-space-6) 0 var(--km-space-5);
    }
    .km-about-hero-inner {
        padding: 0 var(--km-space-4);
    }
    .km-about-cta {
        padding: var(--km-space-6) var(--km-space-4);
    }
}

/* ============================================================
   LEGAL PAGES
   /terms, /privacy, /content-policy, /contact
   v3.4 - C17 (May 14, 2026): Terms, Privacy, Content policy and
   Contact built out. Self-contained: no existing rules touched.
   ============================================================ */

.km-legal {
    padding: var(--km-space-6) 0 var(--km-space-7);
}

.km-legal-inner {
    width: 100%;
    max-width: var(--km-container-narrow);
    margin: 0 auto;
    padding: 0 var(--km-space-4);
}

.km-legal-header {
    padding-bottom: var(--km-space-4);
    margin-bottom: var(--km-space-5);
    border-bottom: 1px solid var(--km-line);
}

.km-legal-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--km-accent);
    margin-bottom: var(--km-space-3);
}

.km-legal-title {
    font-family: var(--km-sans);
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--km-text);
    margin: 0 0 var(--km-space-3) 0;
}

.km-legal-updated {
    font-size: 13px;
    color: var(--km-text-mute);
    margin: 0;
}

.km-legal-body {
    color: var(--km-text-soft);
    font-size: 16px;
    line-height: 1.75;
}

.km-legal-body > :first-child {
    margin-top: 0;
}

.km-legal-body h2 {
    font-family: var(--km-sans);
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--km-text);
    margin: var(--km-space-6) 0 var(--km-space-3) 0;
}

.km-legal-body h3 {
    font-family: var(--km-sans);
    font-size: 17px;
    font-weight: 700;
    color: var(--km-text);
    margin: var(--km-space-4) 0 var(--km-space-2) 0;
}

.km-legal-body p {
    margin: 0 0 var(--km-space-3) 0;
}

.km-legal-body ul {
    margin: 0 0 var(--km-space-3) 0;
    padding-left: var(--km-space-4);
}

.km-legal-body li {
    margin-bottom: var(--km-space-2);
}

.km-legal-body strong {
    color: var(--km-text);
    font-weight: 700;
}

.km-legal-body a {
    color: var(--km-accent);
    text-decoration: none;
    border-bottom: 1px solid var(--km-accent-border);
    transition: border-color 0.2s ease;
}

.km-legal-body a:hover {
    border-bottom-color: var(--km-accent);
}

/* Contact page: prominent email callout */
.km-legal-contact-card {
    background: linear-gradient(180deg, var(--km-surface), #0d0d0d);
    border: 1px solid var(--km-line-strong);
    border-radius: var(--km-radius-lg);
    padding: var(--km-space-5);
    margin: var(--km-space-4) 0 var(--km-space-5) 0;
    text-align: center;
}

.km-legal-contact-card-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--km-accent);
    margin-bottom: var(--km-space-2);
}

.km-legal-contact-card a {
    border: none;
    color: var(--km-text);
}

.km-legal-contact-card a:hover {
    border: none;
    color: var(--km-accent);
}

.km-legal-contact-card-email {
    font-family: var(--km-sans);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
}

@media (max-width: 600px) {
    .km-legal {
        padding: var(--km-space-5) 0 var(--km-space-6);
    }
}

/* =====================================================================
 * Mobile navigation v18
 *  - Header layout: burger left, brand centered, mail right (mobile)
 *  - Full-height slide-in drawer from the left
 *  - Compressed Why rail (single line of three labels)
 *  - Hide bottom category grid on mobile (drawer + CTA replace it)
 *  - Mobile-only "Browse all categories" CTA card
 * ===================================================================== */

/* ----- Burger button ----- */
.km-burger {
    display: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 1px solid var(--km-line);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    color: var(--km-text);
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.km-burger-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}
.km-burger[aria-expanded="true"] {
    background: rgba(224, 17, 95, 0.12);
    border-color: var(--km-accent, #E0115F);
    color: var(--km-accent, #E0115F);
}

/* ----- Mobile mail icon (right side) ----- */
.km-mobile-mail {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    border: 1px solid var(--km-line);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    color: var(--km-text);
    flex-shrink: 0;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}
.km-mobile-mail:hover { border-color: var(--km-accent, #E0115F); color: var(--km-accent, #E0115F); }
.km-mobile-mail svg { width: 20px; height: 20px; display: block; }
.km-mobile-mail-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--km-accent, #E0115F);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    border: 1px solid #0a0a0a;
}

/* ----- Why rail (mobile-only condensed Why section) ----- */
.km-why-rail { display: none; }

/* ----- Slide-in drawer ----- */
.km-drawer {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
}
.km-drawer[hidden] { display: none; }
.km-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.24s ease;
}
.km-drawer.is-open .km-drawer-backdrop { opacity: 1; }
.km-drawer-panel {
    position: relative;
    width: 86%;
    max-width: 380px;
    height: 100%;
    background: #0e0e0e;
    border-right: 1px solid var(--km-line);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    display: flex;
    flex-direction: column;
}
.km-drawer.is-open .km-drawer-panel { transform: translateX(0); }

.km-drawer-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 18px 18px;
    border-bottom: 1px solid var(--km-line);
}
.km-drawer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--km-accent, #E0115F), #7a0a32);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 17px;
    flex-shrink: 0;
}
.km-drawer-greeting { font-size: 14px; font-weight: 600; color: var(--km-text); }
.km-drawer-account-link {
    display: inline-block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--km-accent, #E0115F);
    text-decoration: none;
}

.km-drawer-signin {
    padding: 20px 18px;
    border-bottom: 1px solid var(--km-line);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.km-drawer-cta {
    display: block;
    padding: 13px;
    background: var(--km-accent, #E0115F);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
}
.km-drawer-cta:active { filter: brightness(0.92); }
.km-drawer-signin-link {
    text-align: center;
    font-size: 13px;
    color: var(--km-text-soft);
    text-decoration: none;
}

.km-drawer-section { padding: 14px 12px 8px; }
.km-drawer-section + .km-drawer-section { border-top: 1px solid var(--km-line); }
.km-drawer-section-title {
    padding: 0 6px 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--km-text-mute, #888);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.km-drawer-link,
.km-drawer-link-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 8px;
    color: var(--km-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    line-height: 1.3;
}
.km-drawer-link:active,
.km-drawer-link-button:active { background: rgba(255, 255, 255, 0.04); }

.km-drawer-cat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 8px;
    color: var(--km-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
}
.km-drawer-cat:active { background: rgba(224, 17, 95, 0.08); color: var(--km-accent, #E0115F); }
.km-drawer-cat-icon {
    width: 32px;
    height: 32px;
    background: rgba(224, 17, 95, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.km-drawer-cat-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(1.1);
}

.km-drawer-pill {
    background: var(--km-accent, #E0115F);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 10px;
    line-height: 1.5;
}
.km-drawer-logout-form { margin: 0; padding: 0; }

body.km-drawer-open { overflow: hidden; }

/* ----- Mobile-only "Browse all categories" CTA ----- */
.km-mobile-cats-cta { display: none; }

/* ----- All mobile rules ----- */
@media (max-width: 760px) {

    /* Tighter hero: drop fixed height, use natural content height with controlled padding */
    .km-hero-backdrop {
        height: auto;
        min-height: 0;
        padding: 44px 0 52px;
    }
    .km-hero-backdrop-eyebrow { margin-bottom: 14px; }
    .km-hero-backdrop-headline { margin-bottom: 16px; }

    /* Header layout: 3-column grid, burger | brand | mail */
    .km-header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 8px;
        padding: 0 12px;
        height: 60px;
    }
    .km-burger { display: inline-flex; justify-self: start; }
    .km-mobile-mail { display: inline-flex; justify-self: end; }
    .km-brand-mark { justify-self: center; margin: 0; }

    /* Hide desktop nav items on mobile */
    .km-nav,
    .kmnv,
    .km-creator-group { display: none !important; }

    /* Compressed Why */
    .km-why { padding: 16px 0 !important; }
    .km-why-grid { display: none; }
    .km-why-rail {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding: 0 12px;
        font-family: var(--km-sans);
        font-size: 10px;
        color: var(--km-text-soft, #b0b0b0);
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }
    .km-why-pill { font-weight: 600; white-space: nowrap; }
    .km-why-sep {
        width: 4px;
        height: 4px;
        background: var(--km-accent, #E0115F);
        border-radius: 50%;
        flex-shrink: 0;
    }

    /* Hide bottom category grid on mobile (drawer + CTA replace it) */
    .km-hide-mobile { display: none !important; }

    /* Show the mobile-only CTA */
    .km-section-first { padding-bottom: 20px; }
    .km-mobile-cats-cta {
        display: block;
        padding: 0 0 28px;
    }
    .km-cats-cta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 18px 20px;
        background: linear-gradient(135deg, rgba(224, 17, 95, 0.14), rgba(224, 17, 95, 0.04));
        border: 1px solid rgba(224, 17, 95, 0.4);
        border-radius: 12px;
        color: var(--km-text);
        font-weight: 500;
        font-size: 15px;
        letter-spacing: 0.02em;
        text-decoration: none;
    }
    .km-cats-cta-arrow {
        color: var(--km-accent, #E0115F);
        font-size: 18px;
        font-weight: 600;
    }
    .km-cats-cta:active {
        background: linear-gradient(135deg, rgba(224, 17, 95, 0.2), rgba(224, 17, 95, 0.08));
    }
}

/* ==================================================================
   /buyers.php  -  Buyer directory
   ================================================================== */

.km-buyers-section { }

.km-buyers-header { margin-bottom: var(--km-space-5); }
.km-buyers-eyebrow {
    display: inline-block;
    color: var(--km-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.km-buyers-title { font-size: 36px; font-weight: 800; margin: 0 0 6px 0; line-height: 1.1; }
.km-buyers-lede  { color: var(--km-text-soft); font-size: 14px; margin: 0; }
.km-buyers-lede strong { color: var(--km-text); font-weight: 600; }
.km-buyers-clear { color: var(--km-accent); text-decoration: none; }
.km-buyers-clear:hover { text-decoration: underline; }

/* Section heading shared by featured + filter blocks. Small,
   uppercase, accent-coloured. */
.km-buyers-section-h {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--km-text-soft);
    margin: 0 0 var(--km-space-3) 0;
}

/* Featured strip: 3 across at desktop, 2 then 1 below. */
.km-buyers-featured-wrap { margin-bottom: var(--km-space-5); }
.km-buyers-featured {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--km-space-3);
}
@media (max-width: 900px) { .km-buyers-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .km-buyers-featured { grid-template-columns: 1fr; } }

.km-buyers-fcard {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 20px 18px;
    background: var(--km-surface);
    border: 1px solid var(--km-line);
    border-radius: var(--km-radius);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s, transform 0.18s;
}
.km-buyers-fcard:hover {
    border-color: var(--km-accent);
    transform: translateY(-2px);
}
.km-buyers-fcard-avatar { width: 64px; height: 64px; }
.km-buyers-fcard-name   { font-size: 15px; font-weight: 700; line-height: 1.2; }
.km-buyers-fcard-handle { font-size: 12px; color: var(--km-text-soft); letter-spacing: 0.02em; }

/* Filter chip row */
.km-buyers-filter { margin-bottom: var(--km-space-4); }
.km-buyers-filter-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--km-text-soft);
    margin-bottom: 10px;
}
.km-buyers-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.km-buyer-chip {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--km-line);
    border-radius: 999px;
    background: var(--km-surface);
    color: var(--km-text-soft);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    white-space: nowrap;
}
.km-buyer-chip:hover { color: var(--km-text); border-color: var(--km-text-soft); }
.km-buyer-chip.is-active {
    background: var(--km-accent);
    border-color: var(--km-accent);
    color: #fff;
}

/* Browse grid: 5 across at wide desktop, reflowing down. */
.km-buyers-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--km-space-3);
}
@media (max-width: 1100px) { .km-buyers-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .km-buyers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .km-buyers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.km-buyers-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 16px 12px;
    background: var(--km-surface);
    border: 1px solid var(--km-line);
    border-radius: var(--km-radius);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s, transform 0.18s;
}
.km-buyers-card:hover {
    border-color: var(--km-accent);
    transform: translateY(-2px);
}
.km-buyers-card-avatar { width: 48px; height: 48px; }
.km-buyers-card-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 2px;
}

/* Shared chip pill style (used inside featured + browse cards). */
.km-buyers-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-top: 2px;
}
.km-buyer-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(224, 17, 95, 0.10);
    border: 1px solid rgba(224, 17, 95, 0.25);
    color: var(--km-text);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.5;
    white-space: nowrap;
}
.km-buyer-tag-more {
    background: transparent;
    border-color: var(--km-line);
    color: var(--km-text-soft);
}

.km-buyers-kinkcount {
    font-size: 10px;
    color: var(--km-text-soft);
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* Empty state for filtered views with no matches. */
.km-buyers-empty {
    padding: 40px 24px;
    border: 1px dashed var(--km-line);
    border-radius: var(--km-radius);
    background: rgba(255,255,255,0.015);
    text-align: center;
    color: var(--km-text-soft);
}
.km-buyers-empty p { margin: 0 0 10px 0; }
.km-buyers-empty p:last-child { margin-bottom: 0; }
