/* ==========================================================================
   ADOPT ME! KOREAN HOUSE TRADING - LISTING DETAIL STYLESHEET
   Matches Adopt Me Korean Portal Aesthetic (Dark Mode & Neon Glow)
   ========================================================================== */

html, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

button, a, input, select, textarea, [role="button"] {
    touch-action: manipulation;
}

:root {
    --listing-bg: #282828;
    --card-surface: #1f1f26;
    --card-surface-hover: #262631;
    --card-surface-2: #16161c;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(232, 31, 118, 0.35);
    --text-primary: #ffffff;
    --text-secondary: #9aa4bf;
    --text-muted: #6f7890;
    --accent-pink: #E81F76;
    --accent-pink-glow: rgba(232, 31, 118, 0.35);
    --accent-blue: #00A0DF;
    --accent-purple: #773DBD;
    --status-green: #10b981;
    --status-green-glow: rgba(16, 185, 129, 0.25);
    --status-yellow: #f59e0b;
    --status-red: #ef4444;
}

/* Light Theme Overrides */
body.light-theme {
    --listing-bg: #f5f6fa;
    --card-surface: #ffffff;
    --card-surface-hover: #f8fafc;
    --card-surface-2: #f1f3f8;
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-accent: rgba(232, 31, 118, 0.4);
    --text-primary: #1a1e29;
    --text-secondary: #4b5565;
    --text-muted: #64748b;
}

.listing-page-wrap {
    padding: 100px 0 60px;
    min-height: 100vh;
}

/* Breadcrumbs */
.listing-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.listing-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

.listing-breadcrumb a:hover {
    color: var(--accent-pink);
}

.listing-breadcrumb .crumb-sep {
    opacity: 0.5;
}

.listing-breadcrumb .current {
    color: var(--accent-pink);
    font-weight: 600;
}

/* Detail 2-Column Grid Layout */
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Header & Title Section */
.listing-header-block {
    margin-bottom: 20px;
}

.listing-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.badge-trade-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #E81F76, #9b1752);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(232, 31, 118, 0.3);
}

.badge-trade-type svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.listing-main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

.listing-meta-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-dot {
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
}

/* Interactive Photo Slideshow */
.slideshow-card {
    background: var(--card-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
    margin-bottom: 24px;
}

.slideshow-main-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    user-select: none;
}

.slideshow-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease-in-out, transform 0.3s ease;
}

.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(20, 20, 28, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 5;
}

.slideshow-arrow:hover {
    background: var(--accent-pink);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 0 15px var(--accent-pink-glow);
}

.slideshow-arrow.prev {
    left: 14px;
}

.slideshow-arrow.next {
    right: 14px;
}

.slideshow-counter {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background: rgba(15, 15, 20, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 5;
    letter-spacing: 0.5px;
}

.slideshow-thumbs-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.slideshow-thumb {
    width: 84px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s;
}

.slideshow-thumb:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.slideshow-thumb.active {
    opacity: 1;
    border-color: var(--accent-pink);
    box-shadow: 0 0 12px var(--accent-pink-glow);
}

/* Description & Pills */
.listing-desc-box {
    background: var(--card-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.listing-desc-box h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.listing-desc-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}

.listing-pills-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.k-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--card-surface-2);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.k-pill.highlight {
    background: rgba(232, 31, 118, 0.12);
    border-color: rgba(232, 31, 118, 0.3);
    color: #ff5298;
}

.k-pill.cyan {
    background: rgba(46, 217, 195, 0.12);
    border-color: rgba(46, 217, 195, 0.3);
    color: #2ed9c3;
}

/* Tabs Section */
.listing-tabs-bar {
    display: flex;
    gap: 12px;
    border-bottom: 2px solid var(--border-subtle);
    margin-bottom: 24px;
}

.listing-tab-btn {
    background: none;
    border: none;
    padding: 12px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.listing-tab-btn:hover {
    color: var(--text-primary);
}

.listing-tab-btn.active {
    color: var(--accent-pink);
}

.listing-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-pink);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 10px var(--accent-pink-glow);
}

/* Offer Cards List */
.offers-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.offer-card {
    background: var(--card-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s;
    position: relative;
}

.offer-card:hover {
    border-color: rgba(232, 31, 118, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.offer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.offer-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.offer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--accent-pink);
    background-color: #20202e;
}

.offer-username {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
}

.offer-status-badge {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.offer-status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.offer-status-badge.accepted {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.offer-status-badge.declined {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Offer Items Row */
.offer-items-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.trade-item-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--card-surface-2);
    border: 1px solid var(--border-subtle);
    padding: 6px 12px 6px 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    white-space: nowrap;
}

.trade-item-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}

.item-qty-badge {
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Adopt Me Official NFR / MFR Pet Badges (Inline Flow - Never Overlaps Text) */
.pet-nfr-badges {
    display: inline-flex;
    align-items: center;
    gap: 3.5px;
    vertical-align: middle;
    margin-left: 6px;
    flex-shrink: 0;
}

.badge-nfr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #ffffff !important;
    font-family: 'Montserrat', -apple-system, sans-serif;
    font-size: 11.5px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    user-select: none;
    box-sizing: border-box;
    flex-shrink: 0;
    border-radius: 50%;
    box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.45);
}

/* N - Neon: Lime Green Circle */
.badge-nfr.badge-n {
    background: #22c55e;
    color: #000 !important;
}

/* M - Mega Neon: Vibrant Purple Soft Square */
.badge-nfr.badge-m {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border-radius: 4px;
}

/* F - Fly: Sky Blue Circle (1:1 with Reference) */
.badge-nfr.badge-f {
    background: #2697d5;
}

/* R - Ride: Hot Pink Circle (1:1 with Reference) */
.badge-nfr.badge-r {
    background: #f33062;
}

/* Compact version for tight chips & toasts */
.badge-nfr.sm {
    width: 17px;
    height: 17px;
    font-size: 10px;
}
.badge-nfr.badge-m.sm {
    border-radius: 3px;
}

/* Guard: If elve-potion-badges is used inside chip, force inline flow */
.trade-item-chip .elve-potion-badges {
    position: static !important;
    display: inline-flex !important;
    gap: 3px !important;
    margin-left: 4px !important;
}

.item-variant-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
}

.item-variant-tag.neon {
    background: rgba(0, 210, 211, 0.2);
    color: #2ed9c3;
    border: 1px solid rgba(0, 210, 211, 0.4);
    box-shadow: 0 0 6px rgba(0, 210, 211, 0.3);
}

.item-variant-tag.mega {
    background: linear-gradient(135deg, rgba(232, 31, 118, 0.3), rgba(119, 61, 189, 0.3));
    color: #ff5298;
    border: 1px solid rgba(232, 31, 118, 0.5);
    box-shadow: 0 0 6px rgba(232, 31, 118, 0.4);
}

.item-potion-tag {
    font-size: 10px;
    font-weight: 800;
    color: #00A0DF;
    background: rgba(0, 160, 223, 0.15);
    padding: 1px 4px;
    border-radius: 4px;
}

.offer-msg-bubble {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent-pink);
    padding: 8px 14px;
    border-radius: 0 8px 8px 0;
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.offer-actions-bar {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-offer-action {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

/* Offer Card Realtime Animations & Status Styles */
.offer-card {
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, background 0.3s;
}

.offer-card.flash-new-offer {
    animation: flashNewOfferAnim 1.6s ease-out;
}

@keyframes flashNewOfferAnim {
    0% {
        box-shadow: 0 0 35px rgba(232, 31, 118, 0.6);
        border-color: #ff5298;
        transform: translateY(-4px) scale(1.01);
    }
    100% {
        box-shadow: none;
        border-color: var(--border-subtle, rgba(255, 255, 255, 0.08));
        transform: translateY(0) scale(1);
    }
}

.offer-card.flash-accepted {
    border-color: rgba(0, 230, 118, 0.6) !important;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.08) 0%, rgba(26, 26, 36, 0.95) 100%) !important;
    animation: flashAcceptAnim 1.8s ease-out;
}

@keyframes flashAcceptAnim {
    0% {
        box-shadow: 0 0 45px rgba(0, 230, 118, 0.7);
        transform: scale(1.02);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 230, 118, 0.4);
    }
    100% {
        box-shadow: 0 0 15px rgba(0, 230, 118, 0.2);
        transform: scale(1);
    }
}

.offer-card.flash-declined {
    border-color: rgba(255, 82, 82, 0.4) !important;
    opacity: 0.82;
    transition: opacity 0.4s;
}

/* Lister Reviewing Status Spinner */
.status-reviewing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 171, 0, 0.18) !important;
    color: #ffab00 !important;
    border: 1px solid rgba(255, 171, 0, 0.4) !important;
}

.review-spinner {
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255, 171, 0, 0.3);
    border-top-color: #ffab00;
    border-radius: 50%;
    animation: spinReview 0.8s linear infinite;
}

@keyframes spinReview {
    to { transform: rotate(360deg); }
}

/* Lister Response Bubble */
.lister-reply-bubble {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: fadeInReply 0.3s ease-in;
}

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

.lister-reply-bubble.accepted {
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.35);
    color: #b9f6ca;
}

.lister-reply-bubble.declined {
    background: rgba(255, 82, 82, 0.12);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: #ffcdd2;
}

.lister-reply-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    flex-shrink: 0;
}

/* User Offer Badge */
.user-own-offer-badge {
    background: linear-gradient(90deg, #ff5298, #9c27b0);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    display: inline-block;
}

.btn-offer-action.accept {
    background: #10b981;
    color: #fff;
}

.btn-offer-action.accept:hover {
    background: #059669;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.btn-offer-action.decline {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-offer-action.decline:hover {
    background: #ef4444;
    color: #fff;
}

/* Sidebar Styles */
.sidebar-sticky {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Trust Card */
.trust-card {
    background: var(--card-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.trust-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.trust-avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-pink);
    box-shadow: 0 0 14px var(--accent-pink-glow);
    background-color: #20202e;
}

.trust-online-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid var(--card-surface);
    box-shadow: 0 0 8px #10b981;
}

.trust-info {
    flex: 1;
    min-width: 0;
}

.trust-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.trust-display-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trust-subtext {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.trust-rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #fbbf24;
    font-weight: 700;
}

.save-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    background: var(--card-surface-2);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.save-watch-btn:hover {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}

.save-watch-btn.saved {
    background: rgba(232, 31, 118, 0.15);
    border-color: var(--accent-pink);
    color: #ff5298;
}

.watchers-count {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* Stat Grid Card */
.stat-grid-card {
    background: var(--card-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-box-item .stat-lbl {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stat-box-item .stat-val {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-box-item .stat-val.accent {
    color: var(--accent-pink);
}

.stat-bucks-icon {
    width: 18px;
    height: 18px;
    background: #00d2d3;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 10px;
    font-weight: 900;
}

.stat-full-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

/* Sidebar CTA Card */
.sidebar-cta-card {
    background: linear-gradient(145deg, rgba(31, 31, 43, 0.95), rgba(40, 20, 45, 0.95));
    border: 1px solid var(--border-accent);
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(232, 31, 118, 0.15);
}

.sidebar-cta-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.sidebar-cta-card p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 18px;
}

.btn-make-offer-cta {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #E81F76 0%, #a01450 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(232, 31, 118, 0.4);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-make-offer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(232, 31, 118, 0.6);
}

.report-link-wrap {
    text-align: center;
    margin-top: 8px;
}

.report-link-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.15s;
}

.report-link-btn:hover {
    color: #ef4444;
}

/* Interactive Offer Builder ("Make an Offer") Form */
.offer-builder-card {
    background: var(--card-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
    margin-top: 32px;
}

.offer-builder-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.offer-builder-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Linked Roblox Username Card */
.linked-account-card {
    background: #191920;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 22px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.linked-account-card.highlight-required {
    border-color: #E81F76;
    box-shadow: 0 0 0 3px rgba(232, 31, 118, 0.25);
    animation: pulseLinkBorder 1.5s ease-in-out infinite;
}

@keyframes pulseLinkBorder {
    0%, 100% { border-color: #E81F76; }
    50% { border-color: rgba(232, 31, 118, 0.4); }
}

.linked-acc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.linked-acc-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(232, 31, 118, 0.15);
    color: #E81F76;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.linked-acc-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.required-badge {
    background: #E81F76;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.linked-acc-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin: 3px 0 0;
}

.linked-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.linked-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.linked-input-prefix {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 14px;
    pointer-events: none;
}

.linked-username-input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 32px;
    background: #121217;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.linked-username-input:focus {
    border-color: #E81F76;
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 31, 118, 0.2);
}

.btn-link-account {
    height: 40px;
    padding: 0 20px;
    background: linear-gradient(135deg, #E81F76, #c2135e);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s, opacity 0.2s;
}

.btn-link-account:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.linked-input-error {
    font-size: 12px;
    color: #ff4d6d;
    margin-top: 8px;
    font-weight: 600;
}

.account-linked-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.linked-profile-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.linked-avatar-ring {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.linked-avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #22c55e;
}

.linked-verified-check {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #191920;
}

.linked-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.linked-active-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.badge-verified-trader {
    font-size: 10.5px;
    font-weight: 700;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.linked-note {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 3px;
}

.btn-change-account {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.btn-change-account:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.category-filter-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 14px;
    scrollbar-width: thin;
}

.cat-tab-btn {
    background: var(--card-surface-2);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.cat-tab-btn:hover {
    border-color: var(--accent-pink);
    color: #fff;
}

.cat-tab-btn.active {
    background: var(--accent-pink);
    border-color: var(--accent-pink);
    color: #fff;
    box-shadow: 0 0 12px var(--accent-pink-glow);
}

.item-search-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--card-surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    outline: none;
    margin-bottom: 14px;
    transition: border-color 0.2s;
}

.item-search-input:focus {
    border-color: var(--accent-pink);
    box-shadow: 0 0 10px var(--accent-pink-glow);
}

/* Item Picker Grid */
.item-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 18px;
}

.item-tile {
    background: var(--card-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    position: relative;
}

.item-tile:hover {
    border-color: var(--accent-pink);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 31, 118, 0.25);
}

.item-tile-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin: 0 auto 6px;
}

.item-tile-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.item-tile-rarity {
    font-size: 9.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Selected Items Tray */
.selected-tray-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.selected-items-tray {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 52px;
    padding: 10px;
    background: var(--card-surface-2);
    border: 1px dashed var(--border-subtle);
    border-radius: 12px;
    margin-bottom: 18px;
}

.selected-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-surface);
    border: 1px solid var(--border-accent);
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.selected-chip-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.chip-remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 0 2px;
}

.chip-remove-btn:hover {
    color: #ef4444;
}

.chip-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chip-variant-select, .chip-potion-select {
    background: #111;
    color: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    font-size: 10px;
    padding: 2px;
    outline: none;
}

/* Quick Replies */
.quick-replies-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.quick-replies-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.quick-reply-pill {
    background: var(--card-surface-2);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.15s;
}

.quick-reply-pill:hover {
    border-color: var(--accent-pink);
    color: #fff;
}

.offer-message-textarea {
    width: 100%;
    min-height: 85px;
    padding: 12px 14px;
    background: var(--card-surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    outline: none;
    margin-bottom: 18px;
    transition: border-color 0.2s;
}

.offer-message-textarea:focus {
    border-color: var(--accent-pink);
    box-shadow: 0 0 10px var(--accent-pink-glow);
}

.offer-feedback-msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    margin-bottom: 14px;
    display: none;
}

.offer-feedback-msg.error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: block;
}

.offer-feedback-msg.success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: block;
}

/* Report Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-dialog {
    background: var(--card-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 28px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.modal-field-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.modal-select, .modal-textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--card-surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    margin-bottom: 16px;
}

.modal-select:focus, .modal-textarea:focus {
    border-color: var(--accent-pink);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-modal-cancel {
    background: var(--card-surface-2);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
}

.btn-modal-submit {
    background: #ef4444;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
}

.btn-modal-submit:hover {
    background: #dc2626;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}


/* ==========================================================================
   BROWSE HOUSES (LISTINGS CATALOG) STYLESHEET
   Matching Korean Portal Theme with Filters & 3D Interactive Cards
   ========================================================================== */

.browse-page-wrap {
    padding: 100px 0 80px;
    min-height: 100vh;
}

.browse-head-block {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.browse-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.browse-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 720px;
    line-height: 1.55;
    margin: 0;
}

.btn-list-house-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #E81F76 0%, #a01450 100%);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(232, 31, 118, 0.35);
    transition: all 0.2s;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
}

.btn-list-house-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(232, 31, 118, 0.55);
}

/* House Type Filter Row (Scrollable Pills with Thumbs) */
.house-filter-scroll-wrap {
    margin-bottom: 24px;
    position: relative;
}

.house-filter-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 2px 14px;
    scrollbar-width: thin;
}

.house-filter-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-surface);
    border: 1px solid var(--border-subtle);
    padding: 7px 16px 7px 10px;
    border-radius: 30px;
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;
    transition: all 0.2s;
}

.house-filter-pill:hover {
    border-color: var(--accent-pink);
    transform: translateY(-2px);
    background: var(--card-surface-hover);
}

.house-filter-pill.active {
    background: linear-gradient(135deg, rgba(232, 31, 118, 0.2), rgba(119, 61, 189, 0.2));
    border-color: var(--accent-pink);
    box-shadow: 0 0 14px var(--accent-pink-glow);
}

.house-filter-pill .thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.house-filter-pill .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.house-filter-pill .fname {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.house-filter-pill.active .fname {
    color: #ff5298;
}

/* Filter Controls Bar (Type, Build, Theme, Search) */
.filter-controls-bar {
    background: var(--card-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 18px 22px;
    margin-bottom: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.filter-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.search-wrap {
    flex: 1;
    min-width: 240px;
    position: relative;
}

.search-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.browse-search-input {
    width: 100%;
    padding: 11px 16px 11px 42px;
    background: var(--card-surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.browse-search-input:focus {
    border-color: var(--accent-pink);
    box-shadow: 0 0 10px var(--accent-pink-glow);
}

.filter-pills-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-lbl {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
}

.filter-btn-pill {
    background: var(--card-surface-2);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.filter-btn-pill:hover {
    border-color: var(--accent-pink);
    color: #fff;
}

.filter-btn-pill.active {
    background: var(--accent-pink);
    border-color: var(--accent-pink);
    color: #fff;
    box-shadow: 0 0 10px var(--accent-pink-glow);
}

.filter-btn-pill.cyan.active {
    background: #00d2d3;
    border-color: #00d2d3;
    color: #000;
    box-shadow: 0 0 10px rgba(0, 210, 211, 0.4);
}

.filter-btn-pill.purple.active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

/* Listings Count Bar */
.listings-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.listings-status-count {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Listings Responsive Grid */
.house-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
    margin-bottom: 40px;
}

/* Listing Card */
.listing-card {
    background: var(--card-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    position: relative;
}

.listing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(232, 31, 118, 0.5);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(232, 31, 118, 0.25);
}

.listing-card .photo {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #0a0a0f;
    overflow: hidden;
}

.listing-card .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.card-top-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-top-badge.trade {
    border-color: rgba(232, 31, 118, 0.5);
    color: #ff6ea8;
}

.card-top-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-top-tag.glitch {
    background: #7c3aed;
    color: #fff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}

.card-top-tag.speedbuild {
    background: #f59e0b;
    color: #000;
}

.card-top-tag.original {
    background: #10b981;
    color: #fff;
}

.card-top-tag.cloned {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(6px);
}

.listing-card .body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.listing-card .body h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 10px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-trust-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.card-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.card-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent-pink);
    background-color: #20202e;
    flex-shrink: 0;
}

.card-username {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-save-btn {
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-save-btn:hover {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}

.card-save-btn.saved {
    background: rgba(232, 31, 118, 0.15);
    border-color: var(--accent-pink);
    color: #ff5298;
}

.card-value-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
}

.card-value-amount {
    font-size: 17px;
    font-weight: 800;
    color: var(--accent-pink);
}

.card-value-unit {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.card-themes-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.card-theme-pill {
    background: var(--card-surface-2);
    border: 1px solid var(--border-subtle);
    font-size: 10.5px;
    padding: 2px 7px;
    border-radius: 6px;
    color: var(--text-muted);
    text-transform: capitalize;
}

.card-footer-info {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Pagination / Load More */
.load-more-wrap {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 60px;
}

.btn-load-more {
    background: var(--card-surface);
    border: 1px solid var(--border-accent);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 32px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(232, 31, 118, 0.2);
    transition: all 0.2s;
}

.btn-load-more:hover {
    background: var(--accent-pink);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-pink-glow);
}

/* Empty State */
.browse-empty-card {
    background: var(--card-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 50px 24px;
    text-align: center;
    margin: 30px 0;
}

.browse-empty-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.browse-empty-card p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 20px;
}

/* -------------------------------------------------------------
 * ROBLOX PROFILE AUTH & VERIFICATION POPUPS (ZERO EMOJIS)
 * ------------------------------------------------------------- */

/* Roblox Auth - Confirmation Warning Dialog */
.auth-confirm-dialog {
    max-width: 440px;
    background: #181822;
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.15);
    text-align: center;
    padding: 30px 24px;
    border-radius: 20px;
}

.auth-confirm-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.auth-confirm-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
}

.auth-confirm-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 18px;
}

.auth-confirm-preview-box {
    background: #111118;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    text-align: left;
}

.auth-confirm-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f59e0b;
    background: #20202e;
}

.auth-confirm-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auth-confirm-username {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

.auth-confirm-tag {
    font-size: 11px;
    font-weight: 700;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-confirm-note {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0 0 22px;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 3px solid #f59e0b;
}

.btn-confirm-submit {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #000 !important;
    font-weight: 800 !important;
    border: none !important;
}

.btn-confirm-submit:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
}

/* Full page browser popup styles handled by #browserModal */

.verify-brand-bar {
    background: #12121c;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.verify-brand-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.verify-badge-secure {
    font-size: 10.5px;
    font-weight: 700;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.verify-center-content {
    padding: 24px 22px;
    text-align: center;
}

.verify-avatar-box {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
}

.verify-target-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #E81F76;
    background: #252538;
}

.verify-status-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #E81F76;
    animation: verifyPulse 1.8s infinite ease-out;
}

@keyframes verifyPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.25); opacity: 0; }
}

.verify-target-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
}

.verify-target-badge {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.verify-countdown-wrap {
    background: #111118;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.verify-timer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    margin-bottom: 10px;
}

.verify-timer-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.verify-timer-val {
    color: #E81F76;
    font-weight: 700;
}

.verify-timer-val strong {
    font-size: 15px;
}

.verify-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.verify-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #E81F76, #ff5298, #22c55e);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.verify-step-logs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    margin-bottom: 20px;
}

.verify-step-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.25s;
}

.verify-step-row.active {
    color: #fff;
    background: rgba(232, 31, 118, 0.1);
    font-weight: 600;
}

.verify-step-row.done {
    color: var(--text-secondary);
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.step-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(232, 31, 118, 0.25);
    border-top-color: #E81F76;
    border-radius: 50%;
    animation: stepSpin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes stepSpin {
    to { transform: rotate(360deg); }
}

.step-check {
    flex-shrink: 0;
}

.verify-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-verify-skip {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11.5px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.15s;
}

.btn-verify-skip:hover {
    color: var(--text-secondary);
}

.btn-verify-cancel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-verify-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Status Feedback Popup Modal (Success / Error) */
.status-modal-dialog {
    max-width: 440px;
    background: #181822;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 32px 24px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-modal-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.status-modal-icon-wrap.success {
    background: rgba(34, 197, 94, 0.12);
    border: 1.5px solid rgba(34, 197, 94, 0.35);
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.2);
}

.status-modal-icon-wrap.error {
    background: rgba(232, 31, 118, 0.12);
    border: 1.5px solid rgba(232, 31, 118, 0.35);
    box-shadow: 0 0 25px rgba(232, 31, 118, 0.2);
}

.status-modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
}

.status-modal-msg {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0 0 18px;
}

.status-modal-details {
    width: 100%;
    background: #111118;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    text-align: left;
}

.status-modal-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #22c55e;
    background: #20202e;
}

.status-modal-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-modal-username {
    font-size: 14.5px;
    font-weight: 800;
    color: #fff;
}

.status-modal-badge {
    font-size: 10.5px;
    font-weight: 700;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-modal-actions {
    width: 100%;
}

.btn-status-modal-action {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #E81F76 0%, #b8145a 100%);
    border: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(232, 31, 118, 0.35);
    transition: transform 0.15s, opacity 0.2s;
}

.btn-status-modal-action:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

/* Navbar Profile Login Pill */
.nav-profile-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 12px 3px 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 8px;
}

.nav-profile-pill:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #22c55e;
}

.nav-profile-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #22c55e;
    background: #1c1c28;
}

.nav-profile-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =============================================================
 * LISTING TRADE CTA CARD (REPLACES STATIC BOTTOM FORM)
 * ============================================================= */

.listing-trade-cta-card {
    background: linear-gradient(135deg, rgba(232, 31, 118, 0.08) 0%, rgba(20, 20, 30, 0.95) 100%);
    border: 1.5px solid rgba(232, 31, 118, 0.3);
    border-radius: 20px;
    padding: 24px 26px;
    margin-top: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.listing-trade-cta-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(232, 31, 118, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.trade-cta-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.trade-cta-badge {
    background: rgba(232, 31, 118, 0.18);
    color: #E81F76;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trade-cta-pill-val {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.trade-cta-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.trade-cta-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff5722, #E81F76);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(232, 31, 118, 0.35);
}

.trade-cta-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
}

.trade-cta-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.trade-cta-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-launch-offer-modal {
    background: linear-gradient(135deg, #E81F76 0%, #c2135e 100%);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 26px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(232, 31, 118, 0.35);
    transition: all 0.2s ease;
}

.btn-launch-offer-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 31, 118, 0.5);
    background: linear-gradient(135deg, #ff3388 0%, #E81F76 100%);
}

.trade-cta-user-status {
    font-size: 12px;
    color: var(--text-muted);
}

.cta-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--text-secondary);
}

.cta-profile-img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.cta-profile-badge strong {
    color: #fff;
}

.cta-unlinked-hint {
    color: var(--text-muted);
    font-size: 12px;
}

/* =============================================================
 * MAKE OFFER POP-UP MODAL (ELVEBREDD 1:1 POPUP)
 * ============================================================= */

.make-offer-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    background: rgba(8, 8, 14, 0.88);
    backdrop-filter: blur(10px);
    z-index: 99980 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.make-offer-dialog {
    width: 100%;
    max-width: 860px;
    max-height: 92vh;
    background: #14141d;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 50px rgba(232, 31, 118, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: makeOfferPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes makeOfferPop {
    from { opacity: 0; transform: scale(0.96) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.make-offer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: #101018;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.make-offer-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.make-offer-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(232, 31, 118, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E81F76;
    flex-shrink: 0;
}

.make-offer-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.make-offer-tag-1to1 {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ff5722, #E81F76);
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
}

.make-offer-subtitle {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.make-offer-subtitle strong {
    color: #ffffff;
}

.make-offer-subtitle span {
    color: #E81F76;
    font-weight: 700;
}

.make-offer-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 26px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
}

.make-offer-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

.make-offer-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.make-offer-body::-webkit-scrollbar {
    width: 6px;
}
.make-offer-body::-webkit-scrollbar-track {
    background: transparent;
}
.make-offer-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.make-offer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #101018;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.make-offer-footer-summary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mo-footer-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.mo-footer-count {
    font-size: 13px;
    color: #ffffff;
    font-weight: 800;
}

.make-offer-footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-mo-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mo-cancel:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

/* Explicit Modal Hierarchy Stacking */
#makeOfferModal {
    z-index: 99980 !important;
}

#elvePickerModal {
    z-index: 99990 !important;
}

#confirmLinkModal {
    z-index: 99996 !important;
}

#statusFeedbackModal {
    z-index: 99999 !important;
}

/* =============================================================
 * ELVEBREDD 1:1 TRADE THEME & VALUE CALCULATOR (ADOPT ME DARK)
 * ============================================================= */

.elve-trade-container {
    background: #151520;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
}

/* Top Header Scores & Win/Fair/Lose Bar */
.elve-trade-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.elve-score-col {
    display: flex;
    flex-direction: column;
    min-width: 90px;
}

.elve-score-col.left {
    text-align: left;
}

.elve-score-col.right {
    text-align: right;
}

.elve-score-val {
    font-family: 'Montserrat', sans-serif;
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    letter-spacing: -1px;
}

.elve-score-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 6px;
}

.elve-status-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.elve-status-pill {
    background: #111118;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3px 4px;
    display: inline-flex;
    gap: 2px;
}

.status-tab {
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 11.5px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    transition: all 0.2s ease;
    user-select: none;
}

.status-tab.active.fair {
    background: #38bdf8;
    color: #000;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}

.status-tab.active.win {
    background: #22c55e;
    color: #000;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.45);
}

.status-tab.active.lose {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.45);
}

.elve-balance-bar-wrap {
    width: 220px;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    display: flex;
    overflow: hidden;
}

.elve-balance-bar.left {
    background: linear-gradient(90deg, #ff5722, #E81F76);
    height: 100%;
    transition: width 0.3s ease;
}

.elve-balance-bar.right {
    background: rgba(232, 31, 118, 0.25);
    height: 100%;
    transition: width 0.3s ease;
}

/* Dual 3x3 Grid Board */
.elve-trade-board {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #0f0f16;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    padding: 20px 16px;
}

.elve-grid-card {
    flex: 1;
}

.elve-grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 86px);
    gap: 8px;
}

/* Slot Styling - Elvebredd Rounded Coral/Peach Tiles in Dark Mode (1:1 with Reference) */
.elve-slot {
    position: relative;
    background: rgba(255, 87, 87, 0.08);
    border: 2.5px solid #ff5757;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    overflow: hidden;
}

.elve-slot:hover {
    border-color: #ff3b3b;
    background: rgba(255, 87, 87, 0.16);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 87, 0.25);
}

.elve-slot.has-item {
    border-color: #ff5757;
    background: #1c151c;
}

/* Plus Button on First Empty Slot (1:1 with Reference) */
.elve-slot-plus {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.elve-slot:hover .elve-slot-plus {
    background: #ff5757;
    color: #fff;
    transform: scale(1.1);
}

/* Slot Item Contents */
.elve-slot-img {
    width: 60px;
    height: 60px;
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

/* Top-Left: Neon (N) / Mega (M) Badge */
.elve-slot-badge-left {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
    z-index: 4;
}

.elve-slot-badge-left.neon {
    background: #22c55e;
    color: #000;
}

.elve-slot-badge-left.mega {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
    border-radius: 6px;
}

.elve-slot-badge-left.sm {
    width: 15px;
    height: 15px;
    font-size: 8.5px;
}

/* Bottom-Right: 1:1 Adopt Me Potion Badges (M / N / F / R All at Bottom, Aligned Side-by-Side) */
.elve-potion-badges {
    position: absolute;
    bottom: 4px;
    right: 5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    pointer-events: none;
    z-index: 5;
}

.potion-circle,
.potion-badge {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11.5px;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
    flex-shrink: 0;
    user-select: none;
    text-transform: uppercase;
}

.potion-circle {
    border-radius: 50%;
}

.potion-badge {
    border-radius: 4px;
}

.potion-badge.potion-m {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: #ffffff;
}

.potion-badge.potion-n {
    background: #22c55e;
    color: #052e16;
}

.potion-circle.potion-f {
    background: #2697d5;
}

.potion-circle.potion-r {
    background: #f33062;
}

/* Compact version for Item Picker cards and trade chips (.sm) */
.elve-potion-badges.sm {
    bottom: 3px;
    right: 4px;
    gap: 2px;
}

.elve-potion-badges.sm .potion-circle,
.elve-potion-badges.sm .potion-badge {
    width: 15px;
    height: 15px;
    font-size: 8.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.elve-potion-badges.sm .potion-badge {
    border-radius: 3px;
}

/* Bottom-Left: Item Value Text */
.elve-slot-val {
    position: absolute;
    bottom: 4px;
    left: 6px;
    font-size: 10.5px;
    font-weight: 800;
    color: #ff5298;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
    pointer-events: none;
    z-index: 4;
}

/* Top-Right: Remove Item Button */
.elve-slot-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.95);
    color: #fff;
    font-size: 13px;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.elve-slot.has-item:hover .elve-slot-remove {
    display: flex;
}

/* House Card in Their Grid (Slot 0) */
.elve-slot.is-house {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.elve-slot.is-house .elve-slot-img {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
}

/* Center Difference Number */
.elve-diff-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    min-width: 70px;
}

.elve-diff-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 50px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -1px;
}

/* Footer: Clear All & Shark/Frost Toggle */
.elve-board-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-clear-grid {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.btn-clear-grid:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ff6b8b;
}

.elve-val-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.elve-rec-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    font-weight: 900;
    color: #f59e0b;
    letter-spacing: 0.5px;
}

.elve-arrow-svg {
    color: #f59e0b;
}

.elve-val-toggle {
    background: #0d0d14;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 3px;
    display: inline-flex;
}

.elve-val-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12.5px;
    font-weight: 800;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.elve-val-btn.active {
    background: linear-gradient(135deg, #ff5722 0%, #E81F76 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(232, 31, 118, 0.4);
}

/* =============================================================
 * ELVEBREDD 1:1 ITEM PICKER MODAL
 * ============================================================= */

.elve-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.elve-picker-dialog {
    width: 100%;
    max-width: 680px;
    height: 85vh;
    max-height: 640px;
    background: #191925;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(232, 31, 118, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: elveModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes elveModalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Topbar */
.elve-picker-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #13131c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.elve-picker-actions-left {
    display: flex;
    gap: 8px;
}

.elve-tool-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.elve-tool-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.elve-picker-search-wrap {
    position: relative;
    flex: 1;
}

.elve-picker-search-input {
    width: 100%;
    height: 38px;
    border-radius: 20px;
    background: #0c0c12;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0 38px 0 16px;
    color: #fff;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.elve-picker-search-input:focus {
    border-color: #E81F76;
    box-shadow: 0 0 0 3px rgba(232, 31, 118, 0.2);
}

.elve-search-icon {
    position: absolute;
    right: 14px;
    top: 11px;
    color: var(--text-muted);
    pointer-events: none;
}

.elve-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.elve-close-btn:hover {
    background: #E81F76;
    border-color: #E81F76;
}

/* Modal Body */
.elve-picker-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar Categories */
.elve-picker-sidebar {
    width: 130px;
    background: #13131c;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.elve-cat-pill {
    width: 100%;
    text-align: center;
    padding: 8px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.15s ease;
}

.elve-cat-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.elve-cat-pill.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: 800;
}

/* Center Grid */
.elve-picker-center {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
}

.elve-items-scroll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 8px;
}

.elve-item-card {
    aspect-ratio: 1;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}

.elve-item-card:hover {
    background: rgba(232, 31, 118, 0.15);
    border-color: #E81F76;
    transform: scale(1.05);
}

.elve-item-card img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    margin-bottom: 9px;
}

.elve-item-card-val {
    position: absolute;
    bottom: 3px;
    left: 4px;
    font-size: 9.5px;
    font-weight: 800;
    color: #ff5298;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
    pointer-events: none;
    z-index: 4;
}

.elve-item-card:not(:has(.elve-potion-badges)) .elve-item-card-val {
    left: 0;
    right: 0;
    text-align: center;
}

/* Bottom Modifier Bar: F / R / D / N / M */
.elve-picker-bottombar {
    background: #13131c;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elve-modifiers-row {
    display: flex;
    gap: 12px;
}

.elve-mod-pill {
    min-width: 48px;
    height: 38px;
    border-radius: 19px;
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.elve-mod-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.elve-mod-pill.active {
    border-color: transparent;
    color: #fff;
    transform: scale(1.05);
}

.elve-mod-pill#modFlyBtn.active {
    background: #0099ff;
    box-shadow: 0 4px 16px rgba(0, 153, 255, 0.45);
}

.elve-mod-pill#modRideBtn.active {
    background: #ff1f6d;
    box-shadow: 0 4px 16px rgba(255, 31, 109, 0.45);
}

.elve-mod-pill#modDefaultBtn.active {
    background: linear-gradient(135deg, #ff5722 0%, #ff416c 100%);
    box-shadow: 0 4px 16px rgba(255, 87, 34, 0.45);
}

.elve-mod-pill#modNeonBtn.active {
    background: #22c55e;
    color: #000;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.45);
}

.elve-mod-pill#modMegaBtn.active {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.45);
}

/* Responsive adjustment for Mobile */
@media (max-width: 768px) {
    .elve-trade-board {
        flex-direction: column;
        gap: 12px;
        padding: 14px 10px;
    }
    .elve-grid-3x3 {
        grid-template-rows: repeat(3, 76px);
    }
    .elve-diff-center {
        padding: 4px 0;
    }
    .elve-diff-number {
        font-size: 32px;
    }
    .elve-score-val {
        font-size: 28px;
    }
    .elve-balance-bar-wrap {
        width: 140px;
    }
    .elve-picker-sidebar {
        width: 100px;
    }
}


