/* =========================
   PROFILE HERO
========================= */

.profile-hero {
    position: relative;
    overflow: visible;
    border-radius: 0;
    min-height: 132px;
    margin-bottom: 0;
    background: #07111f;
    border: 0;
    z-index: 1;
}

.profile-hero-banner {
    position: absolute;
    inset: 0;
}

.profile-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .22;
}

.profile-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4,8,16,.78) 0%, rgba(4,8,16,.45) 45%, rgba(4,8,16,.70) 100%),
        linear-gradient(180deg, rgba(4,8,16,.18) 0%, rgba(4,8,16,.52) 100%);
}

.profile-hero-content {
    position: relative;
    z-index: 2;
    min-height: 132px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.profile-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.profile-avatar {
    width: 68px;
    height: 68px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    box-shadow: none;
    flex-shrink: 0;
}

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

.profile-banner-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    /* fallback base */
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

/* big letter in background */
.profile-banner-initial {
    font-size: 120px;
    font-weight: 800;
    color: rgba(255,255,255,0.08);
    pointer-events: none;
}

.profile-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* fallback */
.profile-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;
    font-weight: 700;
    color: #fff;

    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.profile-user-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-user-meta h1 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.02em;
}

.profile-user-meta p {
    margin: 0 0 6px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 500;
}

.profile-user-bio {
    margin: 0;
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
}

.profile-hero-actions {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    align-self: flex-start;
    padding-top: 2px;
    position: relative;
    z-index: 40;
}

.btn-profile-edit,
.btn-profile-share {
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(11,18,33,.88);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: .18s ease;
    box-shadow: none;
}

.btn-profile-edit:hover,
.btn-profile-share:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
}

.profile-share-wrap {
    position: relative;
    z-index: 50;
}

.profile-share-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 210px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(10,16,31,.98);
    border: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 14px 28px rgba(0,0,0,.3);
    display: none;
    z-index: 999;
}

.profile-share-menu.is-open {
    display: block;
}

.profile-share-menu-item {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    background: transparent;
    border: 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.profile-share-menu-item:hover {
    background: rgba(255,255,255,.05);
}

/* =========================
   PROFILE NAV / TABS
========================= */

.profile-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 18px;
    padding: 0 22px;
    height: 58px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    border-radius: 0;
}

.profile-nav-link {
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    color: rgba(255,255,255,.88);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    transition: .18s ease;
    background: transparent;
    white-space: nowrap;
}

.profile-nav-link:hover {
    color: #fff;
    background: transparent;
}

.profile-nav-link.is-active {
    color: #fff;
    background: transparent;
    box-shadow: none;
}

.profile-nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #2d8cff;
}

/* =========================
   COLLECTION FILTERS
========================= */

.profile-collection-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.collection-filters-box {
    background: linear-gradient(180deg, rgba(18, 27, 48, .98) 0%, rgba(6, 11, 20, .92) 100%);
    border-radius: 18px;
    padding: 16px;
}

.collection-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(120px, 0.8fr) minmax(150px, 0.9fr) auto;
    gap: 14px;
    align-items: end;
}

.collection-filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.collection-filter-field label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .56);
}

.collection-filter-field input,
.collection-filter-field select {
    width: 100%;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(8, 13, 25, .72);
    color: #fff;
    padding: 0 12px;
    outline: none;
    font-size: 13px;
}

.collection-filter-field select:focus {
    border-color: rgba(255, 255, 255, 0.18);
    background: #262d37;
}

.collection-filter-field select option {
    background: #262b33;
    color: #fff;
}

.collection-filter-field input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.collection-filter-field input:focus,
.collection-filter-field select:focus {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.collection-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}

.collection-filter-actions button {
    flex: 0 0 auto;
}

.btn-collection-primary,
.btn-collection-secondary {
    height: 40px;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: 0;
    white-space: nowrap;
}

.btn-collection-primary {
    background: linear-gradient(135deg, #2d8cff 0%, #46a3ff 100%);
    color: #fff;
}

.btn-collection-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(43, 127, 255, 0.18);
}

.btn-collection-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.btn-collection-secondary:hover {
    background: rgba(255, 255, 255, 0.07);
}

.collection-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.collection-toolbar-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.collection-stat-card {
    min-width: 130px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
}

.collection-stat-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 5px;
}

.collection-stat-card strong {
    font-size: 18px;
    color: #fff;
}

#collectionMeta {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
}

#marketplaceMeta { text-align: right; color: rgba(255, 255, 255, 0.62);
font-size: 14px; width: 100%;}


.collection-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 16px;
}

.collection-card {
    position: relative;
    min-height: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.02),
        0 12px 28px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
}

.collection-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 18px 34px rgba(0, 0, 0, 0.28);
}

.collection-card-image {
    position: relative;
    display: block;
    padding: 14px 14px 0;
    text-decoration: none;
}



.collection-card-body {
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.collection-card-top-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.collection-card-tag,
.collection-card-subtype {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.collection-card-tag {
    background: rgba(66, 133, 244, 0.16);
    color: #d9e7ff;
    border: 1px solid rgba(66, 133, 244, 0.22);
}

.collection-card-subtype {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.72);
}

.collection-card-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.collection-card-title-link {
    text-decoration: none;
    color: inherit;
}

.collection-card-title {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.collection-card-series {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
}

.collection-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.collection-card-value {
    order: 1;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
    line-height: 1;
}

.collection-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 2px;
	padding: 10px;
}

.collection-card-action {
    height: 40px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    transition: all .18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.collection-card-action-secondary {
    flex: 1;
    padding: 0 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
}

.collection-card-action-secondary:hover {
    background: linear-gradient(135deg, #1ecb7a 0%, #13a85f 100%);
    border-color: rgba(30, 203, 122, 0.55);
    color: #fff;
}

.collection-card-action-primary {
    min-width: 40px;
    width: 40px;
    padding: 0;
    background: linear-gradient(135deg, #ff8a2d 0%, #ff6a00 100%);
    color: #fff;
}

.collection-card-action-primary:hover {
    background: linear-gradient(135deg, #ffa14d 0%, #ff7b1a 100%);
}

.collection-card-menu-wrap {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.collection-card-menu-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(17, 23, 35, 0.78);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.collection-card-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: #101827;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 8px;
    display: none;
    box-shadow: 0 14px 28px rgba(0,0,0,0.28);
}

.collection-card-menu.is-open {
    display: block;
}

.collection-card-menu-item {
    width: 100%;
    min-height: 35px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: left;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
	font-size: 13px;
}

.collection-card-menu-item:hover {
    background: rgba(255,255,255,0.06);
}

.collection-empty {
    padding: 30px 18px;
    text-align: center;
    border-radius: 18px;
    background: linear-gradient(90deg, rgba(4, 8, 16, .78) 0%, rgba(4, 8, 16, .45) 45%, rgba(4, 8, 16, .70) 100%), linear-gradient(180deg, rgba(4, 8, 16, .18) 0%, rgba(4, 8, 16, .52) 100%);
    color: rgba(255, 255, 255, 0.72);
}

.collection-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.collection-page-btn {
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.collection-page-btn.is-active {
    background: #2b7fff;
    border-color: rgba(43, 127, 255, 0.55);
}

.collection-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.collection-page-dots {
    color: rgba(255, 255, 255, 0.55);
}

.collection-mobile-filter-toggle {
    display: none;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.collection-mobile-filter-toggle-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.collection-mobile-filter-chevron {
    transition: transform 0.18s ease;
}

.collection-mobile-filter-toggle.is-open .collection-mobile-filter-chevron {
    transform: rotate(180deg);
}

@media (max-width: 1600px) {
    .collection-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 1400px) {
    .collection-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .collection-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collection-filter-search {
        grid-column: span 2;
    }

    .collection-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .collection-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .profile-hero-content {
        padding: 16px;
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-hero-actions {
        width: 100%;
    }

    .profile-nav {
        gap: 16px;
        padding: 0 14px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .profile-nav::-webkit-scrollbar {
        display: none;
    }

    .collection-mobile-filter-toggle {
        display: flex;
    }

    .collection-filters-box {
        display: none;
        padding: 14px;
        border-radius: 16px;
    }

    .collection-filters-box.is-open {
        display: block;
    }

    .collection-filters {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .collection-filter-search {
        grid-column: span 1;
    }

    .collection-filter-field {
        width: 100%;
    }

    .collection-filter-field input,
    .collection-filter-field select {
        width: 100%;
        height: 40px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, .08);
        background: rgba(8, 13, 25, .72);
        color: #fff;
        padding: 0 12px;
        outline: none;
        font-size: 13px;
    }

    .collection-filter-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        white-space: normal;
    }

    .btn-collection-primary,
    .btn-collection-secondary {
        width: 100%;
        height: 44px;
        font-size: 14px;
    }
}
/* =========================
   PROFILE HERO
========================= */

.profile-hero {
    position: relative;
    overflow: visible;
    border-radius: 0;
    min-height: 132px;
    margin-bottom: 0;
    background: #07111f;
    border: 0;
    z-index: 1;
}

.profile-hero-banner {
    position: absolute;
    inset: 0;
}

.profile-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .22;
}

.profile-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4,8,16,.78) 0%, rgba(4,8,16,.45) 45%, rgba(4,8,16,.70) 100%),
        linear-gradient(180deg, rgba(4,8,16,.18) 0%, rgba(4,8,16,.52) 100%);
}

.profile-hero-content {
    position: relative;
    z-index: 2;
    min-height: 132px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.profile-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.profile-avatar {
    width: 68px;
    height: 68px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    box-shadow: none;
    flex-shrink: 0;
}

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

.profile-user-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-user-meta h1 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.02em;
}

.profile-user-meta p {
    margin: 0 0 6px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 500;
}

.profile-user-bio {
    margin: 0;
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
}

.profile-hero-actions {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    align-self: flex-start;
    padding-top: 2px;
    position: relative;
    z-index: 40;
}

.btn-profile-edit,
.btn-profile-share {
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(11,18,33,.88);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: .18s ease;
    box-shadow: none;
}

.btn-profile-edit:hover,
.btn-profile-share:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
}

.profile-share-wrap {
    position: relative;
    z-index: 50;
}

.profile-share-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 210px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(10,16,31,.98);
    border: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 14px 28px rgba(0,0,0,.3);
    display: none;
    z-index: 999;
}

.profile-share-menu.is-open {
    display: block;
}

.profile-share-menu-item {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    background: transparent;
    border: 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.profile-share-menu-item:hover {
    background: rgba(255,255,255,.05);
}

/* =========================
   PROFILE NAV / TABS
========================= */

.profile-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 18px;
    padding: 0 22px;
    height: 58px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    border-radius: 0;
}

.profile-nav-link {
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    color: rgba(255,255,255,.88);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    transition: .18s ease;
    background: transparent;
    white-space: nowrap;
}

.profile-nav-link:hover {
    color: #fff;
    background: transparent;
}

.profile-nav-link.is-active {
    color: #fff;
    background: transparent;
    box-shadow: none;
}

.profile-nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #2d8cff;
}

/* =========================
   COLLECTION FILTERS
========================= */

.profile-collection-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.collection-filters-box {

	background: linear-gradient(180deg, #0a0f18 0%, #060b14 100%);
    border-radius: 14px;
    padding: 16px;
}

.collection-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(120px, 0.8fr) minmax(150px, 0.9fr) auto;
    gap: 14px;
    align-items: end;
}

.collection-filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.collection-filter-field label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .56);
}

.collection-filter-field input,
.collection-filter-field select {
    width: 100%;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(8, 13, 25, .72);
    color: #fff;
    padding: 0 12px;
    outline: none;
    font-size: 13px;
}

.collection-filter-field select:focus {
    border-color: rgba(255, 255, 255, 0.18);
    background: #262d37;
}

.collection-filter-field select option {
    background: #262b33;
    color: #fff;
}

.collection-filter-field input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.collection-filter-field input:focus,
.collection-filter-field select:focus {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.collection-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}

.collection-filter-actions button {
    flex: 0 0 auto;
}

.btn-collection-primary,
.btn-collection-secondary {
    height: 40px;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: 0;
    white-space: nowrap;
}

.btn-collection-primary {
    background: linear-gradient(135deg, #2d8cff 0%, #46a3ff 100%);
    color: #fff;
}

.btn-collection-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(43, 127, 255, 0.18);
}

.btn-collection-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.btn-collection-secondary:hover {
    background: rgba(255, 255, 255, 0.07);
}

.collection-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.collection-toolbar-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.collection-stat-card {
    min-width: 130px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
}

.collection-stat-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 5px;
}

.collection-stat-card strong {
    font-size: 18px;
    color: #fff;
}

#collectionMeta {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.collection-card {
    position: relative;
    min-height: 100%;
    
    border-radius: 14px;
    overflow: hidden;


    display: flex;
    flex-direction: column;
	
	transition: transform 0.18s ease, border-color 0.18s ease;
    border: 1px solid var(--border);
}

.collection-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 18px 34px rgba(0, 0, 0, 0.28);
}

.collection-card-image {
    position: relative;
    display: block;
    padding: 14px 14px 0;
    text-decoration: none;
}


.collection-card-body {
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.collection-card-top-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.collection-card-tag,
.collection-card-subtype {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.collection-card-tag {
    background: rgba(66, 133, 244, 0.16);
    color: #d9e7ff;
    border: 1px solid rgba(66, 133, 244, 0.22);
}

.collection-card-subtype {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.72);
}

.collection-card-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.collection-card-title-link {
    text-decoration: none;
    color: inherit;
}

.collection-card-title {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.collection-card-series {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
}

.collection-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.collection-card-value {
    order: 1;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
    line-height: 1;
}

.collection-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 2px;
}

.collection-card-action {
    height: 40px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    transition: all .18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.collection-card-action-secondary {
    flex: 1;
    padding: 0 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
}

.collection-card-action-secondary:hover {
    background: linear-gradient(135deg, #1ecb7a 0%, #13a85f 100%);
    border-color: rgba(30, 203, 122, 0.55);
    color: #fff;
}

.collection-card-action-primary {
    min-width: 40px;
    width: 40px;
    padding: 0;
    background: linear-gradient(135deg, #ff8a2d 0%, #ff6a00 100%);
    color: #fff;
}

.collection-card-action-primary:hover {
    background: linear-gradient(135deg, #ffa14d 0%, #ff7b1a 100%);
}

.collection-card-menu-wrap {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.collection-card-menu-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(17, 23, 35, 0.78);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.collection-card-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: #101827;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 8px;
    display: none;
    box-shadow: 0 14px 28px rgba(0,0,0,0.28);
}

.collection-card-menu.is-open {
    display: block;
}

.collection-card-menu-item {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: left;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.collection-card-menu-item:hover {
    background: rgba(255,255,255,0.06);
}



.collection-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.collection-page-btn {
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.collection-page-btn.is-active {
    background: #2b7fff;
    border-color: rgba(43, 127, 255, 0.55);
}

.collection-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.collection-page-dots {
    color: rgba(255, 255, 255, 0.55);
}

.collection-mobile-filter-toggle {
    display: none;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.collection-mobile-filter-toggle-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.collection-mobile-filter-chevron {
    transition: transform 0.18s ease;
}

.collection-mobile-filter-toggle.is-open .collection-mobile-filter-chevron {
    transform: rotate(180deg);
}

@media (max-width: 1600px) {
    .collection-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 1400px) {
    .collection-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .collection-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collection-filter-search {
        grid-column: span 2;
    }

    .collection-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .collection-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .profile-hero-content {
        padding: 16px;
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-hero-actions {
        width: 100%;
    }

    .profile-nav {
        gap: 16px;
        padding: 0 14px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .profile-nav::-webkit-scrollbar {
        display: none;
    }

    .collection-mobile-filter-toggle {
        display: flex;
    }

    .collection-filters-box {
        display: none;
        padding: 14px;
        border-radius: 16px;
    }

    .collection-filters-box.is-open {
        display: block;
    }

    .collection-filters {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .collection-filter-search {
        grid-column: span 1;
    }

    .collection-filter-field {
        width: 100%;
    }

    .collection-filter-field input,
    .collection-filter-field select {
        width: 100%;
        height: 40px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, .08);
        background: rgba(8, 13, 25, .72);
        color: #fff;
        padding: 0 12px;
        outline: none;
        font-size: 13px;
    }

    .collection-filter-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        white-space: normal;
		width: 100%;
    }

    .btn-collection-primary,
    .btn-collection-secondary {
        width: 100%;
        height: 44px;
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .collection-card {
        border-radius: 18px;
    }

    .collection-card-image {
        padding: 10px 10px 0;
    }

    .collection-card-body {
        padding: 10px 12px 14px;
        gap: 8px;
    }

    .collection-card-title {
        font-size: 13px;
    }

    .collection-card-series {
        font-size: 11px;
    }

    .collection-card-value {
        font-size: 14px;
    }

    .collection-card-actions {
        flex-direction: column;
        gap: 8px;
		min-height: 80px;
    }

    .collection-card-action,
    .collection-card-action-primary,.collection-card-action-secondary {
        width: 100%;
		min-height: 40px !important;
        font-size: 12px;
    }

    .collection-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .collection-toolbar-stats {
        width: 100%;
        justify-content: space-between;
    }

    .collection-stat-card {
        flex: 1;
        min-width: 0;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .market-btn-text {
        font-size: 0;
    }

    .market-btn-text::after {
        content: "Sell on market";
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .profile-hero-actions {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .btn-profile-edit {
        flex: 0 0 auto;
    }

    .profile-share-wrap {
        margin-left: auto;
        flex: 0 0 auto;
    }
}

/* LEADERBOARD */
/* =========================
   LEADERBOARD PAGE
========================= */

.lb-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}




.lb-season-header-left,
.lb-season-header-right {
    position: relative;
    z-index: 2;
}

.lb-season-header-left {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 240px;
}

.lb-season-header-left h1 {
    margin: 0;
    margin-top: 20px;
    color: #fff;
    font-size: 32px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.02em;
}

.lb-season-header-left p {
    margin: 0;
    max-width: 760px;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.lb-season-header-right {
    position: absolute;
    top: 24px;
    right: 24px;
    flex-shrink: 0;
    padding-top: 0;
}

.lb-reset-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.92);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    backdrop-filter: blur(6px);
}

.lb-season-header-left {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lb-season-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.lb-season-badge i {
    color: #d8a94b;
    font-size: 12px;
}

.lb-season-header-left h1 {
    margin: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.02em;
	margin-top: 20px;
}

.lb-season-header-left p {
    margin: 0;
    max-width: 760px;
    color: rgba(255,255,255,.68);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.lb-prize-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.06);
    color: rgba(255,255,255,.82);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    flex-wrap: wrap;
}

.lb-prize-pill i {
    color: #ff9e3d;
    flex-shrink: 0;
}

.lb-season-header-right {
    flex-shrink: 0;
    padding-top: 2px;
}

.lb-reset-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    color: rgba(255,255,255,.82);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* =========================
   PODIUM
========================= */

.lb-podium-wrap {
    padding-top: 6px;
}

.lb-podium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.lb-podium-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.lb-podium-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    text-align: center;
}

.lb-podium-avatar {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 0 40px rgba(255,255,255,.04);
    margin-bottom: 10px;
}

.lb-podium-name {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.lb-podium-name:hover {
    color: #2d8cff;
}

.lb-podium-place {
    margin-top: 4px;
    color: rgba(255,255,255,.65);
    font-size: 13px;
    font-weight: 600;
}

.lb-podium-base {
    width: 100%;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.05);
    border-bottom: 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 16px;
}

.lb-podium-card.is-first .lb-podium-base {
    min-height: 190px;
}

.lb-podium-card.is-second .lb-podium-base,
.lb-podium-card.is-third .lb-podium-base {
    min-height: 120px;
}

.lb-podium-score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.lb-podium-score.is-gold {

}

.lb-podium-score.is-silver {

}

.lb-podium-score.is-bronze {

}

/* =========================
   RANKINGS
========================= */

.lb-rankings {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lb-rankings-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.lb-rankings-title h2 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 800;
}

.lb-rankings-title p {
    margin: 0;
    color: rgba(255,255,255,.56);
    font-size: 12px;
    font-weight: 600;
}

.lb-rankings-cutoff {
    color: rgba(255,255,255,.62);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.lb-rankings-cutoff strong {
    color: #fff;
    font-weight: 800;
}

.lb-rank-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lb-rank-row {
    min-height: 54px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.lb-rank-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.lb-rank-number {
    min-width: 38px;
    color: #8aaeff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.lb-rank-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.lb-rank-name {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-rank-name:hover {
    color: #2d8cff;
}

.lb-rank-points {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.lb-empty {
    padding: 24px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.025);
    border: 1px dashed rgba(255,255,255,.08);
    color: rgba(255,255,255,.62);
    font-size: 14px;
    text-align: center;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {
    .lb-season-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .lb-season-header-right {
        width: 100%;
        padding-top: 0;
    }

    .lb-reset-pill {
        white-space: normal;
    }

    .lb-podium-grid {
        gap: 8px;
    }

    .lb-podium-avatar {
        width: 62px;
        height: 62px;
        font-size: 20px;
    }

    .lb-podium-card.is-first .lb-podium-base {
        min-height: 150px;
    }

    .lb-podium-card.is-second .lb-podium-base,
    .lb-podium-card.is-third .lb-podium-base {
        min-height: 100px;
    }
}

@media (max-width: 640px) {
    .lb-season-header-left h1 {
        font-size: 24px;
    }

    .lb-prize-pill {
        font-size: 11px;
    }

    .lb-podium-grid {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .lb-podium-card.is-first .lb-podium-base,
    .lb-podium-card.is-second .lb-podium-base,
    .lb-podium-card.is-third .lb-podium-base {
        min-height: 84px;
    }

    .lb-rankings-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .lb-rank-row {
        min-height: 50px;
        padding: 10px 12px;
    }

    .lb-rank-left {
        gap: 10px;
    }

    .lb-rank-number {
        min-width: 32px;
        font-size: 14px;
    }

    .lb-rank-name,
    .lb-rank-points {
        font-size: 12px;
    }
}

/* =========================
   QUEST TAB
========================= */

.quest-tab-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 8px;
}

.quest-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quest-row {
    border-radius: 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.05);
    padding: 14px 16px;
    transition: border-color .18s ease, background .18s ease;
}

.quest-row:hover {
    border-color: rgba(255,255,255,.09);
    background: rgba(255,255,255,.04);
}

.quest-row.is-complete {
    border-color: rgba(78, 202, 112, .22);
}

.quest-row.is-claimed {
    opacity: .92;
}

.quest-row-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.quest-row-media {
    width: 42px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quest-row-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quest-row-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quest-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.quest-row-head h3 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.01em;
}

.quest-row-reward {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

.quest-row-reward i {
    color: #dce8ff;
    font-size: 12px;
}

.quest-row-progress {
    display: flex;
    gap: 4px;
    align-items: center;
    width: 100%;
}

.quest-segment {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(120,136,153,.28);
    transition: background .18s ease, box-shadow .18s ease;
}

.quest-segment.is-filled {
    background: linear-gradient(90deg, #3d64f5 0%, #6f8df5 100%);
    box-shadow: 0 0 0 1px rgba(111,141,245,.10);
}

.quest-row-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255,255,255,.56);
    font-size: 12px;
    font-weight: 700;
}

.quest-status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .01em;
}

.quest-status-live {
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.76);
}

.quest-status-complete {
    background: rgba(53, 184, 101, .15);
    color: #99efb8;
    border: 1px solid rgba(53, 184, 101, .18);
}

.quest-status-claimed {
    background: rgba(61, 100, 245, .16);
    color: #c9d8ff;
    border: 1px solid rgba(61, 100, 245, .22);
}

.quest-summary-bar {
    min-height: 72px;
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    background: linear-gradient(90deg, #3158ec 0%, #7891e8 100%);
    margin-top: 2px;
}

.quest-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    text-align: center;
}

.quest-summary-item span {
    color: rgba(255,255,255,.92);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}

.quest-summary-item strong {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}

.quest-summary-item strong i {
    font-size: 13px;
    margin-right: 4px;
}

.quest-summary-divider {
    width: 1px;
    background: rgba(255,255,255,.32);
}

@media (max-width: 768px) {
    .quest-row {
        padding: 12px 12px;
    }

    .quest-row-main {
        gap: 12px;
    }

    .quest-row-media {
        width: 38px;
        height: 54px;
    }

    .quest-row-head h3,
    .quest-row-reward {
        font-size: 13px;
    }

    .quest-summary-bar {
        grid-template-columns: 1fr;
    }

    .quest-summary-divider {
        display: none;
    }

    .quest-summary-item {
        min-height: 64px;
    }
}

@media (max-width: 640px) {
    .quest-row-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .quest-row-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* =========================
   QUESTS TAB
========================= */

.quest-tab-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 8px;
}

.quest-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quest-row {
    border-radius: 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.05);
    padding: 14px 16px;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.quest-row:hover {
    border-color: rgba(255,255,255,.09);
    background: rgba(255,255,255,.04);
}

.quest-row.is-complete {
    border-color: rgba(76, 201, 112, .22);
}

.quest-row.is-claimed {
    opacity: .92;
}

.quest-row-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.quest-row-media {
    width: 44px;
    height: 62px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quest-row-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quest-row-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quest-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.quest-row-head h3 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.01em;
}

.quest-row-reward {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

.quest-row-reward i {
    color: #dce8ff;
    font-size: 12px;
}

.quest-row-progress {
    display: flex;
    gap: 4px;
    align-items: center;
    width: 100%;
}

.quest-segment {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(120,136,153,.28);
    transition: background .18s ease, box-shadow .18s ease;
}

.quest-segment.is-filled {
    background: linear-gradient(90deg, #3d64f5 0%, #6f8df5 100%);
    box-shadow: 0 0 0 1px rgba(111,141,245,.10);
}

.quest-row-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255,255,255,.56);
    font-size: 12px;
    font-weight: 700;
}

.quest-status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .01em;
}

.quest-status-live {
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.76);
}

.quest-status-complete {
    background: rgba(53, 184, 101, .15);
    color: #99efb8;
    border: 1px solid rgba(53, 184, 101, .18);
}

.quest-status-claimed {
    background: rgba(61, 100, 245, .16);
    color: #c9d8ff;
    border: 1px solid rgba(61, 100, 245, .22);
}

.quest-summary-bar {
    min-height: 72px;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    background: linear-gradient(90deg, #3158ec 0%, #7891e8 100%);
    margin-top: 2px;
}

.quest-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    text-align: center;
}

.quest-summary-item span {
    color: rgba(255,255,255,.92);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}

.quest-summary-item strong {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}

.quest-summary-item strong i {
    font-size: 13px;
    margin-right: 4px;
}

.quest-summary-divider {
    width: 1px;
    background: rgba(255,255,255,.32);
}

@media (max-width: 768px) {
    .quest-row {
        padding: 12px;
    }

    .quest-row-main {
        gap: 12px;
        align-items: flex-start;
    }

    .quest-row-media {
        width: 40px;
        height: 56px;
    }

    .quest-row-head h3,
    .quest-row-reward {
        font-size: 13px;
    }

    .quest-summary-bar {
        grid-template-columns: 1fr;
    }

    .quest-summary-divider {
        display: none;
    }

    .quest-summary-item {
        min-height: 64px;
    }
}

@media (max-width: 640px) {
    .quest-row-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .quest-row-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

}
.lb-board-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 4px;
}

.lb-board-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.72);
    transition: 0.2s ease;
}

.lb-board-switch-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.lb-board-switch-btn.is-active {
    background: linear-gradient(135deg, #2d8cff 0%, #46a3ff 100%);
    color: #fff;
}
.lb-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.lb-pagination-pages {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lb-pagination-btn,
.lb-pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s ease;
    gap: 8px;
}

.lb-pagination-btn:hover,
.lb-pagination-page:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.14);
    color: #fff;
}

.lb-pagination-page.is-active {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.lb-pagination-btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.lb-pagination-dots {
    color: rgba(255,255,255,0.42);
    padding: 0 4px;
}
/* Green highlight for YOU in top 3 */
.is-top-user {
    border: 2px solid #22c55e;
}

.lb-rank-name.is-top-user,
.lb-podium-name.is-top-user {
    color: #22c55e;
    font-weight: 600;
}
.is-top-user {
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
}

@media (max-width: 900px) {
    .lb-season-header {
        min-height: auto;
        padding: 18px;
    }

    .lb-season-header-left {
        padding-right: 0;
    }

    .lb-season-header-right {
        position: static;
        width: 100%;
        padding-top: 0;
        margin-top: 6px;
    }

    .lb-reset-pill {
        white-space: normal;
    }

    .lb-podium-grid {
        gap: 8px;
    }

    .lb-podium-avatar {
        width: 62px;
        height: 62px;
        font-size: 20px;
    }

    .lb-podium-card.is-first .lb-podium-base {
        min-height: 150px;
    }

    .lb-podium-card.is-second .lb-podium-base,
    .lb-podium-card.is-third .lb-podium-base {
        min-height: 100px;
    }
}


.lb-season-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(59,130,246,0.22), transparent 60%);
    pointer-events: none;
}

.lb-season-header-left {
    position: relative;
    z-index: 2;
    min-width: 0;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding-right: 220px;
}

.collection-filters {
    display: grid;
    grid-template-columns:
        minmax(220px, 1.6fr)
        minmax(160px, 1fr)
        minmax(160px, 1fr)
        minmax(160px, 1fr)
        minmax(120px, 0.9fr)
        minmax(120px, 0.9fr)
        auto;
    gap: 14px;
    align-items: end;
}

.collection-filter-field {
    min-width: 0;
}

.collection-filter-field label {
    display: block;
    margin-bottom: 8px;
}

.collection-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
}


@media (max-width: 900px) {


    .lb-season-header-left {
        padding-right: 0;
        max-width: 100%;
    }

    .lb-season-header-right {
        position: static;
        width: 100%;
        margin-top: 10px;
    }
}


@media (max-width: 900px) {
    .collection-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .collection-filters {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.collection-card-image {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
}

.collection-card-image img {
      display: block;
    width: 90%;
    object-fit: contain;
    margin: 0 auto;
	padding-top: 15px;
	padding-bottom: 25px;
}

.collection-card-hover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(to top, rgba(7, 12, 24, 0.95) 0%, rgba(7, 12, 24, 0.62) 48%, rgba(7, 12, 24, 0.08) 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
	margin-top: -20px !important;
	padding-top: -20px;
}

.collection-card:hover .collection-card-hover,
.collection-card:focus-within .collection-card-hover {
    opacity: 1;
    visibility: visible;
}

.collection-card-hover-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.collection-card-hover-tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.collection-card-hover-tag-muted {
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
}

.collection-card-hover-title {
    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.collection-card-hover-title-under {
    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
	padding-left: 20px;
	padding-right: 20px;
	margin-bottom: 20px;
}

.collection-card-hover-series {
    font-size: 12px;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.76);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.collection-card-hover-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.collection-card-hover-value {
    font-size: 14px;
    font-weight: 800;
    color: #7df7c5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* BUY BACK */
.buyback-status-modal {
    width: min(100%, 420px);
    max-width: 420px;
    padding: 22px;
    border-radius: 20px;
}

.buyback-status-modal__content {
    margin-top: 14px;
    text-align: left;
}

.buyback-status-item {
    margin-bottom: 14px;
}

.buyback-status-item-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: #0a0f18;
    border: 1px solid var(--border);
}

.buyback-status-item-image {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 12px;
    overflow: hidden;
    background: #0b0f15;
}

.buyback-status-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.buyback-status-item-title {
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
    font-size: 15px;
}

.buyback-status-item-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    text-transform: capitalize;
}

.buyback-status-expire {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
  background: rgba(255, 255, 255, .05);
   font-size: 13px;
   color: rgb(255, 167, 38);
}

.buyback-status-expire.is-expired,
.buyback-status-modal.is-expired .buyback-status-expire {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.28);
    color: #fecaca;
}

.buyback-status-note {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.40;
    color: rgba(255,255,255,0.74);
	margin-bottom: 20px !important;
}

.buyback-status-summary {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 16px;
}

.buyback-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border: 0;
    font-size: 14px;
}

.buyback-status-row--fee strong {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.buyback-status-row--total {
    padding-top: 14px;
    margin-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.08);
	margin-bottom: 15px;
}

.buyback-status-legal {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255,255,255,0.52);
    text-align: center;
	margin-top: 20px !important;
}

.buyback-status-legal a {
    color: #c7d2fe;
    text-decoration: underline;
}

.buyback-status-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.buyback-status-actions__accept,
.buyback-status-actions__cancel {
    width: 100%;
    justify-content: center;
}

.status-modal__button--secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
}

.status-modal__button--secondary:hover {
    background: rgba(255,255,255,0.04);
}

.buyback-status-modal.is-expired .buyback-status-actions__accept {
    opacity: 0.65;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .buyback-status-modal {
        width: calc(100vw - 24px);
        max-width: none;
        padding: 18px;
        border-radius: 18px;
    }

    .buyback-status-item-card {
        padding: 12px;
        gap: 12px;
    }

    .buyback-status-item-image {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }

    .buyback-status-item-title {
        font-size: 14px;
    }

    .buyback-status-row {
        font-size: 13px;
    }

    .buyback-status-row--total {
        font-size: 15px;
    }

    .buyback-status-legal {
        font-size: 11px;
    }
}

.buyback-status-expire {
    display: flex;
    align-items: center;
    gap: 10px;
}

.buyback-status-expire__icon {
    font-size: 14px;
    opacity: 0.9;
}

.buyback-status-expire__text {
    flex: 1;
}
.collection-card-image {
    position: relative;
}

.collection-card-favorite {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.82);
    color: #9aa4b2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
    backdrop-filter: blur(8px);
}

.collection-card-favorite:hover {
    transform: translateY(-1px);
    border-color: rgba(59,130,246,0.45);
    color: #60a5fa;
}

.collection-card-favorite.is-favorite {
    color: #3b82f6;
    background: rgba(59,130,246,0.16);
    border-color: rgba(59,130,246,0.50);
}

.collection-card-favorite:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.transfer-inventory-modal {
    max-width: 520px;
}

.transfer-inventory-modal__content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.transfer-inventory-modal__note {
    margin: 0;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    line-height: 1.5;
}

.transfer-inventory-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.transfer-inventory-form label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.82);
}

.transfer-inventory-input {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #fff;
    padding: 0 14px;
    outline: none;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.transfer-inventory-input:focus {
    border-color: rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}

.transfer-inventory-summary {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 14px;
}

.transfer-inventory-error[hidden] {
    display: none !important;
}

.transfer-inventory-error {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 90, 90, 0.22);
    background: rgba(255, 90, 90, 0.10);
    color: #ffb3b3;
    font-size: 13px;
    line-height: 1.45;
}

.transfer-inventory-username-wrap {
    position: relative;
}

.transfer-inventory-search[hidden] {
    display: none !important;
}

.transfer-inventory-search {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    background: #07111f;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0,0,0,0.38);
}

.transfer-inventory-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease;
}

.transfer-inventory-search-item:hover,
.transfer-inventory-search-item.is-active {
    background: rgba(255,255,255,0.06);
}

.transfer-inventory-search-item + .transfer-inventory-search-item {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.transfer-inventory-search-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.72);
    font-size: 12px;
    flex: 0 0 28px;
}

.transfer-inventory-search-name {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
}

.transfer-inventory-search-empty {
    padding: 12px 14px;
    color: rgba(255,255,255,0.60);
    font-size: 13px;
}

/* =========================================
   MARKETPLACE LISTING MODAL
========================================= */

.marketplace-listing-modal {
    max-width: 460px;
    width: 100%;
}

/* =======================
   ITEM CARD
======================= */

.marketplace-listing-item-card {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 12px;
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.marketplace-listing-item-image {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    flex-shrink: 0;
}

.marketplace-listing-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marketplace-listing-item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.marketplace-listing-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.marketplace-listing-item-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* =======================
   TEXT
======================= */

.marketplace-listing-modal__note {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
}

/* =======================
   FORM
======================= */

.marketplace-listing-form {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.marketplace-listing-form label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

/* =======================
   INPUT
======================= */

.marketplace-listing-input-wrap {
    position: relative;
}

.marketplace-listing-input-currency {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);

    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

.marketplace-listing-input {
    width: 100%;
    height: 46px;

    padding: 0 12px;
    padding-left: 28px;

    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);

    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-size: 14px;

    outline: none;
    transition: all 0.2s ease;
}

.marketplace-listing-input:focus {
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(255, 255, 255, 0.05);
}

/* SELECT */

.marketplace-listing-input select,
select.marketplace-listing-input {
    appearance: none;
    cursor: pointer;
}

/* =======================
   SUMMARY
======================= */

.marketplace-listing-summary {
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 14px;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.marketplace-listing-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.marketplace-listing-summary-row strong {
    font-weight: 600;
    color: #fff;
}

.marketplace-listing-summary-row--total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);

    font-size: 14px;
}

.marketplace-listing-summary-row--total strong {
    font-size: 16px;
}

/* =======================
   ERROR
======================= */

.marketplace-listing-error {
    margin-top: 14px;
    padding: 12px;

    border-radius: 10px;

    background: rgba(255, 70, 70, 0.12);
    border: 1px solid rgba(255, 70, 70, 0.25);

    color: #ff6b6b;
    font-size: 13px;
}

/* =======================
   BUTTON OVERRIDE
======================= */

.marketplace-listing-modal .status-modal__button {
    height: 48px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
}

.marketplace-listing-modal .status-modal__button:not(.status-modal__button--secondary) {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
}

.marketplace-listing-modal .status-modal__button:not(.status-modal__button--secondary):hover {
    filter: brightness(1.1);
}

.marketplace-listing-modal .status-modal__button--secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
}

/* =======================
   DISABLED STATE
======================= */

.marketplace-listing-modal .status-modal__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.marketplace-listing-modal .status-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.marketplace-listing-modal .status-modal__button {
    width: 100%;
    height: 46px;
    border-radius: 12px;
}

.marketplace-listing-modal .status-modal__actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.collection-card-action-danger {
    background: rgba(190, 50, 50, 0.16);
    border: 1px solid rgba(255, 90, 90, 0.22);
    color: #ff6f6f;
	padding-left: 15px; 
	padding-right: 15px;
}

.collection-card-action-danger:hover {
    background: rgba(190, 50, 50, 0.24);
    color: #ff8c8c;
}

.remove-listing-modal {
    max-width: 460px;
    width: 100%;
}

.remove-listing-modal__content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.remove-listing-modal__note {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255,255,255,0.72);
}

.remove-listing-modal__actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    margin-top: 18px;
}

.remove-listing-modal__confirm {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    background: rgba(190, 50, 50, 0.16) !important;
    border: 1px solid rgba(255, 90, 90, 0.22) !important;
    color: #ff6f6f !important;
}

.remove-listing-modal__confirm:hover {
    background: rgba(190, 50, 50, 0.24) !important;
}

.collection-card-marketplace {
    padding-left: 20px; 
	padding-right: 20px;
	margin-bottom: 20px;
}

.collection-card-buy-price {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 8px;
	opacity: 0.5;
}

.collection-card-buy-price span { font-size: 12px; font-weight: 800; }

.collection-card-buy-price strong {
    color: #fff;
    font-weight: 800;
}

.collection-card-market-actions {
    display: flex;
    gap: 8px;
}

.collection-card-btn {
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s ease;
	display: block; 
	float: right;
}


.collection-card-btn-buy {
    width: 44px;
    min-width: 44px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #22c55e;
    color: #fff;
    font-size: 16px;
}

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

.collection-card-image {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
}

.collection-card-hover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 12px;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85),
        rgba(0,0,0,0.4),
        transparent
    );

    opacity: 0;
    transition: opacity 0.2s ease;
	padding-top: -12px !important;
}

/* 🔥 ONLY trigger hover when image is hovered */
.collection-card-image:hover .collection-card-hover {
    opacity: 1;
}

.collection-card-marketplace {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 👈 pushes them apart */
    gap: 10px;
}

.collection-card-buy-price .title {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.collection-card-btn-offer {

    background: #3b82f6; /* blue */
    color: #fff;
}

.collection-card-btn-buy,
.collection-card-btn-offer {
    width: 40px;
    height: 40px;
    min-width: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    font-size: 16px;
}

.collection-card-btn-buy:hover,
.collection-card-btn-offer:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.collection-card-own-listing {
    border: 1px solid rgba(102, 187, 106, 0.55);
    box-shadow: 0 0 0 1px rgba(102, 187, 106, 0.12) inset;
}

.collection-card-buy-price-own .title {
    color: #66bb6a;
}

.collection-card-btn-own {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(102, 187, 106, 0.12);
    border: 1px solid rgba(102, 187, 106, 0.35);
    color: #66bb6a;
    cursor: default;
    pointer-events: none;
}