.design-v2 {
    /* freelance.css — /freelance marketplace page */

    /* ── Hero section ──────────────────────────────────────────── */
    .rac-hero {
        display: flex;
        align-items: center;
        padding: 1.5rem 2.5rem;
        min-height: auto;
        border-radius: 20px;
        margin-bottom: 2rem;
    }

    .rac-hero-full-width {
        background-image: url('../img/hero-bg.png');
        background-color: #070a13;
        /* Dark navy that matches the left edge of the image */
        background-size: auto 100%;
        background-position: right center;
        background-repeat: no-repeat;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    }

    .rac-hero-copy {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 55%;
        max-width: 600px;
        /* Keep text contained to the left */
    }

    .rac-hero-headline {
        font-size: var(--text-hero, 2.5rem);
        font-weight: 800;
        line-height: 1.1;
        color: var(--fg, #f1f5f9);
        margin: 0;
        letter-spacing: -0.02em;
    }

    .rac-hero-sub {
        font-size: var(--text-lg, 1.05rem);
        color: var(--fg-muted, #94a3b8);
        line-height: 1.55;
        margin: 0;
        max-width: 480px;
    }

    .rac-hero-search-wrap {
        position: relative;
        display: flex;
        flex-direction: row;
        gap: 1rem;
        align-items: center;
        width: 100%;
    }

    .rac-hero-search {
        flex-grow: 1;
        width: auto !important;
        font-size: var(--text-md, 0.92rem) !important;
        padding: 16px 24px !important;
        border-radius: var(--radius-pill, 999px) !important;
        background: rgba(15, 23, 42, 0.6) !important;
        backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
        transition: box-shadow 0.2s, border-color 0.2s !important;
    }

    .rac-hero-search-btn {
        border-radius: var(--radius-pill, 999px);
        padding: 16px 28px;
        font-size: var(--text-md, 0.92rem);
        font-weight: 700;
        white-space: nowrap;
        background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
        box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.2);
        color: #fff;
        border: none;
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .rac-hero-search-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    }

    .rac-hero-search:focus {
        border-color: rgba(249, 115, 22, 0.5) !important;
        box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2), 0 8px 30px rgba(249, 115, 22, 0.15) !important;
    }

    /* Hero Dropdowns */
    .rac-hero-dropdowns {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-top: -0.5rem;
    }

    .rac-hero-select {
        appearance: none;
        -webkit-appearance: none;
        display: inline-block !important;
        width: auto !important;
        background: rgba(15, 23, 42, 0.4);
        border: 1px solid rgba(249, 115, 22, 0.6);
        color: var(--fg, #f1f5f9);
        border-radius: var(--radius-pill, 999px);
        padding: 0.5rem 2.25rem 0.5rem 1.25rem;
        font-size: 0.85rem;
        font-weight: 500;
        backdrop-filter: blur(8px);
        background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23f97316%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
        background-repeat: no-repeat;
        background-position: right 0.85rem top 50%;
        background-size: 0.65rem auto;
        cursor: pointer;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .rac-hero-select:hover,
    .rac-hero-select:focus {
        border-color: rgba(249, 115, 22, 1);
        box-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
        outline: none;
    }

    /* Mockup Listings Styling */
    .rac-mockup-grid {
        margin-bottom: 3rem;
    }

    .rac-mockup-pricebox {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: linear-gradient(180deg, rgba(249, 115, 22, 0.15) 0%, rgba(249, 115, 22, 0.05) 100%);
        border: 1px solid rgba(249, 115, 22, 0.4);
        border-radius: 12px;
        padding: 0.5rem 1rem;
        box-shadow: inset 0 0 10px rgba(249, 115, 22, 0.1), 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .rac-price-label {
        font-size: 0.65rem;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.7);
        font-weight: 700;
        letter-spacing: 0.05em;
        margin-bottom: 2px;
    }

    .rac-price-value {
        color: var(--accent, #f97316);
        font-size: 1.35rem;
        font-weight: 800;
        line-height: 1;
        text-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
    }

    /* 4-way diagram */
    .rac-hero-diagram {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rac-fourway {
        position: relative;
        width: 280px;
        height: 240px;
        font-size: 0.85rem;
    }

    .rac-fourway-label {
        position: absolute;
        text-align: center;
        line-height: 1.3;
        color: var(--fg, #f1f5f9);
        font-weight: 600;
    }

    .rac-fourway-tl {
        top: 0;
        left: 0;
    }

    .rac-fourway-tr {
        top: 0;
        right: 0;
    }

    .rac-fourway-bl {
        bottom: 0;
        left: 0;
    }

    .rac-fourway-br {
        bottom: 0;
        right: 0;
    }

    .rac-fourway-center {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        font-weight: 700;
        font-size: 1.1rem;
        color: var(--fg, #f1f5f9);
        background: var(--bg-card, #151c2e);
        border: 1px solid var(--border, #1e293b);
        border-radius: var(--radius-md, 10px);
        padding: 12px 16px;
        z-index: 2;
    }

    /* Arrows — pure CSS lines */
    .rac-fourway-arrow {
        position: absolute;
        background: var(--border-hover, #334155);
        z-index: 1;
    }

    .rac-arrow-h-top {
        top: 22px;
        left: 70px;
        right: 70px;
        height: 2px;
    }

    .rac-arrow-h-bot {
        bottom: 22px;
        left: 70px;
        right: 70px;
        height: 2px;
    }

    .rac-arrow-v-left {
        left: 35px;
        top: 45px;
        bottom: 45px;
        width: 2px;
    }

    .rac-arrow-v-right {
        right: 35px;
        top: 45px;
        bottom: 45px;
        width: 2px;
    }

    /* ── Pitch strip ───────────────────────────────────────────── */
    .rac-pitch-strip {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin: 2rem 0;
        padding: 1.5rem 0;
        border-top: 1px solid var(--border, #1e293b);
    }

    .rac-pitch-item {
        text-align: center;
        padding: 1.25rem !important;
    }

    .rac-pitch-icon {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .rac-pitch-title {
        font-weight: 700;
        color: var(--fg, #f1f5f9);
        font-size: var(--text-md, 0.92rem);
        margin-bottom: 0.35rem;
    }

    .rac-pitch-desc {
        font-size: var(--text-sm, 0.82rem);
        line-height: 1.45;
    }

    /* ── Responsive hero / pitch ───────────────────────────────── */
    @media (max-width: 768px) {
        .rac-hero {
            grid-template-columns: 1fr;
            text-align: center;
            gap: 1.5rem;
            padding: 1.5rem 0 1rem;
        }

        .rac-hero-sub {
            max-width: none;
        }

        .rac-hero-cats {
            justify-content: center;
        }

        .rac-hero-diagram {
            display: none;
        }

        .rac-pitch-strip {
            grid-template-columns: 1fr;
        }
    }

    /* ── Tab bar ─────────────────────────────────────────────── */
    .rac-tabs {
        display: flex;
        gap: 6px;
        margin-bottom: 18px;
        border-bottom: 1px solid var(--border, #333);
        padding-bottom: 0;
        flex-wrap: wrap;
    }

    .rac-tab {
        padding: 8px 18px;
        border-radius: var(--radius-pill, 999px);
        border: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(20, 25, 40, 0.4);
        cursor: pointer;
        color: var(--muted, #888);
        font-size: 0.92rem;
        transition: all 0.2s;
        backdrop-filter: blur(8px);
    }

    .rac-tab:hover {
        color: var(--fg, #eee);
        background: rgba(255, 255, 255, 0.05);
    }

    .rac-tab.active {
        color: var(--nav, #38bdf8);
        border-color: rgba(56, 189, 248, 0.5);
        background: rgba(56, 189, 248, 0.1);
        box-shadow: 0 0 12px rgba(56, 189, 248, 0.2), inset 0 0 0 1px rgba(56, 189, 248, 0.1);
        font-weight: 600;
    }

    /* ── Filter / search bar ─────────────────────────────────── */
    .rac-filters {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 16px;
        align-items: center;
    }

    .rac-search {
        flex: 1;
        min-width: 180px;
        padding: 7px 12px;
        background: var(--card-bg, #1a1a2e);
        border: 1px solid var(--border, #333);
        border-radius: 6px;
        color: var(--fg, #eee);
        font-size: 0.9rem;
    }

    .rac-select {
        padding: 7px 10px;
        background: var(--card-bg, #1a1a2e);
        border: 1px solid var(--border, #333);
        border-radius: 6px;
        color: var(--fg, #eee);
        font-size: 0.88rem;
        cursor: pointer;
    }

    /* ── Listing grid ────────────────────────────────────────── */
    .rac-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1rem;
        margin-bottom: 20px;
    }

    .rac-card {
        background: linear-gradient(145deg, rgba(30, 35, 55, 0.6), rgba(15, 20, 35, 0.8));
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        padding: 1.25rem;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        gap: 10px;
        position: relative;
        overflow: hidden;
    }

    /* Base subtle glow */
    .rac-card::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 12px;
        padding: 1px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .rac-card:hover {
        transform: translateY(-4px);
        border-color: rgba(249, 115, 22, 0.5);
        background: linear-gradient(145deg, rgba(35, 40, 65, 0.7), rgba(15, 20, 35, 0.9));
        box-shadow: 0 10px 30px -10px rgba(249, 115, 22, 0.3),
            0 0 15px rgba(249, 115, 22, 0.15),
            inset 0 0 20px rgba(249, 115, 22, 0.05);
    }

    .rac-card:hover::before {
        background: linear-gradient(180deg, rgba(249, 115, 22, 0.8), rgba(249, 115, 22, 0.1));
    }

    .rac-card-title {
        font-size: 0.97rem;
        font-weight: 600;
        color: var(--fg, #eee);
        margin: 0;
        line-height: 1.35;
    }

    .rac-card-desc {
        font-size: 0.84rem;
        color: var(--muted, #aaa);
        margin: 0;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .rac-card-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-top: 2px;
    }

    .rac-tag {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 0.72rem;
        border: 1px solid #3f3f46;
        color: #a1a1aa;
    }

    .rac-card-meta {
        font-size: 0.8rem;
        color: var(--muted, #888);
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
        margin-top: auto;
        padding-top: 6px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .rac-price {
        font-family: var(--mono-font, monospace);
        font-size: 1rem;
        font-weight: 700;
        color: #f97316;
        /* orange-500 */
    }

    .rac-cat-badge {
        font-size: 0.7rem;
        padding: 2px 8px;
        border-radius: 4px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        background: var(--border, #2a2a4a);
        color: var(--muted, #aaa);
    }

    /* Per-category badge colours */
    .rac-cat-badge.rac-cat-coding,
    .rac-cat-badge.rac-cat-tech {
        background: #1d4ed8;
        color: #fff;
    }

    .rac-cat-badge.rac-cat-design,
    .rac-cat-badge.rac-cat-creative {
        background: #7e22ce;
        color: #fff;
    }

    .rac-cat-badge.rac-cat-marketing {
        background: #15803d;
        color: #fff;
    }

    .rac-cat-badge.rac-cat-research,
    .rac-cat-badge.rac-cat-data {
        background: #b45309;
        color: #fff;
    }

    .rac-cat-badge.rac-cat-writing {
        background: #0e7490;
        color: #fff;
    }

    .rac-cat-badge.rac-cat-translation {
        background: #4338ca;
        color: #fff;
    }

    .rac-cat-badge.rac-cat-consulting {
        background: #0f766e;
        color: #fff;
    }

    .rac-cat-badge.rac-cat-general,
    .rac-cat-badge.rac-cat-other {
        background: #3f3f46;
        color: #a1a1aa;
    }

    .rac-tier-badge {
        font-size: 0.7rem;
        padding: 2px 7px;
        border-radius: 20px;
        font-weight: 700;
    }

    .rac-tier-C2 {
        background: #3a2a6a;
        color: #c4a8ff;
    }

    .rac-tier-C1 {
        background: #1a3a2a;
        color: #6affaa;
    }

    .rac-tier-C0 {
        background: #2a2a2a;
        color: #888;
    }

    /* ── Empty / loading states ──────────────────────────────── */
    .rac-empty {
        padding: 32px;
        text-align: center;
        color: var(--muted, #888);
        font-size: 0.9rem;
    }

    .rac-skeleton-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 14px;
    }

    .rac-skeleton {
        background: linear-gradient(90deg, var(--card-bg, #1a1a2e) 25%, #252545 50%, var(--card-bg, #1a1a2e) 75%);
        background-size: 400% 100%;
        animation: rac-shimmer 1.4s infinite;
        border-radius: 10px;
    }

    .rac-skeleton-card {
        height: 140px;
    }

    @keyframes rac-shimmer {
        0% {
            background-position: 100% 50%;
        }

        100% {
            background-position: 0% 50%;
        }
    }

    /* ── Load more button ────────────────────────────────────── */
    .rac-load-more {
        display: block;
        margin: 8px auto 20px;
        padding: 8px 28px;
        background: none;
        border: 1px solid var(--nav, #38bdf8);
        color: var(--nav, #38bdf8);
        border-radius: 6px;
        cursor: pointer;
        font-size: 0.88rem;
        transition: background 0.15s;
    }

    .rac-load-more:hover {
        background: rgba(56, 189, 248, 0.12);
    }

    .rac-load-more:disabled {
        opacity: 0.5;
        cursor: default;
    }

    /* ── Modal / detail overlay ──────────────────────────────── */
    .rac-modal-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        z-index: 1000;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 40px 16px 20px;
        overflow-y: auto;
    }

    .rac-modal {
        background: var(--card-bg, #12122a);
        border: 1px solid var(--border, #333);
        border-radius: 12px;
        padding: 24px;
        width: 100%;
        max-width: 540px;
        position: relative;
    }

    .rac-modal-close {
        position: absolute;
        top: 14px;
        right: 16px;
        background: none;
        border: none;
        font-size: 1.3rem;
        cursor: pointer;
        color: var(--muted, #888);
        line-height: 1;
    }

    .rac-modal-close:hover {
        color: var(--fg, #eee);
    }

    .rac-modal h2 {
        margin: 0 0 6px;
        font-size: 1.1rem;
        color: var(--fg, #eee);
        padding-right: 28px;
    }

    .rac-modal-desc {
        font-size: 0.88rem;
        color: var(--muted, #aaa);
        margin: 8px 0 16px;
        line-height: 1.55;
    }

    .rac-modal label {
        display: block;
        font-size: 0.82rem;
        color: var(--muted, #aaa);
        margin-bottom: 4px;
    }

    .rac-modal input[type="datetime-local"],
    .rac-modal input[type="text"],
    .rac-modal textarea {
        width: 100%;
        box-sizing: border-box;
        padding: 7px 10px;
        background: var(--bg, #0e0e1e);
        border: 1px solid var(--border, #333);
        border-radius: 6px;
        color: var(--fg, #eee);
        font-size: 0.88rem;
        margin-bottom: 12px;
    }

    .rac-modal input[type="datetime-local"] {
        color-scheme: dark;
    }

    .rac-modal input[type="datetime-local"]::-webkit-calendar-picker-indicator {
        filter: invert(1) brightness(1.25);
        opacity: 1;
        cursor: pointer;
    }

    .rac-book-price {
        font-size: 0.88rem;
        color: var(--accent, #ff8a2a);
        font-weight: 600;
        margin-bottom: 14px;
    }

    /* ── My Listings / My Bookings tables ────────────────────── */
    .rac-table-wrap {
        overflow-x: auto;
    }

    .rac-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.85rem;
    }

    .rac-table th {
        text-align: left;
        padding: 8px 10px;
        font-weight: 600;
        color: var(--muted, #888);
        border-bottom: 1px solid var(--border, #333);
        white-space: nowrap;
    }

    .rac-table td {
        padding: 9px 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: var(--fg, #ddd);
        vertical-align: middle;
    }

    .rac-table tr:last-child td {
        border-bottom: none;
    }

    .rac-status-badge {
        font-size: 0.72rem;
        padding: 2px 8px;
        border-radius: 20px;
        font-weight: 600;
        white-space: nowrap;
    }

    .rac-status-pending {
        background: #2a2a1a;
        color: #e0c060;
    }

    .rac-status-confirmed {
        background: #1a2a3a;
        color: #60b0e0;
    }

    .rac-status-in_progress {
        background: #1a2a2a;
        color: #50d0c0;
    }

    .rac-status-completed {
        background: #1a3a1a;
        color: #60e080;
    }

    .rac-status-cancelled {
        background: #2a1a1a;
        color: #e06060;
    }

    .rac-status-disputed {
        background: #2a1a2a;
        color: #d060d0;
    }

    /* ── Inline action buttons ───────────────────────────────── */
    .rac-action-row {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
    }

    .rac-btn-sm {
        padding: 4px 12px;
        font-size: 0.78rem;
        border-radius: 5px;
        border: 1px solid var(--border, #444);
        background: none;
        color: var(--fg, #ddd);
        cursor: pointer;
        transition: background 0.12s, border-color 0.12s;
        white-space: nowrap;
    }

    .rac-btn-sm:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .rac-btn-sm.primary {
        border-color: var(--accent, #7c6af7);
        color: var(--accent, #7c6af7);
    }

    .rac-btn-sm.primary:hover {
        background: rgba(124, 106, 247, 0.15);
    }

    .rac-btn-sm.danger {
        border-color: #e06060;
        color: #e06060;
    }

    .rac-btn-sm.danger:hover {
        background: rgba(224, 96, 96, 0.12);
    }

    /* ── Create listing form ─────────────────────────────────── */
    .rac-create-form {
        background: var(--card-bg, #1a1a2e);
        border: 1px solid var(--border, #333);
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 20px;
    }

    .rac-create-form h3 {
        margin: 0 0 14px;
        font-size: 0.97rem;
    }

    .rac-create-form label {
        display: block;
        font-size: 0.8rem;
        color: var(--muted, #aaa);
        margin-bottom: 4px;
    }

    .rac-create-form input,
    .rac-create-form textarea,
    .rac-create-form select {
        width: 100%;
        box-sizing: border-box;
        padding: 7px 10px;
        background: var(--bg, #0e0e1e);
        border: 1px solid var(--border, #333);
        border-radius: 6px;
        color: var(--fg, #eee);
        font-size: 0.87rem;
        margin-bottom: 10px;
    }

    .rac-msg {
        font-size: 0.82rem;
        margin-top: 8px;
        padding: 6px 10px;
        border-radius: 5px;
    }

    .rac-msg.ok {
        background: #192b19;
        color: #6fe07a;
    }

    .rac-msg.err {
        background: #2b1919;
        color: #e07a6f;
    }

    /* ── Modal tabs (Slice B1) ───────────────────────────────── */
    .rac-modal-header {
        padding-right: 28px;
        margin-bottom: 14px;
    }

    .rac-modal-header h2 {
        margin: 8px 0 4px;
        font-size: 1.1rem;
        color: var(--fg, #eee);
    }

    .rac-modal-tabs {
        display: flex;
        gap: 2px;
        border-bottom: 1px solid #27272a;
        margin: 0 -24px 16px;
        padding: 0 24px;
    }

    .rac-modal-tab {
        background: none;
        border: none;
        border-bottom: 2px solid transparent;
        padding: 8px 16px;
        font-size: 0.85rem;
        color: var(--muted, #888);
        cursor: pointer;
        margin-bottom: -1px;
        transition: color 0.12s, border-color 0.12s;
    }

    .rac-modal-tab:hover {
        color: var(--fg, #eee);
    }

    .rac-modal-tab.active {
        color: #f97316;
        border-bottom-color: #f97316;
        font-weight: 600;
    }

    .rac-modal-pane {
        min-height: 80px;
    }

    /* ── Modal provider info ─────────────────────────────────── */
    .rac-modal-provider-headline {
        font-size: 0.88rem;
        color: var(--muted, #aaa);
        font-style: italic;
        margin: 12px 0 4px;
    }

    .rac-modal-provider-details {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        font-size: 0.8rem;
        color: var(--muted, #aaa);
        margin-bottom: 12px;
    }

    /* ── Comments (Slice B3 UI) ──────────────────────────────── */
    .rac-comment {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 10px 0;
    }

    .rac-comment:last-child {
        border-bottom: none;
    }

    .rac-comment-meta {
        font-size: 0.78rem;
        color: var(--muted, #888);
        margin-bottom: 4px;
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .rac-comment-meta strong {
        color: var(--fg, #ddd);
    }

    .rac-comment-body {
        font-size: 0.87rem;
        color: var(--fg, #ddd);
        margin: 0;
        line-height: 1.5;
    }

    .rac-comment-form {
        border-top: 1px solid #27272a;
        padding-top: 12px;
        margin-top: 12px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .rac-comment-form textarea {
        width: 100%;
        box-sizing: border-box;
        padding: 8px 10px;
        background: #09090b;
        border: 1px solid #27272a;
        border-radius: 6px;
        color: var(--fg, #eee);
        font-size: 0.87rem;
        resize: vertical;
    }

    /* ── Create form layout (Slice D) ───────────────────────────*/
    .rac-form-row {
        margin-bottom: 10px;
    }

    .rac-form-row label {
        display: block;
        font-size: 0.8rem;
        color: var(--muted, #aaa);
        margin-bottom: 4px;
    }

    .rac-form-2col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    @media (max-width: 520px) {
        .rac-form-2col {
            grid-template-columns: 1fr;
        }
    }

    .rac-required {
        color: #f97316;
        margin-left: 2px;
    }

    .rac-hint {
        color: var(--muted, #888);
        font-size: 0.75rem;
        font-weight: 400;
    }

    /* ── Book form section ───────────────────────────────────── */
    .rac-book-form {
        border-top: 1px solid #27272a;
        padding-top: 4px;
        margin-top: 8px;
    }

    .rac-book-form h4 {
        font-size: 0.9rem;
        color: var(--fg, #eee);
        font-weight: 600;
    }

    /* ── Bounty filter bar ────────────────────────────────────── */
    .rac-filter-bar {
        margin-bottom: 1.25rem;
    }

    .rac-cat-emoji-bar {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .rac-cat-btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 6px 14px;
        border-radius: var(--radius-pill, 999px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(20, 25, 40, 0.5);
        color: var(--muted, #888);
        font-size: 0.82rem;
        font-weight: 500;
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.2s;
        backdrop-filter: blur(8px);
    }

    .rac-cat-btn:hover {
        color: var(--fg, #eee);
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .rac-cat-btn.active {
        color: #f97316;
        border-color: rgba(249, 115, 22, 0.5);
        background: rgba(249, 115, 22, 0.1);
        box-shadow: 0 0 10px rgba(249, 115, 22, 0.15);
        font-weight: 600;
    }

    .rac-filter-controls {
        display: flex;
        gap: 12px;
        align-items: center;
        flex-wrap: wrap;
        margin-top: 8px;
    }

    .rac-sort-tabs {
        display: flex;
        gap: 4px;
    }

    .rac-sort-btn {
        padding: 5px 14px;
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(20, 25, 40, 0.4);
        color: var(--muted, #888);
        font-size: 0.82rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
    }

    .rac-sort-btn:hover {
        color: var(--fg, #eee);
        background: rgba(255, 255, 255, 0.05);
    }

    .rac-sort-btn.active {
        color: #f97316;
        border-color: rgba(249, 115, 22, 0.5);
        background: rgba(249, 115, 22, 0.08);
    }

    .rac-price-range {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-left: auto;
    }

    .rac-price-input {
        width: 90px;
        padding: 5px 10px;
        background: var(--card-bg, #1a1a2e);
        border: 1px solid var(--border, #333);
        border-radius: 6px;
        color: var(--fg, #eee);
        font-size: 0.82rem;
    }

    .rac-price-input:focus {
        border-color: rgba(249, 115, 22, 0.5);
        outline: none;
        box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.15);
    }

    .rac-price-dash {
        color: var(--muted, #666);
        font-size: 0.8rem;
    }

    /* ── Bounty row/list layout ───────────────────────────────── */
    .rac-bounty-list {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 20px;
    }

    .rac-bounty-row {
        display: flex;
        align-items: stretch;
        background: linear-gradient(145deg, rgba(30, 35, 55, 0.5), rgba(15, 20, 35, 0.7));
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }

    .rac-bounty-row:hover {
        border-color: rgba(249, 115, 22, 0.4);
        background: linear-gradient(145deg, rgba(35, 40, 65, 0.6), rgba(15, 20, 35, 0.8));
        box-shadow: 0 6px 24px -8px rgba(249, 115, 22, 0.2),
            0 0 12px rgba(249, 115, 22, 0.1);
        transform: translateX(4px);
    }

    /* Left: heart column */
    .rac-bounty-heart {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        min-width: 48px;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        flex-shrink: 0;
    }

    .rac-heart-icon {
        font-size: 1.2rem;
        color: var(--muted, #666);
        cursor: pointer;
        transition: color 0.2s, transform 0.2s;
        user-select: none;
    }

    .rac-heart-icon:hover {
        color: #ef4444;
        transform: scale(1.2);
    }

    /* Center: content area */
    .rac-bounty-content {
        flex: 1;
        padding: 1rem 1.25rem;
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-width: 0;
    }

    .rac-bounty-header {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .rac-bounty-title {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--fg, #f1f5f9);
        margin: 0;
        line-height: 1.3;
    }

    .rac-bounty-desc {
        font-size: 0.84rem;
        color: var(--muted, #94a3b8);
        margin: 0;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .rac-bounty-meta {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        align-items: center;
        margin-top: 4px;
    }

    .rac-bounty-chip {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        font-size: 0.72rem;
        color: var(--muted, #94a3b8);
        background: rgba(255, 255, 255, 0.05);
        padding: 2px 8px;
        border-radius: 4px;
        white-space: nowrap;
    }

    .rac-bounty-verified {
        background: rgba(34, 197, 94, 0.1);
        color: #4ade80;
        border: 1px solid rgba(34, 197, 94, 0.2);
    }

    /* Right: price column */
    .rac-bounty-price-col {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        padding: 1rem 1.25rem;
        min-width: 140px;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        gap: 4px;
        flex-shrink: 0;
    }

    .rac-bounty-price {
        font-family: var(--mono-font, monospace);
        font-size: 1.15rem;
        font-weight: 800;
        color: #22c55e;
        line-height: 1;
    }

    .rac-bounty-price-type {
        font-size: 0.7rem;
        color: var(--muted, #888);
        font-weight: 500;
    }

    .rac-bounty-sponsor {
        font-size: 0.75rem;
        color: var(--muted, #94a3b8);
        margin-top: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 140px;
    }

    /* ── Bounty row responsive ───────────────────────────────── */
    @media (max-width: 640px) {
        .rac-bounty-row {
            flex-direction: column;
        }

        .rac-bounty-heart {
            width: 100%;
            border-right: none;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            padding: 6px;
            min-width: auto;
        }

        .rac-bounty-price-col {
            border-left: none;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            flex-direction: row;
            align-items: center;
            gap: 8px;
            min-width: auto;
        }

        .rac-filter-controls {
            flex-direction: column;
            align-items: stretch;
        }

        .rac-price-range {
            margin-left: 0;
        }
    }
}