/* ════════════════════════════════════════════
   FORTNITE HUB — Kategorien-Übersicht
   ════════════════════════════════════════════ */
#fortnite-hub-view, #fortnite-vbucks-view {
    max-width: 1380px;
    margin: 0 auto;
    padding: 24px 28px 60px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

/* Breadcrumb */
.fhub-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.fhub-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.15s;
}
.fhub-breadcrumb a:hover { color: var(--gold-main, #00ffff); }
.fhub-breadcrumb span { color: rgba(255, 255, 255, 0.3); }
.fhub-breadcrumb strong {
    color: #fff;
    font-weight: 600;
}

/* Filter-Suchleiste */
.fhub-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 18px;
    margin-bottom: 22px;
    transition: border-color 0.15s, background 0.15s;
}
.fhub-search-bar:focus-within {
    border-color: rgba(0, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
}
.fhub-search-bar svg { color: rgba(255, 255, 255, 0.4); flex-shrink: 0; }
.fhub-search-bar input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.92rem;
    font-family: inherit;
}
.fhub-search-bar input::placeholder { color: rgba(255, 255, 255, 0.4); }

/* Page title */
.fhub-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 18px;
    letter-spacing: 0.3px;
}

/* 4-Card Grid */
.fhub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
@media (max-width: 1080px) { .fhub-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .fhub-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.fhub-card {
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
}
.fhub-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 255, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 220, 255, 0.15);
}
.fhub-card--soon { opacity: 0.92; }
.fhub-card--soon:hover {
    border-color: rgba(255, 170, 50, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 18px rgba(255, 170, 50, 0.18);
}

.fhub-card-cover {
    position: relative;
    aspect-ratio: 3/4;
    background-size: cover;
    background-position: center;
    background-color: #0d101c;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.fhub-card-cover--art {
    background:
        radial-gradient(ellipse 100% 70% at 50% 30%, rgba(255,255,255,0.18) 0%, transparent 60%),
        linear-gradient(160deg, var(--bg1, #7c3aed) 0%, var(--bg2, #3b1f8b) 70%, #0d101c 100%);
}
.fhub-card-cover--art::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(255,255,255,0.08), transparent 40%),
        radial-gradient(circle at 80% 0%, rgba(255,255,255,0.05), transparent 40%);
    pointer-events: none;
}
.fhub-card-cover--art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}

.fhub-card-char {
    position: absolute;
    bottom: -8%;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    height: 92%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55));
    pointer-events: none;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.fhub-card:hover .fhub-card-char {
    transform: translateX(-50%) translateY(-6px) scale(1.04);
}
.fhub-card-char--icon {
    width: 58%;
    height: 58%;
    bottom: 18%;
    object-position: center;
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 22px rgba(255, 220, 100, 0.35));
    animation: vbucksFloat 3.5s ease-in-out infinite;
}
@keyframes vbucksFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-6px); }
}
.fhub-card:hover .fhub-card-char--icon {
    transform: translateX(-50%) translateY(-6px) scale(1.08);
    animation-play-state: paused;
}

.fhub-card-watermark {
    display: none;
}

/* ════════════════════════════════════════════
   FORTNITE HUB — User-Bilder als Cover (clean)
   ════════════════════════════════════════════ */
.fnhub-grid { grid-template-columns: repeat(4, 1fr) !important; }
@media (max-width: 1080px) { .fnhub-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 820px)  { .fnhub-grid { grid-template-columns: repeat(2, 1fr) !important; } }

.fn-card-cover {
    position: relative;
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
    background-color: #0d101c;
    overflow: hidden;
}
.fn-card-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, transparent 35%, transparent 65%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}

/* ════════════════════════════════════════════
   ROBLOX HUB — Itemsatis-Style mit echtem Roblox-Logo
   ════════════════════════════════════════════ */
/* 5 Spalten auf wide screens (analog Fortnite mit 4) */
.rbhub-grid { grid-template-columns: repeat(5, 1fr) !important; }
@media (max-width: 1180px) { .rbhub-grid { grid-template-columns: repeat(4, 1fr) !important; } }
@media (max-width: 980px)  { .rbhub-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 720px)  { .rbhub-grid { grid-template-columns: repeat(2, 1fr) !important; } }

/* Karten-Cover: User-Bild als Cover, dezenter Bottom-Gradient für Lesbarkeit */
.rb-card-cover {
    position: relative;
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
    background-color: #0d101c;
    overflow: hidden;
}
.rb-card-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, transparent 35%, transparent 65%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}

.fhub-card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.66rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.4px;
    z-index: 2;
}
.fhub-card-tag--live {
    background: rgba(0, 220, 100, 0.9);
    color: #fff;
    box-shadow: 0 0 12px rgba(0, 230, 100, 0.45);
}
.fhub-card-tag--soon {
    background: rgba(20, 22, 30, 0.85);
    color: #ffc266;
    border: 1px solid rgba(255, 180, 80, 0.4);
}

.fhub-card-name {
    padding: 14px 14px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    background: rgba(255, 255, 255, 0.025);
}

.fhub-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.95rem;
}

/* ════════════════════════════════════════════
   FORTNITE V-BUCKS LIST VIEW
   ════════════════════════════════════════════ */
.fvb-header {
    display: flex;
    gap: 24px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(0, 220, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 22px;
}
.fvb-cover {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.fvb-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(0, 220, 255, 0.15));
}
.fvb-cover img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
}
.fvb-info { flex: 1; min-width: 0; }
.fvb-info h1 { margin: 0 0 6px; font-size: 1.7rem; font-weight: 800; }
.fvb-info p { margin: 0 0 14px; color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; line-height: 1.5; }

.fvb-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 10px 16px;
}
.fvb-stat {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
}
.fvb-stat-val { font-size: 1.1rem; font-weight: 800; }
.fvb-stat-stars { color: #ffd54a; letter-spacing: 1px; font-size: 0.85rem; }
.fvb-stat-label { color: rgba(255, 255, 255, 0.5); font-size: 0.75rem; }
.fvb-stat-icon { font-size: 0.95rem; }
.fvb-stat-text { color: rgba(255, 255, 255, 0.75); font-size: 0.78rem; }
.fvb-stat-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.1);
}

/* Tabs row */
.fvb-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 16px;
}
.fvb-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.18s, color 0.18s;
}
.fvb-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.fvb-tab.active {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: #fff;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}
.fvb-tab-ico { font-size: 1rem; }

.fvb-view-toggle {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 4px;
    margin-left: 4px;
}
.fvb-view-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    width: 34px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.fvb-view-btn:hover { color: #fff; }
.fvb-view-btn.active {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: #fff;
}

/* List */
.fvb-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fvb-row {
    position: relative;
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 16px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px;
    transition: border-color 0.18s, background 0.18s;
}
.fvb-row-pay {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.7rem;
}
.fvb-section-divider {
    margin: 22px 0 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}
.fvb-section-divider::before,
.fvb-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}
.fvb-row:hover {
    border-color: rgba(0, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}
.fvb-row--featured {
    border-color: rgba(255, 200, 80, 0.5);
    box-shadow: 0 0 0 1px rgba(255, 200, 80, 0.18);
    padding-top: 28px;
}
.fvb-row--soldout { opacity: 0.55; }

.fvb-row-banner {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ffae3a, #ff7a1f);
    color: #261200;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(255, 140, 30, 0.4);
    white-space: nowrap;
}

.fvb-row-img {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    flex-shrink: 0;
}
.fvb-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}
.fvb-row-img:hover img { transform: scale(1.05); }
.fvb-discount {
    position: absolute;
    top: 6px;
    left: 6px;
    background: linear-gradient(135deg, #ff5c5c, #d63333);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(255, 70, 70, 0.4);
    z-index: 2;
}

.fvb-row-info {
    cursor: pointer;
    min-width: 0;
}
.fvb-row-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fvb-row-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.fvb-row-seller {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}
.fvb-row-seller-name { color: var(--gold-main, #00ffff); font-weight: 600; }
.fvb-row-price-block {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 4px;
}
.fvb-row-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffd54a;
}
.fvb-row-oldprice {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
}

/* Quantity selector */
.fvb-row-qty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4px 6px;
}
.fvb-qty-btn {
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.fvb-qty-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.fvb-qty-input {
    width: 36px;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 7px;
    color: #fff;
    text-align: center;
    font-weight: 700;
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
}

/* Action buttons */
.fvb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 14px 18px;
    border-radius: 12px;
    min-width: 160px;
    transition: filter 0.18s, transform 0.18s, box-shadow 0.18s;
    color: #fff;
}
.fvb-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.fvb-btn:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.08); }

.fvb-btn--cart {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.fvb-btn--cart:not(:disabled):hover { box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45); }

.fvb-btn--buy {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}
.fvb-btn--buy:not(:disabled):hover { box-shadow: 0 8px 22px rgba(249, 115, 22, 0.45); }

/* Grid mode (toggle) */
.fvb-list--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.fvb-list--grid .fvb-row {
    grid-template-columns: 1fr;
    text-align: center;
}
.fvb-list--grid .fvb-row-img {
    width: 100%;
    height: 200px;
}
.fvb-list--grid .fvb-row-qty,
.fvb-list--grid .fvb-row-info,
.fvb-list--grid .fvb-btn {
    width: 100%;
    min-width: 0;
}
.fvb-list--grid .fvb-row-info { text-align: left; }

/* Empty state */
.fvb-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.025);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    font-size: 0.95rem;
}

/* Responsive list rows */
@media (max-width: 900px) {
    .fvb-row {
        grid-template-columns: 84px 1fr;
        grid-template-areas:
            "img info"
            "buy buy";
        gap: 12px;
        padding: 12px;
    }
    .fvb-row-img    { grid-area: img; width: 84px; height: 84px; }
    .fvb-row-info   { grid-area: info; min-width: 0; }
    .fvb-row-title  { white-space: normal !important; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
    .fvb-row-desc   { -webkit-line-clamp: 2 !important; line-height: 1.4; }
    .fvb-row-seller { flex-wrap: wrap; gap: 4px; padding: 3px 8px; font-size: 0.68rem; }
    .fvb-btn--buy   { grid-area: buy; min-width: 0; width: 100%; padding: 12px 14px; }
    .fvb-row--featured { padding-top: 26px; }
    .fvb-row-banner    { font-size: 0.65rem; padding: 3px 12px; }

    .fvb-header { flex-direction: column; align-items: center; text-align: center; padding: 18px 14px; gap: 14px; }
    .fvb-cover  { width: 96px; height: 96px; }
    .fvb-cover img { width: 56px; height: 56px; }
    .fvb-info h1 { font-size: 1.4rem; }
    .fvb-info p  { font-size: 0.85rem; margin-bottom: 10px; }
    .fvb-stats   { justify-content: center; padding: 8px 12px; gap: 10px; }
    .fvb-stat-divider { display: none; }

    /* Tab-Buttons: nicht in 3 Zeilen umbrechen, Text klein, kompakt */
    .fvb-tabs {
        gap: 4px;
        padding: 4px;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .fvb-tabs::-webkit-scrollbar { display: none; }
    .fvb-tab {
        flex: 1 0 auto;
        font-size: 0.78rem;
        padding: 8px 10px;
        white-space: nowrap;
        gap: 5px;
    }
    .fvb-tab-ico { font-size: 0.85rem; }
    .fvb-view-toggle { margin-left: 4px; flex-shrink: 0; }

    /* Page-Bottom-Padding damit Mobile-Bottom-Nav (76px) nichts verdeckt */
    #fortnite-vbucks-view, #service-category-view {
        padding: 16px 14px 100px;
    }
    .fhub-breadcrumb { font-size: 0.78rem; gap: 6px; flex-wrap: wrap; }
}

/* Sehr schmale Screens: 1-Spalten-Stack damit Buttons nicht überlaufen */
@media (max-width: 380px) {
    .fvb-row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "img"
            "info"
            "buy";
        text-align: center;
    }
    .fvb-row-img { width: 100%; height: 140px; max-width: 220px; margin: 0 auto; }
    .fvb-row-info { text-align: left; }
    .fvb-info h1 { font-size: 1.25rem; }
}
