.banners-shop-page {
    padding: 22px;
    max-width: 1200px;
    margin: 0 auto;
}

.banners-shop-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 22px;
}

.banners-shop-title h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.banners-shop-title p {
    margin-top: 4px;
    color: var(--color-text-muted);
    font-size: 13px;
}

.banners-shop-balance {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 16px;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;
}

.banners-shop-balance i {
    color: #7dd3fc;
    font-size: 13px;
}

.banners-shop-balance small {
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 500;
}

.banners-shop-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;

    margin-bottom: 18px;
}

.banners-filter {
    padding: 7px 14px;

    color: var(--color-text-secondary);
    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: var(--radius);

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition:
        color var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast);
}

.banners-filter:hover {
    color: var(--color-text);
    background: var(--color-surface-hover);
}

.banners-filter.active {
    color: var(--color-primary-text);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.banners-shop-meta {
    margin-left: auto;

    color: var(--color-text-muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.banner-card {
    display: flex;
    flex-direction: column;

    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);

    overflow: hidden;

    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.banner-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-border-light);
    box-shadow: var(--shadow);
}

.banner-card.owned {
    border-color: rgba(76, 175, 114, 0.35);
}

.banner-card.active {
    border-color: rgba(79, 147, 224, 0.45);
}

.banner-card-preview {
    position: relative;

    padding: 14px;

    background: var(--color-bg-tertiary);
    border-bottom: 1px solid var(--color-border);
}

.banner-card-skeleton .banner-card-preview {
    height: 130px;
}

.banner-preview {
    position: relative;

    width: 100%;
    height: 100px;

    border-radius: var(--radius);

    overflow: hidden;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.banner-preview-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.banner-preview-text {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;

    padding: 12px 14px;

    background: linear-gradient(90deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.15) 60%,
        transparent 100%);
}

.banner-preview-avatar {
    width: 24px;
    height: 24px;

    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.banner-preview-line {
    width: 60%;
    height: 8px;

    background: rgba(255, 255, 255, 0.35);
    border-radius: 4px;
}

.banner-preview-line.short {
    width: 40%;
}

.banner-card-info {
    flex: 1;

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

    padding: 14px;
}

.banner-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    min-width: 0;
}

.banner-card-name {
    font-size: 13px;
    font-weight: 700;

    color: var(--color-text);

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

.banner-sales {
    flex-shrink: 0;

    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.banner-sales-low { color: #e0a03f; }

.banner-sales-out {
    color: #e86b6b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 10px;
}

.banner-price-locked,
.banner-price-locked i { color: var(--color-text-muted); }

.banner-card.sold-out { opacity: 0.72; }

.banner-card.sold-out:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--color-border);
}

.banner-card-description {
    margin: 0;

    color: var(--color-text-muted);
    font-size: 11px;
    line-height: 1.45;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;

    word-break: break-word;
}

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

    margin-top: auto;
    padding-top: 10px;

    border-top: 1px solid var(--color-border);
}

.banner-price {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--color-text);
    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;
}

.banner-price i {
    color: #7dd3fc;
    font-size: 11px;
}

.banner-price-free {
    color: var(--color-text-muted);
    font-weight: 600;
}

.banner-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 32px;
    padding: 0 14px;

    border-radius: var(--radius-small);

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    white-space: nowrap;

    transition:
        background-color var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast),
        opacity var(--transition-fast);
}

.banner-action-login,
.banner-action-buy {
    color: var(--color-primary-text);
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.banner-action-login:hover,
.banner-action-buy:hover {
    opacity: 0.9;
}

.banner-action-equip {
    color: var(--color-text);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
}

.banner-action-equip:hover {
    color: var(--color-text);
    background: var(--color-surface-hover);
    border-color: var(--color-border-light);
}

.banner-action-unequip {
    color: var(--color-text-secondary);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
}

.banner-action-unequip:hover {
    color: var(--color-danger);
    border-color: rgba(220, 85, 85, 0.4);
    background: rgba(220, 85, 85, 0.08);
}

.banner-action-disabled {
    color: var(--color-text-muted);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);

    opacity: 0.6;
    cursor: not-allowed;
}

.banner-action:disabled {
    cursor: default;
}

.banner-card-skeleton {
    pointer-events: none;
}

.banner-skeleton-line {
    height: 12px;

    background: var(--color-bg-tertiary);
    border-radius: 4px;

    position: relative;
    overflow: hidden;
}

.banner-skeleton-line-short {
    width: 60%;
    height: 10px;
}

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 100%);

    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}

.banners-shop-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;

    margin-top: 20px;
}

.banners-shop-pager:empty {
    display: none;
}

.pager-btn {
    min-width: 34px;
    height: 34px;

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

    padding: 0 9px;

    color: var(--color-text-secondary);
    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: var(--radius);

    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;

    cursor: pointer;

    transition:
        color var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast);
}

.pager-btn:hover:not(:disabled) {
    color: var(--color-text);
    background: var(--color-surface-hover);
}

.pager-btn.active {
    color: var(--color-primary-text);
    background: var(--color-primary);
    border-color: var(--color-primary);

    cursor: default;
}

.pager-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.pager-arrow {
    font-size: 10px;
}

.pager-gap {
    padding: 0 2px;

    color: var(--color-text-muted);
    font-size: 12px;
}

.banners-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 60px 20px;

    color: var(--color-text-muted);
    font-size: 13px;

    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-large);
}

.banners-empty i {
    font-size: 16px;
}

.toast-container {
    position: fixed;
    z-index: 1000;

    right: 20px;
    bottom: 20px;

    display: flex;
    flex-direction: column;
    gap: 8px;

    pointer-events: none;
}

.toast {
    padding: 12px 16px;

    background: var(--color-surface);
    color: var(--color-text);

    border: 1px solid var(--color-border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);

    font-size: 12px;
    font-weight: 500;

    max-width: 320px;

    opacity: 0;
    transform: translateY(8px);

    transition:
        opacity var(--transition-fast),
        transform var(--transition-fast);
}

.toast.toast-show {
    opacity: 1;
    transform: translateY(0);
}

.toast-error {
    color: var(--color-danger);
    border-color: rgba(220, 85, 85, 0.35);
    background: rgba(220, 85, 85, 0.08);
}

.cosmetic-author {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cosmetic-author-verified {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .banners-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 700px) {
    .banners-shop-page {
        padding: 14px;
    }

    .banners-shop-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .banners-shop-balance {
        align-self: flex-start;
    }

    .banners-shop-title h1 {
        font-size: 19px;
    }

    .banners-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .banner-card-info {
        padding: 12px;
    }

    .banner-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .banner-action {
        width: 100%;
    }

    .toast-container {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .toast {
        max-width: 100%;
    }
}