:root {
    --bg-dark: #0a0a0a;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --accent-yellow: #f9a825;
    --arc-teal: #00bcd4;
    --arc-red: #ff3d00;
    --arc-yellow: #ffeb3b;
    --arc-blue: #2196f3;
    --font-primary: 'Prompt', sans-serif;
    --font-heading: 'Kanit', sans-serif;
    --hero-gradient: linear-gradient(to bottom, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 1) 100%);

    /* Unified Rarity Colors */
    --rarity-common: #9ca3af;
    --rarity-uncommon: #22c55e;
    --rarity-rare: #3b82f6;
    --rarity-epic: #a855f7;
    --rarity-legendary: #ffd700;

    /* Global Typography Stability */
    font-display: swap;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-white);
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.navbar-brand {
    font-family: var(--font-heading);
}

/* Custom 5-Column Grid for Large Screens */
@media (min-width: 1400px) {
    .col-xxl-5col {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* Base Layout & Utility */
.tracking-wider {
    letter-spacing: 1px;
}

.text-teal {
    color: var(--arc-teal);
}

.bg-teal {
    background-color: var(--arc-teal);
}

.section-padding {
    padding: 100px 0;
}

/* New Logo Layout Stylings */
.logo-flag-bar {
    width: 8px;
    height: 38px;
    background: linear-gradient(to bottom,
            #EE2C2C 0%, #EE2C2C 33.33%,
            #FFFFFF 33.33%, #FFFFFF 66.66%,
            #0052B4 66.66%, #0052B4 100%);
    border-radius: 2px;
}

.logo-main-text {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1px;
    color: #ffffff;
}

.logo-sub-text {
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1px;
    color: #ffffff;
    margin-top: 2px;
}

.logo-text-stack {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 10px;
    margin-left: 10px !important;
}

/* Custom Sci-fi Buttons - Glass & Shimmer Version */
.btn-arc-blue,
.btn-arc-green,
.btn-arc-red {
    border-radius: 0;
    clip-path: polygon(0 0, 92% 0, 100% 25%, 100% 100%, 8% 100%, 0 75%);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.15rem;
    /* Large and full */
    padding: 22px 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 800;
    /* Extra bold for impact */
}

/* Custom Card Styles */
.custom-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.6) 0%, rgba(30, 30, 30, 0.4) 100%);
    backdrop-filter: blur(10px);
    contain: content;
    /* Performance Optimization: Limit layout repaint */
}

.shop-mini-card {
    contain: content;
    /* Performance Optimization: Limit layout repaint */
}

/* Shimmer Sweep Effect */
.btn-arc-blue::after,
.btn-arc-green::after,
.btn-arc-red::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 40%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(30deg);
    transition: none;
    pointer-events: none;
}

.btn-arc-blue:hover::after,
.btn-arc-green:hover::after,
.btn-arc-red:hover::after {
    left: 150%;
    transition: all 0.7s ease-in-out;
}

.btn-arc-blue {
    background: rgba(33, 150, 243, 0.8);
    /* 80% Opacity */
    color: #ffffff;
    /* Brighter for readability */
    border-color: rgba(255, 255, 255, 0.3);
    border-left: 4px solid #90caf9;
}

.btn-arc-blue:hover {
    background: rgba(33, 150, 243, 0.2);
    color: white;
    box-shadow: 0 0 30px rgba(33, 150, 243, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.1);
    transform: translateY(-5px) scale(1.02);
}

.btn-arc-green {
    background: rgba(46, 125, 50, 0.8);
    /* 80% Opacity */
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    border-left: 4px solid #a5d6a7;
}

.btn-arc-green:hover {
    background: rgba(76, 175, 80, 0.2);
    color: white;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.1);
    transform: translateY(-5px) scale(1.02);
}

.btn-arc-red {
    background: rgba(255, 61, 0, 0.8);
    /* 80% Opacity */
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    border-left: 4px solid #ffab91;
}

.btn-arc-red:hover {
    background: rgba(239, 68, 68, 0.2);
    color: white;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.1);
    transform: translateY(-5px) scale(1.02);
}

/* HUD Technical Text */
.btn-arc-blue::before,
.btn-arc-green::before,
.btn-arc-red::before {
    content: '▶ SYSTEM ONLINE';
    position: absolute;
    bottom: 4px;
    right: 20px;
    font-size: 0.45rem;
    opacity: 0.8;
    /* Increased to 80% */
    letter-spacing: 1px;
    font-family: monospace;
    pointer-events: none;
    z-index: 2;
}

.btn-arc-blue:hover i,
.btn-arc-green:hover i,
.btn-arc-red:hover i {
    animation: icon-glitch 0.3s infinite;
}

@keyframes icon-glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 1px);
    }

    40% {
        transform: translate(2px, -1px);
    }

    60% {
        transform: translate(-1px, -2px);
    }

    80% {
        transform: translate(1px, 2px);
    }

    100% {
        transform: translate(0);
    }
}


/* Shimmer Animation included in general Hover */


/* Navbar */
.custom-navbar {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.custom-navbar.scrolled {
    padding: 0.6rem 0;
    background: rgba(0, 0, 0, 0.95);
}

/* Global Content Spacing for Fixed Navbar */
.navbar-spacer {
    margin-top: 100px !important;
}

@media (max-width: 991.98px) {
    .navbar-spacer {
        margin-top: 120px !important;
    }
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: color 0.2s;
    color: rgba(255, 255, 255, 0.7);
    /* Default dimmed color */
}

.nav-link:hover {
    color: var(--arc-teal) !important;
}

.nav-link.active {
    color: #ffffff !important;
    font-weight: 700;
}

.nav-profile-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 50px;
    padding: 3px 12px 3px 3px !important;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.nav-profile-pill:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.1);
}

.nav-profile-pill::after {
    margin-left: 8px !important;
    vertical-align: middle !important;
}

/* Navbar Separators */
@media (min-width: 992px) {
    .nav-separator {
        position: relative;
    }

    .nav-separator::after {
        content: '';
        position: absolute;
        right: -2px;
        /* Adjust based on gap */
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 12px;
        background-color: rgba(255, 255, 255, 0.2);
    }
}

/* Base Hero Section */
.hero-bootstrap {
    min-height: auto;
    background-color: #000;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Home Page Specific Hero */
.hero-home {
    min-height: 100vh;
    padding: 200px 0 150px;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

/* Custom Height for Market Page to prevent gaps */
.hero-market-custom {
    min-height: 200px;
    /* Reduced from 480px */
}

@media (min-width: 992px) {
    .hero-market-custom {
        height: auto;
        /* Changed from 250px */
        padding-bottom: 30px;
    }

    .page-market .navbar-spacer {
        margin-top: 80px !important;
        /* Tightened for Market */
    }
}

.video-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transform: translateZ(0);
    will-change: transform;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-gradient);
    z-index: 1;
}

/* Scanline Effect - Optimized */
.scanline-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent 50%,
            rgba(0, 0, 0, 0.2) 50%);
    background-size: 100% 4px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
    transform: translateZ(0);
    will-change: transform;
}

.hero-bootstrap .container {
    position: relative;
    z-index: 2;
}


/* Section Decor */

.title-divider {
    height: 2px;
    background: linear-gradient(to right, var(--arc-teal), transparent);
}

/* Video */
.video-shadow {
    box-shadow: 0 0 50px rgba(0, 188, 212, 0.15);
}

/* News Cards */
.news-card-custom {
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    background: rgba(20, 20, 20, 0.8) !important;
    /* Denser background for readability */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(15px);
    position: relative;
}

.news-card-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--arc-teal);
    opacity: 0;
    transition: opacity 0.3s;
}

.news-card-custom:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(30, 30, 30, 0.9) !important;
    border-color: rgba(0, 188, 212, 0.4) !important;
    /* Teal border on hover */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 188, 212, 0.1);
}

.news-card-custom:hover::before {
    opacity: 1;
}

.news-img-placeholder-bootstrap {
    height: 200px;
    background: linear-gradient(45deg, #151515, #252525);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.news-card-custom .card-title {
    color: #ffffff;
    /* Explicit white for contrast */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
}

.news-card-custom .text-teal {
    letter-spacing: 1px;
    opacity: 0.9;
}

.news-img-placeholder-bootstrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 1px,
            rgba(255, 255, 255, 0.02) 2px);
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--arc-teal);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    opacity: 0.8;
    z-index: 10;
    transition: all 0.3s ease;
}

.scroll-down:hover {
    opacity: 1;
    color: white;
}

.scroll-down i {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


/* Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .display-1 {
        font-size: 3.5rem;
    }

    /* Disable sticky behaviors on mobile to prevent layout awkwardness */
    .position-sticky {
        position: static !important;
    }
}

@media (max-width: 576px) {
    .logo-main-text {
        font-size: 0.95rem;
    }

    .logo-sub-text {
        font-size: 0.75rem;
    }

    .navbar-brand img {
        height: 32px;
    }
}

/* Floating Social Sidebar */
.social-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.social-item {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 80% 100%, 0 100%);
    display: none !important;
    /* Hidden and moved to navbar */
}

.social-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 4px;
    height: 100%;
    transition: all 0.3s;
}

/* Brand Colors */
.facebook::before {
    background: #1877f2;
}

.facebook:hover {
    color: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.4);
}

.fb-group::before {
    background: #1877f2;
}

.fb-group:hover {
    color: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.4);
}

.discord::before {
    background: #5865f2;
}

.discord:hover {
    color: #5865f2;
    border-color: #5865f2;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

.youtube::before {
    background: #ff0000;
}

.youtube:hover {
    color: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

.social-item:hover {
    transform: translateX(-10px) scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 576px) {
    .social-sidebar {
        right: 10px;
    }

    .social-item {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}



.preference-check input[type="checkbox"] {
    accent-color: #ff3e3e;
    cursor: pointer;
}

.preference-check label {
    cursor: pointer;
}

@media (max-width: 992px) {
    .embark-layout {
        flex-direction: column;
    }

    .embark-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 20px;
    }

    .embark-content {
        padding: 40px 20px;
    }
}

/* Item Rarity Backgrounds - Unified System */
.rarity-legendary {
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.25) 0%, rgba(255, 215, 0, 0.05) 100%) !important;
    border: 1px solid var(--rarity-legendary) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
}

.rarity-epic {
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.25) 0%, rgba(168, 85, 247, 0.05) 100%) !important;
    border: 1px solid var(--rarity-epic) !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
}

.rarity-rare {
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.05) 100%) !important;
    border: 1px solid var(--rarity-rare) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.rarity-uncommon {
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0.05) 100%) !important;
    border: 1px solid var(--rarity-uncommon) !important;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.15);
}

.rarity-common {
    background: radial-gradient(circle at center, rgba(156, 163, 175, 0.15) 0%, rgba(156, 163, 175, 0.05) 100%) !important;
    border: 1px solid var(--rarity-common) !important;
}

/* Utility Classes */
.border-dashed {
    border-style: dashed !important;
}

.credit-card-summary {
    background: linear-gradient(135deg, #111 0%, #0a0a0a 100%);
    border: 1px solid rgba(255, 193, 7, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.credit-card-summary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.merchant-badge-pulse {
    animation: pulse-yellow 2s infinite;
}

@keyframes pulse-yellow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* Rarity Border Only Variants */
/* Rarity Border Only Variants - Unified */
.rarity-border-legendary {
    border: 1px solid var(--rarity-legendary) !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

.rarity-border-epic {
    border: 1px solid var(--rarity-epic) !important;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.1);
}

.rarity-border-rare {
    border: 1px solid var(--rarity-rare) !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
}

.rarity-border-uncommon {
    border: 1px solid var(--rarity-uncommon) !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.1);
}

.rarity-border-common {
    border: 1px solid var(--rarity-common) !important;
}

/* Custom Grid for 5 items per row on XL+ */
@media (min-width: 1200px) {
    .col-xl-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}

.hover-white:hover {
    color: white !important;
    border-color: white !important;
}

/* Marketplace Category Scroller */
.category-scroller-container {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 10px 20px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
}

.category-header:hover {
    opacity: 0.8;
}

.category-header:hover .category-expand-btn {
    background: var(--arc-yellow);
    color: black;
    transform: scale(1.1);
}

.category-header h5 {
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-gray);
    font-weight: 800;
}

.category-expand-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.19, 1, 0.22, 1),
        opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1),
        margin-top 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
}

.category-scroller-container.is-expanded .category-expand-wrapper {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 12px;
}

.category-scroller {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 0;
    /* Required for the grid trick */
    padding: 2px;
    /* Small padding for focus rings/shadows */
}

.category-scroller::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.category-pill {
    white-space: nowrap;
    padding: 8px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================================
   Consolidated Styles from Store & Market
   ========================================= */

/* Pagination Floating Style - Enforce Standard Bootstrap Grouping */
.pagination-floating {
    /* Reset any custom container styling */
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    backdrop-filter: none;
    border: none;
}

.pagination-floating .page-item {
    margin: 0;
    /* Critical: Remove gaps */
}

.pagination-floating .page-link {
    border: 1px solid #dee2e6;
    color: #0d6efd;
    background: #fff;
    margin: 0;
    /* Critical: Join borders */
    border-radius: 0;
    font-weight: 500;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* First and Last rounding */
.pagination-floating .page-item:first-child .page-link {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.pagination-floating .page-item:last-child .page-link {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Active State */
.pagination-floating .page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #0d6efd;
    /* Primary Blue */
    border-color: #0d6efd;
    box-shadow: none;
    /* Flatten */
}

/* Hover State */
.pagination-floating .page-link:hover {
    z-index: 2;
    color: #0a58ca;
    background-color: #e9ecef;
    border-color: #dee2e6;
    transform: none;
    /* No jumping */
}

.pagination-floating .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Rarity Borders & Effects */
.rarity-border-legendary {
    border-color: #ffc107 !important;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.15);
}

.rarity-border-epic {
    border-color: #9c27b0 !important;
    box-shadow: 0 0 15px rgba(156, 39, 176, 0.15);
}

.rarity-border-rare {
    border-color: #2196f3 !important;
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.15);
}

.rarity-border-uncommon {
    border-color: #4caf50 !important;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.15);
}

/* Store Page Specifics */
.store-verification-badge {
    background-color: rgba(22, 101, 52, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
}

.store-contact-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.store-contact-circle:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px) scale(1.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.05);
}

.store-contact-circle i {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

.btn-primary-pill-white {
    background-color: #fff;
    color: #000;
    border: none;
    font-weight: 800;
    font-size: 1.25rem;
    padding: 0.75rem 2rem;
    border-radius: 50rem;
    transition: all 0.2s;
}

.btn-primary-pill-white:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
    color: #000;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* Active Users Stack (Market) */
.user-avatar-stack {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
    margin-left: -5px;
    object-fit: cover;
    transition: transform 0.2s;
    cursor: pointer;
    position: relative;
}

.user-avatar-stack:first-child {
    margin-left: 0;
}

.user-avatar-stack:hover {
    transform: translateY(-5px) scale(1.1);
    z-index: 10 !important;
    border-color: #ffc107;
}

.backdrop-blur {
    backdrop-filter: blur(5px);
}

/* General Utilities Used in Inline */
.bg-surface {
    background-color: #18181b;
}

.text-subtle {
    color: #71717a;
}

.hover-scale {
    transition: transform 0.2s;
}

.hover-scale:hover {
    transform: scale(1.1);
}

.bg-gradient-dark {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.category-pill i {
    font-size: 1rem;
}

/* Platforms Section Redesign */
.platform-section {
    padding: 100px 0;
    background-color: #0d0a0f;
    /* Dark purplish/black background from image */
}

.platform-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.platform-title {
    font-size: 5rem;
    font-weight: 800;
    color: #e5e1d8;
    /* Off-white color from image */
    letter-spacing: 4px;
    margin: 30px 0;
    text-transform: uppercase;
}

.platform-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 50px 0;
    color: #e5e1d8;
}

.platform-divider::before,
.platform-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(229, 225, 216, 0.2);
}

.platform-divider:not(:empty)::before {
    margin-right: 20px;
}

.platform-divider:not(:empty)::after {
    margin-left: 20px;
}

.platform-divider span {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.platform-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border: 2px solid #e5e1d8;
    background: transparent;
    color: #e5e1d8;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    min-width: 190px;
    justify-content: center;
}

.platform-btn img,
.platform-btn i {
    font-size: 1.8rem;
}

.platform-btn:hover {
    background: #e5e1d8;
    color: #0d0a0f;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.platform-btn .platform-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.platform-btn .platform-name span:first-child {
    font-size: 0.7rem;
    opacity: 0.8;
}

.platform-btn .platform-name span:last-child {
    font-size: 1.2rem;
    font-weight: 800;
}

@media (max-width: 991px) {
    .platform-title {
        font-size: 3rem;
    }

    .platform-btn {
        width: 100%;
        max-width: 400px;
    }
}

/* Navbar Social Icons */
/* Navbar Social Icons removed */

@media (max-width: 575.98px) {
    .navbar-social-group {
        display: none !important;
    }
}

/* =========================================
   Universal Blueprint Grid Style
   ========================================= */
.bg-blueprint-grid,
.item-picker-card.bg-blueprint-grid {
    background-color: #0046b8 !important;
    /* Blueprint Blue */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px) !important;
    background-size: 28px 28px !important;
    background-position: center !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5) !important;
}

/* Ensure content on grid pops */
.bg-blueprint-grid .item-picker-name,
.bg-blueprint-grid .item-picker-rarity,
.bg-blueprint-grid .badge,
.bg-blueprint-grid div {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    z-index: 2;
    /* Bring text above grid */
}

/* Specific fix for Market Cards where overlay might darken too much */
.card .bg-blueprint-grid {
    background-blend-mode: normal !important;
}

/* Override Rarity Colors for Blueprints to ensure legibility */
.bg-blueprint-grid .item-picker-rarity,
.bg-blueprint-grid.rarity-legendary .item-picker-rarity,
.bg-blueprint-grid.rarity-epic .item-picker-rarity {
    color: #ffffff !important;
    opacity: 0.9 !important;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8) !important;
}

/* =========================================
   Merchant RGB Laser Effect (Global)
   ========================================= */

@keyframes nice-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



/* =========================================
   Premium Footer Redesign
   ========================================= */
.footer-premium {
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.footer-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(33, 150, 243, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section-padding-sm {
    padding: 60px 0;
}

.footer-heading {
    font-size: 0.9rem;
    letter-spacing: 2px;
    opacity: 0.8;
}

.nav-link-footer {
    color: #a1a1aa;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    font-size: 1rem;
}

.nav-link-footer:hover {
    color: var(--arc-teal);
    transform: translateX(5px);
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Social Cards */
.social-card {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-card:hover {
    transform: translateY(-5px);
    color: #fff;
}

.social-card.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-card.facebook-group:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-card.discord:hover {
    background: #5865f2;
    border-color: #5865f2;
}

.social-card.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
}

/* Newsletter Box */
.newsletter-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.bg-black-50 {
    background-color: rgba(0, 0, 0, 0.5);
}

.glass-effect {
    backdrop-filter: blur(10px);
}


/* =========================================
   Compact Footer Redesign
   ========================================= */
.footer-compact {
    background-color: #0d0d0d;
}

.footer-link-compact {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-link-compact:hover {
    color: var(--arc-teal);
    text-decoration: underline;
}

.social-icon-compact {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent;
}

.social-icon-compact:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
    border-color: #fff;
}


/* Market Footer - Standard Scroll */
.page-market {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 0;
}

.page-market main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page-market .footer-compact {
    width: 100%;
    z-index: 10;
    margin-top: auto;
    /* Ensure it pushes down if main is flex */
}

/* =========================================
   MOBILE NAVBAR: Hamburger + Wrapping Row (Panel Style)
   ========================================= */
@media (max-width: 991.98px) {

    /* 1. Ensure Hamburger is VISIBLE (Default Bootstrap behavior, so we don't hide it) */
    .navbar-toggler {
        display: block !important;
        /* Ensure it's shown */
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* 2. Collapse Container Styling */
    .navbar-collapse {
        /* Bootstrap handles display:none/block via JS. We just style the CONTENT. */
        background: rgba(10, 10, 10, 0.95);
        /* Dark background when opened */
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        /* Default Bootstrap collapse transition/class handling applies */
    }

    /* 3. Items Layout: Row & Wrap */
    .navbar-nav {
        flex-direction: row !important;
        /* Force Left-to-Right */
        flex-wrap: wrap !important;
        /* Force Wrapping */
        gap: 10px;
        justify-content: flex-start;
        /* Align left */
        width: 100%;
    }

    /* 4. Individual Items */
    .nav-item {
        width: auto !important;
        /* Auto width, not full width */
        flex-shrink: 0;
        margin: 0 !important;
        border: none !important;
    }

    .nav-link {
        padding: 8px 16px !important;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50px;
        font-size: 0.9rem;
        white-space: nowrap;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }

    /* Allow social icons to show if space permits, handled by d-none d-sm-flex */
    /* .navbar-social-group {
        display: none !important;
    } */

    /* Dropdown Handling */
    .nav-item.dropdown {
        position: relative !important;
        /* Anchor the dropdown to THIS item */
    }

    .nav-item.dropdown .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        /* Right below the button */
        left: 0 !important;
        /* Align to left of button */
        right: auto !important;
        margin-top: 5px;
        z-index: 1050;
        min-width: 200px;
        background: #0a0a0a;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }
}

.shop-mini-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
    contain: content;
    /* Performance Optimization */
}

/* Online/Offline Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.status-indicator.online {
    border-color: rgba(46, 213, 115, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.online .status-dot {
    background-color: #2ed573;
}

.offline .status-dot {
    background-color: #a4b0be;
}

.status-text {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.online .status-text {
    color: #2ed573;
}

.offline .status-text {
    color: #a4b0be;
}

/* Pulse Animation Removed */

/* Fix for Vertical Desktop / Narrow Desktop Navbar Squeeze */
@media (min-width: 992px) and (max-width: 1350px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        font-size: 0.8rem;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }

    .navbar-expand-lg .navbar-nav {
        gap: 0 !important;
    }

    /* Scale down logo slightly */
    .logo-main-text {
        font-size: 1rem;
    }

    .logo-sub-text {
        font-size: 0.8rem;
    }

    .navbar-brand img {
        height: 32px;
    }

    /* Hide Text for "Handbook" icon entirely in this mode if needed, or keep it */

    /* Condense User Profile Name */
    .nav-item.dropdown .nav-link span {
        font-size: 0.8rem;
        max-width: 80px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


}

/* Featured Bundle Display Styles */
.bundle-featured-container {
    width: 65%;
    height: 65%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
    margin-bottom: 5px;
    /* Space for the count pill below icon */
}

.bundle-featured-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bundle-count-pill {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    color: #ffd700;
    /* Gold text for premium feel */
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid rgba(255, 215, 0, 0.4);
    /* Gold border */
    position: absolute;
    bottom: 0;
    /* Align bottom edge to line */
    top: auto;
    /* Reset top */
    left: 50%;
    transform: translate(-50%, 50%);
    /* Move down by 50% of height to center on line */
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* NUCLEAR OPTION: Remove any potential icon inside the pill */
.bundle-count-pill i,
.bundle-count-pill svg,
.bundle-count-pill img,
.bundle-count-pill::before,
.bundle-count-pill::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

.bundle-mini-grid,
.bundle-mini-slot {
    display: none !important;
    /* Retiring old grid style in market */
}

.bundle-badge {
    position: absolute;
    top: 0;
    right: 0;
    margin: 4px;
    padding: 1px 6px;
    background: linear-gradient(45deg, #ffc107, #ff8f00);
    color: #000;
    font-size: 0.5rem;
    font-weight: 900;
    border-radius: 3px;
    z-index: 10;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

/* Pink Bundle Background with Grid */
/* Pink Bundle Background with Grid */
.bg-bundle-pink,
.item-picker-card.bg-bundle-pink {
    background: linear-gradient(rgba(214, 51, 132, 0.2), rgba(121, 40, 202, 0.3)),
        radial-gradient(circle at center, rgba(255, 0, 128, 0.1) 0%, transparent 70%),
        repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(255, 255, 255, 0.15) 20px),
        repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(255, 255, 255, 0.15) 20px),
        #2a0a18 !important;
    background-size: cover, cover, 20px 20px, 20px 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5) !important;
}

/* Ensure content on grid pops */
.bg-bundle-pink .item-picker-name,
.bg-bundle-pink .item-picker-rarity,
.bg-bundle-pink .badge,
.bg-bundle-pink div {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

/* Fix for Market Cards */
.card .bg-bundle-pink {
    background-blend-mode: normal !important;
}

/* Override Rarity Colors for Bundles to ensure legibility */
.bg-bundle-pink .item-picker-rarity,
.bg-bundle-pink.rarity-legendary .item-picker-rarity,
.bg-bundle-pink.rarity-epic .item-picker-rarity {
    color: #ffffff !important;
    opacity: 0.9 !important;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8) !important;
}

/* Custom Dropdown Styling */
.custom-dropdown-menu {
    background: rgba(10, 10, 12, 0.95) !important;
    /* Deep dark background */
    backdrop-filter: blur(16px) !important;
    /* Glass effect */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    /* Rounded corners */
    padding: 10px 6px !important;
    /* Improved padding */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;

    /* Positioning Adjustments */
    margin-top: 15px !important;
    /* Spacing from navbar */
    right: auto !important;
    /* Reset right alignment */
    left: 0px !important;
    /* Align to LEFT edge */
    transform: none !important;
    /* Remove shift or adjust if needed */

    /* Animation */
    animation: dropdownSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    transform-origin: top left;
    /* Changed origin to top-left */
}

.custom-dropdown-item {
    color: #d1d5db !important;
    /* Light grey text */
    padding: 6px 16px !important;
    /* Even tighter padding */
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    /* Slightly smaller text */
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    margin-bottom: 0px !important;
    /* No gaps */
    position: relative;
    overflow: hidden;
}

.custom-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    transform: translateX(4px);
}

.custom-dropdown-item:active {
    transform: scale(0.98) translateX(4px);
}

/* Add a subtle indicator for hover */
.custom-dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 3px;
    background: var(--arc-yellow, #ffeb3b);
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 0 4px 4px 0;
}

.custom-dropdown-item:hover::before {
    opacity: 1;
}

/* Divider refinement */
.custom-dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin: 8px 0 !important;
}

@keyframes dropdownSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .custom-dropdown-menu {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        transform: none !important;
        margin-top: 0 !important;
        padding-left: 20px !important;
    }
}
/* Dropdown Menu Font Standardization */
.dropdown-item, .custom-dropdown-item { font-family: 'Inter', sans-serif !important; font-weight: 500; }

/* Custom Purple Button (Bundle) */
.btn-purple {
    background-color: #D500F9; /* Vivid Purple Accent A400 */
    border-color: #D500F9;
    color: #fff;
    box-shadow: 0 0 10px rgba(213, 0, 249, 0.4); 
}

.btn-purple:hover, .btn-purple.active, .btn-purple:active {
    background-color: #AA00FF; /* Darker Purple A700 */
    border-color: #AA00FF;
    color: #fff;
    box-shadow: 0 0 20px rgba(170, 0, 255, 0.6);
}

.btn-outline-purple {
    color: #D500F9;
    border-color: #D500F9;
    background: transparent;
}

.btn-outline-purple:hover {
    background-color: #D500F9;
    color: #fff;
    box-shadow: 0 0 15px rgba(213, 0, 249, 0.5);
}
