:root {
    --bg: #0b0b0b;
    --panel: #151515;
    --panel-soft: #1d1d1d;
    --gold: #d4af37;
    --gold-soft: #f0d878;
    --text: #f2f2f2;
    --muted: #b8b8b8;
    --border: #2d2a1f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top right, #1a1609 0%, var(--bg) 45%);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(10, 10, 10, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(4px);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.brand-text {
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 22px;
    color: var(--muted);
}

.nav-links a {
    font-weight: 400;
}

.site-header .nav-links > a:not(.btn) {
    font-weight: 400 !important;
}

.nav-links .btn {
    padding: 8px 14px;
    line-height: 1.2;
    font-weight: 400;
}

.nav-links a:hover {
    color: var(--gold-soft);
}

.hero {
    padding: 68px 0 42px;
}

.hero-premium {
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -100px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.35) 0%, rgba(212, 175, 55, 0) 65%);
    pointer-events: none;
    animation: pulseGlow 5s ease-in-out infinite;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: center;
}

.hero-fashion .hero-grid {
    grid-template-columns: 1.2fr 1fr;
}

.eyebrow {
    color: var(--gold-soft);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.82rem;
    margin: 0 0 10px;
}

h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.2;
    margin: 0 0 14px;
}

.lead {
    color: var(--muted);
    max-width: 60ch;
}

.platform-tags {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.platform-tags span {
    border: 1px solid #5a4a1f;
    color: var(--gold-soft);
    background: rgba(212, 175, 55, 0.08);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
}

.cta-row {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 600;
}

.btn-gold {
    background: var(--gold);
    color: #111;
}

.nav-cta {
    position: relative;
    overflow: hidden;
    font-weight: 400 !important;
    color: #111 !important;
    border-color: rgba(255, 231, 161, 0.55);
    box-shadow:
        0 10px 24px rgba(212, 175, 55, 0.18),
        0 0 0 1px rgba(212, 175, 55, 0.18) inset;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-cta::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(circle at 20% 20%, rgba(255, 231, 161, 0.85), rgba(255, 231, 161, 0) 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.nav-cta::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -60%;
    width: 60%;
    height: 180%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    opacity: 0.45;
    animation: navCtaSheen 3.2s ease-in-out infinite;
    pointer-events: none;
}

.nav-cta:hover {
    color: #111 !important;
    box-shadow:
        0 16px 34px rgba(212, 175, 55, 0.28),
        0 0 26px rgba(255, 231, 161, 0.24),
        0 0 0 1px rgba(212, 175, 55, 0.22) inset;
    filter: saturate(1.08);
}

.nav-cta:hover::before {
    opacity: 0.55;
}

.nav-cta:active {
    transform: translateY(0);
    box-shadow:
        0 10px 22px rgba(212, 175, 55, 0.2),
        0 0 0 1px rgba(212, 175, 55, 0.22) inset;
}

.nav-cta:focus,
.nav-cta:visited {
    color: #111 !important;
}

@keyframes navCtaSheen {
    0% {
        transform: translateX(0) rotate(18deg);
        opacity: 0.2;
    }
    35% {
        opacity: 0.55;
    }
    55% {
        transform: translateX(240%) rotate(18deg);
        opacity: 0.15;
    }
    100% {
        transform: translateX(240%) rotate(18deg);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-cta::after {
        animation: none !important;
        opacity: 0;
    }
}

.btn-gold:hover {
    background: #c5a028;
}

html[data-theme="light"] .btn-gold:hover {
    background: #9e7f1f;
}

.btn-outline {
    border-color: var(--gold);
    color: var(--gold-soft);
    background: #151515;
}

.btn-outline:hover {
    background: #1f1f1f;
}

.btn:hover {
    transform: translateY(-1px);
}

.hero-media {
    position: relative;
    min-height: 400px;
}

.hero-main-photo {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.hero-floating-photo {
    position: absolute;
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(212, 175, 55, 0.65);
    box-shadow: 0 18px 26px rgba(0, 0, 0, 0.45);
    animation: floatCard 4s ease-in-out infinite;
}

.hero-floating-photo.one {
    left: -30px;
    bottom: 36px;
}

.hero-floating-photo.two {
    right: -20px;
    top: 40px;
    animation-delay: 1s;
}

.hero-main-photo,
.hero-floating-photo {
    filter: saturate(1.06) contrast(1.05);
}

.hero-shuffle {
    perspective: 1300px;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.shuffle-stage {
    position: relative;
    width: min(430px, 92%);
    height: 430px;
    transform-style: preserve-3d;
}

.shuffle-card {
    position: absolute;
    inset: 0;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #44361a;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
    transition: transform 0.9s ease, opacity 0.9s ease, filter 0.9s ease;
    background: #121212;
}

.shuffle-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.1) contrast(1.04);
}

.shuffle-front {
    transform: translate3d(0, 0, 140px) rotateY(-8deg) rotateX(2deg) scale(1);
    z-index: 5;
    opacity: 1;
}

.shuffle-mid-right {
    transform: translate3d(84px, 14px, 35px) rotateY(-24deg) rotateX(2deg) scale(0.93);
    z-index: 4;
    opacity: 0.95;
}

.shuffle-mid-left {
    transform: translate3d(-84px, 24px, 25px) rotateY(24deg) rotateX(2deg) scale(0.91);
    z-index: 3;
    opacity: 0.88;
}

.shuffle-back-right {
    transform: translate3d(122px, 42px, -90px) rotateY(-35deg) rotateX(3deg) scale(0.84);
    z-index: 2;
    opacity: 0.56;
    filter: brightness(0.7);
}

.shuffle-back-left {
    transform: translate3d(-122px, 46px, -110px) rotateY(36deg) rotateX(3deg) scale(0.82);
    z-index: 1;
    opacity: 0.44;
    filter: brightness(0.65);
}

.shuffle-stage:hover .shuffle-front {
    transform: translate3d(0, -6px, 150px) rotateY(-4deg) scale(1.02);
}

.hero-bg-gallery {
    position: absolute;
    inset: -8px;
    pointer-events: none;
}

.bg-thumb {
    position: absolute;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    opacity: 0.48;
    filter: saturate(1.05) contrast(1.05) brightness(0.88);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    animation: floatCard 6s ease-in-out infinite;
}

.bg-thumb.sm {
    width: 92px;
    height: 92px;
}

.bg-thumb.md {
    width: 125px;
    height: 92px;
}

.bg-thumb.lg {
    width: 150px;
    height: 112px;
}

.bg-thumb.left-top {
    left: -28px;
    top: 20px;
    transform: rotate(-14deg);
}

.bg-thumb.right-top {
    right: -40px;
    top: 48px;
    transform: rotate(11deg);
    animation-delay: 0.6s;
}

.bg-thumb.left-bottom {
    left: -40px;
    bottom: 26px;
    transform: rotate(8deg);
    animation-delay: 1.2s;
}

.bg-thumb.right-bottom {
    right: -22px;
    bottom: 12px;
    transform: rotate(-9deg);
    animation-delay: 1.8s;
}

.hero-collage {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 12px;
    min-height: 430px;
}

.hero-collage .hero-main-photo {
    height: 430px;
}

.hero-side-photo {
    width: 100%;
    height: 209px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
    animation: floatCard 5s ease-in-out infinite;
}

.hero-side-photo.bottom {
    animation-delay: 1s;
}

.feature-card,
.card {
    background: linear-gradient(160deg, var(--panel) 0%, var(--panel-soft) 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
}

.feature-card h2,
.card h3 {
    margin-top: 0;
    color: var(--gold-soft);
}

.feature-card ul,
.list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card li {
    padding: 8px 0;
    border-bottom: 1px dashed #393323;
}

.feature-card li:last-child {
    border-bottom: 0;
}

.feature-card span {
    color: var(--gold);
    font-weight: 700;
    margin-right: 6px;
}

.section {
    padding: 26px 0 56px;
}

.section-head {
    margin-bottom: 20px;
}

.section-head p,
.card p,
.list {
    color: var(--muted);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.cards-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.stat-strip-wrap {
    padding-top: 0;
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: linear-gradient(140deg, #17140d, #151515);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
}

.stat-strip div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-strip strong {
    color: var(--gold-soft);
    font-size: 1.4rem;
    line-height: 1;
}

.stat-strip span {
    color: var(--muted);
    font-size: 0.88rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.model-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #111;
    min-height: 360px;
    box-shadow: 0 22px 28px rgba(0, 0, 0, 0.32);
}

.model-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.model-card:hover img {
    transform: scale(1.08);
}

.model-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(12, 12, 12, 0.88) 50%, rgba(12, 12, 12, 0.96) 100%);
}

.model-meta h3 {
    margin: 0;
    color: #ffe7a1;
}

.model-meta p {
    margin: 6px 0 0;
    color: #dfdfdf;
    font-size: 0.9rem;
}

.section-banner {
    padding-top: 6px;
}

.campaign-banner {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.campaign-banner img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.campaign-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(0, 0, 0, 0.72) 15%, rgba(0, 0, 0, 0.3) 80%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px;
}

.campaign-overlay h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    color: #ffe7a1;
}

.campaign-overlay p {
    margin: 8px 0 0;
    color: #efe7ce;
    max-width: 46ch;
}

.gallery-card {
    background: linear-gradient(160deg, var(--panel) 0%, var(--panel-soft) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.06);
}

.gallery-content {
    padding: 18px;
}

.gallery-content h3 {
    margin-top: 0;
    color: var(--gold-soft);
}

.spotlight-wrap {
    background: linear-gradient(155deg, #19150d 0%, #101010 60%);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.spotlight-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.spotlight-bg img {
    position: absolute;
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    opacity: 0.22;
    filter: saturate(1.05);
    animation: floatCard 7s ease-in-out infinite;
}

.spotlight-bg img:first-child {
    top: 24px;
    right: 18px;
    transform: rotate(10deg);
}

.spotlight-bg img:last-child {
    bottom: 24px;
    left: 20px;
    transform: rotate(-8deg);
    animation-delay: 1s;
}

.spotlight-head h2 {
    margin: 0 0 10px;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.spotlight-head p {
    color: var(--muted);
    max-width: 62ch;
    margin-top: 0;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.spot-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #3b2f17;
    border-radius: 12px;
    padding: 16px;
    position: relative;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.spot-card .spot-photo {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid rgba(212, 175, 55, 0.24);
}

.animated-card {
    animation: cardPulse 5s ease-in-out infinite;
}

.animated-card:nth-child(2) {
    animation-delay: 0.8s;
}

.animated-card:nth-child(3) {
    animation-delay: 1.6s;
}

.spot-card:hover {
    transform: translateY(-6px);
    border-color: #8d6f2b;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.33);
}

.spot-card h3 {
    margin: 10px 0 8px;
    color: var(--gold-soft);
    font-size: 1.05rem;
}

.spot-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.spot-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #7b6224;
    color: var(--gold-soft);
    font-weight: 700;
    font-size: 0.78rem;
}

.success-banner {
    margin-top: 18px;
    background: linear-gradient(120deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.06));
    border: 1px solid #6d5720;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.success-banner strong {
    color: #fff2c2;
}

.success-banner p {
    margin: 6px 0 0;
    color: #ead89f;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes floatCard {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulseGlow {
    0%,
    100% {
        opacity: 0.35;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes cardPulse {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.list li {
    margin-bottom: 10px;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: #0a0a0a;
    margin-top: 26px;
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #8f8f8f;
    font-size: 0.9rem;
    padding: 18px 0;
}

@media (max-width: 860px) {
    .hero-grid,
    .cards-grid,
    .cards-grid.two-col,
    .gallery-grid,
    .stat-strip,
    .spotlight-grid,
    .model-grid,
    .hero-collage {
        grid-template-columns: 1fr;
    }

    .hero-floating-photo {
        display: none;
    }

    .hero-main-photo {
        height: 300px;
    }

    .hero-collage .hero-main-photo {
        height: 320px;
    }

    .hero-side-photo {
        height: 170px;
    }

    .hero-shuffle {
        min-height: 320px;
    }

    .shuffle-stage {
        width: 100%;
        height: 320px;
    }

    .hero-bg-gallery {
        display: none;
    }

    .shuffle-mid-right,
    .shuffle-mid-left {
        transform: translate3d(0, 12px, 30px) rotateY(0deg) scale(0.95);
    }

    .shuffle-back-right,
    .shuffle-back-left {
        transform: translate3d(0, 20px, -80px) rotateY(0deg) scale(0.9);
    }

    .nav-wrap {
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 10px 14px;
    }

    .nav-links a,
    .nav-links .btn {
        font-size: 0.92rem;
    }

    .footer-wrap {
        flex-direction: column;
    }
}

/* —— Dedicated user panel app shell (full-height sidebar) —— */
.userpanel-body {
    margin: 0;
    min-height: 100vh;
    background: #252525;
    color: var(--text);
}

@media (min-width: 901px) {
    body.userpanel-body {
        height: 100vh;
        overflow: hidden;
    }

    .userpanel-shell {
        height: 100%;
        max-height: 100vh;
        min-height: 0;
    }

    .userpanel-sidebar {
        align-self: stretch;
        min-height: 0;
        max-height: 100%;
        overflow: hidden;
    }

    .userpanel-sidebar-inner {
        overflow: hidden;
    }

    /* Nav column does not independently scroll — only items that fit */
    .userpanel-nav {
        flex-shrink: 0;
    }

    .userpanel-stage {
        min-height: 0;
        height: 100%;
        max-height: 100%;
        /* visible so profile / notification dropdowns are not clipped */
        overflow: visible;
    }

    /* Row layout under topbar fills remaining viewport height */
    .userpanel-stage-body {
        min-height: 0;
        max-height: 100%;
        overflow: hidden;
    }

    /* Only the workspace (main column) scrolls */
    .userpanel-workspace {
        overflow: hidden;
    }

    /* Help panel stays fixed visually; tall tips scroll inside this pane only */
    .userpanel-help {
        overflow-y: auto;
    }
}

@media (max-width: 900px) {
    .userpanel-body {
        overflow-x: hidden;
    }

    /* Keep horizontal nav compact and non-scrolling sideways */
    .userpanel-shell {
        min-height: 100vh;
    }

    .userpanel-sidebar {
        min-height: 0;
    }

    .userpanel-sidebar-inner {
        overflow: visible;
    }

    .userpanel-stage {
        min-height: 0;
        flex: 1;
    }

    /* Let the stage/content area scroll naturally on phones */
    .userpanel-stage-body {
        flex: 1;
        overflow: visible;
    }

    .userpanel-workspace {
        overflow: visible;
    }

    .userpanel-main {
        overflow-y: visible;
    }
}

.userpanel-shell {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: stretch;
}

/* Left column: full viewport height, flush left; nav fills column width */
.userpanel-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 0 0 clamp(180px, 20vw, 220px);
    width: clamp(180px, 20vw, 220px);
    max-width: 100%;
    box-sizing: border-box;
    background: #404040;
    border-right: 1px solid rgba(212, 175, 55, 0.22);
    box-shadow: 6px 0 24px rgba(0, 0, 0, 0.45);
}

.userpanel-sidebar-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 0.55rem;
    padding: 0.75rem 0 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.userpanel-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 0.75rem 0.65rem;
    margin: 0 0 0.1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.userpanel-sidebar-brand:hover {
    opacity: 0.92;
}

.userpanel-sidebar-brand .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.userpanel-sidebar-brand-text {
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
    color: var(--gold-soft);
}

.userpanel-nav-label {
    font-size: 0.5rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6d6649;
    margin: 0.25rem 0 0.1rem 0.75rem;
}

.userpanel-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    padding: 0 0.4rem;
    width: 100%;
    box-sizing: border-box;
}

.userpanel-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 0.48rem 0.7rem;
    border-radius: 7px;
    color: #c4c4c4;
    font-size: 0.78rem;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.userpanel-nav-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.88;
}

.userpanel-nav-link:hover {
    color: var(--gold-soft);
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.12);
}

.userpanel-nav-link.is-active {
    color: #111;
    background: var(--gold);
    border-color: rgba(255, 231, 161, 0.35);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.userpanel-nav-link.is-active svg {
    opacity: 1;
    color: #111;
}

.userpanel-sidebar-foot {
    margin-top: auto;
    padding: 0.6rem 0.65rem 0;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
    width: 100%;
    box-sizing: border-box;
}

.userpanel-logout-btn {
    width: 100%;
    text-align: center;
    padding: 0.38rem 0.7rem;
    font-size: 0.78rem;
}

.userpanel-stage {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #2c2c2c;
    isolation: isolate;
}

.userpanel-stage-body {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-width: 0;
    min-height: 0;
}

.userpanel-workspace {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.userpanel-help {
    flex: 0 0 clamp(232px, 24vw, 304px);
    width: clamp(232px, 24vw, 304px);
    max-width: 100%;
    box-sizing: border-box;
    align-self: stretch;
    border-left: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(0, 0, 0, 0.14);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    min-height: 0;
    padding: 1rem 0.95rem 1.5rem;
    z-index: 1;
}

.up-help-inner {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.up-help-kicker {
    margin: 0;
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #918b7a;
}

.up-help-title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--gold-soft);
    letter-spacing: -0.01em;
}

.up-help-list {
    margin: 0;
    padding: 0 0 0 1rem;
    font-size: 0.74rem;
    line-height: 1.55;
    color: #b8bdc4;
}

.up-help-list li {
    margin-bottom: 0.55rem;
}

.up-help-list li:last-child {
    margin-bottom: 0;
}

.up-help-list strong {
    color: #e8e8e8;
    font-weight: 600;
}

.up-help-list a {
    color: var(--gold-soft);
    text-decoration: none;
}

.up-help-list a:hover {
    text-decoration: underline;
}

.up-help-foot {
    margin: 0.35rem 0 0;
    padding-top: 0.65rem;
    border-top: 1px dashed rgba(212, 175, 55, 0.2);
    font-size: 0.7rem;
    line-height: 1.45;
    color: #9ca3af;
}

.up-help-foot a {
    color: var(--gold-soft);
    text-decoration: none;
}

.up-help-foot a:hover {
    text-decoration: underline;
}

/* Animated isometric cube background (workspace) */
.up-cube-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.up-cube-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 85% 70% at 50% 45%, transparent 0%, rgba(0, 0, 0, 0.22) 100%);
    pointer-events: none;
}

.up-cube {
    position: absolute;
    left: var(--cx, 10%);
    top: var(--cy, 20%);
    width: 0;
    height: 0;
    perspective: 220px;
    perspective-origin: 50% 40%;
    animation-duration: var(--drift, 22s);
    animation-delay: var(--delay, 0s);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-name: upCubeDriftA;
}

.up-cube:nth-child(4n + 2) {
    animation-name: upCubeDriftB;
}

.up-cube:nth-child(4n + 3) {
    animation-name: upCubeDriftC;
}

.up-cube:nth-child(4n) {
    animation-name: upCubeDriftD;
}

.up-cube-iso {
    display: block;
    width: var(--size, 20px);
    height: var(--size, 20px);
    margin-left: calc(var(--size, 20px) * -0.5);
    margin-top: calc(var(--size, 20px) * -0.5);
    transform-style: preserve-3d;
    transform-origin: 50% 50%;
    opacity: var(--op, 0.42);
    background: rgba(212, 175, 55, 0.36);
    border: 1px solid rgba(212, 175, 55, 0.48);
    border-radius: 3px;
    box-shadow:
        calc(var(--size, 20px) * 0.92) 0 0 rgba(212, 175, 55, 0.2),
        0 calc(var(--size, 20px) * 0.92) 0 rgba(212, 175, 55, 0.12);
    animation-duration: var(--spin, 16s);
    animation-delay: var(--delay, 0s);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-name: upCubeSpinA;
}

.up-cube:nth-child(3n + 2) .up-cube-iso {
    animation-name: upCubeSpinB;
    animation-timing-function: ease-in-out;
}

.up-cube:nth-child(3n) .up-cube-iso {
    animation-name: upCubeSpinC;
    animation-timing-function: ease-in-out;
}

/*
 * Accent cubes (px) + “screen” cubes: ~50% of shorter viewport edge (50vmin), clamped.
 * Big cubes use lower opacity so the workspace stays readable.
 */
.up-cube:nth-child(1) {
    --cx: 4%;
    --cy: 10%;
    --size: clamp(130px, 50vmin, 640px);
    --op: 0.26;
    --delay: 0s;
    --spin: 19s;
    --drift: 26s;
}
.up-cube:nth-child(2) {
    --cx: 18%;
    --cy: 6%;
    --size: 20px;
    --op: 0.36;
    --delay: -1.2s;
    --spin: 11s;
    --drift: 17s;
}
.up-cube:nth-child(3) {
    --cx: 32%;
    --cy: 16%;
    --size: 18px;
    --op: 0.38;
    --delay: -3.4s;
    --spin: 15s;
    --drift: 23s;
}
.up-cube:nth-child(4) {
    --cx: 48%;
    --cy: 4%;
    --size: clamp(124px, 48vmin, 620px);
    --op: 0.24;
    --delay: -0.6s;
    --spin: 24s;
    --drift: 31s;
}
.up-cube:nth-child(5) {
    --cx: 62%;
    --cy: 12%;
    --size: 26px;
    --op: 0.4;
    --delay: -4.8s;
    --spin: 13s;
    --drift: 19s;
}
.up-cube:nth-child(6) {
    --cx: 78%;
    --cy: 8%;
    --size: 16px;
    --op: 0.42;
    --delay: -2.1s;
    --spin: 17s;
    --drift: 21s;
}
.up-cube:nth-child(7) {
    --cx: 92%;
    --cy: 20%;
    --size: 22px;
    --op: 0.36;
    --delay: -6s;
    --spin: 9s;
    --drift: 14s;
}
.up-cube:nth-child(8) {
    --cx: 10%;
    --cy: 36%;
    --size: clamp(136px, 52vmin, 660px);
    --op: 0.22;
    --delay: -1.8s;
    --spin: 22s;
    --drift: 28s;
}
.up-cube:nth-child(9) {
    --cx: 26%;
    --cy: 44%;
    --size: 24px;
    --op: 0.38;
    --delay: -5.2s;
    --spin: 14s;
    --drift: 20s;
}
.up-cube:nth-child(10) {
    --cx: 42%;
    --cy: 32%;
    --size: 28px;
    --op: 0.36;
    --delay: -0.4s;
    --spin: 10s;
    --drift: 16s;
}
.up-cube:nth-child(11) {
    --cx: 56%;
    --cy: 40%;
    --size: clamp(118px, 46vmin, 580px);
    --op: 0.25;
    --delay: -7.2s;
    --spin: 20s;
    --drift: 29s;
}
.up-cube:nth-child(12) {
    --cx: 72%;
    --cy: 36%;
    --size: 20px;
    --op: 0.38;
    --delay: -2.6s;
    --spin: 12s;
    --drift: 18s;
}
.up-cube:nth-child(13) {
    --cx: 86%;
    --cy: 48%;
    --size: 14px;
    --op: 0.4;
    --delay: -4s;
    --spin: 16s;
    --drift: 24s;
}
.up-cube:nth-child(14) {
    --cx: 6%;
    --cy: 58%;
    --size: clamp(130px, 50vmin, 640px);
    --op: 0.28;
    --delay: -8.4s;
    --spin: 26s;
    --drift: 32s;
}
.up-cube:nth-child(15) {
    --cx: 24%;
    --cy: 64%;
    --size: clamp(112px, 44vmin, 560px);
    --op: 0.2;
    --delay: -1s;
    --spin: 11s;
    --drift: 15s;
}
.up-cube:nth-child(16) {
    --cx: 40%;
    --cy: 56%;
    --size: 30px;
    --op: 0.4;
    --delay: -3.8s;
    --spin: 15s;
    --drift: 22s;
}
.up-cube:nth-child(17) {
    --cx: 54%;
    --cy: 68%;
    --size: clamp(126px, 49vmin, 620px);
    --op: 0.23;
    --delay: -5.6s;
    --spin: 21s;
    --drift: 27s;
}
.up-cube:nth-child(18) {
    --cx: 70%;
    --cy: 60%;
    --size: 32px;
    --op: 0.38;
    --delay: -0.2s;
    --spin: 13s;
    --drift: 17s;
}
.up-cube:nth-child(19) {
    --cx: 84%;
    --cy: 72%;
    --size: 18px;
    --op: 0.42;
    --delay: -6.8s;
    --spin: 18s;
    --drift: 25s;
}
.up-cube:nth-child(20) {
    --cx: 14%;
    --cy: 82%;
    --size: clamp(132px, 51vmin, 650px);
    --op: 0.24;
    --delay: -2.4s;
    --spin: 8s;
    --drift: 13s;
}
.up-cube:nth-child(21) {
    --cx: 34%;
    --cy: 78%;
    --size: clamp(130px, 50vmin, 640px);
    --op: 0.26;
    --delay: -9s;
    --spin: 23s;
    --drift: 30s;
}
.up-cube:nth-child(22) {
    --cx: 50%;
    --cy: 88%;
    --size: 24px;
    --op: 0.38;
    --delay: -4.2s;
    --spin: 14s;
    --drift: 19s;
}
.up-cube:nth-child(23) {
    --cx: 66%;
    --cy: 84%;
    --size: clamp(108px, 42vmin, 540px);
    --op: 0.21;
    --delay: -7.6s;
    --spin: 16s;
    --drift: 23s;
}
.up-cube:nth-child(24) {
    --cx: 88%;
    --cy: 90%;
    --size: 26px;
    --op: 0.38;
    --delay: -1.6s;
    --spin: 12s;
    --drift: 18s;
}

@keyframes upCubeSpinA {
    0% {
        transform: rotateX(52deg) rotateZ(38deg) rotateY(0deg);
    }
    25% {
        transform: rotateX(64deg) rotateZ(44deg) rotateY(90deg);
    }
    50% {
        transform: rotateX(56deg) rotateZ(48deg) rotateY(180deg);
    }
    75% {
        transform: rotateX(62deg) rotateZ(40deg) rotateY(270deg);
    }
    100% {
        transform: rotateX(52deg) rotateZ(38deg) rotateY(360deg);
    }
}

@keyframes upCubeSpinB {
    0% {
        transform: rotateX(60deg) rotateZ(46deg) rotateY(0deg);
    }
    50% {
        transform: rotateX(48deg) rotateZ(36deg) rotateY(-180deg);
    }
    100% {
        transform: rotateX(60deg) rotateZ(46deg) rotateY(-360deg);
    }
}

@keyframes upCubeSpinC {
    0%,
    100% {
        transform: rotateX(50deg) rotateZ(42deg) rotateY(0deg) scale(1);
    }
    33% {
        transform: rotateX(70deg) rotateZ(36deg) rotateY(120deg) scale(1.06);
    }
    66% {
        transform: rotateX(54deg) rotateZ(50deg) rotateY(240deg) scale(0.96);
    }
}

@keyframes upCubeDriftA {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    20% {
        transform: translate(22px, -26px) rotate(1.5deg);
    }
    45% {
        transform: translate(-18px, 14px) rotate(-1deg);
    }
    70% {
        transform: translate(14px, 22px) rotate(0.8deg);
    }
}

@keyframes upCubeDriftB {
    0%,
    100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-28px, 18px);
    }
    50% {
        transform: translate(16px, -32px);
    }
    75% {
        transform: translate(26px, 10px);
    }
}

@keyframes upCubeDriftC {
    0%,
    100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(30px, 12px);
    }
    66% {
        transform: translate(-12px, -28px);
    }
}

@keyframes upCubeDriftD {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    30% {
        transform: translate(-20px, -24px) rotate(-2deg);
    }
    55% {
        transform: translate(32px, -8px) rotate(1deg);
    }
    80% {
        transform: translate(-8px, 26px) rotate(-1deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .up-cube-iso,
    .up-cube {
        animation: none !important;
    }

    .up-cube-iso {
        transform: rotateX(58deg) rotateZ(42deg);
        opacity: 0.35;
    }
}

@media (max-width: 640px) {
    .up-cube:nth-child(n + 15) {
        display: none;
    }
}

.userpanel-topbar {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 1.1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    background: #2a2a2a;
    backdrop-filter: blur(8px);
    overflow: visible;
}

.userpanel-topbar-label {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7a7358;
    font-weight: 700;
}

.userpanel-topbar-link {
    color: var(--gold-soft);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

.userpanel-topbar-link:hover {
    text-decoration: underline;
}

.up-navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Topbar — open influencer profile in new tab */
.up-topbar-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.26);
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-soft);
    font-size: 0.76rem;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.up-topbar-profile-btn:hover {
    background: rgba(212, 175, 55, 0.16);
    border-color: rgba(212, 175, 55, 0.45);
    color: #f5e9c9;
}

.up-topbar-profile-btn:focus-visible {
    outline: 2px solid rgba(212, 175, 55, 0.55);
    outline-offset: 2px;
}

.up-topbar-profile-btn .fa-solid {
    font-size: 0.88rem;
    opacity: 0.92;
}

@media (max-width: 520px) {
    .up-topbar-profile-btn-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .up-topbar-profile-btn {
        padding: 6px 10px;
    }
}

/* Read-only influencer profile (portal — new tab) */
.up-prof-view {
    padding-bottom: 2rem;
}

.up-prof-view-head {
    margin-bottom: 1.25rem;
}

.up-prof-view-banner {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.1);
    color: #eae2c8;
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
    line-height: 1.45;
}

.up-prof-view-banner a {
    color: var(--gold-soft);
    font-weight: 700;
    text-underline-offset: 2px;
}

.up-prof-view-banner a:hover {
    color: #fff4d4;
}

.up-prof-view-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.up-prof-view-card {
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(40, 40, 40, 0.55);
}

.up-prof-view-card--wide {
    grid-column: 1 / -1;
}

.up-prof-view-card-title {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9a9578;
    font-weight: 800;
    margin: 0 0 12px;
}

.up-prof-view-dl {
    margin: 0;
    font-size: 0.87rem;
    color: #e2e2e2;
}

.up-prof-view-dl > div {
    display: grid;
    grid-template-columns: minmax(0, 118px) 1fr;
    gap: 10px;
    align-items: start;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.up-prof-view-dl > div:first-child {
    border-top: none;
    padding-top: 0;
}

.up-prof-view-dl dt {
    margin: 0;
    font-weight: 600;
    color: #bdb7a4;
}

.up-prof-view-dl dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.up-prof-view-link {
    color: var(--gold-soft);
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.up-prof-view-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.up-prof-view-link--truncate {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.up-prof-view-empty {
    margin: 0;
    font-size: 0.87rem;
    color: #9c9c9c;
}

.up-prof-view-muted {
    color: #878787;
    font-size: 0.87rem;
}

.up-prof-view-tags {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.up-prof-view-tag {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #eae4cc;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.22);
}

.up-prof-view-social-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.up-prof-view-social-row {
    display: grid;
    grid-template-columns: minmax(0, 120px) 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.86rem;
}

.up-prof-view-social-row:first-child {
    border-top: none;
    padding-top: 0;
}

.up-prof-view-social-label {
    font-weight: 700;
    color: #c8c2aa;
}

@media (max-width: 720px) {
    .up-prof-view-grid {
        grid-template-columns: 1fr;
    }

    .up-prof-view-social-row {
        grid-template-columns: 1fr;
        gap: 4px;
        align-items: start;
    }

    .up-prof-view-link--truncate {
        white-space: normal;
    }
}

html[data-theme="light"] .up-prof-view-banner {
    background: rgba(184, 146, 46, 0.12);
    border-color: rgba(160, 130, 60, 0.35);
    color: #3a3628;
}

html[data-theme="light"] .up-prof-view-banner a {
    color: #7a6318;
}

html[data-theme="light"] .up-prof-view-banner a:hover {
    color: #584800;
}

html[data-theme="light"] .up-prof-view-card {
    background: #fafafa;
    border-color: var(--border);
}

html[data-theme="light"] .up-prof-view-card-title {
    color: #666666;
}

html[data-theme="light"] .up-prof-view-dl {
    color: #222222;
}

html[data-theme="light"] .up-prof-view-dl > div {
    border-top-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .up-prof-view-dl dt {
    color: #666666;
}

html[data-theme="light"] .up-prof-view-muted {
    color: #777777;
}

html[data-theme="light"] .up-prof-view-empty {
    color: #666666;
}

html[data-theme="light"] .up-prof-view-social-label {
    color: #555555;
}

html[data-theme="light"] .up-prof-view-social-row {
    border-top-color: rgba(0, 0, 0, 0.07);
}

html[data-theme="light"] .up-prof-view-tag {
    color: #3a3628;
    background: rgba(184, 146, 46, 0.15);
    border-color: rgba(160, 130, 60, 0.28);
}

/* Influencer profile page — hero + cards layout */
.up-prof-shell {
    position: relative;
    --up-prof-cover-h: clamp(120px, 22vw, 200px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(28, 28, 30, 0.92);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

.up-prof-cover {
    position: relative;
    height: var(--up-prof-cover-h);
    background:
        linear-gradient(135deg, rgba(45, 38, 22, 0.95) 0%, rgba(28, 26, 20, 0.98) 45%, rgba(18, 18, 22, 1) 100%),
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(212, 175, 55, 0.18), transparent 55%);
    background-size: cover;
    background-position: center;
}

.up-prof-cover.has-image {
    background-size: cover;
    background-position: center;
}

.up-prof-cover-inner {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
}

/* Pinned to shell (not inside .up-prof-cover) so it stacks above .up-prof-identity
   — otherwise the overlapping identity row steals hover and the control vanishes. */
.up-prof-cover-actions {
    position: absolute;
    top: calc(var(--up-prof-cover-h) - clamp(10px, 2vw, 20px));
    right: clamp(10px, 2vw, 20px);
    transform: translateY(-100%);
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    pointer-events: none;
}

.up-prof-cover-edit-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.48);
    color: #faf7ef;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.up-prof-cover-edit-btn:hover {
    background: rgba(0, 0, 0, 0.62);
    border-color: rgba(248, 220, 130, 0.45);
}

.up-prof-cover-edit-btn:active {
    transform: scale(0.98);
}

.up-prof-cover-edit-btn i {
    font-size: 0.95rem;
    color: #f0d878;
}

@media (hover: hover) {
    .up-prof-cover-actions {
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .up-prof-cover:hover ~ .up-prof-cover-actions,
    .up-prof-identity:hover ~ .up-prof-cover-actions,
    .up-prof-cover-actions:hover,
    .up-prof-cover-actions:focus-within {
        opacity: 1;
    }
}

@media (hover: none) {
    .up-prof-cover-actions {
        opacity: 0.96;
    }
}

.up-prof-cover.is-uploading {
    pointer-events: none;
}

.up-prof-cover.is-uploading::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    background: rgba(0, 0, 0, 0.35);
    cursor: progress;
}

.up-prof-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1.1rem 1.25rem;
    padding: 0 clamp(16px, 3vw, 28px) 1.25rem;
    margin-top: -52px;
    position: relative;
    z-index: 2;
}

.up-prof-avatar-wrap {
    flex-shrink: 0;
    position: relative;
    display: inline-block;
}

.up-prof-avatar-ring {
    position: relative;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(145deg, rgba(248, 220, 130, 0.85), rgba(120, 90, 30, 0.55));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.up-prof-avatar-circle {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    overflow: hidden;
    background: #1c1c1e;
    box-shadow: inset 0 0 0 3px #1c1c1e;
}

.up-prof-avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    border: none;
    box-sizing: border-box;
}

.up-prof-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 0;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #1a1608;
    background: linear-gradient(160deg, #f0d878 0%, #c9a227 55%, #8a6f18 100%);
    border: none;
    box-sizing: border-box;
}

.up-prof-avatar-hit {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.42);
    z-index: 2;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.up-prof-avatar-edit-btn {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(28, 28, 30, 0.88);
    color: #f8e6a0;
    font-size: 1.05rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.up-prof-avatar-edit-btn:hover {
    background: rgba(40, 40, 44, 0.95);
    border-color: rgba(248, 220, 130, 0.5);
}

.up-prof-avatar-edit-btn:active {
    transform: scale(0.96);
}

@media (hover: hover) {
    .up-prof-avatar-hit {
        opacity: 0;
    }

    .up-prof-avatar-wrap:hover .up-prof-avatar-hit,
    .up-prof-avatar-wrap:focus-within .up-prof-avatar-hit {
        opacity: 1;
    }
}

@media (hover: none) {
    .up-prof-avatar-hit {
        opacity: 0.92;
    }
}

.up-prof-avatar-wrap.is-uploading {
    pointer-events: none;
}

.up-prof-avatar-wrap.is-uploading::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: 4;
    background: rgba(0, 0, 0, 0.4);
    cursor: progress;
}

.up-prof-identity-main {
    flex: 1;
    min-width: 0;
    padding-bottom: 4px;
}

.up-prof-kicker {
    margin: 0 0 4px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a89b6a;
}

.up-prof-name {
    margin: 0 0 6px;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #faf7ef;
    line-height: 1.15;
}

.up-prof-email {
    margin: 0 0 10px;
    font-size: 0.88rem;
    color: #b8b3a5;
}

.up-prof-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.up-prof-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f4ecd0;
    background: rgba(212, 175, 55, 0.16);
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.up-prof-body {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: clamp(16px, 2.5vw, 24px);
    padding: 0 clamp(16px, 3vw, 28px) clamp(20px, 3vw, 32px);
    align-items: start;
}

.up-prof-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.up-prof-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.up-prof-card {
    padding: 1.1rem 1.15rem 1.15rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.16);
    background: rgba(38, 38, 40, 0.75);
}

.up-prof-card--accent {
    border-color: rgba(212, 175, 55, 0.32);
    background: linear-gradient(165deg, rgba(212, 175, 55, 0.1) 0%, rgba(32, 32, 34, 0.9) 55%);
}

.up-prof-card--bank {
    border-style: dashed;
    border-color: rgba(212, 175, 55, 0.22);
}

.up-prof-card-title {
    margin: 0 0 8px;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    color: #b5a878;
}

.up-prof-card-lead {
    margin: 0 0 14px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #c8c4b8;
}

.up-prof-card-lead--muted {
    margin-top: -4px;
    font-size: 0.74rem;
    color: #8a877a;
}

.up-prof-form-errors {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    color: #fecaca;
    background: rgba(127, 29, 29, 0.35);
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.up-prof-form-errors p {
    margin: 0;
}

.up-prof-form-errors p + p {
    margin-top: 4px;
}

.up-prof-photo-form {
    margin: 0;
}

.up-prof-photo-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 14px;
}

.up-prof-file-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.up-prof-file-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #e8e4d4;
}

.up-prof-file-input {
    width: 100%;
    font-size: 0.76rem;
    color: #ddd;
}

.up-prof-file-hint {
    margin: 0;
    font-size: 0.68rem;
    color: #8f8b7d;
    line-height: 1.35;
}

.up-prof-photo-submit {
    width: 100%;
}

.up-prof-dl {
    margin: 0;
    font-size: 0.86rem;
    color: #e6e2d6;
}

.up-prof-dl > div {
    display: grid;
    grid-template-columns: minmax(0, 100px) 1fr;
    gap: 10px;
    align-items: start;
    padding: 9px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.up-prof-dl > div:first-child {
    border-top: none;
    padding-top: 0;
}

.up-prof-dl dt {
    margin: 0;
    font-weight: 600;
    color: #a8a294;
    font-size: 0.78rem;
}

.up-prof-dl dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.up-prof-link {
    color: var(--gold-soft);
    font-weight: 600;
    text-decoration: none;
}

.up-prof-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.up-prof-link--truncate {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.up-prof-niches-block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.up-prof-subtitle {
    margin: 0 0 10px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9a9578;
}

.up-prof-tags {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.up-prof-tag {
    display: inline-flex;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #f2ebd8;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.22);
}

.up-prof-empty,
.up-prof-muted {
    margin: 0;
    font-size: 0.86rem;
    color: #8f8b80;
}

.up-prof-social {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.up-prof-social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.up-prof-social-item:first-child {
    border-top: none;
    padding-top: 0;
}

.up-prof-social-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    color: #e8c96b;
    font-size: 1rem;
}

.up-prof-social-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.up-prof-social-name {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b8b29a;
}

@media (max-width: 900px) {
    .up-prof-body {
        grid-template-columns: 1fr;
    }

    .up-prof-identity {
        margin-top: -44px;
    }

    .up-prof-avatar-ring {
        width: 92px;
        height: 92px;
    }

    .up-prof-avatar-edit-btn {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .up-prof-link--truncate {
        white-space: normal;
    }
}

html[data-theme="light"] .up-prof-shell {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .up-prof-cover {
    background: linear-gradient(135deg, #f5f0e4 0%, #e8e4dc 50%, #ddd8cc 100%);
}

html[data-theme="light"] .up-prof-cover-edit-btn {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1a1a1a;
}

html[data-theme="light"] .up-prof-cover-edit-btn:hover {
    background: #ffffff;
    border-color: rgba(184, 146, 46, 0.45);
}

html[data-theme="light"] .up-prof-cover-edit-btn i {
    color: #8a6f18;
}

html[data-theme="light"] .up-prof-name {
    color: #1a1a1a;
}

html[data-theme="light"] .up-prof-email {
    color: #555555;
}

html[data-theme="light"] .up-prof-kicker {
    color: #7a6f4a;
}

html[data-theme="light"] .up-prof-badge {
    color: #4a3f18;
    background: rgba(184, 146, 46, 0.18);
    border-color: rgba(160, 130, 60, 0.35);
}

html[data-theme="light"] .up-prof-card {
    background: #fafafa;
    border-color: var(--border);
}

html[data-theme="light"] .up-prof-card--accent {
    background: linear-gradient(165deg, rgba(184, 146, 46, 0.12) 0%, #fafafa 55%);
}

html[data-theme="light"] .up-prof-card-title {
    color: #666666;
}

html[data-theme="light"] .up-prof-card-lead {
    color: #444444;
}

html[data-theme="light"] .up-prof-card-lead--muted {
    color: #777777;
}

html[data-theme="light"] .up-prof-file-label {
    color: #333333;
}

html[data-theme="light"] .up-prof-file-hint {
    color: #666666;
}

html[data-theme="light"] .up-prof-dl {
    color: #222222;
}

html[data-theme="light"] .up-prof-dl > div {
    border-top-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .up-prof-dl dt {
    color: #666666;
}

html[data-theme="light"] .up-prof-tag {
    color: #3a3628;
    background: rgba(184, 146, 46, 0.15);
    border-color: rgba(160, 130, 60, 0.28);
}

html[data-theme="light"] .up-prof-empty,
html[data-theme="light"] .up-prof-muted {
    color: #666666;
}

html[data-theme="light"] .up-prof-social-item {
    border-top-color: rgba(0, 0, 0, 0.07);
}

html[data-theme="light"] .up-prof-social-icon {
    background: #eeeeee;
    color: #7a6318;
}

html[data-theme="light"] .up-prof-social-name {
    color: #555555;
}

html[data-theme="light"] .up-prof-form-errors {
    color: #991b1b;
    background: rgba(254, 226, 226, 0.9);
    border-color: rgba(248, 113, 113, 0.45);
}

/* Cover photo editor modal (influencer profile) */
body.up-cover-modal-open {
    overflow: hidden;
}

.up-cover-modal {
    position: fixed;
    inset: 0;
    z-index: 100060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(12px, 2vh);
    box-sizing: border-box;
}

.up-cover-modal.is-open {
    display: flex;
}

.up-cover-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(4px);
}

.up-cover-modal__panel {
    position: relative;
    z-index: 1;
    width: min(720px, calc(100vw - 24px));
    max-height: min(92vh, 900px);
    display: flex;
    flex-direction: column;
    background: #2a2a2c;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.up-cover-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.14);
    background: rgba(0, 0, 0, 0.22);
}

.up-cover-modal__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #faf7ef;
}

.up-cover-modal__x {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #dcdcdc;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}

.up-cover-modal__x:hover {
    background: rgba(255, 255, 255, 0.12);
}

.up-cover-modal__body {
    padding: 14px 16px 16px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.up-cover-modal__copy {
    margin-bottom: 14px;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #b8b3a5;
}

.up-cover-modal__copy p {
    margin: 0 0 10px;
}

.up-cover-modal__copy p:last-child {
    margin-bottom: 0;
}

.up-cover-modal__copy strong {
    color: #e8dcc8;
    font-weight: 700;
}

.up-cover-modal__err {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.84rem;
    line-height: 1.4;
    color: #fecaca;
    background: rgba(127, 29, 29, 0.45);
    border: 1px solid rgba(248, 113, 113, 0.4);
}

.up-cover-dropzone {
    border: 2px dashed rgba(212, 175, 55, 0.35);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.18);
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

.up-cover-dropzone.is-drag {
    border-color: rgba(248, 220, 130, 0.65);
    background: rgba(212, 175, 55, 0.1);
}

.up-cover-dropzone__title {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f0e6d2;
}

.up-cover-dropzone__or {
    margin: 0 0 10px;
    font-size: 0.78rem;
    color: #8f8b80;
}

.up-cover-dropzone__browse {
    margin: 0 auto;
}

.up-cover-editor {
    margin-top: 4px;
}

.up-cover-editor__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.up-cover-editor__hint {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #9a9376;
}

.up-cover-editor__replace {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 0.78rem;
}

.up-cover-editor__viewport {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #111;
    line-height: 0;
}

.up-cover-editor__canvas {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(42vh, 360px);
    touch-action: none;
    cursor: grab;
}

.up-cover-editor__canvas:active {
    cursor: grabbing;
}

.up-cover-editor__zoom {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.up-cover-editor__zoom label {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9a9376;
}

.up-cover-editor__zoom input[type='range'] {
    flex: 1;
    min-width: 0;
    accent-color: #d4af37;
}

.up-cover-modal__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px 14px;
    border-top: 1px solid rgba(212, 175, 55, 0.14);
    background: rgba(0, 0, 0, 0.22);
}

html[data-theme="light"] .up-cover-modal__panel {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .up-cover-modal__head,
html[data-theme="light"] .up-cover-modal__foot {
    background: #f6f6f6;
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .up-cover-modal__title {
    color: #1a1a1a;
}

html[data-theme="light"] .up-cover-modal__x {
    background: #eeeeee;
    color: #333333;
}

html[data-theme="light"] .up-cover-modal__x:hover {
    background: #e2e2e2;
}

html[data-theme="light"] .up-cover-modal__copy {
    color: #555555;
}

html[data-theme="light"] .up-cover-modal__copy strong {
    color: #333333;
}

html[data-theme="light"] .up-cover-modal__err {
    color: #7f1d1d;
    background: rgba(254, 226, 226, 0.95);
    border-color: rgba(248, 113, 113, 0.45);
}

html[data-theme="light"] .up-cover-dropzone {
    background: #fafafa;
    border-color: rgba(160, 130, 60, 0.35);
}

html[data-theme="light"] .up-cover-dropzone.is-drag {
    background: rgba(184, 146, 46, 0.12);
    border-color: rgba(138, 111, 31, 0.55);
}

html[data-theme="light"] .up-cover-dropzone__title {
    color: #1a1a1a;
}

html[data-theme="light"] .up-cover-editor__hint,
html[data-theme="light"] .up-cover-editor__zoom label {
    color: #666666;
}

html[data-theme="light"] .up-cover-editor__viewport {
    border-color: var(--border);
}

/* In-app notifications (topbar bell + drawer) */
.up-notif-wrap {
    position: relative;
    z-index: 21;
}

.up-notif-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 11px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(212, 175, 55, 0.07);
    color: #dcdcdc;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.up-notif-icon .fa-solid {
    font-size: 1.05rem;
    line-height: 1;
    vertical-align: middle;
}

.up-notif-btn:hover {
    background: rgba(212, 175, 55, 0.14);
    border-color: rgba(212, 175, 55, 0.42);
}

.up-notif-btn[aria-expanded="true"] {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
}

.up-notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px #2a2a2a;
}

.up-notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(320px, calc(100vw - 28px));
    max-height: min(70vh, 420px);
    background: #303030;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    z-index: 10000;
    overflow: hidden;
}

.up-notif-dropdown.is-open {
    display: flex;
    flex-direction: column;
    animation: upDropIn 0.18s ease both;
}

.up-notif-dropdown-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 13px 9px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    flex-shrink: 0;
}

.up-notif-dropdown-title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9a9376;
}

.up-notif-inline-form {
    margin: 0;
}

.up-notif-muted-link {
    padding: 0;
    border: none;
    background: none;
    color: var(--gold-soft);
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

.up-notif-muted-link:hover {
    color: #eee29a;
}

.up-notif-drawer-empty {
    margin: 0;
    padding: 1.1rem 1rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

.up-notif-drawer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.up-notif-drawer-item {
    padding: 10px 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.up-notif-drawer-item.is-read {
    opacity: 0.65;
}

a.up-notif-drawer-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

a.up-notif-drawer-link:hover {
    background: rgba(212, 175, 55, 0.07);
}

.up-notif-drawer-item-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.up-notif-drawer-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f0f0f0;
}

.up-notif-drawer-body {
    font-size: 0.72rem;
    line-height: 1.35;
    color: #a3a3a3;
}

.up-notif-drawer-time {
    font-size: 0.65rem;
    color: #6b7280;
}

.up-notif-dropdown-footer {
    flex-shrink: 0;
    padding: 9px 12px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
    background: rgba(0, 0, 0, 0.12);
}

.up-notif-see-all {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold-soft);
    text-decoration: none;
}

.up-notif-see-all:hover {
    text-decoration: underline;
}

/* Notifications list page */
.up-notify-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.up-notify-clear-form {
    margin: 0;
}

.up-notify-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.up-notify-card {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.16);
    background: #353535;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.up-notify-card.is-read {
    opacity: 0.78;
    border-color: rgba(255, 255, 255, 0.06);
}

.up-notify-card-title {
    margin: 0 0 6px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #f5f5f5;
}

.up-notify-card-text {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #b5b5b5;
}

.up-notify-card-time {
    display: block;
    margin-top: 8px;
    font-size: 0.69rem;
    color: #71717a;
}

.up-notify-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.up-notify-empty {
    margin: 2rem 0;
    text-align: center;
}

.up-notify-page {
    margin-top: 1.5rem;
}

.up-notify-page .pagination {
    margin: 0;
    justify-content: center;
    gap: 4px;
}

.up-notify-page .page-link {
    border-radius: 8px;
    background: #353535;
    border-color: rgba(212, 175, 55, 0.2);
    color: #e5e5e5;
}

.up-notify-page .page-item.disabled .page-link {
    background: #2c2c2c;
    opacity: 0.5;
}

.up-notify-page .page-link:hover {
    background: #3d3d3d;
    border-color: rgba(212, 175, 55, 0.45);
    color: var(--gold-soft);
}

.userpanel-nav-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.95);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* Profile trigger button */
.up-profile-wrap {
    position: relative;
    z-index: 20;
}

.up-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 999px;
    padding: 5px 12px 5px 5px;
    color: #e5e5e5;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.up-profile-btn:hover {
    background: rgba(212, 175, 55, 0.14);
    border-color: rgba(212, 175, 55, 0.42);
}

.up-profile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gold);
    color: #111;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.up-profile-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.up-profile-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #a8a8a8;
    transition: transform 0.2s ease;
}

.up-profile-btn[aria-expanded="true"] .up-profile-chevron {
    transform: rotate(180deg);
}

/* Dropdown panel */
.up-profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 230px;
    background: #303030;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    z-index: 9999;
    overflow: hidden;
}

.up-profile-dropdown.is-open {
    display: block;
    animation: upDropIn 0.18s ease both;
}

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

.up-dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(212, 175, 55, 0.05);
}

.up-dropdown-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    color: #111;
    font-size: 0.88rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(255, 231, 161, 0.3);
}

.up-dropdown-meta {
    min-width: 0;
}

.up-dropdown-meta strong {
    display: block;
    font-size: 0.85rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.up-dropdown-meta span {
    font-size: 0.72rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.up-dropdown-divider {
    height: 1px;
    background: rgba(212, 175, 55, 0.12);
    margin: 0;
}

.up-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 14px;
    background: none;
    border: none;
    color: #d4d4d4;
    font-size: 0.84rem;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s ease, color 0.15s ease;
}

.up-dropdown-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.75;
}

.up-dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-soft);
}

.up-dropdown-item:hover svg {
    opacity: 1;
}

.up-dropdown-logout {
    color: #f87171;
}

.up-dropdown-logout:hover {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

.userpanel-flash {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    padding: 0.5rem 1.1rem;
    color: var(--gold-soft);
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    background: rgba(212, 175, 55, 0.06);
}

.userpanel-main {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    padding: 1.1rem clamp(0.7rem, 2vw, 1.3rem) 1.8rem;
    overflow-y: auto;
}

.userpanel-page {
    max-width: 1100px;
}

.userpanel-page.up-explore {
    max-width: none;
    width: 100%;
}

/* More compact inside user panel pages */
.userpanel-main .section-head {
    margin-bottom: 12px;
}

.userpanel-main .cards-grid {
    gap: 14px;
}

.userpanel-main .card {
    padding: 18px;
}

.userpanel-page .section-head h1 {
    margin-top: 0;
}

/* —— Portal dashboard summary cards —— */
.up-dashboard {
    padding-bottom: 0.25rem;
}

.up-dash-head {
    margin-bottom: 0.85rem;
}

.up-dash-title {
    margin: 0 0 0.25rem;
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f0f0f0;
}

.up-dash-lead {
    margin: 0;
    max-width: 52ch;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #9ca3af;
}

.up-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

@media (max-width: 1024px) {
    .up-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .up-stat-grid {
        grid-template-columns: 1fr;
    }
}

.up-stat-card {
    position: relative;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: #353535;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.up-stat-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold);
    border-radius: 10px 0 0 10px;
}

.up-stat-card:hover {
    border-color: rgba(212, 175, 55, 0.38);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.24);
    transform: translateY(-1px);
}

.up-stat-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.75rem 0.75rem 0.95rem;
}

.up-stat-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-soft);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.22);
}

.up-stat-icon svg {
    width: 17px;
    height: 17px;
}

.up-stat-body {
    min-width: 0;
}

.up-stat-label {
    margin: 0 0 0.2rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
}

.up-stat-value {
    margin: 0 0 0.28rem;
    font-size: clamp(1.05rem, 2.2vw, 1.28rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fafafa;
    letter-spacing: -0.02em;
}

.up-stat-hint {
    margin: 0;
    font-size: 0.68rem;
    color: #8b9099;
    line-height: 1.3;
}

.up-stat-trend {
    font-weight: 600;
}

.up-stat-trend.is-up {
    color: #4ade80;
}

.up-stat-trend.is-neutral {
    color: #a8adb5;
}

.up-task-summary-panel {
    margin-top: 1.1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: linear-gradient(160deg, #323232 0%, #2a2a2a 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
}

.up-task-summary-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.up-task-summary-title {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9ca3af;
}

.up-task-summary-link {
    font-size: 0.72rem;
    color: var(--gold-soft);
    text-decoration: none;
    white-space: nowrap;
}

.up-task-summary-link:hover {
    text-decoration: underline;
}

.up-task-summary-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.up-task-summary-grid li {
    margin: 0;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-height: 3.35rem;
    justify-content: center;
}

.up-task-summary-label {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #90959d;
}

.up-task-summary-num {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fafafa;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .up-task-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .up-task-summary-grid {
        grid-template-columns: 1fr;
    }
}

.up-task-chart-panel {
    margin-top: 1rem;
    padding: 1rem 1rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: linear-gradient(165deg, #2f2f2f 0%, #282828 100%);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
}

.up-task-chart-head {
    margin-bottom: 0.65rem;
}

.up-task-chart-title {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9ca3af;
}

.up-task-chart-subtitle {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.4;
    color: #8b9099;
    max-width: 70ch;
}

.up-task-chart-wrap {
    position: relative;
    height: min(280px, 42vh);
    width: 100%;
}

@media (max-width: 1180px) {
    .userpanel-stage-body {
        flex-direction: column;
    }

    .userpanel-help {
        flex: none;
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(212, 175, 55, 0.18);
        max-height: min(42vh, 320px);
    }

    html[data-theme="light"] .userpanel-help {
        border-top-color: var(--border);
    }
}

@media (max-width: 900px) {
    .userpanel-shell {
        flex-direction: column;
    }

    .userpanel-sidebar {
        flex: none;
        width: 100%;
        min-height: 0;
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    }

    .userpanel-sidebar-inner {
        min-height: 0;
        padding: 1rem 0;
        gap: 0.85rem;
    }

    .userpanel-nav {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0 0.75rem;
    }

    .userpanel-nav-label {
        flex-basis: 100%;
        margin: 0.35rem 0 0.2rem 1rem;
    }

    .userpanel-nav-link {
        flex: 1 1 auto;
        min-width: 120px;
        justify-content: center;
    }

    .userpanel-sidebar-foot {
        margin-top: 0;
        padding: 0.75rem 1rem 0;
    }

    .userpanel-logout-btn {
        width: auto;
        min-width: 120px;
    }

    .userpanel-stage {
        min-height: 0;
    }
}

/* —— Light theme: white-based —— */
html[data-theme="light"] {
    --bg: #fafafa;
    --panel: #ffffff;
    --panel-soft: #f5f5f5;
    --gold: #b8922e;
    --gold-soft: #9a7520;
    --text: #1a1a1a;
    --muted: #5f6368;
    --border: #e8e8e8;
}

html[data-theme="light"] body {
    background: #ffffff;
    color: var(--text);
}

html[data-theme="light"] .site-header {
    background: #ffffff;
    border-bottom-color: var(--border);
}

html[data-theme="light"] .nav-links {
    color: var(--muted);
}

html[data-theme="light"] .site-footer {
    background: #fafafa;
    border-top-color: var(--border);
}

html[data-theme="light"] .footer-wrap {
    color: #6b6b6b;
}

html[data-theme="light"] .userpanel-body {
    background: #f5f5f5;
    color: var(--text);
}

html[data-theme="light"] .userpanel-sidebar {
    background: #ececec;
    border-right-color: var(--border);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .userpanel-sidebar-brand {
    border-bottom-color: var(--border);
}

html[data-theme="light"] .userpanel-nav-label {
    color: #888888;
}

html[data-theme="light"] .userpanel-nav-link {
    color: #333333;
}

html[data-theme="light"] .userpanel-nav-link:hover {
    color: var(--gold-soft);
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.22);
}

html[data-theme="light"] .userpanel-nav-link.is-active {
    background: var(--gold);
    color: #111;
    border-color: rgba(138, 111, 31, 0.35);
}

html[data-theme="light"] .userpanel-nav-link.is-active svg {
    color: #111;
}

html[data-theme="light"] .userpanel-stage {
    background: #ffffff;
}

html[data-theme="light"] .userpanel-help {
    background: #f7f7f8;
    border-left-color: var(--border);
}

html[data-theme="light"] .up-help-kicker {
    color: var(--muted);
}

html[data-theme="light"] .up-help-title {
    color: var(--gold-soft);
}

html[data-theme="light"] .up-help-list {
    color: var(--muted);
}

html[data-theme="light"] .up-help-list strong {
    color: var(--text);
}

html[data-theme="light"] .up-help-foot {
    color: var(--muted);
    border-top-color: var(--border);
}

html[data-theme="light"] .up-help-list a {
    color: var(--gold-soft);
}

html[data-theme="light"] .up-cube-bg::after {
    background: radial-gradient(ellipse 85% 70% at 50% 45%, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
}

html[data-theme="light"] .up-cube-iso {
    opacity: calc(var(--op, 0.42) * 0.82);
    background: rgba(184, 146, 46, 0.28);
    border-color: rgba(160, 130, 60, 0.38);
    box-shadow:
        calc(var(--size, 20px) * 0.92) 0 0 rgba(184, 146, 46, 0.14),
        0 calc(var(--size, 20px) * 0.92) 0 rgba(184, 146, 46, 0.09);
}

html[data-theme="light"] .userpanel-topbar {
    border-bottom-color: var(--border);
    background: #ffffff;
}

html[data-theme="light"] .userpanel-topbar-label {
    color: #777777;
}

html[data-theme="light"] .up-topbar-profile-btn {
    background: #f8f8f8;
    border-color: rgba(184, 146, 46, 0.35);
    color: #6b5815;
}

html[data-theme="light"] .up-topbar-profile-btn:hover {
    background: #eeeeee;
    border-color: rgba(160, 130, 60, 0.5);
    color: #483b0e;
}

html[data-theme="light"] .up-profile-btn {
    background: #f5f5f5;
    border-color: var(--border);
    color: #222222;
}

html[data-theme="light"] .up-profile-btn:hover {
    background: #eeeeee;
    border-color: #d0d0d0;
}

html[data-theme="light"] .up-notif-btn {
    background: #f5f5f5;
    border-color: var(--border);
    color: #333333;
}

html[data-theme="light"] .up-notif-btn:hover {
    background: #eeeeee;
    border-color: #d0d0d0;
}

html[data-theme="light"] .up-notif-badge {
    box-shadow: 0 0 0 2px #ffffff;
}

html[data-theme="light"] .up-notif-dropdown {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .up-notif-dropdown-head {
    border-bottom-color: var(--border);
}

html[data-theme="light"] .up-notif-drawer-item {
    border-bottom-color: var(--border);
}

html[data-theme="light"] .up-notif-drawer-title {
    color: var(--text);
}

html[data-theme="light"] .up-notif-drawer-body {
    color: var(--muted);
}

html[data-theme="light"] .up-notif-dropdown-footer {
    border-top-color: var(--border);
    background: #fafafa;
}

html[data-theme="light"] .up-notify-card {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .up-notify-card-title {
    color: var(--text);
}

html[data-theme="light"] .up-notify-card-text {
    color: var(--muted);
}

html[data-theme="light"] .up-notify-page .page-link {
    background: #ffffff;
    border-color: var(--border);
    color: var(--text);
}

html[data-theme="light"] .up-notify-page .page-item.disabled .page-link {
    background: #f5f5f5;
}

html[data-theme="light"] .up-profile-chevron {
    color: #666666;
}

html[data-theme="light"] .up-profile-dropdown {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .up-dropdown-header {
    background: #fafafa;
}

html[data-theme="light"] .up-dropdown-meta strong {
    color: var(--text);
}

html[data-theme="light"] .up-dropdown-item {
    color: #333333;
}

html[data-theme="light"] .up-dropdown-item:hover {
    background: #f5f5f5;
    color: var(--gold-soft);
}

html[data-theme="light"] .up-dropdown-divider {
    background: var(--border);
}

html[data-theme="light"] .userpanel-flash {
    background: #fffbeb;
    border-bottom-color: var(--border);
    color: var(--gold-soft);
}

html[data-theme="light"] .btn-outline {
    background: #ffffff;
    border-color: #d4d4d4;
    color: #1a1a1a;
}

html[data-theme="light"] .btn-outline:hover {
    background: #f5f5f5;
    border-color: #c4c4c4;
}

html[data-theme="light"] .up-dash-title {
    color: var(--text);
}

html[data-theme="light"] .up-dash-lead {
    color: var(--muted);
}

html[data-theme="light"] .up-stat-card {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .up-stat-card:hover {
    border-color: rgba(184, 146, 46, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .up-stat-icon {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.25);
    color: var(--gold-soft);
}

html[data-theme="light"] .up-stat-label {
    color: #6b7280;
}

html[data-theme="light"] .up-stat-value {
    color: var(--text);
}

html[data-theme="light"] .up-stat-hint {
    color: #6b7280;
}

html[data-theme="light"] .up-stat-trend.is-neutral {
    color: #6b7280;
}

html[data-theme="light"] .up-task-summary-panel {
    background: #fafafa;
    border-color: var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .up-task-summary-title {
    color: var(--muted);
}

html[data-theme="light"] .up-task-summary-grid li {
    background: #ffffff;
    border-color: #e8e8e8;
}

html[data-theme="light"] .up-task-summary-label {
    color: #6b7280;
}

html[data-theme="light"] .up-task-summary-num {
    color: var(--text);
}

html[data-theme="light"] .up-task-chart-panel {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .up-task-chart-title {
    color: var(--muted);
}

html[data-theme="light"] .up-task-chart-subtitle {
    color: #6b7280;
}

/* Theme switch (profile dropdown) */
.up-theme-switch-row {
    padding: 10px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.up-theme-switch-heading {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7a7358;
    font-weight: 700;
}

html[data-theme="light"] .up-theme-switch-heading {
    color: #777777;
}

.up-theme-switch-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.up-theme-switch-caption {
    font-size: 0.72rem;
    font-weight: 600;
    color: #7a7a7a;
    min-width: 2.25rem;
    text-align: center;
    transition: color 0.15s ease;
}

.up-theme-switch-caption.is-active-caption {
    color: var(--gold-soft);
}

html[data-theme="light"] .up-theme-switch-caption {
    color: #666666;
}

html[data-theme="light"] .up-theme-switch-caption.is-active-caption {
    color: var(--gold-soft);
}

.up-theme-switch {
    position: relative;
    width: 46px;
    height: 26px;
    padding: 0;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 999px;
    background: #2a2824;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.up-theme-switch:hover {
    border-color: rgba(212, 175, 55, 0.55);
}

.up-theme-switch:focus-visible {
    outline: 2px solid var(--gold-soft);
    outline-offset: 2px;
}

.up-theme-switch-track {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    position: relative;
}

.up-theme-switch-thumb {
    position: absolute;
    top: 2px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f5f5f5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    transition: transform 0.22s ease, background 0.2s ease;
}

.up-theme-switch.is-light {
    background: var(--gold);
    border-color: rgba(255, 231, 161, 0.45);
}

.up-theme-switch.is-light .up-theme-switch-thumb {
    transform: translateX(20px);
    background: #fffef8;
}

html[data-theme="light"] .up-theme-switch:not(.is-light) {
    background: #e8e8e8;
    border-color: #cccccc;
}

html[data-theme="light"] .up-theme-switch.is-light {
    border-color: rgba(138, 111, 31, 0.45);
}

/* —— Influencer profile wizard (dashboard) —— */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.up-inf-wizard-lock .userpanel-main {
    pointer-events: none;
}

.up-inf-wizard-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100050;
    align-items: center;
    justify-content: center;
    padding: max(10px, 1.5vh);
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    box-sizing: border-box;
}

.up-inf-wizard-overlay.is-open {
    display: flex;
}

.up-inf-wizard-modal {
    width: min(70vw, calc(100vw - 24px));
    height: min(85vh, calc(100vh - 32px));
    display: flex;
    flex-direction: column;
    background: #2e2e2e;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 14px;
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.up-inf-wizard-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px clamp(14px, 2.5vw, 22px) 11px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
}

.up-inf-wizard-intro {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
}

.up-inf-wizard-kicker {
    margin: 0 0 3px;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9a9376;
}

.up-inf-wizard-title {
    margin: 0 0 5px;
    font-size: clamp(0.92rem, 1.05vw + 0.78rem, 1.18rem);
    font-weight: 700;
    color: #fafafa;
    letter-spacing: -0.02em;
}

.up-inf-wizard-lead {
    margin: 0 auto;
    font-size: clamp(0.72rem, 0.5vw + 0.64rem, 0.82rem);
    line-height: 1.4;
    color: #a3a3a3;
    max-width: 44ch;
    text-align: center;
}

.up-inf-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 11px;
    width: 100%;
}

.up-inf-step-dot {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: #9ca3af;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 22px;
    text-align: center;
}

.up-inf-step-dot.is-active {
    background: var(--gold);
    color: #111;
    border-color: rgba(255, 231, 161, 0.5);
}

.up-inf-step-line {
    flex: 0 0 clamp(30px, 7vw, 52px);
    width: clamp(30px, 7vw, 52px);
    height: 2px;
    background: rgba(212, 175, 55, 0.15);
    margin: 0 4px;
}

/* Influencer type (wizard step 0 + dashboard panel) */
.up-inf-type-step-head {
    margin-bottom: 14px;
}

.up-inf-type-step-kicker {
    margin: 0 0 6px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c4b87a;
}

.up-inf-type-step-kicker .fa-solid {
    margin-right: 6px;
    opacity: 0.9;
}

.up-inf-type-step-lead {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #b8b3a0;
}

/* Creator niche types — compact multi-select */
.up-inf-niche-fieldset {
    margin: 0;
    padding: 0;
    border: none;
}

.up-inf-niche-fieldset.is-invalid-fieldset .up-inf-niche-scroll {
    outline: 1px solid rgba(248, 113, 113, 0.65);
    border-radius: 10px;
}

.up-inf-niche-legend {
    padding: 0;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 4px;
}

.up-inf-niche-hint {
    margin: 0 0 8px;
    font-size: 0.68rem;
    line-height: 1.45;
    color: #9a9a9a;
}

.up-inf-niche-list {
    min-width: 0;
}

.up-inf-niche-search-wrap {
    margin: 0 0 10px;
}

.up-inf-niche-search-inner {
    position: relative;
}

.up-inf-niche-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.82rem;
    color: rgba(212, 175, 55, 0.55);
    pointer-events: none;
    z-index: 1;
}

.up-inf-niche-search-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 40px;
    padding-left: 2.25rem;
    padding-right: 0.75rem;
    font-size: 0.8rem;
}

.up-inf-niche-item--hidden {
    display: none !important;
}

.up-inf-niche-group--hidden {
    display: none !important;
}

.up-inf-niche-search-empty {
    margin: 0 0 8px;
    font-size: 0.68rem;
    line-height: 1.4;
    color: #a8a29e;
}

.up-inf-niche-scroll {
    max-height: min(56vh, 520px);
    overflow-y: auto;
    padding: 4px 2px 8px;
    margin: 0 -2px;
    scrollbar-gutter: stable;
}

.up-inf-niche-group {
    margin-bottom: 10px;
}

.up-inf-niche-group:last-child {
    margin-bottom: 0;
}

.up-inf-niche-group-title {
    margin: 0 0 6px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c4b87a;
}

.up-inf-niche-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
}

.up-inf-niche-card.up-inf-niche-card--token {
    display: inline-flex;
    max-width: min(100%, 220px);
    min-width: 0;
    cursor: pointer;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: rgba(0, 0, 0, 0.32);
    overflow: hidden;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.up-inf-niche-card--token:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(0, 0, 0, 0.4);
}

.up-inf-niche-card--token:has(.up-inf-niche-checkbox:checked) {
    border-color: rgba(248, 220, 130, 0.75);
    background: rgba(212, 175, 55, 0.14);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.45);
}

.up-inf-niche-card--token:focus-within {
    outline: 2px solid rgba(248, 220, 130, 0.45);
    outline-offset: 2px;
}

.up-inf-niche-card-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    min-width: 0;
    width: 100%;
    padding: 3px 10px 3px 3px;
    box-sizing: border-box;
}

.up-inf-niche-card-media {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #1a1a1a;
}

.up-inf-niche-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, transparent 35%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.up-inf-niche-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: hue-rotate(calc(var(--nh, 0) * 1deg)) saturate(1.08) brightness(0.96);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.up-inf-niche-card--token:hover .up-inf-niche-card-img {
    transform: scale(1.06);
}

.up-inf-niche-card--token .up-inf-niche-card-title {
    margin: 0;
    padding: 0;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.22;
    color: #f0ebe0;
    text-align: left;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

@media (prefers-reduced-motion: reduce) {
    .up-inf-niche-card--token,
    .up-inf-niche-card-img {
        transition: none;
    }

    .up-inf-niche-card--token:hover .up-inf-niche-card-img {
        transform: none;
    }

    .up-inf-niche-card-img {
        filter: brightness(0.95);
    }
}

.up-inf-type-fieldset {
    margin: 0 0 14px;
    padding: 0;
    border: none;
}

.up-inf-type-fieldset.is-invalid-fieldset .up-inf-type-grid {
    outline: 1px solid rgba(248, 113, 113, 0.65);
    border-radius: 10px;
}

.up-inf-type-legend {
    padding: 0;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 4px;
}

.up-inf-type-hint {
    margin: 0 0 10px;
    font-size: 0.72rem;
    line-height: 1.45;
    color: #a3a3a3;
}

.up-inf-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 8px;
}

.up-inf-type-grid--panel {
    margin-bottom: 12px;
}

.up-inf-type-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.up-inf-type-card:has(.up-inf-type-radio:checked) {
    border-color: rgba(212, 175, 55, 0.55);
    background: rgba(212, 175, 55, 0.12);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.up-inf-type-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
}

.up-inf-type-card-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #e8e8e8;
    text-align: center;
    line-height: 1.25;
}

.up-influencer-type-panel {
    margin-bottom: 1.25rem;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(248, 220, 130, 0.65);
    background: linear-gradient(165deg, rgba(212, 175, 55, 0.22) 0%, rgba(35, 32, 22, 0.92) 42%, rgba(28, 28, 28, 0.98) 100%);
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.25),
        0 0 28px rgba(212, 175, 55, 0.18),
        0 12px 36px rgba(0, 0, 0, 0.45);
}

.up-influencer-type-panel-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 1.15rem;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.55) 0%, rgba(184, 146, 46, 0.35) 55%, rgba(212, 175, 55, 0.2) 100%);
    border-bottom: 1px solid rgba(248, 220, 130, 0.45);
}

.up-influencer-type-panel-kicker-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(17, 17, 17, 0.55);
    color: #ffe9a8;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.up-influencer-type-panel-kicker-text {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #1a1608;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.up-influencer-type-panel-inner {
    padding: 1rem 1.15rem 1.15rem;
}

.up-influencer-type-panel .up-inf-niche-scroll {
    max-height: min(48vh, 480px);
}

.up-influencer-type-panel-title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff4d4;
    letter-spacing: -0.02em;
}

.up-influencer-type-panel-lead {
    margin: 0 0 14px;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #e8dfc8;
}

.up-influencer-type-panel-actions {
    margin-top: 4px;
}

.up-influencer-type-panel-error {
    margin-top: 8px;
}

.up-inf-wizard-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.up-inf-wizard-body {
    padding: 11px clamp(14px, 2.5vw, 22px);
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.up-inf-pane:not(.is-active) {
    display: none;
}

.up-inf-pane.is-active {
    display: block;
}

.up-inf-label {
    display: block;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 4px;
}

.up-inf-label-spaced {
    margin-top: 8px;
}

.up-inf-optional {
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    color: #6b7280;
}

.up-inf-input,
.up-inf-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(0, 0, 0, 0.2);
    color: #f4f4f4;
    font-size: clamp(0.78rem, 0.28vw + 0.71rem, 0.86rem);
    font-family: inherit;
}

.up-inf-textarea {
    min-height: 4rem;
}

.up-inf-input::placeholder,
.up-inf-textarea::placeholder {
    color: #6b7280;
}

.up-inf-input:focus-visible,
.up-inf-textarea:focus-visible {
    outline: 2px solid rgba(212, 175, 55, 0.55);
    outline-offset: 1px;
    border-color: rgba(212, 175, 55, 0.45);
}

.up-inf-input.is-invalid,
.up-inf-textarea.is-invalid {
    border-color: #f87171;
}

.up-inf-hint {
    margin: 0 0 8px;
    font-size: 0.72rem;
    line-height: 1.38;
    color: #a3a3a3;
}

/* Step 1 wizard — content categories (@mention-style tags) */
.up-inf-tags-label-wrap {
    margin-bottom: 5px;
}

.up-inf-tag-hint {
    margin: 0 0 9px;
    font-size: 0.68rem;
    line-height: 1.45;
    color: #9a9a9a;
}

.up-inf-kbd {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.65em;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: rgba(0, 0, 0, 0.35);
    color: #e8e8e8;
}

.up-inf-tag-field {
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.up-inf-tag-field:focus-within {
    outline: 2px solid rgba(212, 175, 55, 0.45);
    outline-offset: 1px;
    border-color: rgba(212, 175, 55, 0.4);
}

.up-inf-tag-field.is-invalid {
    outline: none;
    border-color: rgba(248, 113, 113, 0.75);
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.25);
}

.up-inf-tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-height: 0;
}

.up-inf-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    max-width: 100%;
    padding: 4px 9px 5px 8px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.3;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: linear-gradient(
        160deg,
        rgba(212, 175, 55, 0.18) 0%,
        rgba(0, 0, 0, 0.32) 120%
    );
    color: #f4f4f4;
    cursor: default;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.up-inf-tag-chip--sample {
    padding: 3px 9px 4px;
    font-size: 0.68rem;
    opacity: 0.9;
    vertical-align: middle;
    box-shadow: none;
}

.up-inf-tag-at {
    color: rgba(212, 175, 55, 0.95);
    font-weight: 800;
    flex-shrink: 0;
}

.up-inf-tag-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.up-inf-tag-remove {
    appearance: none;
    border: none;
    background: transparent;
    margin: 0 -2px 0 2px;
    padding: 0 3px;
    line-height: 1;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border-radius: 4px;
}

.up-inf-tag-remove:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.up-inf-tag-input-shell {
    display: flex;
    align-items: center;
    gap: 3px;
}

.up-inf-tag-input-prefix {
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 800;
    color: rgba(212, 175, 55, 0.55);
    padding-bottom: 1px;
}

.up-inf-tag-input {
    flex: 1;
    min-width: 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 5px 0 !important;
    margin: 0 !important;
    font-size: 0.8rem !important;
    color: #f4f4f4 !important;
    font-family: inherit;
}

.up-inf-tag-input::placeholder {
    color: #6b7280;
}

.up-inf-tag-input:focus {
    outline: none;
}

.up-inf-tag-hiddens {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.up-inf-code {
    padding: 0.1em 0.35rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    background: rgba(0, 0, 0, 0.45);
    color: #f5deb3;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

/* Bank picker (wizard step 3) */
.up-inf-bank-picker {
    position: relative;
    width: 100%;
}

.up-inf-bank-picker.is-invalid .up-inf-bank-trigger {
    border-color: #f87171;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.3);
}

.up-inf-bank-trigger {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(0, 0, 0, 0.2);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.up-inf-bank-trigger:focus-visible {
    outline: 2px solid rgba(212, 175, 55, 0.55);
    outline-offset: 1px;
    border-color: rgba(212, 175, 55, 0.45);
}

.up-inf-bank-picker.is-open .up-inf-bank-trigger {
    border-color: rgba(212, 175, 55, 0.45);
}

.up-inf-bank-picker.is-open .up-inf-bank-trigger-chevron {
    transform: rotate(180deg);
}

.up-inf-bank-trigger-logo {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

/* Avoid empty/broken trigger image: author `display:block` wins over [hidden] otherwise */
.up-inf-bank-trigger-logo.is-empty {
    display: none;
}

.up-inf-bank-trigger-img[hidden] {
    display: none !important;
}

.up-inf-bank-trigger-img {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 7px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.up-inf-bank-trigger-text {
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    color: #f4f4f4;
    line-height: 1.3;
}

.up-inf-bank-trigger-chevron {
    flex-shrink: 0;
    font-size: 0.72rem;
    color: rgba(212, 175, 55, 0.75);
    transition: transform 0.22s ease;
}

.up-inf-bank-menu {
    margin: 0;
    padding: 5px;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: #2d2d2f;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

.up-inf-bank-option {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 9px;
    margin: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    border-radius: 7px;
    border: none;
    background: transparent;
    transition:
        background 0.14s ease,
        box-shadow 0.14s ease;
}

.up-inf-bank-option:hover {
    background: rgba(212, 175, 55, 0.1);
}

.up-inf-bank-option:focus-visible {
    outline: 2px solid rgba(212, 175, 55, 0.55);
    outline-offset: 1px;
}

.up-inf-bank-option.is-selected {
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.08);
}

.up-inf-bank-option-logo img {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 7px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.up-inf-bank-option-name {
    flex: 1;
    font-size: 0.76rem;
    color: #f0f0f0;
    line-height: 1.35;
}

/* Wizard step 4 — agreement (text from public/agreements/) */
.up-inf-agreement-head {
    text-align: center;
    margin: 0 0 0.65rem;
}

.up-inf-agreement-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0 0 0.3rem;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #cbb87a;
}

.up-inf-agreement-kicker .fa-solid {
    font-size: 0.82em;
}

.up-inf-agreement-lead {
    margin: 0 auto;
    max-width: 40ch;
    font-size: 0.72rem;
    line-height: 1.42;
    color: #a3a3a3;
}

.up-inf-agreement-scroll {
    box-sizing: border-box;
    width: 100%;
    max-height: min(42vh, 16rem);
    margin: 0 0 11px;
    padding: 11px 13px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 9px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(0, 0, 0, 0.18);
}

.up-inf-agreement-pre {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.5;
    color: #e5e5e5;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.up-inf-agreement-missing {
    margin: 0;
}

.up-inf-agreement-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px 12px;
    border-radius: 9px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(0, 0, 0, 0.12);
}

.up-inf-agreement-check.is-invalid {
    border-color: rgba(248, 113, 113, 0.55);
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.2);
}

.up-inf-agreement-check input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 1.06rem;
    height: 1.06rem;
    accent-color: var(--gold, #cba95c);
    cursor: pointer;
}

.up-inf-agreement-check-text {
    flex: 1;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #dfe0e5;
}

/* Social networks step (wizard) — cards + FA icons */
.up-soc-head {
    text-align: center;
    margin: 0 0 0.68rem;
}

.up-soc-head-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.36rem;
    margin: 0 0 0.3rem;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #cbb87a;
}

.up-soc-head-kicker .fa-solid {
    opacity: 0.88;
    font-size: 0.9em;
}

.up-soc-head-lead {
    margin: 0 auto;
    max-width: 40ch;
    font-size: 0.73rem;
    line-height: 1.43;
    color: #b0b0b0;
}

.up-soc-fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.up-soc-grid {
    display: grid;
    gap: 0.58rem;
    grid-template-columns: 1fr;
}

@media (min-width: 520px) {
    .up-soc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1040px) {
    .up-soc-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.up-soc-card {
    --soc-tint: rgba(212, 175, 55, 0.16);
    --soc-ring: rgba(212, 175, 55, 0.45);
    position: relative;
    border-radius: 11px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(0, 0, 0, 0.18) 100%
    );
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
    transition:
        border-color 0.2s ease,
        box-shadow 0.22s ease,
        transform 0.18s ease;
}

.up-soc-card:hover {
    border-color: rgba(212, 175, 55, 0.22);
    transform: translateY(-1px);
}

.up-soc-card.is-soc-on {
    border-color: color-mix(in srgb, var(--soc-ring) 70%, transparent);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--soc-ring) 35%, transparent),
        0 8px 24px rgba(0, 0, 0, 0.26);
}

.up-soc-card.accent-fb {
    --soc-tint: rgba(24, 119, 242, 0.2);
    --soc-ring: #1877f2;
}

.up-soc-card.accent-ig {
    --soc-tint: rgba(225, 48, 108, 0.2);
    --soc-ring: #e1306c;
}

.up-soc-card.accent-tt {
    --soc-tint: rgba(0, 242, 234, 0.12);
    --soc-ring: #25f4ee;
}

.up-soc-card.accent-yt {
    --soc-tint: rgba(255, 0, 0, 0.16);
    --soc-ring: #ff0000;
}

.up-soc-card.accent-x {
    --soc-tint: rgba(255, 255, 255, 0.1);
    --soc-ring: #e7e9ea;
}

.up-soc-card.accent-li {
    --soc-tint: rgba(10, 102, 194, 0.22);
    --soc-ring: #0a66c2;
}

.up-soc-card.is-invalid-card {
    border-color: rgba(248, 113, 113, 0.55);
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
}

.up-soc-card-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.56rem 0.62rem 0.38rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(135deg, var(--soc-tint), transparent 85%);
}

.up-soc-icon-ring {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fafafa;
    font-size: 0.94rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.up-soc-brand-text {
    flex: 1;
    min-width: 0;
}

.up-soc-brand-name {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #f4f4f4;
    line-height: 1.25;
}

.up-soc-brand-hint {
    display: block;
    margin-top: 2px;
    font-size: 0.6rem;
    color: #8b9099;
    letter-spacing: 0.025em;
}

.up-soc-card.is-soc-on .up-soc-brand-hint {
    color: #c9b97a;
}

.up-soc-toggle {
    position: relative;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
    display: inline-block;
}

.up-soc-checkbox {
    position: absolute;
    opacity: 0;
    inset: 0;
    margin: 0;
    cursor: pointer;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.up-soc-toggle-ui {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.up-soc-toggle-ui::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f5f5f5 0%, #cbcbcb 100%);
    transform: translateY(-50%);
    transition: transform 0.2s cubic-bezier(0.7, -0.1, 0.3, 1.25);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.32);
}

.up-soc-card.is-soc-on .up-soc-toggle-ui {
    background: color-mix(in srgb, var(--soc-ring) 45%, transparent);
    border-color: color-mix(in srgb, var(--soc-ring) 70%, transparent);
}

.up-soc-card.is-soc-on .up-soc-toggle-ui::after {
    transform: translate(20px, -50%);
}

.up-soc-checkbox:focus-visible + .up-soc-toggle-ui {
    outline: 2px solid var(--soc-ring);
    outline-offset: 2px;
}

.up-soc-url-block {
    padding: 0 0.6rem 0.62rem;
}

.up-soc-url-shell {
    display: flex;
    align-items: stretch;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(0, 0, 0, 0.25);
}

.up-soc-url-shell:focus-within {
    outline: 2px solid rgba(212, 175, 55, 0.45);
    outline-offset: 1px;
    border-color: rgba(212, 175, 55, 0.35);
}

.up-soc-url-addon {
    flex: 0 0 2.18rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(212, 175, 55, 0.75);
    font-size: 0.72rem;
    background: rgba(212, 175, 55, 0.06);
    border-right: 1px solid rgba(212, 175, 55, 0.12);
}

.up-soc-url-input {
    flex: 1;
    min-width: 0;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.52rem 0.6rem !important;
    margin: 0 !important;
    font-size: 0.74rem !important;
    font-family: inherit;
    background: transparent !important;
    color: #f0f0f0 !important;
}

.up-soc-url-input:focus {
    outline: none;
}

.up-soc-url-input:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.up-soc-field-error {
    margin: 0.28rem 0 0;
    font-size: 0.64rem;
    color: #f87171;
    line-height: 1.32;
}

.up-soc-global-error {
    text-align: center;
    margin-top: 0.55rem;
}

.up-inf-error {
    margin: 4px 0 0;
    font-size: 0.68rem;
    color: #f87171;
}

.up-inf-wizard-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding: 10px clamp(14px, 2.5vw, 22px) 14px;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
    background: rgba(0, 0, 0, 0.22);
}

.up-inf-wizard-footer .btn {
    min-width: 102px;
    padding-left: 0.82rem;
    padding-right: 0.82rem;
    padding-top: 0.48rem;
    padding-bottom: 0.48rem;
    font-size: 0.8rem;
}

.up-inf-back:disabled {
    opacity: 0.45;
    pointer-events: none;
}

html[data-theme="light"] .up-inf-type-step-kicker {
    color: #7a6f4a;
}

html[data-theme="light"] .up-inf-type-step-lead {
    color: var(--muted);
}

html[data-theme="light"] .up-inf-niche-group-title {
    color: #7a6f4a;
}

html[data-theme="light"] .up-inf-niche-search-icon {
    color: rgba(120, 100, 50, 0.45);
}

html[data-theme="light"] .up-inf-niche-search-empty {
    color: var(--muted);
}

html[data-theme="light"] .up-inf-niche-card {
    background: #fafafa;
    border-color: var(--border);
}

html[data-theme="light"] .up-inf-niche-card:hover {
    border-color: rgba(160, 130, 60, 0.45);
}

html[data-theme="light"] .up-inf-niche-card:has(.up-inf-niche-checkbox:checked) {
    border-color: rgba(160, 130, 60, 0.55);
    box-shadow:
        0 0 0 2px rgba(184, 146, 46, 0.28),
        0 6px 18px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .up-inf-niche-card-media {
    background: #e8e8e8;
}

html[data-theme="light"] .up-inf-niche-card-title {
    color: var(--text);
}

html[data-theme="light"] .up-inf-wizard-modal {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .up-inf-wizard-header {
    background: #fafafa;
    border-bottom-color: var(--border);
}

html[data-theme="light"] .up-inf-wizard-title {
    color: var(--text);
}

html[data-theme="light"] .up-inf-wizard-lead,
html[data-theme="light"] .up-inf-hint {
    color: var(--muted);
}

html[data-theme="light"] .up-inf-tag-hint {
    color: var(--muted);
}

html[data-theme="light"] .up-inf-kbd {
    background: #f3f3f5;
    color: var(--text);
    border-color: var(--border);
}

html[data-theme="light"] .up-inf-type-card {
    background: #fafafa;
    border-color: var(--border);
}

html[data-theme="light"] .up-inf-type-card:has(.up-inf-type-radio:checked) {
    background: rgba(184, 146, 46, 0.12);
    border-color: rgba(160, 130, 60, 0.45);
}

html[data-theme="light"] .up-inf-type-card-title {
    color: var(--text);
}

html[data-theme="light"] .up-influencer-type-panel {
    border-color: rgba(184, 146, 46, 0.65);
    background: linear-gradient(165deg, rgba(255, 248, 220, 0.95) 0%, #ffffff 55%);
    box-shadow:
        0 0 0 1px rgba(184, 146, 46, 0.2),
        0 0 24px rgba(184, 146, 46, 0.15),
        0 10px 28px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .up-influencer-type-panel-kicker {
    background: linear-gradient(90deg, rgba(255, 224, 130, 0.95) 0%, rgba(255, 236, 179, 0.75) 100%);
    border-bottom-color: rgba(184, 146, 46, 0.45);
}

html[data-theme="light"] .up-influencer-type-panel-kicker-icon {
    background: rgba(255, 255, 255, 0.85);
    color: #7a6318;
}

html[data-theme="light"] .up-influencer-type-panel-kicker-text {
    color: #3d3208;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

html[data-theme="light"] .up-influencer-type-panel-title {
    color: #2a2410;
}

html[data-theme="light"] .up-influencer-type-panel-lead {
    color: #4a4538;
}

html[data-theme="light"] .up-inf-tag-field {
    background: #fafafa;
    border-color: var(--border);
}

html[data-theme="light"] .up-inf-tag-field:focus-within {
    border-color: rgba(212, 175, 55, 0.45);
}

html[data-theme="light"] .up-inf-tag-chip {
    color: var(--text);
    border-color: rgba(212, 175, 55, 0.42);
    background: linear-gradient(160deg, rgba(212, 175, 55, 0.14) 0%, #ffffff 130%);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .up-inf-tag-chip--sample {
    opacity: 1;
}

html[data-theme="light"] .up-inf-tag-remove {
    color: rgba(26, 27, 40, 0.45);
}

html[data-theme="light"] .up-inf-tag-remove:hover {
    color: var(--text);
    background: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .up-inf-tag-input-prefix,
html[data-theme="light"] .up-inf-tag-at {
    color: #9a7630;
}

html[data-theme="light"] .up-inf-tag-input {
    color: var(--text) !important;
}

html[data-theme="light"] .up-inf-code {
    background: #f3f4f6;
    color: var(--text);
    border-color: var(--border);
}

html[data-theme="light"] .up-inf-bank-trigger {
    background: #ffffff;
    color: var(--text);
    border-color: var(--border);
}

html[data-theme="light"] .up-inf-bank-trigger-text {
    color: var(--text);
}

html[data-theme="light"] .up-inf-bank-menu {
    background: #ffffff;
    border-color: var(--border);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .up-inf-bank-option:hover {
    background: rgba(212, 175, 55, 0.08);
}

html[data-theme="light"] .up-inf-bank-option.is-selected {
    background: rgba(212, 175, 55, 0.12);
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.35);
}

html[data-theme="light"] .up-inf-bank-option-name {
    color: var(--text);
}

html[data-theme="light"] .up-inf-agreement-lead {
    color: var(--muted);
}

html[data-theme="light"] .up-inf-agreement-scroll {
    background: #fafafa;
    border-color: var(--border);
}

html[data-theme="light"] .up-inf-agreement-pre {
    color: var(--text);
}

html[data-theme="light"] .up-inf-agreement-check {
    background: #f7f7f8;
    border-color: var(--border);
}

html[data-theme="light"] .up-inf-agreement-check-text {
    color: var(--text);
}

html[data-theme="light"] .up-inf-input,
html[data-theme="light"] .up-inf-textarea {
    background: #ffffff;
    color: var(--text);
    border-color: var(--border);
}

html[data-theme="light"] .up-inf-check {
    background: #f7f7f8;
    border-color: var(--border);
    color: var(--text);
}

html[data-theme="light"] .up-inf-wizard-footer {
    background: #fafafa;
    border-top-color: var(--border);
}

html[data-theme="light"] .up-inf-step-dot:not(.is-active) {
    background: #eeeeee;
    border-color: var(--border);
    color: var(--muted);
}

html[data-theme="light"] .up-soc-card-inner {
    background: #ffffff;
    border-color: var(--border);
}

html[data-theme="light"] .up-soc-meta {
    color: rgba(107, 107, 129, 0.85);
}

html[data-theme="light"] .up-soc-title {
    color: var(--text);
}

html[data-theme="light"] .up-soc-toggle-inner {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--border);
}

html[data-theme="light"] .up-soc-checkbox:not(:checked) + .up-soc-toggle-inner {
    color: rgba(26, 27, 40, 0.38);
}

html[data-theme="light"] .up-soc-url-shell {
    border-color: var(--border);
    background: #f9f9fa;
}

html[data-theme="light"] .up-soc-url-addon {
    background: rgba(212, 175, 55, 0.1);
    border-right-color: var(--border);
    color: #9a7630;
}

html[data-theme="light"] .up-soc-url-shell:focus-within {
    outline-color: rgba(212, 175, 55, 0.45);
    border-color: rgba(212, 175, 55, 0.4);
}

html[data-theme="light"] .up-soc-url-input {
    color: var(--text) !important;
}
