/* ===== ITEM SHOP - Fortnite 1:1 Replica ===== */

/* Font Faces - Exact Fortnite fonts */
@font-face {
    font-family: 'HeadingNowVariable';
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
    src: url('HeadingNowVariable.woff2') format('woff2');
}

@font-face {
    font-family: 'HeadingNowVariable';
    font-style: italic;
    font-stretch: normal;
    font-display: swap;
    src: url('HeadingNowVariableItalic.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('Inter-Medium.woff2') format('woff2');
}

/* Page Background - Light blue */
.item-shop-page {
    background-color: #0774bb;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    color: #fff;
}

.item-shop-page::before {
    display: none;
}

/* ===== NAVIGATION BAR ===== */
.item-shop-page .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(5, 90, 150, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.item-shop-page .nav-links li a.active {
    background: rgba(255, 255, 255, 0.15);
}

/* ===== SHOP MAIN LAYOUT ===== */
.shop-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 32px;
    padding-top: 80px;
}

.shop-layout {
    position: relative;
    display: flex;
    width: 100%;
}

/* ===== SIDEBAR ===== */
.shop-sidebar {
    width: 48px;
    flex-shrink: 0;
    display: none;
}

@media (min-width: 1024px) {
    .shop-sidebar {
        display: block;
    }
}

.sidebar-inner {
    position: sticky;
    top: 50%;
    z-index: 10;
    transform: translateY(-50%);
}

.sidebar-dots-nav {
    display: flex;
    max-height: 50vh;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
}

.dots-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.dot-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
}

.dot-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.5;
    transition: all 0.2s;
    aspect-ratio: 1;
}

.dot-item.active .dot-circle {
    width: 12px;
    height: 12px;
    opacity: 1;
}

.dot-item:hover .dot-circle {
    opacity: 0.8;
}

/* ===== CONTENT AREA ===== */
.shop-content {
    flex: 1;
    max-width: 1760px;
    margin-left: 32px;
}

@media (max-width: 1023px) {
    .shop-content {
        margin-left: 0;
    }
}

/* ===== SHOP HEADER ===== */
.shop-header {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}

.shop-title {
    font-family: 'HeadingNowVariable', sans-serif;
    font-size: 43px;
    font-weight: 400;
    font-style: italic;
    font-variation-settings: "wdth" 825, "wght" 700;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
    letter-spacing: normal;
    margin: 0;
}

@media (max-width: 1023px) {
    .shop-title {
        font-size: 30px;
    }
}

/* ===== SECTION ===== */
.shop-section {
    scroll-margin-top: 4rem;
    padding-bottom: 60px;
    padding-top: 8px;
    margin-bottom: 8px;
}

@media (max-width: 1023px) {
    .shop-section {
        padding-bottom: 0;
    }
}

.section-title {
    font-family: 'HeadingNowVariable', sans-serif;
    font-size: 43px;
    font-weight: 400;
    font-style: italic;
    font-variation-settings: "wdth" 825, "wght" 700;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
    margin: 0 0 8px 0;
    letter-spacing: normal;
}

@media (max-width: 1023px) {
    .section-title {
        font-size: 28px;
    }
}

/* ===== CARD ROW / SLIDER ===== */
.shop-row {
    position: relative;
}

.shop-cards-grid {
    position: relative;
    display: grid;
    width: 100%;
    grid-auto-flow: column dense;
    grid-auto-columns: minmax(200px, 25%);
    align-items: start;
    overflow-x: auto;
    padding: 4px 0;
    white-space: nowrap;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.shop-cards-grid::-webkit-scrollbar {
    display: none;
}

@media (max-width: 1023px) {
    .shop-cards-grid {
        grid-auto-columns: minmax(33.333%, 1fr);
    }
}

@media (max-width: 767px) {
    .shop-cards-grid {
        grid-auto-columns: minmax(50%, 1fr);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .shop-cards-grid::-webkit-scrollbar {
        display: none;
    }
}

/* ===== CARD WRAPPER ===== */
.card-wrapper {
    position: relative;
    min-width: 0;
    padding: 6px;
    grid-row: span 1;
    grid-column: span 1;
    height: 100%;
    width: auto;
    scroll-snap-align: start;
}

/* ===== SHOP CARD ===== */
.card-outer {
    position: relative;
    display: flex;
    height: 100%;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 0.627;
    outline: 3px solid transparent;
    outline-offset: 2px;
    transition: outline-color 0.15s;
}

.card-outer:hover {
    outline-color: rgba(255, 255, 255, 0.6);
}

.card-link {
    z-index: 1;
    display: flex;
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    outline: 0;
    text-decoration: none;
    color: inherit;
}

/* Card Foreground Overlay */
.card-overlay {
    position: relative;
    z-index: 10;
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: space-between;
}

/* Card Background */
.card-bg {
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.card-bg-inner {
    position: absolute;
    height: 100%;
    width: 100%;
    transition: transform 0.3s ease;
}

.card-outer:hover .card-bg-inner {
    transform: scale(1.03);
}

.card-bg-image-container {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.card-bg-gradient {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.card-char-img {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    top: 0;
    left: 0;
}

.card-char-emoji {
    position: absolute;
    font-size: 120px;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
    line-height: 1;
    transition: transform 0.3s ease;
}

.card-outer:hover .card-char-emoji {
    transform: translateX(-50%) translateY(-50%) scale(1.03);
}

/* Card Top Area (badge area) */
.card-top {
    z-index: 10;
    display: flex;
    flex: 1;
    align-items: flex-end;
    padding: 16px;
    padding-bottom: 8px;
}

/* Card Info - Bottom Section */
.card-info-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.card-info-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    padding-top: 128px;
    pointer-events: none;
}

.card-info-content {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    align-self: flex-end;
    padding: 0 16px 16px;
}

/* Card Name */
.card-name {
    font-family: 'HeadingNowVariable', sans-serif;
    font-size: 24px;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 668, "wght" 500;
    color: #fff;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-wrap: break-word;
}

@media (max-width: 1023px) {
    .card-name {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .card-name {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Card Subtitle - Hidden, shown on hover */
.card-subtitle {
    font-family: 'HeadingNowVariable', sans-serif;
    font-size: 19px;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 668, "wght" 400;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin 0.3s ease;
    margin-bottom: 0;
}

.card-outer:hover .card-subtitle {
    max-height: 100px;
    margin-bottom: 4px;
}

@media (max-width: 1023px) {
    .card-subtitle {
        font-size: 16px;
    }
}

/* Card Price Row */
.card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-price {
    display: flex;
    align-items: center;
    line-height: 1;
}

.card-price-label {
    /* Screen reader only */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.card-price-value {
    font-family: 'HeadingNowVariable', sans-serif;
    font-size: 19px;
    font-weight: 400;
    font-variation-settings: "wdth" 668, "wght" 500;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    line-height: 1;
    position: relative;
    width: max-content;
}

@media (max-width: 1023px) {
    .card-price-value {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .card-price-value {
        font-size: 14px;
    }
}

.tbucks-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    font-size: 1.5rem;
    margin-right: 4px;
    vertical-align: middle;
}

.tbucks-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* ===== ARROW BUTTONS ===== */
.row-arrows {
    pointer-events: none;
    position: absolute;
    display: flex;
    width: 100%;
    justify-content: space-between;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    padding: 0 4px;
}

.row-arrow {
    pointer-events: auto;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: rgb(31, 41, 55);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(32px);
    transition: all 0.2s;
    outline: none;
    padding: 0;
}

.row-arrow:hover {
    background: rgba(255, 255, 255, 0.95);
}

.row-arrow.disabled {
    opacity: 0.4;
    background: rgba(236, 237, 238, 0.3);
    cursor: default;
}

.row-arrow svg {
    width: 1.25em;
    height: 1.25em;
}

/* ===== FOOTER ===== */
.item-shop-page .main-footer {
    position: relative;
    z-index: 1;
    background: rgba(4, 60, 110, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .shop-wrapper {
        padding: 0 24px;
        padding-top: 80px;
    }
}

@media (max-width: 767px) {
    .shop-wrapper {
        padding: 0 12px;
        padding-top: 70px;
    }

    .shop-content {
        margin-left: 0;
    }

    .row-arrows {
        display: none;
    }
}

/* ===== FILTER CHIPS ===== */
.shop-filter-chips {
    display: flex;
    gap: 8px;
    padding: 8px 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.shop-filter-chips::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.12);
}

.filter-chip.active {
    background: #E8FF00;
    border-color: #E8FF00;
    color: #000;
}

/* ===== NOT FOR SALE CARDS ===== */
.card-not-for-sale .card-price-value {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

/* ===== LOADING STATE ===== */
.shop-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    gap: 12px;
}

.shop-loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #E8FF00;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== INVENTORY PAGE ===== */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    padding: 16px 0;
}

.inventory-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 0.8;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.inventory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.inventory-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inventory-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.inventory-card-name {
    font-family: 'HeadingNowVariable', sans-serif;
    font-size: 18px;
    font-variation-settings: "wdth" 668, "wght" 500;
    color: #fff;
    margin-bottom: 4px;
}

.inventory-card-rarity {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.serial-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 700;
    color: #f5c518;
    font-family: 'Inter', sans-serif;
}

.inventory-empty {
    text-align: center;
    padding: 80px 0;
    color: rgba(255, 255, 255, 0.4);
}

.inventory-empty h2 {
    font-family: 'HeadingNowVariable', sans-serif;
    font-size: 32px;
    font-variation-settings: "wdth" 825, "wght" 700;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.inventory-empty p {
    font-size: 16px;
    margin-bottom: 24px;
}

/* ===== PACK BUYERS LEADERBOARD ===== */
.pack-leaderboard-section {
    margin-top: 16px;
}

.pack-lb-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.pack-lb-table thead th {
    text-align: left;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pack-lb-row {
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.15s;
}

.pack-lb-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.pack-lb-row td {
    padding: 12px 14px;
    vertical-align: middle;
}

.pack-lb-row:first-child td:first-child { border-radius: 10px 0 0 10px; }
.pack-lb-row:first-child td:last-child { border-radius: 0 10px 10px 0; }
.pack-lb-row td:first-child { border-radius: 10px 0 0 10px; }
.pack-lb-row td:last-child { border-radius: 0 10px 10px 0; }

/* Rank column */
.pack-lb-rank {
    width: 48px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.pack-lb-top1 .pack-lb-rank { color: #FFD700; font-size: 22px; }
.pack-lb-top2 .pack-lb-rank { color: #C0C0C0; font-size: 22px; }
.pack-lb-top3 .pack-lb-rank { color: #CD7F32; font-size: 22px; }

.pack-lb-top1 { background: rgba(255, 215, 0, 0.08); }
.pack-lb-top2 { background: rgba(192, 192, 192, 0.06); }
.pack-lb-top3 { background: rgba(205, 127, 50, 0.06); }

/* Player column */
.pack-lb-player {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pack-lb-name {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.pack-lb-wallet {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pack-lb-copy {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s;
}

.pack-lb-copy:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Packs count */
.pack-lb-packs {
    font-weight: 700;
    color: #E8FF00;
    font-size: 16px;
    text-align: center;
}

/* Spent column */
.pack-lb-spent {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Breakdown badges */
.pack-lb-breakdown {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.pack-lb-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pack-lb-badge-common {
    background: rgba(180, 180, 180, 0.15);
    color: #b0b0b0;
}

.pack-lb-badge-elite {
    background: rgba(0, 170, 255, 0.15);
    color: #00aaff;
}

.pack-lb-badge-legendary {
    background: rgba(255, 170, 0, 0.15);
    color: #ffaa00;
}

.pack-lb-badge-mythic {
    background: rgba(200, 50, 255, 0.15);
    color: #c832ff;
}

/* Item thumbnail row */
.pack-lb-items-row {
    background: none !important;
}

.pack-lb-items-row td {
    padding: 0 14px 16px;
}

.pack-lb-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 4px 0 0 48px;
}

.pack-lb-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    border-radius: 10px;
    border: 2px solid #b0b0b0;
    background: rgba(0, 0, 0, 0.25);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.pack-lb-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.pack-lb-thumb img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    display: block;
}

.pack-lb-thumb-name {
    font-size: 9px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    padding: 3px 4px 1px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.pack-lb-thumb-rarity {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 4px 3px;
    text-align: center;
}

@media (max-width: 767px) {
    .pack-lb-thumbs {
        padding-left: 0;
        gap: 6px;
    }

    .pack-lb-thumb {
        width: 56px;
    }

    .pack-lb-thumb img {
        width: 56px;
        height: 56px;
    }

    .pack-lb-thumb-name {
        font-size: 7px;
    }
}

/* Empty state */
.pack-lb-empty {
    text-align: center;
    padding: 40px 0;
    color: rgba(255, 255, 255, 0.35);
    font-size: 15px;
}

/* Responsive */
@media (max-width: 767px) {
    .pack-lb-table {
        font-size: 12px;
    }

    .pack-lb-table thead th {
        font-size: 9px;
        padding: 8px 8px;
    }

    .pack-lb-row td {
        padding: 10px 8px;
    }

    .pack-lb-spent,
    .pack-lb-breakdown {
        display: none;
    }

    .pack-lb-name {
        font-size: 12px;
    }

    .pack-lb-packs {
        font-size: 14px;
    }
}

/* ===== PORTFOLIO SUMMARY ===== */
.portfolio-summary {
    display: flex;
    gap: 24px;
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

.port-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.port-total {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.port-total-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.port-total-value {
    font-family: 'HeadingNowVariable', sans-serif;
    font-size: 48px;
    font-weight: 400;
    font-style: italic;
    font-variation-settings: "wdth" 825, "wght" 700;
    color: #E8FF00;
    line-height: 1;
}

.port-stats {
    display: flex;
    gap: 32px;
}

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

.port-stat-value {
    font-family: 'HeadingNowVariable', sans-serif;
    font-size: 28px;
    font-weight: 400;
    font-variation-settings: "wdth" 825, "wght" 700;
    color: #fff;
    line-height: 1;
}

.port-stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.port-breakdown {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.port-breakdown-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2px;
}

.port-rarity-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.port-rarity-bar-track {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.port-rarity-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
}

.port-rarity-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.port-rarity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.port-rarity-label {
    font-weight: 600;
    color: #fff;
    min-width: 70px;
}

.port-rarity-count {
    color: rgba(255, 255, 255, 0.4);
    flex: 1;
}

.port-rarity-value {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}

/* Inventory card price */
.inventory-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.inventory-card-price {
    font-family: 'HeadingNowVariable', sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-variation-settings: "wdth" 668, "wght" 500;
    color: #E8FF00;
}

.inventory-card-price-na {
    color: rgba(255, 255, 255, 0.25);
    font-style: italic;
    font-size: 12px;
}

@media (max-width: 767px) {
    .portfolio-summary {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }

    .port-total-value {
        font-size: 36px;
    }

    .port-stat-value {
        font-size: 22px;
    }

    .port-stats {
        gap: 20px;
    }

    .port-breakdown {
        width: 100%;
    }
}

.inventory-connect-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #E8FF00;
    color: #000;
    font-weight: 700;
    font-size: 15px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s;
}

.inventory-connect-btn:hover {
    transform: translateY(-2px);
}
