/* ==========================================================================
   3D THEME ISOLATED LUXURY DESIGN STYLES
   ========================================================================== */

/* Import Outfit Premium Google Font & Apply Everywhere */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

body,
*,
button,
input,
span,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif !important;
}

/* Neural Mesh Background Canvas styling */
#constellation-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background: transparent !important;
}

body {
    background: radial-gradient(circle at 50% 50%, #060410 0%, #000000 100%) !important;
}

/* Dynamic Live Ticker Glow */
.reviews-ticker-container {
    background: rgba(20, 15, 45, 0.45) !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(15px);
}

.review-card {
    background: rgba(10, 8, 25, 0.6) !important;
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
}

/* Category Filters Pill Menu (Matching Screenshot) */
.category-filters {
    display: flex;
    gap: 10px;
    margin: 25px auto 35px;
    overflow-x: auto;
    padding: 5px 2px;
    max-width: 600px;
    justify-content: flex-start;
    scrollbar-width: none;
    /* Hide scrollbars */
    z-index: 10;
    position: relative;
}

.category-filters::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    background: rgba(18, 12, 38, 0.65) !important;
    border: 1.5px solid rgba(139, 92, 246, 0.2) !important;
    color: #c4b5fd !important;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.filter-pill:hover {
    border-color: rgba(139, 92, 246, 0.5) !important;
    transform: translateY(-2px);
    color: #ffffff !important;
}

.filter-pill.active {
    background: linear-gradient(135deg, #cca43b 0%, #d97706 100%) !important;
    border-color: transparent !important;
    color: #020617 !important;
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.45) !important;
}

/* Catalog Title & Count Header */
.catalog-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 40px 0 20px 2px;
    z-index: 10;
    position: relative;
}

.catalog-title {
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
    color: #94a3b8 !important;
    text-transform: uppercase;
}

.catalog-badge {
    background: rgba(139, 92, 246, 0.18) !important;
    color: #c4b5fd !important;
    padding: 3px 11px !important;
    border-radius: 100px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
}

/* Volumetric 3D Software Box Cube Card Grid */
.tool-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    /* Force 3-column Layout */
    gap: 15px !important;
    margin: 20px 0 50px !important;
    z-index: 10;
    position: relative;
}

.tool-card {
    background: rgba(18, 12, 38, 0.5) !important;
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
    border-radius: 20px !important;
    padding: 18px 12px !important;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    transform-style: preserve-3d !important;
    perspective: 1000px !important;
    transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.45s, border-color 0.3s, background 0.3s;
}

.tool-card:hover {
    transform: perspective(1000px) rotateY(-8deg) rotateX(6deg) translateZ(8px) !important;
    box-shadow: 0 16px 36px rgba(139, 92, 246, 0.3) !important;
    border-color: rgba(139, 92, 246, 0.45) !important;
    background: rgba(26, 18, 54, 0.7) !important;
}

/* Volumetric 3D Box Dimensions */
.p-img-container {
    width: 90px;
    height: 95px;
    margin: 0 auto 18px;
    perspective: 600px;
    transform-style: preserve-3d;
}

.box-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-22deg) rotateX(15deg);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tool-card:hover .box-3d {
    transform: rotateY(-5deg) rotateX(6deg) scale(1.1);
}

.box-face {
    position: absolute;
    border-radius: 12px;
    backface-visibility: hidden;
}

.box-front {
    width: 90px;
    height: 95px;
    background: #0d0920 !important;
    border: 2px solid rgba(139, 92, 246, 0.45) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(10px);
    box-shadow: 5px 10px 25px rgba(0, 0, 0, 0.7);
    background-image: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, transparent 100%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 1px, transparent 1px) !important;
    background-size: 100% 100%, 8px 8px !important;
}

.box-front img {
    width: 82% !important;
    height: 82% !important;
    object-fit: contain !important;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.65)) !important;
}

.box-left {
    background: #05030f !important;
    width: 20px;
    height: 95px;
    left: -10px;
    transform: rotateY(-90deg) translateZ(10px);
    border-radius: 12px 0 0 12px;
    border: 1px solid rgba(139, 92, 246, 0.22) !important;
    border-right: none !important;
}

.box-top {
    background: #191436 !important;
    width: 90px;
    height: 20px;
    top: -10px;
    transform: rotateX(90deg) translateZ(10px);
    border-radius: 12px 12px 0 0;
    border: 1px solid rgba(139, 92, 246, 0.22) !important;
    border-bottom: none !important;
}

/* Card Information */
.tool-card-info {
    text-align: left;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tool-specialty-badge {
    color: #cca43b !important;
    /* Premium Gold */
    font-size: 8px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 1.2px !important;
    display: block;
    margin-bottom: 7px;
}

.tool-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.3 !important;
    margin-bottom: 0px !important;
}

/* Footer Price & Add Button */
.tool-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price-tag {
    font-weight: 600 !important;
    font-size: 19px !important;
    color: #cca43b !important;
    /* Premium Gold */
    letter-spacing: -0.5px !important;
}

/* Gold Circular plus Button */
.add-to-cart-circle {
    background: linear-gradient(135deg, #cca43b 0%, #d97706 100%) !important;
    border: none !important;
    color: #020617 !important;
    width: 34px;
    height: 34px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.tool-card:hover .add-to-cart-circle {
    transform: scale(1.15) !important;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.55) !important;
}

.add-to-cart-circle:active {
    transform: scale(0.92) !important;
}

/* Glassmorphic Nav Highlights (Active tab matches golden theme) */
.nav-item.active {
    color: #cca43b !important;
    opacity: 1 !important;
}

.nav-item.active i {
    color: #cca43b !important;
}

/* Mobile responsive Grid scaling (Pixel Perfect!) */
@media (max-width: 768px) {
    .tool-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        /* Lock exactly 3 columns */
        gap: 8px !important;
        padding: 5px 0 !important;
    }

    .tool-card {
        padding: 12px 6px !important;
        border-radius: 15px !important;
    }

    .p-img-container {
        width: 70px !important;
        height: 75px !important;
        margin-bottom: 12px !important;
    }

    .box-front {
        width: 70px !important;
        height: 75px !important;
        border-radius: 9px !important;
    }

    .box-left {
        height: 75px !important;
        width: 16px !important;
        left: -8px !important;
        border-radius: 9px 0 0 9px !important;
    }

    .box-top {
        width: 70px !important;
        height: 16px !important;
        top: -8px !important;
        border-radius: 9px 9px 0 0 !important;
    }

    .tool-title {
        font-size: 11px !important;
    }

    .tool-specialty-badge {
        font-size: 7px !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 4px !important;
    }

    .price-tag {
        font-size: 14px !important;
    }

    .add-to-cart-circle {
        width: 26px !important;
        height: 26px !important;
        font-size: 10px !important;
    }
}

/* ==========================================================================
   MULTI-LANGUAGE SELECTOR DROPDOWN (GLASSMORPHIC)
   ========================================================================== */
.lang-selector-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10001;
    /* Stay above views */
}

.lang-selector-btn {
    background: rgba(139, 92, 246, 0.1) !important;
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
    color: #ffffff !important;
    padding: 8px 14px !important;
    border-radius: 100px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.lang-selector-btn:hover {
    background: rgba(139, 92, 246, 0.22) !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
    transform: scale(1.05);
}

.lang-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    width: 145px;
    background: rgba(15, 12, 35, 0.95) !important;
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
    display: none;
    flex-direction: column;
    padding: 6px 0;
    overflow: hidden;
    backdrop-filter: blur(15px);
    animation: slideUpLang 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpLang {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.lang-dropdown.active {
    display: flex;
}

.lang-opt {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.lang-opt:hover {
    background: rgba(139, 92, 246, 0.25) !important;
    color: #ffffff !important;
    padding-left: 20px !important;
}

#deposit-amount-input:focus {
    border-color: #cca43b !important;
    box-shadow: 0 0 20px rgba(204, 164, 59, 0.45) !important;
    transform: translateY(-1px);
}