/* ==========================================================================
   FORTNITE ITEM SHOP — PREMIUM IN-GAME REPLICA
   Optimized for Maximum Conversion (Server 1)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Outfit:wght@400;600;700;800;900&family=Open+Sans:wght@600;700;800&display=swap');

:root {
    /* Brand Colors */
    --fn-blue: #0078f2;
    --fn-blue-glow: rgba(0, 120, 242, 0.4);
    --fn-cyan: #00e5ff;
    --fn-cyan-glow: rgba(0, 229, 255, 0.4);
    --fn-yellow: #facc15;
    --fn-yellow-hover: #fde047;
    --fn-yellow-dark: #ca8a04;
    --fn-gold: #f59e0b;
    --fn-purple: #a855f7;
    --fn-green: #22c55e;
    --fn-dark-bg: #090c15;
    --fn-panel-bg: rgba(16, 22, 36, 0.94);
    --fn-card-bg: rgba(22, 30, 50, 0.85);

    /* Rarity Palette */
    --rarity-icon: linear-gradient(145deg, #005bb5, #00f2fe);
    --rarity-gaming: linear-gradient(145deg, #3730a3, #7c3aed);
    --rarity-legendary: linear-gradient(145deg, #b45309, #f59e0b);
    --rarity-epic: linear-gradient(145deg, #6b21a8, #a855f7);
    --rarity-rare: linear-gradient(145deg, #1e40af, #38bdf8);
    --rarity-uncommon: linear-gradient(145deg, #166534, #22c55e);

    /* Fonts */
    --font-head: 'Luckiest Guy', cursive, sans-serif;
    --font-ui: 'Outfit', sans-serif;
    --font-sub: 'Open Sans', sans-serif;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--fn-dark-bg);
    color: #ffffff;
    font-family: var(--font-ui);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

/* Background Atmosphere */
.fn-ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    background: radial-gradient(circle at 50% 15%, rgba(0, 120, 242, 0.22) 0%, rgba(9, 12, 21, 0.95) 75%),
                url('fn-bg.png') center top / cover no-repeat;
    filter: brightness(0.65) saturate(1.2);
}

.fn-ambient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-image: 
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.7;
    pointer-events: none;
}

.fn-ambient-glow {
    position: fixed;
    top: -20vh;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 1100px;
    height: 60vh;
    background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.15) 0%, rgba(168, 85, 247, 0.08) 45%, transparent 75%);
    z-index: -1;
    filter: blur(50px);
    pointer-events: none;
}

/* ==========================================================================
   TOP LOBBY HEADER (FORTNITE IN-GAME MENU)
   ========================================================================== */
.fn-lobby-header {
    width: 100%;
    background: rgba(10, 14, 25, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(0, 229, 255, 0.18);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.fn-top-bar {
    max-width: 1380px;
    margin: 0 auto;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* Left: Brand / Logo */
.fn-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}

.fn-brand-vbucks {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
    animation: coinPulse 2.5s ease-in-out infinite;
}

@keyframes coinPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.08) rotate(3deg); }
}

.fn-brand-text {
    display: flex;
    flex-direction: column;
}

.fn-brand-title {
    font-family: var(--font-head);
    font-size: 20px;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 2px 2px 0px #000;
    line-height: 1;
}

.fn-brand-sub {
    font-size: 10px;
    font-weight: 800;
    color: var(--fn-cyan);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Center: In-game Navigation Tabs */
.fn-nav-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.fn-nav-tabs::-webkit-scrollbar {
    display: none;
}

.fn-nav-tab {
    font-family: var(--font-head);
    font-size: 15px;
    letter-spacing: 1.2px;
    color: #94a3b8;
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    text-transform: uppercase;
}

.fn-nav-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.fn-nav-tab.active {
    color: var(--fn-yellow);
    background: rgba(250, 204, 21, 0.12);
    border-bottom: 3px solid var(--fn-yellow);
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.fn-nav-tab.active::after {
    content: 'LIVE';
    position: absolute;
    top: -5px;
    right: 4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 8px;
    font-family: var(--font-ui);
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 4px;
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* Right: Player Profile & V-Bucks Balance */
.fn-player-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fn-vbucks-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(0, 0, 0, 0.6);
    border: 1.5px solid rgba(0, 229, 255, 0.4);
    border-radius: 30px;
    padding: 4px 12px 4px 6px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.fn-vbucks-pill img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.fn-vbucks-amt {
    font-family: var(--font-head);
    font-size: 15px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.fn-vbucks-plus {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--fn-cyan);
    color: #000;
    font-size: 13px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* In-game Tag / Server indicator */
.fn-server-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 30px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 800;
    color: #4ade80;
    letter-spacing: 0.5px;
}

.fn-server-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: serverPulse 1.5s infinite;
}

@keyframes serverPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ==========================================================================
   HERO BANNER & TRUST TICKER
   ========================================================================== */
.fn-hero-section {
    max-width: 1380px;
    margin: 18px auto 0;
    padding: 0 18px;
}

.fn-trust-ticker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(90deg, rgba(0, 120, 242, 0.15), rgba(0, 229, 255, 0.22), rgba(0, 120, 242, 0.15));
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 12px;
    padding: 10px 18px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.1);
}

.fn-trust-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
}

.fn-trust-left strong {
    color: var(--fn-cyan);
    font-weight: 800;
}

.fn-timer-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 14px;
    color: #cbd5e1;
    letter-spacing: 0.8px;
}

.fn-timer-digits {
    color: #ef4444;
    font-size: 18px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.fn-stock-warning {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #facc15;
    background: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
}

/* ==========================================================================
   CATEGORY PILLS & SEARCH BAR
   ========================================================================== */
.fn-filter-bar {
    max-width: 1380px;
    margin: 18px auto 0;
    padding: 0 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.fn-category-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.fn-category-pills::-webkit-scrollbar {
    display: none;
}

.fn-cat-btn {
    font-family: var(--font-head);
    font-size: 13px;
    letter-spacing: 1px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
}

.fn-cat-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 229, 255, 0.4);
    transform: translateY(-1px);
}

.fn-cat-btn.active {
    color: #000000;
    background: var(--fn-cyan);
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    transform: translateY(-1px);
}

/* Search input */
.fn-search-wrap {
    position: relative;
    min-width: 260px;
    flex: 1;
    max-width: 360px;
}

.fn-search-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid rgba(0, 229, 255, 0.25);
    border-radius: 10px;
    padding: 10px 14px 10px 38px;
    color: #ffffff;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;
}

.fn-search-input:focus {
    border-color: var(--fn-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    background: rgba(15, 23, 42, 0.98);
}

.fn-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #64748b;
    pointer-events: none;
}

/* ==========================================================================
   ITEM SHOP GRID (AUTHENTIC FORTNITE TILES)
   ========================================================================== */
.fn-shop-container {
    max-width: 1380px;
    margin: 22px auto 60px;
    padding: 0 18px;
}

.fn-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.fn-section-title {
    font-family: var(--font-head);
    font-size: 26px;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-shadow: 2px 2px 0px #000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fn-section-title span.badge-count {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 800;
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--fn-cyan);
    padding: 3px 8px;
    border-radius: 6px;
}

/* Shop Shelves Structure */
.fn-shop-shelves-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.fn-shelf {
    position: relative;
}

.fn-shelf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.fn-shelf-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fn-shelf-icon {
    font-size: 24px;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 229, 255, 0.45));
}

.fn-shelf-title {
    font-family: var(--font-head);
    font-size: 22px;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-shadow: 2px 2px 0px #000;
    line-height: 1.1;
}

.fn-shelf-desc {
    font-family: var(--font-ui);
    font-size: 12px;
    color: #94a3b8;
    margin-top: 3px;
    font-weight: 600;
}

.fn-shelf-badge {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 800;
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.35);
    color: var(--fn-cyan);
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dedicated Bundle Grid - Perfectly aligned 3 columns on desktop, 2 on tablet, 1 on mobile */
.fn-bundle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1120px) {
    .fn-bundle-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .fn-bundle-grid {
        grid-template-columns: 1fr;
    }
}

/* Dedicated Skin Grid (Uniform 5-6 columns) */
.fn-skin-grid, .fn-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
}

@media (max-width: 600px) {
    .fn-skin-grid, .fn-item-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Card Tile */
.fn-card-tile {
    position: relative;
    border-radius: 12px;
    background: var(--fn-card-bg);
    border: 2px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.fn-card-tile:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--fn-cyan);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.3);
    z-index: 5;
}

/* Rarity Top Corner Banner */
.fn-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    font-family: var(--font-head);
    font-size: 11px;
    letter-spacing: 0.8px;
    background: #ef4444;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    text-transform: uppercase;
}

.fn-card-badge.badge-featured { background: #eab308; color: #000; }
.fn-card-badge.badge-viral { background: #00f2fe; color: #000; }
.fn-card-badge.badge-hot { background: #f97316; color: #fff; }
.fn-card-badge.badge-new { background: #ec4899; color: #fff; }

.fn-card-timer {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    font-family: var(--font-head);
    font-size: 11px;
    color: #cbd5e1;
    background: rgba(0, 0, 0, 0.65);
    padding: 3px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Card Visual Shading */
.fn-card-visual {
    width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rarity Shaders */
.fn-card-tile.rarity-icon .fn-card-visual { background: var(--rarity-icon); }
.fn-card-tile.rarity-gaming .fn-card-visual { background: var(--rarity-gaming); }
.fn-card-tile.rarity-legendary .fn-card-visual { background: var(--rarity-legendary); }
.fn-card-tile.rarity-epic .fn-card-visual { background: var(--rarity-epic); }
.fn-card-tile.rarity-rare .fn-card-visual { background: var(--rarity-rare); }
.fn-card-tile.rarity-uncommon .fn-card-visual { background: var(--rarity-uncommon); }
.fn-card-tile.rarity-marvel .fn-card-visual {
    background: linear-gradient(145deg, #7b0000, #ec4444);
}

/* Radial Glow Behind Skin */
.fn-card-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.28) 0%, transparent 65%);
    pointer-events: none;
}

/* Angled Grid Overlay inside card */
.fn-card-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 16px;
    pointer-events: none;
}

.fn-card-img {
    width: 100%;
    height: 100%;
    max-width: 94%;
    max-height: 94%;
    object-fit: contain;
    object-position: center center;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.65));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fn-card-tile:hover .fn-card-img {
    transform: scale(1.08) translateY(-4px);
}

/* Hover Quick-Inspect overlay */
.fn-card-hover-action {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: rgba(9, 12, 21, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.fn-card-tile:hover .fn-card-hover-action {
    opacity: 1;
}

.fn-hover-btn {
    font-family: var(--font-head);
    font-size: 13px;
    letter-spacing: 1px;
    background: var(--fn-yellow);
    color: #000;
    padding: 8px 16px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
    transform: translateY(10px);
    transition: transform 0.2s ease;
}

.fn-card-tile:hover .fn-hover-btn {
    transform: translateY(0);
}

/* Card Details (Footer) */
.fn-card-info {
    padding: 12px 14px;
    background: rgba(14, 18, 30, 0.96);
    border-top: 1.5px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    justify-content: space-between;
}

.fn-card-name {
    font-family: var(--font-head);
    font-size: 15px;
    letter-spacing: 0.8px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fn-card-type {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fn-card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fn-old-price {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}

.fn-old-price img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    opacity: 0.7;
}

.fn-free-badge {
    font-family: var(--font-head);
    font-size: 13px;
    letter-spacing: 0.8px;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    padding: 2px 8px;
    border-radius: 4px;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

/* ==========================================================================
   IN-GAME INSPECT & CLAIM MODAL (HIGH-CONVERSION CORE)
   ========================================================================== */
.fn-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(4, 7, 14, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.fn-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fn-inspect-modal {
    width: 100%;
    max-width: 900px;
    max-height: 94vh;
    background: rgba(15, 20, 35, 0.98);
    border: 2px solid rgba(0, 229, 255, 0.35);
    border-radius: 18px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 229, 255, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.94) translateY(20px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.fn-modal-overlay.active .fn-inspect-modal {
    transform: scale(1) translateY(0);
}

/* Close Button */
.fn-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.fn-modal-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg);
}

/* Modal Content Grid */
.fn-modal-body {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    overflow-y: auto;
    max-height: 94vh;
}

/* Left: Skin Showcase */
.fn-showcase-left {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    overflow: hidden;
    border-right: 1.5px solid rgba(255, 255, 255, 0.08);
}

/* Rarity Background for Modal */
.fn-showcase-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.25) 0%, rgba(15, 20, 35, 0.95) 75%);
    z-index: 0;
}

.fn-showcase-aura {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.4) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    animation: auraPulse 3s ease-in-out infinite;
}

@keyframes auraPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0.9; }
}

.fn-showcase-img {
    max-width: 280px;
    max-height: 380px;
    width: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8));
    animation: floatSkin 4s ease-in-out infinite;
}

@keyframes floatSkin {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.fn-included-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.fn-inc-pill {
    font-size: 11px;
    font-weight: 700;
    color: #e2e8f0;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Right: Claim Form */
.fn-claim-right {
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.fn-item-header {
    margin-bottom: 16px;
}

.fn-item-rarity-pill {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 11px;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.fn-item-name {
    font-family: var(--font-head);
    font-size: 28px;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-shadow: 2px 2px 0px #000;
    line-height: 1.1;
    margin-bottom: 6px;
}

.fn-item-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

/* Price banner inside modal */
.fn-modal-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 18px;
}

.fn-modal-old-price {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
}

.fn-modal-old-price img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.fn-modal-free-deal {
    font-family: var(--font-head);
    font-size: 16px;
    color: #22c55e;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Step Form */
.fn-form-group {
    margin-bottom: 14px;
}

.fn-form-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #cbd5e1;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* Platform Selector */
.fn-platform-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.fn-platform-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fn-platform-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.fn-platform-btn span {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.fn-platform-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--fn-cyan);
}

.fn-platform-btn.selected {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--fn-cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

.fn-platform-btn.selected span {
    color: var(--fn-cyan);
}

/* Username Input */
.fn-username-wrap {
    position: relative;
}

.fn-username-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    border: 1.5px solid rgba(0, 229, 255, 0.3);
    border-radius: 10px;
    padding: 12px 14px 12px 42px;
    color: #ffffff;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    outline: none;
    transition: all 0.2s ease;
}

.fn-username-input:focus {
    border-color: var(--fn-cyan);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
    background: rgba(0, 0, 0, 0.85);
}

.fn-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #64748b;
}

/* Bonus V-Bucks Selector */
.fn-vbucks-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.fn-vb-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 7px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.fn-vb-chip img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.fn-vb-chip span.vb-val {
    font-family: var(--font-head);
    font-size: 11px;
    color: #cbd5e1;
}

.fn-vb-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--fn-yellow);
}

.fn-vb-chip.selected {
    background: rgba(250, 204, 21, 0.15);
    border-color: var(--fn-yellow);
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.3);
}

.fn-vb-chip.selected span.vb-val {
    color: var(--fn-yellow);
}

/* CLAIM ACTION BUTTON */
.fn-btn-claim {
    width: 100%;
    background: linear-gradient(180deg, var(--fn-yellow) 0%, var(--fn-yellow-dark) 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    cursor: pointer;
    font-family: var(--font-head);
    font-size: 19px;
    letter-spacing: 1.5px;
    color: #000000;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 0 #a16207, 0 12px 25px rgba(250, 204, 21, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.15s ease;
    margin-top: 6px;
    position: relative;
    overflow: hidden;
}

.fn-btn-claim::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-25deg);
    animation: shineButton 3s ease-in-out infinite;
}

@keyframes shineButton {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.fn-btn-claim:hover {
    background: linear-gradient(180deg, var(--fn-yellow-hover) 0%, var(--fn-yellow) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #a16207, 0 16px 30px rgba(250, 204, 21, 0.5);
}

.fn-btn-claim:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #a16207, 0 6px 15px rgba(250, 204, 21, 0.3);
}

/* Trust Seal Under Claim Button */
.fn-trust-seal {
    text-align: center;
    font-family: var(--font-ui);
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(134, 239, 172, 0.75);
    letter-spacing: 0.3px;
    margin-top: 9px;
    padding: 5px 0 2px;
    user-select: none;
    pointer-events: none;
    animation: fadeInSeal 0.5s ease;
}

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

/* ==========================================================================
   VIEW 2: CINEMATIC DELIVERY & UNLOCK SCREEN
   ========================================================================== */
.fn-delivery-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 24px;
    width: 100%;
    min-height: 520px;
    background: radial-gradient(circle at 50% 20%, rgba(0, 229, 255, 0.14) 0%, rgba(15, 20, 35, 0.98) 75%);
    text-align: center;
    animation: fadeInDelivery 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDelivery {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.fn-delivery-header {
    margin-bottom: 24px;
}

.fn-delivery-badge {
    display: inline-block;
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid rgba(0, 229, 255, 0.35);
    color: var(--fn-cyan);
    font-family: var(--font-head);
    font-size: 11px;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.fn-delivery-title {
    font-family: var(--font-head);
    font-size: 26px;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.4), 2px 2px 0 #000;
    margin-bottom: 6px;
}

.fn-delivery-sub {
    font-size: 13px;
    color: #94a3b8;
}

.fn-delivery-sub strong {
    color: var(--fn-yellow);
    font-weight: 800;
}

/* Center Showcase Cards */
.fn-delivery-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 520px;
}

.fn-deliv-card {
    background: rgba(18, 25, 45, 0.9);
    border: 2px solid rgba(0, 229, 255, 0.3);
    border-radius: 14px;
    padding: 16px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 229, 255, 0.15);
    overflow: hidden;
}

.fn-deliv-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(0, 229, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.fn-deliv-vb-card {
    border-color: rgba(250, 204, 21, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(250, 204, 21, 0.15);
}

.fn-deliv-vb-card::before {
    background: radial-gradient(circle at 50% 40%, rgba(250, 204, 21, 0.2) 0%, transparent 70%);
}

.fn-deliv-img {
    width: 90px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.7));
    position: relative;
    z-index: 2;
    animation: floatDeliv 3s ease-in-out infinite;
}

@keyframes floatDeliv {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.fn-deliv-vb-coin {
    width: 90px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(250, 204, 21, 0.6));
    position: relative;
    z-index: 2;
    animation: coinWobble 2.5s ease-in-out infinite;
}

@keyframes coinWobble {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.08) rotate(5deg); }
}

.fn-deliv-plus {
    font-family: var(--font-head);
    font-size: 28px;
    color: var(--fn-cyan);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

.fn-deliv-info {
    margin-top: 10px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.fn-deliv-tag {
    font-size: 10px;
    font-weight: 800;
    color: var(--fn-cyan);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.fn-deliv-tag.tag-gold {
    color: var(--fn-yellow);
}

.fn-deliv-name {
    font-family: var(--font-head);
    font-size: 14px;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Pipeline steps */
.fn-deliv-pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 520px;
}

.fn-pipe-step {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.fn-pipe-step.pipe-done {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #4ade80;
}

.fn-pipe-step.pipe-active {
    background: rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.5);
    color: var(--fn-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.pipe-chk {
    font-weight: 900;
}

.pipe-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    max-width: 25px;
}

/* Progress bar container */
.fn-deliv-progress-container {
    width: 100%;
    max-width: 520px;
    margin-bottom: 22px;
}

.fn-deliv-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 1.5px solid rgba(0, 229, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.fn-deliv-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0078f2, #00e5ff, #22c55e);
    border-radius: 20px;
    transition: width 0.35s ease;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.7);
}

.fn-deliv-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
}

#deliv-pct-text {
    font-family: var(--font-head);
    font-size: 15px;
    color: var(--fn-cyan);
    letter-spacing: 1px;
}

/* Checkpoint Card */
.fn-deliv-checkpoint {
    width: 100%;
    max-width: 520px;
    background: rgba(10, 14, 25, 0.95);
    border: 1.5px solid rgba(250, 204, 21, 0.4);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(250, 204, 21, 0.15);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fn-checkpoint-info {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.chk-shield {
    font-size: 28px;
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.6));
    flex-shrink: 0;
}

.chk-text strong {
    font-size: 14px;
    color: var(--fn-yellow);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.chk-text p {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.35;
}

.chk-text p strong {
    display: inline;
    color: #ffffff;
}

/* UNLOCK BUTTON */
.fn-btn-unlock {
    width: 100%;
    background: linear-gradient(180deg, var(--fn-yellow) 0%, var(--fn-yellow-dark) 100%);
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    cursor: pointer;
    font-family: var(--font-head);
    font-size: 18px;
    letter-spacing: 1.5px;
    color: #000000;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
    box-shadow: 0 5px 0 #a16207, 0 10px 25px rgba(250, 204, 21, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.15s ease;
    animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 5px 0 #a16207, 0 10px 25px rgba(250, 204, 21, 0.4); }
    50% { box-shadow: 0 5px 0 #a16207, 0 14px 35px rgba(250, 204, 21, 0.7); }
}

.fn-btn-unlock:hover {
    background: linear-gradient(180deg, var(--fn-yellow-hover) 0%, var(--fn-yellow) 100%);
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #a16207, 0 14px 30px rgba(250, 204, 21, 0.5);
}

.fn-btn-unlock:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #a16207, 0 4px 15px rgba(250, 204, 21, 0.3);
}

.fn-sync-log-box div.log-success { color: #4ade80; font-weight: bold; }
.fn-sync-log-box div.log-act { color: #38bdf8; }
.fn-sync-log-box div.log-warn { color: #facc15; }

/* ==========================================================================
   LIVE NOTIFICATIONS (TOAST FEED)
   ========================================================================== */
.fn-live-feed {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.fn-toast-item {
    background: rgba(15, 23, 42, 0.95);
    border: 1.5px solid rgba(0, 229, 255, 0.3);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 229, 255, 0.15);
    animation: toastSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1), toastFadeOut 0.4s ease 4.6s forwards;
    backdrop-filter: blur(10px);
    max-width: 340px;
}

@keyframes toastSlide {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

.fn-toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid rgba(0, 229, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.fn-toast-text {
    font-size: 12px;
    line-height: 1.3;
    color: #cbd5e1;
}

.fn-toast-user {
    color: #ffffff;
    font-weight: 800;
}

.fn-toast-item-name {
    color: var(--fn-cyan);
    font-weight: 800;
}

/* Sound Toggle */
.fn-audio-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    border: 1.5px solid rgba(0, 229, 255, 0.35);
    color: var(--fn-cyan);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.fn-audio-toggle:hover {
    transform: scale(1.1);
    background: var(--fn-cyan);
    color: #000;
}

/* Shake Animation for invalid username */
@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.input-shake {
    animation: inputShake 0.4s ease;
    border-color: #ef4444 !important;
}

/* ==========================================================================
   RESPONSIVENESS (MOBILE / TABLET FIRST-CLASS OPTIMIZATION)
   ========================================================================== */
@media (max-width: 900px) {
    .fn-modal-body {
        grid-template-columns: 1fr;
    }

    .fn-showcase-left {
        border-right: none;
        border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
        padding: 20px 15px 15px;
    }

    .fn-showcase-img {
        max-height: 220px;
    }

    .fn-claim-right {
        padding: 20px 18px;
    }

    .fn-item-name {
        font-size: 22px;
    }

    .fn-nav-tabs {
        display: none; /* Keep clean on small mobile header */
    }
}

@media (max-width: 600px) {
    .fn-item-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .fn-card-tile {
        border-radius: 10px;
    }

    .fn-card-info {
        padding: 8px 10px;
    }

    .fn-card-name {
        font-size: 13px;
    }

    .fn-card-type {
        font-size: 9px;
    }

    .fn-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .fn-search-wrap {
        max-width: 100%;
    }

    .fn-live-feed {
        bottom: 75px;
        left: 10px;
        right: 10px;
    }

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

/* Authentic Fortnite Bundle Cards */
.fn-card-tile.fn-bundle-card {
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.16);
    background: var(--fn-card-bg);
}

.fn-card-tile.fn-bundle-card:hover {
    border-color: var(--fn-cyan);
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 229, 255, 0.35);
}

.fn-card-tile.fn-bundle-card .fn-card-visual {
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bundle visual preserves vibrant rarity series colors! */
.fn-card-tile.fn-bundle-card.rarity-gaming .fn-card-visual { background: var(--rarity-gaming); }
.fn-card-tile.fn-bundle-card.rarity-icon .fn-card-visual { background: var(--rarity-icon); }
.fn-card-tile.fn-bundle-card.rarity-marvel .fn-card-visual { background: linear-gradient(145deg, #7b0000, #ec4444); }
.fn-card-tile.fn-bundle-card.rarity-epic .fn-card-visual { background: var(--rarity-epic); }
.fn-card-tile.fn-bundle-card.rarity-legendary .fn-card-visual { background: var(--rarity-legendary); }
.fn-card-tile.fn-bundle-card.rarity-rare .fn-card-visual { background: var(--rarity-rare); }

.fn-card-tile.fn-bundle-card .fn-card-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.28) 0%, transparent 68%);
    pointer-events: none;
}

.fn-card-tile.fn-bundle-card .fn-card-img {
    width: 100%;
    height: 100%;
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    object-position: center center;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.75));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fn-card-tile.fn-bundle-card:hover .fn-card-img {
    transform: scale(1.06) translateY(-4px);
}

.fn-card-tile.fn-bundle-card .fn-card-badge {
    background: linear-gradient(135deg, #ef4444, #f97316);
    font-size: 11px;
    font-weight: 900;
}

.fn-bundle-save-pill {
    font-family: var(--font-head);
    font-size: 11px;
    color: #facc15;
    background: rgba(250, 204, 21, 0.16);
    border: 1px solid rgba(250, 204, 21, 0.4);
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ==========================================================================
   VIEW 3 — VARIANT C: IFRAME OVERRIDE
   ========================================================================== */
.fn-iframe-view {
    padding: 0 !important;
    background: none !important;
    overflow: hidden !important;
    flex: 1;
    min-height: 520px;
}

.fn-iframe-view iframe {
    width: 100%;
    height: 100%;
    min-height: 520px;
    border: none;
    border-radius: 0 0 20px 20px;
    display: block;
}

/* ==========================================================================
   UNIFIED STEP 2: FORTNITE BATTLE PASS QUEST & DELIVERY HUB
   ========================================================================== */

.fn-quest-hub-view {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 0;
    animation: fadeInQuest 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    background: radial-gradient(circle at 50% 10%, rgba(14, 46, 92, 0.7) 0%, rgba(6, 15, 33, 0.95) 75%);
    border-radius: 0 0 20px 20px;
}

@keyframes fadeInQuest {
    from { opacity: 0; transform: translateY(16px) scale(0.99); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- TOP DELIVERY BANNER --- */
.fn-quest-top-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    background: linear-gradient(90deg, rgba(30, 58, 138, 0.6) 0%, rgba(15, 23, 42, 0.7) 100%);
    border-bottom: 2px solid rgba(250, 204, 21, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.fn-quest-dispatch-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fn-quest-item-thumb-wrap {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.3) 0%, rgba(30, 58, 138, 0.6) 80%);
    border: 2px solid rgba(250, 204, 21, 0.6);
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fn-quest-item-thumb {
    width: 90%;
    height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

.fn-quest-vb-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #000;
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 1px 6px;
    border-radius: 6px;
    border: 1px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.fn-quest-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fn-quest-dispatch-badge {
    font-family: var(--font-head);
    font-size: 11px;
    color: #93c5fd;
    letter-spacing: 1.2px;
    font-weight: 700;
}

.fn-quest-item-title {
    font-family: var(--font-head);
    font-size: 20px;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(147, 197, 253, 0.4);
}

.fn-quest-meta-line {
    font-family: var(--font-ui);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.fn-quest-meta-line strong {
    color: #facc15;
}

.fn-quest-status-pill {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

.fn-quest-timer-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.fn-qtimer-lbl {
    font-family: var(--font-head);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

.fn-qtimer-val {
    font-family: var(--font-head);
    font-size: 18px;
    color: #facc15;
    letter-spacing: 1.5px;
    font-weight: 900;
}

/* --- QUEST TRACKER BAR --- */
.fn-quest-tracker-bar {
    padding: 16px 24px 12px;
    background: rgba(15, 23, 42, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fn-quest-tracker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.fn-quest-tracker-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 16px;
    color: #ffffff;
    letter-spacing: 1px;
}

.fn-quest-star {
    font-size: 18px;
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.8));
}

.fn-quest-req-tag {
    background: rgba(250, 204, 21, 0.18);
    color: #fde047;
    border: 1px solid rgba(250, 204, 21, 0.45);
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 0.8px;
    padding: 2px 8px;
    border-radius: 4px;
}

.fn-quest-tracker-count {
    font-family: var(--font-ui);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.fn-quest-tracker-count strong {
    color: #facc15;
    font-weight: 800;
}

.fn-quest-track {
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

.fn-quest-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #facc15, #22c55e);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: questBarFlow 3s linear infinite;
    transition: width 0.5s ease;
}

@keyframes questBarFlow {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

.fn-quest-help-text {
    font-family: var(--font-ui);
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    line-height: 1.45;
}

/* --- VERIFICATION PULSE BANNER --- */
.fn-quest-verifying-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 14px 24px 4px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.18), rgba(245, 158, 11, 0.28));
    border: 1.5px solid rgba(250, 204, 21, 0.6);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.2);
    animation: verifyingPulse 2s ease-in-out infinite;
}

@keyframes verifyingPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(250, 204, 21, 0.2); }
    50% { box-shadow: 0 0 28px rgba(250, 204, 21, 0.45); }
}

.fn-verifying-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #facc15;
    border-radius: 50%;
    animation: spinVerifying 0.8s linear infinite;
    flex-shrink: 0;
}

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

.fn-verifying-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fn-verifying-text strong {
    font-family: var(--font-head);
    font-size: 13px;
    color: #fde047;
    letter-spacing: 0.8px;
}

.fn-verifying-text span {
    font-family: var(--font-ui);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

/* --- QUEST CARDS LIST --- */
.fn-quest-cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 24px 20px;
}

.fn-quest-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.fn-quest-card:hover {
    transform: translateY(-3px);
    border-color: rgba(250, 204, 21, 0.5);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(250, 204, 21, 0.15);
}

.fn-quest-card.quest-featured {
    border-color: rgba(250, 204, 21, 0.6);
    background: linear-gradient(135deg, rgba(50, 45, 20, 0.75) 0%, rgba(20, 25, 45, 0.9) 100%);
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.12);
}

.fn-quest-card.quest-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #facc15, #f59e0b);
}

.fn-quest-card-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.fn-quest-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fn-quest-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.fn-quest-tags-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.fn-quest-badge {
    font-family: var(--font-head);
    font-size: 10px;
    letter-spacing: 0.8px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(250, 204, 21, 0.16);
    color: #fde047;
    border: 1px solid rgba(250, 204, 21, 0.35);
    text-transform: uppercase;
}

.fn-quest-difficulty {
    font-family: var(--font-ui);
    font-size: 11px;
    color: #86efac;
    font-weight: 700;
}

.fn-quest-title {
    font-family: var(--font-head);
    font-size: 16px;
    color: #ffffff;
    letter-spacing: 0.8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fn-quest-desc {
    font-family: var(--font-ui);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fn-quest-reward {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-head);
    font-size: 12px;
    color: #86efac;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.fn-quest-reward strong {
    color: #facc15;
}

/* Quest Action Button */
.fn-quest-action-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.fn-quest-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    color: #050a14 !important;
    text-decoration: none !important;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(250, 204, 21, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.fn-quest-action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 22px rgba(250, 204, 21, 0.6);
}

.fn-quest-action-btn.btn-verifying {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    pointer-events: none;
}

.fn-quest-spots-text {
    font-family: var(--font-ui);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
}

/* --- FOOTER TRUST --- */
.fn-quest-footer-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
    font-family: var(--font-ui);
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.45);
    flex-wrap: wrap;
}

/* Mobile Adjustments for Quest Hub */
@media (max-width: 680px) {
    .fn-quest-top-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
    }
    .fn-quest-timer-box {
        align-self: flex-start;
        flex-direction: row;
        gap: 8px;
        align-items: center;
        padding: 4px 10px;
    }
    .fn-quest-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
    }
    .fn-quest-action-wrap {
        align-items: stretch;
    }
    .fn-quest-action-btn {
        width: 100%;
        text-align: center;
    }
    .fn-quest-tracker-bar {
        padding: 12px 16px;
    }
    .fn-quest-cards-list {
        padding: 12px 16px 16px;
    }
}

