
/**
 * ValoSell Post - WooCommerce Single Product Showcase (Light Mode ONLY)
 *
 * Matches the Mehrnoosh theme's clean light aesthetic:
 *   cards #ffffff | surfaces #f8fafc | borders #e2e8f0 | accents #0084ff / #0284c7
 *
 * Strictly scoped to .valosell-specs / .valosell-showcase / .valosell-skin-modal.
 * Never reads the wizard/dashboard dark theme.
 *
 * @package ValoSell_Post
 */

.valosell-specs,
.valosell-specs *,
.valosell-showcase,
.valosell-showcase *,
.valosell-skin-modal,
.valosell-skin-modal * {
    box-sizing: border-box;
    font-family: inherit;
}

/* ==========================================================================
   Part A - Visual Account Specs Card (inside the theme Short Description box)
   ========================================================================== */
.valosell-specs {
    direction: rtl;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #0f172a;
    font-family: inherit;
    line-height: 1.7;
}

.valosell-specs-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.valosell-specs-head-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.1px;
}

.valosell-specs-head-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    font-size: 13px;
    line-height: 1;
}

.valosell-specs-head-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0284c7;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.valosell-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.valosell-spec {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 11px;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.valosell-spec:hover {
    background: #ffffff;
    border-color: #cbd5e1;
}

.valosell-spec-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    overflow: hidden;
}

.valosell-spec-img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    object-fit: contain !important;
    display: block;
    border: 0;
    margin: 0;
    padding: 0;
}

.valosell-spec-rank-img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
}

.valosell-spec-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.valosell-spec-flag svg {
    display: block;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.valosell-spec-emoji {
    font-size: 17px;
    line-height: 1;
}

.valosell-spec-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    line-height: 0;
}

.valosell-spec-svg svg {
    width: 22px;
    height: 22px;
    display: block;
}

.valosell-spec.is-level .valosell-spec-svg {
    color: #0284c7;
}

.valosell-spec.is-bp .valosell-spec-svg {
    color: #d97706;
}

.valosell-spec.is-agents .valosell-spec-svg {
    color: #7c3aed;
}

/* The VP/RP PNG assets are white glyphs, so give their icon tiles a strong
   branded background to guarantee contrast on the light card. */
.valosell-spec.is-vp .valosell-spec-icon,
.valosell-spec.is-total-vp .valosell-spec-icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
    border-color: #0284c7;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.valosell-spec.is-rp .valosell-spec-icon {
    background: linear-gradient(135deg, #a855f7 0%, #6d28d9 100%);
    border-color: #7e22ce;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.25);
}

.valosell-spec.is-vp .valosell-spec-img,
.valosell-spec.is-total-vp .valosell-spec-img,
.valosell-spec.is-rp .valosell-spec-img {
    filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.25));
}

.valosell-spec-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.valosell-spec-label {
    font-size: 10.5px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.valosell-spec-value {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
    text-align: right;
}

.valosell-spec.is-region .valosell-spec-value,
.valosell-spec.is-agents .valosell-spec-value,
.valosell-spec.is-bp .valosell-spec-value {
    direction: rtl;
    text-align: right;
}

.valosell-specs-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.valosell-spec-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    white-space: nowrap;
}

.valosell-spec-pill-icon {
    font-size: 11px;
    line-height: 1;
}

.valosell-spec-pill.is-positive {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #047857;
}

.valosell-spec-pill.is-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

.valosell-spec-pill.is-accent {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.valosell-specs-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 16px;
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    color: #0284c7;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.valosell-specs-cta:hover,
.valosell-specs-cta:focus-visible {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #0369a1;
    text-decoration: none;
}

.valosell-specs-cta:focus-visible {
    outline: 2px solid #0084ff;
    outline-offset: 2px;
}

/* The specs card lives inside the narrow middle column of the 3-column
   product summary (~420-500px on desktop), so it must stay 2 columns.
   Only extremely narrow phones collapse to a single column. */
@media (max-width: 340px) {
    .valosell-specs-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 380px) {
    .valosell-spec {
        padding: 8px;
        gap: 7px;
    }

    .valosell-spec-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .valosell-spec-value {
        font-size: 12px;
    }
}

/* ==========================================================================
   Part B - Full-width Showcase
   ========================================================================== */
.valosell-showcase {
    direction: rtl;
    scroll-margin-top: 90px;
    display: block;
    width: 100%;
    margin: 26px 0 34px;
    color: #0f172a;
    font-family: inherit;
    line-height: 1.7;
}

.valosell-showcase-inner {
    display: block;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 4px;
}

.valosell-showcase-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.valosell-showcase-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.valosell-showcase-head-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.valosell-showcase-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 700;
    color: #0284c7;
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 999px;
    padding: 2px 9px;
    width: fit-content;
}

.valosell-showcase-title {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.6;
}

.valosell-showcase-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.valosell-showcase-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 6px 11px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    line-height: 1.5;
}

.valosell-showcase-pill-label {
    font-size: 9.5px;
    font-weight: 600;
    color: #64748b;
}

.valosell-showcase-pill strong {
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
    direction: ltr;
}

.valosell-showcase-pill.is-knife strong {
    color: #0284c7;
}

.valosell-showcase-pill.is-vp strong {
    color: #0084ff;
}

.valosell-showcase-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.valosell-filter-pill {
    appearance: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 13px;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
    white-space: nowrap;
}

.valosell-filter-pill:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.valosell-filter-pill.is-active {
    background: #0084ff;
    border-color: #0084ff;
    color: #ffffff;
}

.valosell-filter-pill:focus-visible {
    outline: 2px solid #0084ff;
    outline-offset: 2px;
}

.valosell-skins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
    gap: 10px;
}

/* Compact legacy unmatched labels (no blank skin cards). */
.valosell-showcase-card-compact {
    padding: 14px 16px;
}

.valosell-unmatched-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
    min-width: 0;
}

.valosell-showcase-card-compact .valosell-unmatched-bar {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.valosell-unmatched-label {
    flex: 0 0 auto;
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
}

.valosell-unmatched-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.valosell-unmatched-chip {
    display: inline-block;
    max-width: 100%;
    padding: 3px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.7;
    direction: ltr;
    unicode-bidi: plaintext;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.valosell-skin-tile {
    position: relative;
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    cursor: default;
    font-family: inherit;
    color: #0f172a;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    overflow: hidden;
}

.valosell-skin-tile.is-clickable {
    cursor: pointer;
}

.valosell-skin-tile.is-clickable:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.valosell-skin-tile.is-clickable:focus-visible {
    outline: 2px solid #0084ff;
    outline-offset: 2px;
}

.valosell-skin-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 74px;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
}

.valosell-skin-thumb img {
    max-width: 92%;
    max-height: 68px;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
    border: 0;
    box-shadow: none;
}

.valosell-skin-thumb-fallback {
    font-size: 26px;
    line-height: 1;
    opacity: 0.55;
}

.valosell-skin-tier-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: 0.3px;
    padding: 2px 6px;
    border-radius: 5px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    line-height: 1.6;
    text-transform: uppercase;
}

.valosell-skin-name {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.valosell-skin-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 9.5px;
    color: #64748b;
}

.valosell-skin-weapon {
    direction: ltr;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.valosell-skin-vp {
    direction: ltr;
    font-weight: 800;
    color: #0284c7;
    white-space: nowrap;
}

/* Tier accent palette */
.valosell-skin-tile.tier-se { border-top-color: #38bdf8; }
.valosell-skin-tile.tier-se .valosell-skin-tier-badge { background: #f0f9ff; color: #0369a1; border-color: #bae6fd; }

.valosell-skin-tile.tier-de { border-top-color: #22c55e; }
.valosell-skin-tile.tier-de .valosell-skin-tier-badge { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }

.valosell-skin-tile.tier-pe { border-top-color: #a855f7; }
.valosell-skin-tile.tier-pe .valosell-skin-tier-badge { background: #faf5ff; color: #7e22ce; border-color: #e9d5ff; }

.valosell-skin-tile.tier-xe { border-top-color: #f97316; }
.valosell-skin-tile.tier-xe .valosell-skin-tier-badge { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }

.valosell-skin-tile.tier-ue { border-top-color: #ef4444; }
.valosell-skin-tile.tier-ue .valosell-skin-tier-badge { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

.valosell-skin-tile.tier-limited { border-top-color: #eab308; }
.valosell-skin-tile.tier-limited .valosell-skin-tier-badge { background: #fefce8; color: #a16207; border-color: #fef08a; }

.valosell-skin-tile.tier-bp { border-top-color: #94a3b8; }
.valosell-skin-tile.tier-bp .valosell-skin-tier-badge { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }

/* ==========================================================================
   Battlepass collection (collapsible, strictly separate from shop skins)
   ========================================================================== */
.valosell-bp-collection {
    margin-top: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

.valosell-bp-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 13px 16px;
    cursor: pointer;
    list-style: none;
    background: #f8fafc;
    transition: background 0.16s ease;
}

.valosell-bp-summary::-webkit-details-marker {
    display: none;
}

.valosell-bp-summary:hover {
    background: #f1f5f9;
}

.valosell-bp-summary:focus-visible {
    outline: 2px solid #0084ff;
    outline-offset: -2px;
}

.valosell-bp-summary-main {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.valosell-bp-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    flex-shrink: 0;
}

.valosell-bp-summary-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.valosell-bp-summary-copy strong {
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
}

.valosell-bp-summary-sub {
    font-size: 10.5px;
    color: #64748b;
}

.valosell-bp-act-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1 1 auto;
    min-width: 0;
}

.valosell-bp-act-badge {
    font-size: 9.5px;
    font-weight: 800;
    color: #7c3aed;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
    direction: ltr;
}

.valosell-bp-chevron {
    margin-right: auto;
    font-size: 12px;
    color: #64748b;
    transition: transform 0.18s ease;
}

.valosell-bp-collection[open] .valosell-bp-chevron {
    transform: rotate(180deg);
}

.valosell-bp-body {
    padding: 14px 16px 18px;
    border-top: 1px solid #f1f5f9;
}

.valosell-bp-group + .valosell-bp-group {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
}

.valosell-bp-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.valosell-bp-group-head h4 {
    margin: 0;
    font-size: 12px;
    font-weight: 900;
    color: #334155;
    direction: ltr;
    text-align: right;
}

.valosell-bp-group-head span {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
}

.valosell-bp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
}

.valosell-bp-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 7px 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    min-width: 0;
}

.valosell-bp-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    width: 100%;
}

.valosell-bp-thumb img {
    max-width: 88%;
    max-height: 40px;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}

.valosell-bp-name {
    font-size: 9px;
    font-weight: 700;
    color: #475569;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   Agents showcase
   ========================================================================== */
.valosell-agents-showcase {
    margin-top: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 20px 20px;
}

.valosell-agents-showcase-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.valosell-agents-showcase-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.valosell-agents-reveal {
    appearance: none;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #0284c7;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 13px;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease;
    white-space: nowrap;
}

.valosell-agents-reveal:hover {
    background: #f0f9ff;
    border-color: #7dd3fc;
}

.valosell-agents-reveal:focus-visible {
    outline: 2px solid #0084ff;
    outline-offset: 2px;
}

.valosell-agents-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: 9px;
}

.valosell-agent-showcase-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 5px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #ffffff;
    min-width: 0;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.valosell-agent-showcase-card.is-unlocked:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.07);
}

.valosell-agent-showcase-avatar {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.valosell-agent-showcase-card.is-unlocked .valosell-agent-showcase-avatar {
    border-color: #bae6fd;
}

.valosell-agent-showcase-avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    display: block;
    border: 0;
}

.valosell-agent-showcase-card.is-locked-visible .valosell-agent-showcase-avatar img {
    filter: grayscale(1);
    opacity: 0.38;
}

.valosell-agent-showcase-card.is-locked-visible {
    opacity: 0.62;
    background: #f8fafc;
}

.valosell-agent-showcase-lock {
    position: absolute;
    bottom: -1px;
    left: -1px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.valosell-agent-showcase-name {
    font-size: 9.5px;
    font-weight: 800;
    color: #334155;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
}

.valosell-agent-showcase-card.is-locked-visible .valosell-agent-showcase-name {
    color: #94a3b8;
}

.valosell-agents-showcase.is-showing-locked [data-agent-locked="1"] {
    display: flex;
}

.valosell-agents-showcase [data-agent-locked="1"] {
    display: none;
}

/* ==========================================================================
   Skin Inspector Modal (clean light dialog over frosted backdrop)
   ========================================================================== */
.valosell-skin-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    direction: rtl;
}

.valosell-skin-modal[hidden] {
    display: none !important;
}

.valosell-skin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    backdrop-filter: blur(8px) saturate(140%);
}

.valosell-skin-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 880px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
    padding: 20px;
    animation: valosell-modal-in 0.18s ease-out;
}

@keyframes valosell-modal-in {
    from { opacity: 0; transform: translateY(10px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.valosell-skin-modal-close {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    transition: background 0.16s ease, color 0.16s ease;
}

.valosell-skin-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.valosell-skin-modal-close:focus-visible {
    outline: 2px solid #0084ff;
    outline-offset: 2px;
}

.valosell-skin-modal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 18px;
}

.valosell-skin-modal-media {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.valosell-skin-modal-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    height: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    padding: 10px;
}

.valosell-skin-modal-image {
    max-width: 100%;
    max-height: 320px;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
    border: 0;
}

.valosell-skin-modal-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding-top: 4px;
}

.valosell-skin-modal-eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #0284c7;
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 999px;
    padding: 2px 9px;
    width: fit-content;
    direction: ltr;
}

.valosell-skin-modal-title {
    margin: 0;
    font-size: 19px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.5;
    direction: ltr;
    text-align: right;
}

.valosell-skin-modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.valosell-skin-modal-tier,
.valosell-skin-modal-vp {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
}

.valosell-skin-modal-vp {
    color: #0284c7;
    background: #eff6ff;
    border-color: #dbeafe;
    direction: ltr;
}

.valosell-skin-modal-variant {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    font-size: 10.5px;
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 2px 10px;
    direction: ltr;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.valosell-skin-modal-section {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.valosell-skin-modal-section-title {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    color: #475569;
}

.valosell-skin-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.valosell-skin-swatch {
    appearance: none;
    width: 40px;
    height: 40px;
    padding: 2px;
    border-radius: 9px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.16s ease, transform 0.16s ease;
    overflow: hidden;
}

.valosell-skin-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.valosell-skin-swatch:hover {
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.valosell-skin-swatch.is-active {
    border-color: #0084ff;
    box-shadow: 0 0 0 2px rgba(0, 132, 255, 0.16);
}

.valosell-skin-swatch:focus-visible {
    outline: 2px solid #0084ff;
    outline-offset: 2px;
}

.valosell-skin-modal-status {
    font-size: 10.5px;
    color: #94a3b8;
    min-height: 16px;
}

.valosell-skin-modal-status.is-error {
    color: #b45309;
}

body.valosell-skin-modal-open {
    overflow: hidden;
}

/* Bottom-sheet friendly mobile layout */
@media (max-width: 760px) {
    .valosell-skin-modal {
        padding: 0;
        align-items: flex-end;
    }

    .valosell-skin-modal-dialog {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 18px 18px 0 0;
        border-bottom: 0;
        padding: 18px 14px 22px;
        animation: valosell-sheet-in 0.2s ease-out;
    }

    @keyframes valosell-sheet-in {
        from { opacity: 0; transform: translateY(24px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .valosell-skin-modal-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .valosell-skin-modal-stage {
        min-height: 200px;
    }

    .valosell-skin-modal-image {
        max-height: 230px;
    }

    .valosell-skins-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

@media (max-width: 560px) {
    .valosell-showcase-card {
        padding: 14px 12px;
        border-radius: 14px;
    }

    .valosell-showcase-title {
        font-size: 14px;
    }

    .valosell-showcase-pills {
        width: 100%;
    }

    .valosell-showcase-pill {
        flex: 1 1 0;
        min-width: 0;
        padding: 5px 7px;
    }

    .valosell-skin-thumb {
        height: 62px;
    }

    .valosell-skin-thumb img {
        max-height: 56px;
    }

    .valosell-agents-showcase {
        padding: 14px 12px 16px;
    }

    .valosell-agents-showcase-grid {
        grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
        gap: 7px;
    }

    .valosell-agent-showcase-avatar {
        width: 40px;
        height: 40px;
    }

    .valosell-bp-summary {
        padding: 11px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .valosell-skin-tile,
    .valosell-agent-showcase-card,
    .valosell-skin-modal-dialog,
    .valosell-bp-chevron {
        animation: none !important;
        transition: none !important;
    }
}

/* Filtered-out skin cards (JS toggles the hidden attribute). */
.valosell-skin-tile[hidden] {
    display: none !important;
}

/* Scoped [hidden] support (class display rules would otherwise win). */
.valosell-skin-modal [hidden],
.valosell-showcase [hidden] {
    display: none !important;
}

.valosell-skin-modal-image[hidden] {
    display: none !important;
}
