/* ==========================================================================
   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;
}

/* Fortnitemares Atmospheric Background */
.fn-ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    background: 
        radial-gradient(circle at 50% 12%, rgba(139, 92, 246, 0.28) 0%, rgba(249, 115, 22, 0.12) 35%, rgba(10, 8, 22, 0.96) 80%),
        radial-gradient(circle at 85% 25%, rgba(0, 229, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 15% 30%, rgba(239, 68, 68, 0.12) 0%, transparent 45%),
        url('fn-bg.png') center top / cover no-repeat;
    filter: brightness(0.72) saturate(1.25);
}

.fn-ambient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-image: 
        linear-gradient(rgba(168, 85, 247, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 115, 22, 0.03) 1px, transparent 1px);
    background-size: 55px 55px;
    opacity: 0.75;
    pointer-events: none;
}

.fn-ambient-glow {
    position: fixed;
    top: -20vh;
    left: 50%;
    transform: translateX(-50%);
    width: 95vw;
    max-width: 1300px;
    height: 65vh;
    background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.25) 0%, rgba(249, 115, 22, 0.16) 35%, rgba(0, 229, 255, 0.08) 60%, transparent 78%);
    z-index: -1;
    filter: blur(65px);
    pointer-events: none;
    animation: ambientAura 9s ease-in-out infinite alternate;
}

@keyframes ambientAura {
    0% { transform: translateX(-50%) scale(1); opacity: 0.85; }
    50% { transform: translateX(-48%) scale(1.05); opacity: 1; }
    100% { transform: translateX(-52%) scale(0.98); opacity: 0.9; }
}

/* ==========================================================================
   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;
}

/* ==========================================================================
   QUICK 3-STEP CLAIM GUIDE
   ========================================================================== */
.fn-steps-guide-section {
    max-width: 1380px;
    margin: 18px auto 0 auto;
    padding: 0 18px;
}

.fn-steps-guide {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.75) 100%);
    border: 1.5px solid rgba(0, 229, 255, 0.3);
    border-radius: 14px;
    padding: 14px 22px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.fn-step-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fn-step-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00e5ff 0%, #0284c7 100%);
    color: #02111e;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.55);
}

.fn-step-highlight .fn-step-badge {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.65);
}

.fn-step-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fn-step-title {
    font-family: var(--font-head);
    font-size: 14px;
    letter-spacing: 0.8px;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.fn-step-desc {
    font-family: var(--font-ui);
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fn-step-arrow {
    color: rgba(0, 229, 255, 0.55);
    font-size: 18px;
    font-weight: 900;
    user-select: none;
}

@media (max-width: 900px) {
    .fn-steps-guide {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px 16px;
    }
    .fn-step-arrow {
        display: none;
    }
    .fn-step-desc {
        white-space: normal;
    }
}

/* ==========================================================================
   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-badge.badge-squid { background: linear-gradient(135deg, #ff0077, #037a76); color: #fff; box-shadow: 0 0 12px rgba(255, 0, 119, 0.6); }
.fn-card-badge.badge-jason { background: linear-gradient(135deg, #7f1d1d, #dc2626); color: #fff; box-shadow: 0 0 12px rgba(220, 38, 38, 0.6); }
.fn-card-badge.badge-huggy { background: linear-gradient(135deg, #0284c7, #eab308); color: #fff; box-shadow: 0 0 12px rgba(2, 132, 199, 0.6); }
.fn-card-badge.badge-yeat { background: linear-gradient(135deg, #18181b, #84cc16); color: #fff; box-shadow: 0 0 12px rgba(132, 204, 22, 0.6); }
.fn-card-badge.badge-rick { background: linear-gradient(135deg, #15803d, #22c55e); color: #fff; box-shadow: 0 0 12px rgba(34, 197, 94, 0.6); }
.fn-card-badge.badge-ninjago { background: linear-gradient(135deg, #dc2626, #f59e0b); color: #fff; box-shadow: 0 0 12px rgba(245, 158, 11, 0.6); }
.fn-card-badge.badge-galaxy { background: linear-gradient(135deg, #7c3aed, #06b6d4); color: #fff; box-shadow: 0 0 12px rgba(124, 58, 237, 0.6); }
.fn-card-badge.badge-fnaf { background: linear-gradient(135deg, #78350f, #b45309); color: #fff; }
.fn-card-badge.badge-halloween { background: linear-gradient(135deg, #ea580c, #dc2626); color: #fff; box-shadow: 0 0 12px rgba(234, 88, 12, 0.6); }
.fn-card-badge.badge-streetfighter { background: linear-gradient(135deg, #dc2626, #2563eb); color: #fff; }
.fn-card-badge.badge-anime { background: linear-gradient(135deg, #8b5cf6, #ec4899); color: #fff; }
.fn-card-badge.badge-stranger { background: linear-gradient(135deg, #b91c1c, #450a0a); color: #fff; }
.fn-card-badge.badge-scooby { background: linear-gradient(135deg, #0d9488, #ea580c); 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);
}

/* Card Call-To-Action (Claim / Get Button) */
.fn-card-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 9px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #00f2fe 0%, #00c0fa 100%);
    color: #021424;
    font-family: var(--font-head);
    font-size: 13.5px;
    letter-spacing: 1px;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.fn-bundle-cta-btn {
    background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
    color: #1c1917;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.fn-cta-icon {
    font-size: 15px;
    line-height: 1;
}

.fn-cta-label {
    line-height: 1;
    font-weight: 900;
}

.fn-cta-arrow {
    font-size: 14px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.fn-card-tile:hover .fn-card-cta-btn {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 229, 255, 0.7);
    filter: brightness(1.06);
}

.fn-card-tile:hover .fn-bundle-cta-btn {
    box-shadow: 0 6px 22px rgba(250, 204, 21, 0.75);
}

.fn-card-tile:hover .fn-cta-arrow {
    transform: translateX(4px);
}

.fn-card-tile:active .fn-card-cta-btn {
    transform: scale(0.97);
}

.fn-bundle-save-pill {
    font-family: var(--font-head);
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #facc15;
    background: rgba(250, 204, 21, 0.15);
    border: 1px solid rgba(250, 204, 21, 0.35);
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.fn-discount-pill {
    font-family: var(--font-head);
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 800;
}

/* Load More / Expand Catalog Engine */
.fn-load-more-wrap {
    display: flex;
    justify-content: center;
    margin: 36px 0 20px 0;
    width: 100%;
}

.fn-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border: 2px solid var(--fn-cyan);
    border-radius: 12px;
    padding: 14px 34px;
    color: #ffffff;
    font-family: var(--font-head);
    font-size: 15px;
    letter-spacing: 1.5px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fn-load-more-btn:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, var(--fn-cyan), #0099ff);
    color: #02111e;
    box-shadow: 0 12px 35px rgba(0, 229, 255, 0.6);
}

.fn-load-more-btn:hover .fn-lm-badge {
    background: rgba(2, 17, 30, 0.3);
    color: #02111e;
    border-color: rgba(2, 17, 30, 0.5);
}

.fn-load-more-btn.fn-collapse-btn {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(15, 23, 42, 0.85);
    color: #94a3b8;
    box-shadow: none;
}

.fn-load-more-btn.fn-collapse-btn:hover {
    color: #ffffff;
    border-color: #ffffff;
    background: rgba(30, 41, 59, 0.95);
}

.fn-lm-icon {
    font-size: 18px;
    line-height: 1;
}

.fn-lm-badge {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 800;
    background: rgba(0, 229, 255, 0.18);
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: var(--fn-cyan);
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

/* ==========================================================================
   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: flex-start;
    padding: 28px 24px 24px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    background: radial-gradient(circle at 50% 15%, rgba(0, 229, 255, 0.16) 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;
}

.fn-sync-log-box {
    width: 100%;
    max-width: 520px;
    background: rgba(4, 8, 16, 0.75);
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: 10px;
    padding: 10px 14px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 11px;
    color: #94a3b8;
    text-align: left;
    height: 80px;
    overflow-y: auto;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.fn-sync-log-box .log-line {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
    animation: fadeInLog 0.2s ease;
}

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

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

.fn-auto-advance-note {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 6px;
    text-align: center;
}

.fn-auto-advance-note strong {
    color: var(--fn-cyan);
    font-weight: 800;
}

@media (max-width: 600px) {
    .fn-delivery-view {
        padding: 20px 14px;
    }
    .fn-delivery-title {
        font-size: 20px;
    }
    .fn-delivery-showcase {
        gap: 10px;
        margin-bottom: 16px;
    }
    .fn-deliv-card {
        padding: 10px 8px;
    }
    .fn-deliv-img, .fn-deliv-vb-coin {
        width: 70px;
        height: 85px;
    }
    .fn-deliv-name {
        font-size: 12px;
    }
    .fn-deliv-pipeline {
        gap: 4px;
        margin-bottom: 14px;
    }
    .fn-pipe-step {
        padding: 4px 8px;
        font-size: 9.5px;
    }
}

/* ==========================================================================
   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 */
    }
}

/* ==========================================================================
   MOBILE FIRST-CLASS CLEAN LAYOUT OPTIMIZATIONS (<= 680px)
   Recovers ~390px of vertical clutter, fixes text wraps & reveals cards instantly
   ========================================================================== */
@media (max-width: 680px) {
    /* 1. Header: Sleek, single-line, zero wrap on SERVER pill */
    .fn-top-bar {
        padding: 6px 12px;
        gap: 8px;
    }

    .fn-brand {
        gap: 6px;
    }

    .fn-brand-vbucks {
        width: 28px;
        height: 28px;
    }

    .fn-brand-title {
        font-size: 16px;
        letter-spacing: 0.5px;
    }

    .fn-brand-sub {
        display: none; /* Hide bulky subtext on phone screens */
    }

    .fn-player-stats {
        gap: 6px;
    }

    .fn-vbucks-pill {
        padding: 3px 8px 3px 5px;
        gap: 4px;
        border-radius: 20px;
    }

    .fn-vbucks-pill img {
        width: 16px;
        height: 16px;
    }

    .fn-vbucks-amt {
        font-size: 12.5px;
    }

    .fn-vbucks-plus {
        width: 15px;
        height: 15px;
        font-size: 11px;
    }

    .fn-server-tag {
        padding: 3px 8px;
        font-size: 10px;
        white-space: nowrap; /* CRITICAL: Prevents 'SERVE 2' from breaking into two lines */
        flex-shrink: 0;
        gap: 4px;
    }

    .fn-server-dot {
        width: 6px;
        height: 6px;
    }

    /* 2. Trust Ticker: Ultra-compact 2-row strip instead of 140px block */
    .fn-hero-section {
        margin: 6px auto 0;
        padding: 0 10px;
    }

    .fn-trust-ticker {
        padding: 6px 10px;
        gap: 4px 10px;
        justify-content: center;
        border-radius: 8px;
    }

    .fn-trust-left {
        font-size: 11px;
        width: 100%;
        justify-content: center;
        text-align: center;
        gap: 5px;
    }

    .fn-timer-wrap {
        font-size: 11px;
        gap: 4px;
        letter-spacing: 0.4px;
    }

    .fn-timer-digits {
        font-size: 13.5px;
        letter-spacing: 1px;
    }

    .fn-stock-warning {
        font-size: 10px;
        padding: 2px 7px;
        border-radius: 4px;
        gap: 4px;
    }

    /* 3. Filter Bar & Search: Compact margins & heights */
    .fn-filter-bar {
        margin: 8px auto 0;
        padding: 0 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .fn-category-pills {
        gap: 6px;
        padding-bottom: 2px;
        width: 100%;
    }

    .fn-cat-btn {
        padding: 5px 10px;
        font-size: 11px;
        border-radius: 6px;
    }

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

    .fn-search-input {
        padding: 7px 10px 7px 32px;
        font-size: 12px;
        border-radius: 8px;
    }

    .fn-search-icon {
        left: 10px;
        font-size: 12px;
    }

    /* 4. Quick 3-Step Guide: Sleek 3-column micro-bar (drops from 220px to 34px!) */
    .fn-steps-guide-section {
        margin: 6px auto 0 auto;
        padding: 0 10px;
    }

    .fn-steps-guide {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 6px 8px !important;
        border-radius: 8px !important;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(30, 41, 59, 0.85) 100%) !important;
    }

    .fn-step-item {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        min-width: 0 !important;
    }

    .fn-step-badge {
        width: 18px !important;
        height: 18px !important;
        font-size: 10.5px !important;
        box-shadow: none !important;
        flex-shrink: 0 !important;
    }

    .fn-step-content {
        min-width: 0 !important;
    }

    .fn-step-title {
        font-size: 9.5px !important;
        letter-spacing: 0.3px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.1 !important;
    }

    .fn-step-desc {
        display: none !important; /* Hide long secondary text to eliminate huge vertical box */
    }

    .fn-step-arrow {
        display: none !important;
    }

    /* 5. Shop Container & Shelves: Hide redundant double header */
    .fn-shop-container {
        margin: 10px auto 40px;
        padding: 0 10px;
    }

    .fn-section-header {
        display: none; /* Hide 'TODAY'S SPECIAL OFFERS' header on mobile since shelf header does the job */
    }

    .fn-shop-shelves-container {
        gap: 20px;
    }

    .fn-shelf-header {
        margin-bottom: 10px;
        padding-bottom: 6px;
    }

    .fn-shelf-title-wrap {
        gap: 8px;
    }

    .fn-shelf-icon {
        font-size: 18px;
    }

    .fn-shelf-title {
        font-size: 15px;
        letter-spacing: 0.8px;
    }

    .fn-shelf-desc {
        display: none; /* Hide verbose subtitle text on mobile */
    }

    .fn-shelf-badge {
        font-size: 9.5px;
        padding: 2px 7px;
    }

    /* 6. Card Grids & Proportions */
    .fn-bundle-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

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

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

    .fn-card-tile.fn-bundle-card .fn-card-visual {
        aspect-ratio: 16 / 9;
    }

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

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

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

    .fn-card-cta-btn {
        padding: 7px 10px;
        font-size: 11.5px;
        margin-top: 6px;
        border-radius: 7px;
    }

    .fn-card-badge {
        top: 6px;
        left: 6px;
        font-size: 9.5px;
        padding: 2px 6px;
    }

    /* 7. Toasts & Audio Button: Keep off card interactive zones */
    .fn-live-feed {
        bottom: 12px;
        left: 10px;
        right: auto;
        max-width: calc(100vw - 65px);
        z-index: 900;
    }

    .fn-toast-item {
        padding: 5px 9px;
        border-radius: 8px;
        gap: 7px;
        max-width: 100%;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    }

    .fn-toast-icon {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .fn-toast-text {
        font-size: 10px;
        line-height: 1.25;
    }

    .fn-audio-toggle {
        bottom: 12px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    /* 8. Inspect Modal on Mobile */
    .fn-modal-container {
        width: 95%;
        max-height: 92vh;
    }

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

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

    .fn-btn-claim {
        font-size: 16px;
        padding: 12px 16px;
    }
}

/* 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;
}

/* ==========================================================================
   FORTNITEMARES 2026 EVENT AESTHETICS & VISUAL UPGRADES
   ========================================================================== */

/* ==========================================================================
   FORTNITEMARES 2026 EVENT AESTHETICS & VISUAL UPGRADES
   ========================================================================== */

/* Spooky Floating Embers */
.fn-spooky-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.fn-ember {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: floatEmber linear infinite;
    filter: blur(1px);
}

@keyframes floatEmber {
    0% {
        transform: translateY(105vh) translateX(0) scale(0.3);
        opacity: 0;
    }
    12% {
        opacity: 0.85;
    }
    85% {
        opacity: 0.65;
    }
    100% {
        transform: translateY(-8vh) translateX(var(--drift, 40px)) scale(1.1);
        opacity: 0;
    }
}

/* Fortnitemares Event Hero Banner */
.fn-event-banner-section {
    max-width: 1380px;
    margin: 16px auto 0;
    padding: 0 18px;
}

.fn-event-banner {
    position: relative;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30, 12, 54, 0.94) 0%, rgba(16, 10, 32, 0.92) 50%, rgba(45, 14, 25, 0.94) 100%);
    border: 2px solid rgba(249, 115, 22, 0.4);
    padding: 18px 24px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 30px rgba(249, 115, 22, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.fn-event-banner:hover {
    border-color: rgba(249, 115, 22, 0.7);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 40px rgba(249, 115, 22, 0.3), 0 0 60px rgba(168, 85, 247, 0.2);
}

.fn-event-banner-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.35) 0%, rgba(147, 51, 234, 0.25) 50%, transparent 75%);
    filter: blur(45px);
    pointer-events: none;
    animation: glowPulse 4s infinite alternate;
}

@keyframes glowPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.15); opacity: 1; }
}

.fn-event-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.fn-event-pill {
    font-family: var(--font-head);
    font-size: 11px;
    letter-spacing: 1.2px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    padding: 4px 11px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.5);
}

.fn-event-theme-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    color: #c084fc;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(192, 132, 252, 0.5);
}

.fn-event-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f97316;
    box-shadow: 0 0 10px #f97316, 0 0 20px #ea580c;
    animation: serverPulse 1.2s infinite;
}

.fn-event-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.fn-event-titles {
    flex: 1;
    min-width: 280px;
}

.fn-event-title {
    font-family: var(--font-head);
    font-size: 25px;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-shadow: 2px 2px 0px #000, 0 0 20px rgba(249, 115, 22, 0.4);
    line-height: 1.15;
    margin-bottom: 6px;
}

.fn-event-subtitle {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.45;
    font-weight: 500;
    max-width: 780px;
}

.fn-event-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fn-event-cta {
    font-family: var(--font-head);
    font-size: 13px;
    letter-spacing: 1.2px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 11px 20px;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(234, 88, 12, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.22s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.fn-event-cta:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    filter: brightness(1.1);
}

/* Event Category Pill */
.fn-cat-btn-event {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.3), rgba(147, 51, 234, 0.4)) !important;
    border: 1.5px solid #f97316 !important;
    color: #fde047 !important;
    text-shadow: 0 0 8px rgba(253, 224, 71, 0.6);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

.fn-cat-btn-event:hover, .fn-cat-btn-event.active {
    background: linear-gradient(135deg, #ea580c, #9333ea) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 22px rgba(234, 88, 12, 0.7), 0 0 18px rgba(147, 51, 234, 0.55) !important;
    text-shadow: 0 0 10px #ffffff;
}

/* Event Card Glow & Styling */
.fn-card-tile.event-card {
    border-color: rgba(168, 85, 247, 0.4);
    background: linear-gradient(180deg, rgba(32, 16, 56, 0.85) 0%, rgba(18, 12, 32, 0.95) 100%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55), 0 0 15px rgba(147, 51, 234, 0.2);
}

.fn-card-tile.event-card:hover {
    border-color: #f97316;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(249, 115, 22, 0.45), 0 0 40px rgba(168, 85, 247, 0.3);
}

/* Custom Fortnitemares & Collab Badges */
.fn-card-badge.badge-fnaf {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.fn-card-badge.badge-halloween {
    background: linear-gradient(135deg, #ea580c, #9333ea);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(234, 88, 12, 0.6);
    border: 1px solid rgba(255, 200, 100, 0.4);
    animation: badgePulse 2.2s infinite ease-in-out;
}

.fn-card-badge.badge-anime {
    background: linear-gradient(135deg, #10b981, #6366f1);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.fn-card-badge.badge-eminem {
    background: linear-gradient(135deg, #3b82f6, #ec4899);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

.fn-card-badge.badge-scooby {
    background: linear-gradient(135deg, #06b6d4, #10b981);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: badgePulse 2s infinite ease-in-out;
}

.fn-card-badge.badge-stranger {
    background: linear-gradient(135deg, #dc2626, #7f1d1d);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.65);
    border: 1px solid rgba(255, 100, 100, 0.5);
    animation: badgePulse 1.8s infinite ease-in-out;
}

.fn-card-badge.badge-deadmau5 {
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.fn-card-badge.badge-streetfighter {
    background: linear-gradient(135deg, #ea580c, #e11d48);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(234, 88, 12, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

@keyframes badgePulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.25); transform: scale(1.03); }
}

/* =======================================================
   NATIVE IN-PAGE SPONSOR QUEST HUB (Replaces popup locker)
   ======================================================= */
.fn-quest-view {
    display: flex;
    flex-direction: column;
    padding: 24px 24px 20px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    background: radial-gradient(circle at 50% 10%, rgba(250, 204, 21, 0.12) 0%, rgba(15, 20, 35, 0.98) 70%);
    text-align: center;
    animation: fadeInQuest 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.fn-quest-badge-top {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(250, 204, 21, 0.14);
    border: 1px solid rgba(250, 204, 21, 0.45);
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: 11px;
    letter-spacing: 1px;
    color: #fde047;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.fn-quest-title-main {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1.2px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
    margin: 0 0 6px 0;
}

.fn-quest-sub {
    font-family: var(--font-ui);
    font-size: 13px;
    color: #94a3b8;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.45;
}

.fn-quest-sub strong {
    color: #fde047;
}

/* Summary Strip */
.fn-quest-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
    text-align: left;
}

.fn-qsum-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fn-qsum-lbl {
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.fn-qsum-val {
    font-size: 12.5px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fn-qsum-val.text-gold {
    color: #facc15;
}

.fn-qsum-status {
    font-size: 11.5px;
    font-weight: 900;
    color: #4ade80;
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: statusPulse 1.8s ease-in-out infinite;
}

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

/* Verification Pulse Notice */
.fn-quest-verifying-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px 0;
    padding: 12px 16px;
    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;
    text-align: left;
}

@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: 20px;
    height: 20px;
    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-size: 12.5px;
    color: #fde047;
    letter-spacing: 0.6px;
}

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

/* Quest Cards List */
.fn-quest-cards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
    text-align: left;
}

.fn-quest-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    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(-2px);
    border-color: rgba(250, 204, 21, 0.5);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(250, 204, 21, 0.15);
}

.fn-quest-card.quest-featured {
    border-color: rgba(250, 204, 21, 0.6);
    background: linear-gradient(135deg, rgba(45, 40, 18, 0.8) 0%, rgba(18, 24, 42, 0.95) 100%);
    box-shadow: 0 0 18px 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: 12px;
    flex: 1;
    min-width: 0;
}

.fn-quest-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    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 10px rgba(0, 0, 0, 0.3);
}

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

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

.fn-quest-badge {
    font-size: 10px;
    letter-spacing: 0.6px;
    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-size: 11px;
    color: #86efac;
    font-weight: 700;
}

.fn-quest-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fn-quest-desc {
    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-size: 11.5px;
    color: #86efac;
    margin-top: 2px;
}

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

.fn-quest-action-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.fn-quest-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    color: #050a14 !important;
    text-decoration: none !important;
    padding: 8px 16px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px 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.04);
    box-shadow: 0 6px 20px rgba(250, 204, 21, 0.55);
}

.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-size: 10px;
    color: rgba(255, 255, 255, 0.45);
}

/* Loading state */
.fn-offer-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 10px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.fn-offer-spinner {
    width: 26px;
    height: 26px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #facc15;
    border-radius: 50%;
    animation: spinVerifying 0.8s linear infinite;
}

/* Footer Trust */
.fn-quest-footer-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 11px;
    color: #64748b;
    margin-top: 8px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .fn-modal-overlay {
        padding: 8px 6px;
    }
    .fn-inspect-modal {
        border-radius: 14px;
        max-height: 96vh;
    }
    .fn-modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 15px;
    }
    .fn-quest-view {
        padding: 16px 12px 14px;
        max-height: 92vh;
    }
    .fn-quest-header {
        padding-top: 14px;
        margin-bottom: 12px;
    }
    .fn-quest-badge-top {
        font-size: 10px;
        padding: 3px 10px;
        letter-spacing: 0.6px;
        margin-bottom: 6px;
    }
    .fn-quest-title-main {
        font-size: 18px;
        letter-spacing: 0.6px;
        line-height: 1.25;
        margin: 4px 0 6px 0;
    }
    .fn-quest-sub {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    .fn-quest-summary-strip {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 10px;
        padding: 10px 12px;
        border-radius: 10px;
        margin-bottom: 12px;
    }
    .fn-quest-summary-strip .fn-qsum-item:nth-child(1) {
        grid-column: 1;
    }
    .fn-quest-summary-strip .fn-qsum-item:nth-child(2) {
        grid-column: 2;
        text-align: right;
    }
    .fn-quest-summary-strip .fn-qsum-item:nth-child(3) {
        grid-column: 1 / -1;
        padding-top: 6px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .fn-quest-summary-strip .fn-qsum-item:nth-child(3) .fn-qsum-val {
        white-space: normal;
        font-size: 12px;
        line-height: 1.35;
    }
    .fn-quest-summary-strip .fn-qsum-item:nth-child(4) {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        background: rgba(34, 197, 94, 0.08);
        border: 1px solid rgba(74, 222, 128, 0.25);
        border-radius: 6px;
        padding: 5px 10px;
        margin-top: 2px;
    }
    .fn-quest-summary-strip .fn-qsum-item:nth-child(4) .fn-qsum-lbl {
        color: #86efac;
        font-size: 9.5px;
    }
    .fn-qsum-status {
        white-space: nowrap !important;
        font-size: 11px;
    }
    .fn-quest-card {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
        border-radius: 12px;
    }
    .fn-quest-card-main {
        gap: 10px;
    }
    .fn-quest-icon {
        width: 40px;
        height: 40px;
    }
    .fn-quest-title {
        font-size: 13.5px;
    }
    .fn-quest-desc {
        font-size: 11.5px;
    }
    .fn-quest-tags-row {
        flex-wrap: wrap;
        gap: 5px;
    }
    .fn-quest-badge {
        font-size: 9.5px;
        padding: 2px 6px;
    }
    .fn-quest-difficulty {
        font-size: 10.5px;
    }
    .fn-quest-action-wrap {
        align-items: stretch;
        width: 100%;
    }
    .fn-quest-action-btn {
        width: 100%;
        justify-content: center;
        padding: 11px;
        font-size: 12.5px;
    }
    .fn-quest-spots-text {
        text-align: center;
        margin-top: 2px;
    }
}


