/* ============================================================
   VRCommissions - Dark Hypermodern Theme
   Built on Bootstrap 5.2.3 with CSS custom properties.
   ============================================================ */

/* --- Palette --- */
:root {
    --bg: #0d0d0d;
    --surface: #161618;
    --surface-raised: #1e1e22;
    --border: #2a2a2e;
    --text: #e8e8ea;
    --text-muted: #a0a0a8;
    --accent: #7c5cff;
    --accent-hover: #9478ff;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --radius: 6px;
    --shadow-card: 0 1px 3px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.03);
    --shadow-card-hover: 0 4px 16px rgba(0,0,0,.5), 0 0 0 1px rgba(124,92,255,.15);
    --transition: 150ms ease;
}

/* --- Base --- */
html {
    background: var(--bg);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    letter-spacing: -0.02em;
}

h1 { font-weight: 300; font-size: 2rem; }
h2 { font-weight: 400; font-size: 1.5rem; letter-spacing: -0.01em; }
h3 { font-weight: 400; font-size: 1.25rem; letter-spacing: -0.01em; }

p { color: var(--text-muted); }

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

hr {
    border-color: var(--border);
    opacity: 1;
}

/* --- Layout --- */
/* The page uses a fixed-width sidebar on the left and a flex-grow main column.
   The main column itself is a flex column so the footer pins to the bottom on
   short pages. body-content takes the remaining vertical space. */
.site-layout {
    display: flex;
    min-height: 100vh;
}

.site-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.body-content {
    flex: 1 1 auto;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

@media (max-width: 575.98px) {
    .body-content {
        padding: 1.25rem 1rem;
    }
}

/* --- Buttons --- */
.btn {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.btn-outline-primary {
    border-color: var(--accent);
    color: var(--accent);
    background: transparent;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-secondary,
.btn-outline-secondary {
    border-color: var(--border);
    color: var(--text);
    background: transparent;
}
.btn-secondary:hover,
.btn-outline-secondary:hover {
    background: var(--surface-raised);
    border-color: var(--text-muted);
    color: var(--text);
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
    color: #0d0d0d;
}
.btn-success:hover {
    background: #2dd4a0;
    border-color: #2dd4a0;
}

.btn-link {
    color: var(--accent);
    text-decoration: none;
    padding: 0;
}
.btn-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Ghost button - for navbar auth links */
.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 0.35rem 1rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.btn-ghost:hover {
    border-color: var(--text-muted);
    color: var(--text);
    background: transparent;
}
.btn-ghost-accent {
    border-color: var(--accent);
    color: var(--accent);
}
.btn-ghost-accent:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* --- Forms --- */
.form-control,
.form-select {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius);
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus,
.form-select:focus {
    background: var(--surface);
    border-color: var(--accent);
    color: var(--text);
    box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.25);
}
.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

/* Append a red asterisk to labels of required fields so sellers can scan a
   form and see at a glance what must be filled in. Pair with
   aria-required="true" on the input for screen reader users. */
.form-label-required::after {
    content: " *";
    color: var(--danger);
    font-weight: 600;
}

/* Override default max-width on inputs */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="select"] {
    max-width: 100%;
}

/* ASP.NET textboxes that don't have form-control */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
textarea,
select {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius);
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    background: var(--surface);
    border-color: var(--accent);
    color: var(--text);
    outline: none;
    box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.25);
}

/* --- Cards --- */
.card {
    background: var(--surface);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-card-hover);
}

.card-body {
    padding: 1rem;
}

.card-title {
    color: var(--text);
    font-weight: 400;
    font-size: 1rem;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Category card --- */
a.category-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.category-card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
}

.category-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card-img {
    transform: scale(1.05);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.15) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    transition: background var(--transition);
}

.category-card:hover .category-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,.2) 100%);
}

.category-card-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.category-card-text {
    color: rgba(255,255,255,.7);
    font-size: 0.78rem;
    margin: 0;
    line-height: 1.4;
}

/* --- Listing card --- */
.listing-card {
    background: var(--surface);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.listing-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.listing-card-img-link {
    display: block;
}

.listing-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.listing-card-body {
    padding: 0.85rem 1rem;
}

.listing-card-category {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.listing-card-category a {
    color: inherit;
    text-decoration: none;
}

.listing-card-category a:hover {
    color: var(--accent);
}

.listing-card-title {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-card-price {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.listing-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.listing-card-meta img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.listing-card-views {
    margin-left: auto;
    color: var(--text-muted);
    white-space: nowrap;
}

.listing-card-rating {
    margin-left: auto;
    color: var(--warning);
}

/* When both views and rating render in the same meta row, the views span's
   margin-left: auto already pushes everything to the right; the rating's
   own auto margin collapses to zero so the two sit side-by-side instead of
   getting split across the row. */
.listing-card-views + .listing-card-rating {
    margin-left: 0;
}

/* --- Creator directory card (BrowseCreators.aspx) --- */
.creator-card {
    background: var(--surface);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}
.creator-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.creator-card-banner-link {
    display: block;
}

.creator-card-banner {
    width: 100%;
    aspect-ratio: 4 / 1;
    object-fit: cover;
    display: block;
    background: var(--border);
}

.creator-card-body {
    padding: 0 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.creator-card-avatar-link {
    display: inline-block;
    margin-top: -28px;
    margin-bottom: 0.5rem;
}

.creator-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--surface);
    background: var(--surface);
    display: block;
}

.creator-card-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
}

.creator-card-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
}

.creator-card-name:hover {
    color: var(--accent);
}

.creator-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.creator-card-rating {
    color: var(--warning);
    margin-left: auto;
}

.creator-card-bio {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0 0 0.75rem;
    flex: 1;
}

.creator-card-stats {
    font-size: 0.8rem;
    color: var(--text);
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
}

/* --- Profile page --- */
.profile-banner {
    border-radius: var(--radius);
    overflow: hidden;
    max-height: 250px;
}

.profile-banner-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
}

.profile-avatar-sm {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

/* Portfolio scroll strip. The portfolio section sits between the
   "Listings" header and the actual listings grid, so a tall vertical
   layout used to push listings off the first viewport. The strip
   collapses the section to one row of fixed-width cards with native
   touch/wheel scrolling and snap points; an image-heavy creator no
   longer dominates the column. Negative margins let the strip bleed
   to the column edges so the last card hints there's more to swipe. */
.portfolio-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.portfolio-scroll-item {
    flex: 0 0 280px;
    max-width: 280px;
    scroll-snap-align: start;
}

.portfolio-scroll-item .card {
    height: 100%;
}

/* Portfolio media inside the strip is constrained by the card width
   (280px). Images and videos shrink to fit; the 3D model viewer and
   code blocks keep their fixed height. Cap image/video heights too so
   a portrait image doesn't stretch a card taller than the others. */
.portfolio-scroll-item img,
.portfolio-scroll-item video {
    max-height: 200px;
    width: 100%;
    object-fit: cover;
}

/* Wrapper for the portfolio strip + its prev/next arrows. The strip
   itself stays a pure scroll container; the wrapper provides the
   relative-positioning context the arrows hang off. */
.portfolio-scroll-wrap {
    position: relative;
}

.portfolio-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition);
}

.portfolio-scroll-arrow:hover,
.portfolio-scroll-arrow:focus {
    background: rgba(0, 0, 0, 0.8);
    outline: none;
}

.portfolio-scroll-prev { left: -6px; }
.portfolio-scroll-next { right: -6px; }

/* --- Listing image carousel (Profile page) ---
   Multi-image listings render a stack of <img>s in this container and
   cycle the .active one every few seconds (reviewer note #32). Sized
   identically to .listing-card-img so a one-image card and a five-image
   card look exactly the same at rest. The card root already has
   overflow:hidden so absolutely-positioned slides can't bleed out. */
.listing-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.listing-carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.listing-carousel-slide.active {
    opacity: 1;
}

.listing-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition), background var(--transition);
}

.listing-carousel-arrow:hover,
.listing-carousel-arrow:focus {
    background: rgba(0, 0, 0, 0.75);
    outline: none;
}

.listing-card-media:hover .listing-carousel-arrow,
.listing-carousel-arrow:focus {
    opacity: 1;
}

.listing-carousel-prev { left: 6px; }
.listing-carousel-next { right: 6px; }

/* Touch devices have no hover state to reveal the arrows on, so keep
   them dimly visible by default. */
@media (hover: none) {
    .listing-carousel-arrow {
        opacity: 0.7;
    }
}

/* --- View listing gallery --- */
.listing-gallery-main {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}

/* When the hero slot is a <video>, cap height so a 9:16 turntable doesn't
   blow out the layout. max-width: 100% keeps the player responsive. */
video.listing-gallery-main {
    max-width: 100%;
    max-height: 480px;
    height: auto;
    aspect-ratio: auto;
}

.listing-gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: border-color var(--transition);
}
.listing-gallery-thumb:hover {
    border-color: var(--accent);
}

/* Video tiles in the thumbnail strip share dimensions with image tiles
   so the gallery row stays even. The browser scales the video to fit. */
.listing-gallery-thumb-video {
    width: 120px;
    max-height: 80px;
    border-radius: 4px;
    border: 2px solid var(--border);
}

/* --- Alerts / panels --- */
.alert {
    border-radius: var(--radius);
    font-size: 0.85rem;
    border: none;
}
.alert-danger {
    background: rgba(248, 113, 113, 0.12);
    color: var(--danger);
}
.alert-success {
    background: rgba(52, 211, 153, 0.12);
    color: var(--success);
}
.alert-warning {
    background: rgba(251, 191, 36, 0.12);
    color: var(--warning);
}
.alert-info {
    background: rgba(124, 92, 255, 0.12);
    color: var(--accent);
}

/* --- Validation (ASP.NET validators) --- */
.text-danger {
    color: var(--danger) !important;
    font-size: 0.8rem;
}

.validation-summary-errors ul {
    margin-bottom: 0;
    padding-left: 1.2rem;
}

/* --- Badges --- */
.badge {
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    padding: 0.3em 0.6em;
    border-radius: 4px;
}
.badge-accent {
    background: rgba(124, 92, 255, 0.15);
    color: var(--accent);
}
.badge-success {
    background: rgba(52, 211, 153, 0.15);
    color: var(--success);
}
.badge-warning {
    background: rgba(251, 191, 36, 0.15);
    color: var(--warning);
}
.badge-danger {
    background: rgba(248, 113, 113, 0.15);
    color: var(--danger);
}
.badge-founding {
    background: linear-gradient(135deg, rgba(124,92,255,0.2), rgba(251,191,36,0.2));
    color: var(--warning);
}
.badge-vacation {
    background: rgba(52, 211, 153, 0.18);
    color: var(--success);
    padding: 0.15em 0.4em;
    font-size: 0.85rem;
    line-height: 1;
}

/* --- Tables --- */
.table {
    color: var(--text);
    border-color: var(--border);
}
.table > thead {
    border-bottom: 2px solid var(--border);
}
.table > thead th {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom-color: var(--border);
}
.table > tbody > tr > td {
    border-bottom-color: var(--border);
    vertical-align: middle;
}
.table-striped > tbody > tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.02);
}
.table-hover > tbody > tr:hover {
    background: var(--surface-raised);
}

/* --- Dropdown menus --- */
.dropdown-menu {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.dropdown-item {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
}
.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--surface-raised);
    color: var(--text);
}
.dropdown-divider {
    border-color: var(--border);
}

/* --- Pagination --- */
.page-link {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}
.page-link:hover {
    background: var(--surface-raised);
    border-color: var(--border);
    color: var(--text);
}
.page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.page-item.disabled .page-link {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-muted);
    opacity: 0.4;
}

/* --- Modal --- */
.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
}
.modal-header {
    border-bottom-color: var(--border);
}
.modal-footer {
    border-top-color: var(--border);
}
.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* --- Footer --- */
footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
}
footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* --- Notification badge --- */
.notification-badge {
    position: absolute;
    top: 2px;
    right: -4px;
    font-size: 0.65rem;
    padding: 0.2em 0.45em;
}

/* --- Notification list --- */
.notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.notification-item:hover {
    background: var(--surface-raised);
}
.notification-item.unread {
    border-left: 3px solid var(--accent);
}
.notification-item-text {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text);
}
.notification-item-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* --- Dashboard stat card --- */
.stat-card {
    background: var(--surface);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 1.25rem;
    text-align: center;
}
.stat-card-value {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text);
    letter-spacing: -0.02em;
}
.stat-card-label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* --- Order status badges --- */
.badge-status-requested { background: rgba(251,191,36,0.15); color: var(--warning); }
.badge-status-accepted { background: rgba(124,92,255,0.15); color: var(--accent); }
.badge-status-inprogress { background: rgba(124,92,255,0.15); color: var(--accent); }
.badge-status-delivered { background: rgba(52,211,153,0.15); color: var(--success); }
.badge-status-completed { background: rgba(52,211,153,0.2); color: var(--success); }
.badge-status-revisionrequested { background: rgba(251,191,36,0.15); color: var(--warning); }
.badge-status-cancelled { background: rgba(248,113,113,0.15); color: var(--danger); }
.badge-status-disputed { background: rgba(248,113,113,0.2); color: var(--danger); }

/* --- Utility --- */
.text-accent { color: var(--accent) !important; }
.text-muted  { color: var(--text-muted) !important; }
.bg-surface  { background: var(--surface) !important; }
.bg-surface-raised { background: var(--surface-raised) !important; }
.border-subtle { border-color: var(--border) !important; }

/* Section spacing helper */
.section { padding: 3rem 0; }

/* Uppercase label style */
.label-upper {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ============================================================
   Marketing / landing sections
   ============================================================ */

/* --- Hero --- */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-top: 1rem;
    margin-bottom: 3rem;
    min-height: 460px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(13,13,13,.92) 0%, rgba(13,13,13,.65) 45%, rgba(124,92,255,.25) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem 2.5rem;
    max-width: 640px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(124, 92, 255, 0.12);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 300;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1.25rem;
}

.hero h1 .accent {
    color: var(--accent);
    font-weight: 400;
}

.hero p.lead {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 540px;
    margin-bottom: 1.75rem;
}

.hero .btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
}

@media (max-width: 575px) {
    .hero { min-height: 380px; }
    .hero-content { padding: 2.5rem 1.5rem; }
    .hero h1 { font-size: 1.9rem; }
}

/* Compact hero variant for sub-pages */
.hero-compact {
    min-height: 280px;
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
}
.hero-compact .hero-content {
    padding: 2.5rem 2rem;
}
.hero-compact h1 {
    font-size: 2rem;
}

/* --- Stats strip --- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    margin-bottom: 3rem;
}

.stat-block {
    text-align: center;
    border-right: 1px solid var(--border);
    padding: 0.5rem 0.5rem;
}
.stat-block:last-child { border-right: none; }

.stat-block-value {
    font-size: 2rem;
    font-weight: 300;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.stat-block-label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

@media (max-width: 767px) {
    .stats-strip { grid-template-columns: repeat(2, 1fr); padding: 1.25rem; }
    .stat-block { border-right: none; padding: 0.75rem; }
    .stat-block:nth-child(odd) { border-right: 1px solid var(--border); }
    .stat-block:nth-child(-n+2) { border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
}

/* Welcome-rate framing. The headline 5% is the platform's launch buyer
   fee; alongside it we render a struck-through "10%" so visitors read
   the current rate as a discount off a higher anchor price. The strike
   element stays small so the live rate is still the loudest thing in
   the block; tag/banner variants reuse the same accent treatment in
   the comparison table and the prose callout. */
.welcome-rate-value {
    color: var(--accent);
    font-weight: 500;
}

.welcome-rate-strike {
    display: inline-block;
    margin-left: 0.25rem;
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    font-size: 0.6em;
    font-weight: 400;
    vertical-align: middle;
}

.stat-block-value .welcome-rate-strike {
    margin-left: 0;
    margin-right: 0.25rem;
    font-size: 1em;
    vertical-align: baseline;
}

.welcome-rate-strike-inline {
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.welcome-rate-tag {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.4rem;
    background: rgba(124, 92, 255, 0.15);
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    vertical-align: middle;
}

.welcome-rate-banner {
    padding: 0.75rem 1rem;
    background: rgba(124, 92, 255, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

/* --- Feature row (image + text alternating) --- */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}
.feature-row.reverse .feature-row-media {
    order: 2;
}
.feature-row.reverse .feature-row-text {
    order: 1;
}

.feature-row-media img {
    width: 100%;
    height: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.feature-row-text h2 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text);
}
.feature-row-text h2 .accent {
    color: var(--accent);
}
.feature-row-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
    .feature-row.reverse .feature-row-media,
    .feature-row.reverse .feature-row-text {
        order: initial;
    }
}

/* --- Testimonials --- */
.testimonial-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-quote {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    font-style: italic;
}
.testimonial-quote::before {
    content: "\201C";
    color: var(--accent);
    font-size: 1.5rem;
    margin-right: 0.15rem;
    line-height: 0;
    vertical-align: -0.35em;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.testimonial-author img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}
.testimonial-author-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.2;
}
.testimonial-author-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Final CTA panel --- */
.cta-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-raised);
    padding: 3rem 2.5rem;
    text-align: center;
    margin-top: 3rem;
    box-shadow: var(--shadow-card);
}
.cta-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(124,92,255,0.18), transparent 60%);
    pointer-events: none;
}
.cta-panel > * { position: relative; }
.cta-panel h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 0.75rem;
}
.cta-panel p {
    max-width: 540px;
    margin: 0 auto 1.75rem;
    font-size: 0.95rem;
}

/* --- Step / how-it-works card --- */
.step-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition), transform var(--transition);
}
.step-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}
.step-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(124, 92, 255, 0.15);
    color: var(--accent);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.step-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}
.step-card p {
    font-size: 0.85rem;
    margin: 0;
}

/* --- Contact card --- */
.contact-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition), transform var(--transition);
}
.contact-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}
.contact-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(124, 92, 255, 0.12);
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.contact-card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}
.contact-card p {
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
}
.contact-card a.btn {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
}

/* --- FAQ accordion-ish --- */
.faq-item {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-card);
}
.faq-item h3 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.faq-item p {
    font-size: 0.85rem;
    margin: 0;
}

/* Star rating radio list on review form */
.star-rating-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.star-rating-list label {
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text);
    padding: 0.3rem 0;
}

.star-rating-list input[type="radio"] {
    accent-color: var(--accent);
    margin-right: 0.5rem;
}

/* AI disclosure radio cards on Create/Edit Listing.
   The default RadioButtonList output is unstyled inputs+labels -
   we wrap them visually as click-friendly rows with breathing room. */
.ai-disclosure-radios {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ai-disclosure-radios label {
    cursor: pointer;
    color: var(--text);
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    display: block;
    transition: border-color 0.15s, background 0.15s;
}

.ai-disclosure-radios label:hover {
    border-color: var(--accent);
}

.ai-disclosure-radios input[type="radio"] {
    accent-color: var(--accent);
    margin-right: 0.5rem;
}

.ai-disclosure-radios input[type="radio"]:checked + label {
    border-color: var(--accent);
    background: var(--surface);
}

/* ============================================================
   Sidebar nav (replaces the old top navbar)
   ============================================================ */

.site-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 1.25rem 0.85rem;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1050;
}

.sidebar-brand {
    display: block;
    color: var(--accent) !important;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    padding: 0.25rem 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
    transition: color var(--transition), text-shadow var(--transition);
}
.sidebar-brand:hover,
.sidebar-brand:focus-visible {
    color: var(--accent-hover) !important;
    text-shadow: 0 0 12px rgba(124, 92, 255, 0.45);
}

/* --- Sidebar nav links --- */
.sidebar-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.sidebar-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 400;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}
.sidebar-nav-link:hover,
.sidebar-nav-link:focus {
    background: var(--surface-raised);
    color: var(--text);
}
.sidebar-nav-link.active {
    background: rgba(124, 92, 255, 0.12);
    color: var(--accent);
}
.sidebar-nav-link-admin {
    color: var(--warning) !important;
}
.sidebar-nav-icon {
    margin-right: 0.5rem;
    opacity: 0.85;
}
.sidebar-nav-section {
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0.85rem 0.75rem 0.25rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--border);
}
.sidebar-nav-section:first-child {
    border-top: 0;
    margin-top: 0;
}
/* The global .notification-badge style positions the badge absolutely against
   a small icon. Inside the sidebar nav link, justify-content: space-between
   already pushes it to the right edge, so reset to inline flow. */
.sidebar-nav-link .notification-badge {
    position: static;
    top: auto;
    right: auto;
}

/* --- Sidebar search --- */
.sidebar-search {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.sidebar-search-scope {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.4rem 1.75rem 0.4rem 0.75rem;
    font-size: 0.8rem;
    border-radius: var(--radius);
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
                      linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}
.sidebar-search-scope:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.2);
}
.sidebar-search-row {
    display: flex;
    align-items: stretch;
}
.sidebar-search-input {
    flex: 1 1 auto;
    min-width: 0;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
}
.sidebar-search-input::placeholder { color: var(--text-muted); }
.sidebar-search-input:focus {
    outline: none;
    border-color: var(--accent);
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.2);
}
.sidebar-search-button {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    color: var(--accent);
    padding: 0.4rem 0.7rem;
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.sidebar-search-button:hover,
.sidebar-search-button:focus {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    outline: none;
}

/* --- Sidebar bottom (auth buttons / user info) --- */
.sidebar-bottom {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.sidebar-user {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.sidebar-user-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}
.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.sidebar-user-avatar-link {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
    border-radius: 50%;
    transition: opacity 0.15s ease;
}
.sidebar-user-avatar-link:hover,
.sidebar-user-avatar-link:focus {
    opacity: 0.85;
}
.sidebar-user-info {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.15s ease;
}
.sidebar-user-info:hover,
.sidebar-user-info:focus {
    color: inherit;
    text-decoration: none;
    opacity: 0.85;
}
.sidebar-user-name {
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-set-username-link {
    color: var(--accent);
    text-decoration: underline;
}
.sidebar-set-username-link:hover,
.sidebar-set-username-link:focus {
    color: var(--accent);
    text-decoration: none;
}
.sidebar-user-email {
    color: var(--text-muted);
    font-size: 0.72rem;
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Mobile slide-out --- */
.sidebar-mobile-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1040;
}
.sidebar-mobile-brand {
    color: var(--accent) !important;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
}
.sidebar-mobile-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius);
    cursor: pointer;
}
.sidebar-mobile-toggle:hover,
.sidebar-mobile-toggle:focus {
    border-color: var(--text-muted);
    color: var(--accent);
    outline: none;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1045;
}
.sidebar-backdrop.open {
    display: block;
}

@media (max-width: 991.98px) {
    .sidebar-mobile-bar {
        display: flex;
    }
    .site-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        height: 100vh;
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }
    .site-sidebar.open {
        transform: translateX(0);
    }
}

/* --- Footer --- */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 3rem 1.5rem 1.25rem;
    margin-top: 4rem;
}
.site-footer-brand {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.site-footer-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 320px;
    margin: 0;
}
.site-footer-heading {
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.site-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer-links li { margin-bottom: 0.4rem; }
.site-footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.site-footer-links a:hover,
.site-footer-links a:focus-visible {
    color: var(--accent);
}
.site-footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ============================================================
   Accessibility + focus polish
   ============================================================ */

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 3px;
}
.btn:focus-visible {
    outline: 2px solid var(--accent-hover);
    outline-offset: 3px;
}
.sidebar-nav-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    color: var(--text);
}

/* ============================================================
   Review-driven tweaks
   ============================================================ */

/* Hero: make secondary button legible on the photo background. */
.hero .btn-outline-primary {
    background: rgba(13, 13, 13, 0.55);
    border-color: var(--accent-hover);
    color: #fff;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.hero .btn-outline-primary:hover,
.hero .btn-outline-primary:focus {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.hero-eyebrow {
    background: rgba(124, 92, 255, 0.22);
    color: #fff;
}

/* Category tile affordance. */
.category-card-cta {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(124, 92, 255, 0.9);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity var(--transition), transform var(--transition);
    z-index: 1;
}
.category-card:hover .category-card-cta,
.category-card:focus-visible .category-card-cta {
    opacity: 1;
    transform: translateY(0);
}
.category-card-count {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(124, 92, 255, 0.4);
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    margin-top: 0.4rem;
}

/* Listing card extra metadata. */
.listing-card-meta-bottom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    flex-wrap: wrap;
}
.listing-card-turnaround::before {
    content: "\23F1\0020";
    margin-right: 0.15rem;
    opacity: 0.7;
}

/* Testimonials illustrative label. */
.testimonials-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* Fee comparison mini-table inside a feature row. */
.fee-compare {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.fee-compare th,
.fee-compare td {
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
    text-align: left;
    color: var(--text);
}
.fee-compare th {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.fee-compare td.fee-us { color: var(--accent); font-weight: 500; }

/* ============================================================
   Seller onboarding checklist (Dashboard)
   ============================================================ */

.onboarding-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-card);
}
.onboarding-header {
    margin-bottom: 0.75rem;
}
.onboarding-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.onboarding-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.25rem;
    border-top: 1px solid var(--border);
}
.onboarding-item:first-child { border-top: 0; }
.onboarding-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    line-height: 1;
}
.onboarding-icon-done {
    background: var(--accent);
    color: #fff;
}
.onboarding-icon-todo {
    background: transparent;
    border: 1.5px solid var(--text-muted);
}
.onboarding-item-body { flex-grow: 1; min-width: 0; }
.onboarding-item-title {
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.2;
}
.onboarding-item-done .onboarding-item-title {
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: rgba(160, 160, 168, 0.4);
}
.onboarding-item-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.15rem;
}
.onboarding-action {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}
.onboarding-action:hover { color: var(--accent-hover); }
.onboarding-badge {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--success);
    background: rgba(52, 211, 153, 0.12);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

/* Content narrowed inside a full-width section. Lets the page heading align
   with the global container edge (same as Dashboard / MyOrders) while keeping
   text content readable at ~700px. */
.page-narrow {
    max-width: 700px;
}

/* Tab strip override. Bootstrap's default nav-tabs active state renders a
   white background that clashes with the dark theme; swap to the accent
   so tabs share the brand's purple identity. */
.nav-tabs {
    border-bottom-color: var(--border);
}
.nav-tabs .nav-link {
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-bottom-color: var(--border);
    font-size: 0.85rem;
    padding: 0.55rem 1rem;
    margin-bottom: -1px;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}
.nav-tabs .nav-link:hover {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border) var(--border) transparent var(--border);
}
.nav-tabs .nav-link.active {
    color: var(--accent);
    background: var(--surface);
    border-color: var(--border) var(--border) var(--surface) var(--border);
    border-bottom-width: 1px;
    font-weight: 500;
}
.nav-tabs .nav-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    color: var(--text);
}

/* Bootstrap btn-outline-light defaults to white on dark, which reads as a
   third brand color. Fold it into the accent palette so orders/actions use
   a single brand voice. */
.btn-outline-light {
    color: var(--text);
    border-color: var(--border);
    background: transparent;
}
.btn-outline-light:hover,
.btn-outline-light:focus {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

/* Brand-consistency remap: Bootstrap's default blues (primary/info) were
   leaking into status badges on MyOrders and the Admin pages, giving the
   platform a second brand color. Fold them into the accent so every badge
   the seller sees uses the same purple. */
.badge.bg-primary,
.badge.bg-info {
    background-color: rgba(124, 92, 255, 0.18) !important;
    color: var(--accent) !important;
}

/* Collapsed message from a banned user. The <summary> is the only thing
   visible until the reader opens the disclosure - styled so it reads as
   intentional suppression rather than a rendering bug. */
.message-banned {
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    margin: 0.5rem 0;
    background: rgba(248, 113, 113, 0.05);
}
.message-banned[open] {
    background: transparent;
    border-style: solid;
}
.message-banned > .message-banned-summary {
    cursor: pointer;
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    list-style: none;
    user-select: none;
}
.message-banned > .message-banned-summary::-webkit-details-marker { display: none; }
.message-banned > .message-banned-summary::before {
    content: "\25B8"; /* triangle right */
    display: inline-block;
    margin-right: 0.4rem;
    transition: transform var(--transition);
    color: var(--danger);
}
.message-banned[open] > .message-banned-summary::before {
    transform: rotate(90deg);
}
.message-banned > .border-bottom {
    margin-top: 0.5rem;
    opacity: 0.75;
}

/* Message thread attachments - the asp:Image renders a fixed width="300"
   attribute. We override that via `width: auto` so both max-width and
   max-height can clamp the rendered size while the browser preserves the
   aspect ratio (tall portrait shots used to render at 300x1200+ and
   dominate the thread). The min() keeps narrow phones from horizontally
   scrolling when the container is under 300px. The thumb opens to the
   full image in a new tab via the surrounding HyperLink. */
.message-attachment-img {
    width: auto;
    height: auto;
    max-width: min(100%, 300px);
    max-height: 400px;
}

/* In-browser wallet key generator (Account/Manage.aspx). The bar fills as
   the user moves their mouse, gathering entropy that gets mixed with the
   OS CSPRNG before deriving the key. */
.wallet-generate .entropy-bar {
    height: 12px;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}
.wallet-generate .entropy-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--danger) 0%, var(--warning) 50%, var(--success) 100%);
    transition: width 120ms ease-out;
}
/* The address + private-key outputs are rendered as <code> rather than
   <input> so the browser cannot transmit their contents on form submission.
   Style them to behave like a readonly input inside .input-group. */
.wallet-generate code.wallet-generate-output {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-all;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    user-select: all;
    cursor: text;
}
.wallet-generate code.wallet-generate-output:empty::before {
    content: '\00a0';
    color: var(--text-muted);
}
/* When the entropy bar is full, the only signal that the user has to click
   the next button is the meta text changing. Make that signal loud so the
   wallet-generation step doesn't feel like it's stalling. */
.wallet-generate #GenerateEntropyMeta.entropy-ready {
    color: var(--success);
    font-weight: 600;
    font-size: 1rem;
}
@keyframes wallet-generate-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
    50%      { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
}
.wallet-generate .btn-pulse {
    animation: wallet-generate-pulse 1.4s ease-in-out infinite;
}

/* ============================================================
   SimpleBuy.aspx
   Minimalist, single-question-per-screen onboarding flow.
   ============================================================ */
.sb-shell {
    max-width: 560px;
    margin: 1.5rem auto 4rem;
    padding: 0 1rem;
}

.sb-step {
    animation: sb-fade-in 220ms ease;
}

@keyframes sb-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sb-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    color: var(--accent);
    margin: 0 0 0.4rem;
    font-weight: 600;
}

.sb-question {
    font-weight: 300;
    font-size: 2.4rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 0.6rem;
    color: var(--text);
}

.sb-sub {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0 0 1.75rem;
}

.sb-section-h {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin: 1.75rem 0 0.75rem;
}

.sb-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.sb-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1.15rem 1.4rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: all var(--transition);
}
.sb-btn:hover,
.sb-btn:focus {
    border-color: var(--accent);
    background: rgba(124, 92, 255, 0.08);
    transform: translateY(-1px);
    outline: none;
}
.sb-btn:active {
    transform: translateY(0);
}

.sb-btn-muted {
    color: var(--text-muted);
    background: transparent;
}
.sb-btn-muted:hover,
.sb-btn-muted:focus {
    color: var(--text);
}

.sb-back {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.25rem 0;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: color var(--transition);
}
.sb-back::before {
    content: '\2190\00a0\00a0';
}
.sb-back:hover,
.sb-back:focus {
    color: var(--accent);
    outline: none;
}

.sb-howto {
    list-style: none;
    counter-reset: sb-howto;
    padding: 0;
    margin: 0 0 1.5rem;
}
.sb-howto li {
    counter-increment: sb-howto;
    position: relative;
    padding: 0.85rem 0 0.85rem 2.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    line-height: 1.55;
}
.sb-howto li:last-child { border-bottom: none; }
.sb-howto li::before {
    content: counter(sb-howto);
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: rgba(124, 92, 255, 0.12);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sb-howto strong { color: var(--text); font-weight: 600; }

.sb-callout {
    border-left: 3px solid var(--warning);
    background: rgba(251, 191, 36, 0.06);
    padding: 0.9rem 1rem;
    border-radius: 0 6px 6px 0;
    color: var(--text);
    font-size: 0.92rem;
    margin: 0 0 1.75rem;
}
.sb-callout strong { color: var(--warning); }

.sb-cta {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.95rem 1.6rem;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: background var(--transition), transform var(--transition);
}
.sb-cta::after {
    content: '\00a0\2192';
}
.sb-cta:hover,
.sb-cta:focus {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 575.98px) {
    .sb-question { font-size: 1.85rem; }
    .sb-btn { padding: 1rem 1.15rem; font-size: 1rem; }
}

/* --- Maintenance banner ---
   Site-wide strip above the sidebar that previews a scheduled maintenance
   window (within 24h) or announces an active one with a live countdown
   rewritten in JS. Two color variants: amber for upcoming, red for active. */
.maintenance-banner {
    color: #ffffff;
    padding: 0.65rem 1.25rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 6;
    animation: maintenance-pulse 2s infinite;
}

.maintenance-banner.upcoming {
    background: linear-gradient(90deg, #b06d10 0%, #d68910 50%, #b06d10 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.maintenance-banner.active {
    background: linear-gradient(90deg, #a93226 0%, #d63b2f 50%, #a93226 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.maintenance-banner .icon {
    margin-right: 0.4rem;
    font-size: 1rem;
}

.maintenance-banner .time {
    font-family: monospace;
    background-color: rgba(255, 255, 255, 0.18);
    padding: 0.1rem 0.35rem;
    border-radius: 0.2rem;
    margin: 0 0.2rem;
}

.maintenance-banner .countdown {
    font-weight: 400;
    font-size: 0.75rem;
    opacity: 0.95;
    margin-left: 0.5rem;
}

@keyframes maintenance-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

@media (max-width: 768px) {
    .maintenance-banner {
        padding: 0.55rem 0.9rem;
        font-size: 0.8rem;
    }

    .maintenance-banner .countdown {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }
}

/* --- Launch-day announcement banner ---
   Spans the full page width above the sidebar and main column so it's the
   first thing visitors see. Renders server-side only during the launch
   window; dismissal is per-browser via localStorage. */
.launch-banner {
    background: linear-gradient(90deg, #2a1a55 0%, #4f2db8 50%, #2a1a55 100%);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 5;
}

.launch-banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.launch-banner-eyebrow {
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    white-space: nowrap;
}

.launch-banner-text {
    flex: 1 1 auto;
    color: rgba(255, 255, 255, 0.92);
}

.launch-banner-cta {
    flex: 0 0 auto;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius);
    transition: background var(--transition);
    white-space: nowrap;
}

.launch-banner-cta:hover,
.launch-banner-cta:focus {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.launch-banner-close {
    flex: 0 0 auto;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
    line-height: 1;
    padding: 0 0.35rem;
    cursor: pointer;
    transition: color var(--transition);
}

.launch-banner-close:hover,
.launch-banner-close:focus {
    color: #ffffff;
}

@media (max-width: 767.98px) {
    .launch-banner-inner {
        flex-wrap: wrap;
        gap: 0.5rem 0.65rem;
        padding: 0.6rem 1rem;
    }
    .launch-banner-text {
        order: 3;
        flex: 1 1 100%;
        font-size: 0.82rem;
    }
    .launch-banner-cta {
        font-size: 0.8rem;
        padding: 0.3rem 0.7rem;
    }
}

/* --- Seller cashout reassurance strip ---
   USDC -> exchange -> bank flow shown above the payout setup UI on
   SellerOnboarding (Step 4) and Account/Manage (WalletCard). Short labels,
   visual flow, one tagline. The "how do I get my money out" anxiety killer. */
.cashout-strip {
    background: var(--surface-raised);
    border-radius: var(--radius);
    padding: 1.1rem 1rem 1rem;
    box-shadow: var(--shadow-card);
}
.cashout-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.4rem;
}
.cashout-step {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}
.cashout-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.45rem;
    border-radius: 50%;
    background: rgba(124, 92, 255, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cashout-icon svg {
    width: 22px;
    height: 22px;
}
.cashout-label {
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.25;
}
.cashout-sub {
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.3;
    margin-top: 0.15rem;
}
.cashout-arrow {
    color: var(--text-muted);
    font-size: 1.1rem;
    flex: 0 0 auto;
    align-self: flex-start;
    padding-top: 14px;
    user-select: none;
}
.cashout-tagline {
    text-align: center;
    margin: 0.85rem 0 0;
    font-size: 0.85rem;
    color: var(--text);
}
.cashout-tagline strong { color: var(--success); }

@media (max-width: 540px) {
    .cashout-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    .cashout-step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 0.75rem;
    }
    .cashout-icon { margin: 0; flex: 0 0 auto; }
    .cashout-arrow {
        align-self: center;
        padding: 0;
        transform: rotate(90deg);
    }
}

/* --- Order Timeline --- */
.order-timeline {
    position: relative;
    padding-left: 1.5rem;
}
.order-timeline::before {
    content: '';
    position: absolute;
    left: 0.4rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    padding-bottom: 1rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.1rem;
    top: 0.35rem;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
}
.timeline-item .timeline-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.timeline-item .timeline-status {
    font-weight: 600;
}

/* --- Payment Progress Stepper --- */
.payment-stepper {
    display: flex;
    gap: 0;
    align-items: center;
}
.payment-stepper .step {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    border-bottom: 3px solid var(--border);
    color: var(--text-muted);
}
.payment-stepper .step.active {
    border-bottom-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}
.payment-stepper .step.completed {
    border-bottom-color: var(--success);
    color: var(--success);
}

/* --- Bulk Actions Bar --- */
.bulk-actions-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

/* --- Mobile-Responsive Messaging --- */
@media (max-width: 576px) {
    .conversation-item {
        padding: 0.75rem !important;
        gap: 0.5rem !important;
    }
    .message-bubble {
        max-width: 90%;
        font-size: 0.85rem;
    }
    .message-send-form .row {
        flex-direction: column;
    }
    .message-send-form .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
    .message-thread {
        -webkit-overflow-scrolling: touch;
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* --- Saved Search Chips --- */
.saved-search-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}
.saved-search-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}
