/* ---------------------------------------------------------------------------
   ui-4.css — the blood.bid modern layer.
   Sits on top of style.css + nav-3.css on every public surface (user-profile
   pages included). Brings glass surfaces, deeper glows, tighter type,
   entrance + reveal animations, and a logo loading screen (profiles pair it
   with themes.css for the animated ambient wash).
   Loads last so it wins the cascade.
--------------------------------------------------------------------------- */

:root {
    --ui-radius-lg: 1.1rem;
    --ui-radius-xl: 1.4rem;
    --ui-glow-soft: rgba(196, 30, 30, .18);
    --ui-glow-strong: rgba(196, 30, 30, .4);
    --ui-glass: rgba(255, 255, 255, .04);
    --ui-glass-strong: rgba(255, 255, 255, .07);
    --ui-line: rgba(255, 255, 255, .1);
    --ui-blur: 22px;
    --ui-ease: cubic-bezier(.2, .7, .2, 1);
    --ui-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --ui-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6);
    }
}

/* ---------- global canvas polish ---------- */

body {
    background:
        radial-gradient(1200px 500px at 50% -10%, rgba(139, 0, 0, .16), transparent 62%),
        radial-gradient(900px 480px at 100% 18%, rgba(122, 0, 0, .1), transparent 60%),
        radial-gradient(800px 400px at 0% 100%, rgba(61, 0, 0, .14), transparent 55%),
        var(--background-deep);
    background-attachment: fixed;
}

::selection {
    background: rgba(196, 30, 30, .55);
    color: #fff;
}

:focus-visible {
    outline: 2px solid rgba(196, 30, 30, .7);
    outline-offset: 2px;
    border-radius: 4px;
}

html {
    scrollbar-color: rgba(196, 30, 30, .5) var(--background-deep);
}
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6b0f0f, #3d0000);
    border-radius: 999px;
    border: 2px solid var(--background-deep);
}
::-webkit-scrollbar-track {
    background: var(--background-deep);
}

.muted-link {
    transition: color .18s ease;
}

/* ---------- hero / landing background ---------- */

.main {
    position: relative;
    z-index: 1;
}

.ui-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.ui-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
    will-change: transform;
}

.ui-bg-blob--a {
    top: -18%;
    left: -10%;
    width: 640px;
    height: 640px;
    background: radial-gradient(circle at 30% 30%, rgba(196, 30, 30, .38), transparent 62%);
    animation: ui-blob-a 26s ease-in-out infinite alternate;
}

.ui-bg-blob--b {
    top: 8%;
    right: -14%;
    width: 720px;
    height: 720px;
    background: radial-gradient(circle at 60% 40%, rgba(120, 0, 0, .42), transparent 60%);
    animation: ui-blob-b 32s ease-in-out infinite alternate;
}

@keyframes ui-blob-a {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(70px, 40px, 0) scale(1.12); }
}

@keyframes ui-blob-b {
    from { transform: translate3d(0, 0, 0) scale(1.1); }
    to { transform: translate3d(-80px, -30px, 0) scale(.98); }
}

.ui-bg-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 92% 62% at 50% 0%, #000 30%, transparent 72%);
    mask-image: radial-gradient(ellipse 92% 62% at 50% 0%, #000 30%, transparent 72%);
    opacity: .55;
}

.features-head {
    text-align: center;
    margin-bottom: 2.25rem;
}

.features-head h2 {
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
    letter-spacing: -.025em;
}

@media (prefers-reduced-motion: reduce) {
    .ui-bg-blob {
        animation: none;
    }
}

/* ---------- shared page content entrance ---------- */

.main > .page,
.ui-shell-enter {
    animation: ui-page-in .55s var(--ui-ease) both;
}

@keyframes ui-page-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- logo loading screen ---------- */

.ui-loader {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    background:
        radial-gradient(700px 420px at 50% 44%, rgba(139, 0, 0, .22), transparent 65%),
        var(--background-deep);
    cursor: wait;
    transition:
        opacity .45s ease,
        visibility .45s ease;
}

.ui-loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ui-loader-inner {
    position: relative;
    display: grid;
    place-items: center;
    gap: 1.4rem;
}

.ui-loader-logo {
    width: 84px;
    height: 84px;
    object-fit: contain;
    filter: drop-shadow(0 0 26px rgba(196, 30, 30, .65));
    animation: ui-logo-breathe 1.6s ease-in-out infinite;
}

@keyframes ui-logo-breathe {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 18px rgba(196, 30, 30, .5));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 34px rgba(196, 30, 30, .85));
    }
}

.ui-loader-ring {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 148px;
    height: 148px;
    margin: -74px 0 0 -74px;
    border-radius: 50%;
    border: 1px solid rgba(196, 30, 30, .28);
    border-top-color: var(--blood-bright);
    animation: ui-ring-spin 1.1s linear infinite;
    pointer-events: none;
}

@keyframes ui-ring-spin {
    to { transform: rotate(360deg); }
}

.ui-loader-word {
    margin-top: .25rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: rgba(245, 240, 239, .55);
    padding-left: .42em;
    animation: ui-word-pulse 1.6s ease-in-out infinite;
}

@keyframes ui-word-pulse {
    0%, 100% { opacity: .55; }
    50% { opacity: 1; }
}

/* ---------- scroll reveal ---------- */

[data-reveal] {
    opacity: 1;  /* no-JS safe: only hidden once ui-4.js marks <html class="js"> */
}

html.js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity .65s ease,
        transform .65s var(--ui-ease);
    transition-delay: var(--rd, 0s);
    will-change: opacity, transform;
}

html.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html.js [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- header / brand ---------- */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(139, 0, 0, .22);
    background:
        linear-gradient(180deg, rgba(5, 2, 1, .82), rgba(5, 2, 1, .55));
    backdrop-filter: blur(var(--ui-blur));
    -webkit-backdrop-filter: blur(var(--ui-blur));
    box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .9);
    transition: border-color .2s ease;
}

.brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: .1rem;
}

.brand-logo {
    transition: transform .25s var(--ui-ease), filter .25s ease;
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}

.brand:hover .brand-logo {
    transform: scale(1.06) rotate(-3deg);
    filter: drop-shadow(0 0 16px rgba(196, 30, 30, .75));
}

.brand-word {
    color: var(--foreground);
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: -.01em;
    margin-left: .45rem;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .brand-word {
        background: linear-gradient(100deg, #fff 20%, rgba(196, 30, 30, .65) 55%, #fff 80%);
        background-size: 200% auto;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        animation: ui-shine 6s linear infinite;
    }
}

@keyframes ui-shine {
    to { background-position: -200% center; }
}

.account-id {
    font-variant-numeric: tabular-nums;
    letter-spacing: .08em;
    font-size: .66rem;
    color: rgba(245, 240, 239, .5);
    background: var(--ui-glass);
    border: 1px solid var(--ui-line);
    border-radius: 999px;
    padding: .32rem .7rem;
}

/* ---------- pills ---------- */

.pill-outline,
.pill-solid {
    border-radius: 999px;
    transition: transform .18s var(--ui-ease), box-shadow .2s ease,
                border-color .2s ease, background .18s ease, color .18s ease;
}

.pill-outline {
    border-color: var(--ui-line);
    color: rgba(245, 240, 239, .82);
}

.pill-outline:hover {
    transform: translateY(-1px);
    border-color: rgba(196, 30, 30, .6);
    box-shadow: 0 6px 22px -8px var(--ui-glow-strong);
    color: #fff;
}

.pill-solid {
    background: linear-gradient(135deg, var(--blood) 0%, var(--blood-bright) 100%);
    box-shadow: 0 8px 24px -10px var(--ui-glow-strong);
    position: relative;
    overflow: hidden;
}

.pill-solid::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .28) 50%, transparent 75%);
    transform: translateX(-110%);
    animation: ui-btn-wash 4.5s ease infinite;
}

@keyframes ui-btn-wash {
    0%, 55% { transform: translateX(-110%); }
    90%, 100% { transform: translateX(110%); }
}

.pill-solid:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px -8px var(--ui-glow-strong);
    background: linear-gradient(135deg, var(--blood-bright) 0%, #ff4a4a 100%);
}

/* ---------- hero ---------- */

.hero {
    position: relative;
    padding-top: 7.5rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--blood-bright);
}

.display {
    font-size: clamp(2.6rem, 2rem + 3.4vw, 4.6rem);
    letter-spacing: -.035em;
    line-height: 1.02;
}

.display em {
    font-style: normal;
    background: linear-gradient(115deg, #ff6a6a 5%, var(--blood-bright) 45%, #ffd0d0 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 22px var(--ui-glow-soft));
}

.hero-sub {
    max-width: 38rem;
}

/* ---------- claim / email type-in row ---------- */

.address-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 2.5rem;
}

.address-pill {
    display: inline-flex;
    align-items: center;
    gap: .1rem;
    background: var(--ui-glass-strong);
    border: 1px solid var(--ui-line);
    border-radius: 999px;
    padding: .72rem 1.15rem;
    font-variant-numeric: tabular-nums;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.address-pill:focus-within {
    border-color: rgba(196, 30, 30, .65);
    box-shadow: 0 18px 44px -20px var(--ui-glow-soft), inset 0 0 0 1px rgba(196, 30, 30, .18);
}

.address-prefix {
    color: var(--muted-foreground);
}

.address-type {
    color: #fff;
    font-weight: 600;
    min-width: 1.4ch;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.15em;
    margin-left: 2px;
    background: var(--blood-bright);
    box-shadow: 0 0 10px var(--ui-glow-strong);
    animation: ui-blink 1s step-start infinite;
}

@keyframes ui-blink {
    50% { opacity: 0; }
}

.start-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    border-radius: 999px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--blood) 0%, var(--blood-bright) 100%);
    box-shadow: 0 14px 34px -12px var(--ui-glow-strong);
    transition: transform .18s var(--ui-ease), box-shadow .2s ease, background .18s ease;
    white-space: nowrap;
}

.start-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--blood-bright) 0%, #ff4a4a 100%);
    box-shadow: 0 18px 42px -12px var(--ui-glow-strong);
}

.support-link {
    display: inline-block;
    margin-top: 1.1rem;
    font-size: .8rem;
    color: var(--muted-foreground);
    transition: color .18s ease;
}

.support-link:hover {
    color: var(--blood-bright);
}

/* ---------- trust / stat strip ---------- */

.ui-stats {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 3.2rem;
    margin-top: 3.6rem;
}

.ui-stat {
    text-align: center;
}

.ui-stat-val {
    font-size: clamp(1.9rem, 1.4rem + 1.6vw, 3rem);
    font-weight: 800;
    letter-spacing: -.03em;
    background: linear-gradient(180deg, #fff 10%, rgba(255, 255, 255, .62));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}

.ui-stat-val em {
    font-style: normal;
    color: var(--blood-bright);
    -webkit-text-fill-color: var(--blood-bright);
    filter: drop-shadow(0 0 14px var(--ui-glow-soft));
}

.ui-stat-label {
    margin-top: .2rem;
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}

/* ---------- cards (shared) ---------- */

.account-card {
    border-radius: var(--ui-radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 55%),
        var(--card);
    border: 1px solid var(--ui-line);
    box-shadow: var(--ui-shadow);
    transition: transform .2s var(--ui-ease), border-color .2s ease, box-shadow .2s ease;
}

.account-card:hover {
    border-color: rgba(196, 30, 30, .45);
    transform: translateY(-3px);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), 0 0 40px -18px var(--ui-glow-soft);
}

.feature-card {
    border-radius: var(--ui-radius-lg);
    background:
        linear-gradient(180deg, rgba(196, 30, 30, .04), transparent 60%),
        var(--card);
    border: 1px solid var(--ui-line);
    box-shadow: var(--ui-shadow);
    position: relative;
    transition: transform .2s var(--ui-ease), border-color .2s ease, box-shadow .2s ease;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 30, 30, .75), transparent);
    opacity: .45;
    transition: opacity .25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(196, 30, 30, .5);
    box-shadow: 0 34px 80px -34px rgba(0, 0, 0, .95), 0 0 50px -20px var(--ui-glow-soft);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: .55rem;
    letter-spacing: -.01em;
}

/* ---------- profile-mock shot cards ---------- */

.shots {
    margin-top: 4.2rem;
}

.shot-card {
    border-radius: var(--ui-radius-xl);
    background: transparent;
    transition: transform .35s var(--ui-ease);
}

.shot-card.rotate-left,
.shot-card.rotate-right {
    transform: none;
}

.shot-card:hover {
    transform: translateY(-10px) rotate(0deg) scale(1.015);
}

.shot-inner {
    border-radius: calc(var(--ui-radius-xl) + 4px);
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(196, 30, 30, .12), transparent 55%),
        rgba(10, 5, 5, .75);
    border: 1px solid var(--ui-line);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95), 0 0 60px -28px var(--ui-glow-soft);
    padding: 1.4rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* ---------- landing sections ---------- */

.socials-section h2,
.features-section h2,
.news-section h2,
.updates-head h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
    letter-spacing: -.025em;
}

.bp-pitch {
    margin-top: 4rem;
    border-radius: var(--ui-radius-xl);
    background:
        radial-gradient(110% 120% at 100% 0%, rgba(196, 30, 30, .2), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 60%),
        var(--card);
    border: 1px solid rgba(196, 30, 30, .4);
    box-shadow: var(--ui-shadow), 0 0 70px -30px var(--ui-glow-strong);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s var(--ui-ease);
}

.bp-pitch:hover {
    border-color: rgba(196, 30, 30, .7);
    box-shadow: var(--ui-shadow), 0 0 90px -28px var(--ui-glow-strong);
}

.bp-pitch-badge {
    background: linear-gradient(135deg, var(--blood-bright), #ff4a4a);
    box-shadow: 0 0 24px -4px var(--ui-glow-strong);
    border-radius: 999px;
    padding: .34rem .8rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
}

/* ---------- music / news card ---------- */

.music-card {
    border-radius: var(--ui-radius-xl);
    background:
        radial-gradient(100% 140% at 0% 0%, rgba(196, 30, 30, .16), transparent 55%),
        rgba(10, 5, 5, .8);
    border: 1px solid var(--ui-line);
    box-shadow: var(--ui-shadow);
    transition: border-color .2s ease;
}

.music-card:hover {
    border-color: rgba(196, 30, 30, .45);
}

/* ---------- tables ---------- */

.sales-table th {
    letter-spacing: .1em;
}

.sales-table tbody tr {
    transition: background .15s ease;
}

.sales-table tbody tr:hover {
    background: rgba(196, 30, 30, .05);
}

/* ---------- market / auction tiles ---------- */

.promo-card,
.listing-card,
.auction-card {
    border-radius: var(--ui-radius-lg);
    box-shadow: var(--ui-shadow);
    transition: transform .2s var(--ui-ease), border-color .2s ease, box-shadow .2s ease;
}

.promo-card:hover,
.listing-card:hover,
.auction-card:hover {
    transform: translateY(-3px);
    border-color: rgba(196, 30, 30, .5);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), 0 0 44px -20px var(--ui-glow-soft);
}

/* ---------- auth / checkout shells ---------- */

.auth-input {
    border-radius: .8rem;
}

.auth-input:focus {
    border-color: rgba(196, 30, 30, .7);
    box-shadow: 0 0 0 3px rgba(196, 30, 30, .18);
}

/* users search row */
.users-search {
    margin-top: 1.8rem;
    gap: .5rem;
}

/* ---------- footer ----------
   Footer styles ship inside footer.html itself (self-contained so it renders
   identically on profile pages that never load ui-4.css). See there. */

@media (max-width: 720px) {
    .hero { padding-top: 5rem; }
    .ui-stats { gap: 1rem 2rem; }
}