@font-face {
    font-family: 'Minecraft Seven';
    src: url('https://www.minecraft.net/etc.clientlibs/minecraftnet/clientlibs/clientlib-site/resources/fonts/Minecraft-Seven_v2.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Minecraft Ten';
    src: url('https://www.minecraft.net/etc.clientlibs/minecraftnet/clientlibs/clientlib-site/resources/fonts/Minecraft-Tenv2.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans';
    src: url('https://www.minecraft.net/etc.clientlibs/minecraftnet/clientlibs/clientlib-site/resources/fonts/NotoSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans';
    src: url('https://www.minecraft.net/etc.clientlibs/minecraftnet/clientlibs/clientlib-site/resources/fonts/NotoSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-main: #121212;
    --bg-header: #000000;
    --mc-green: #3c8527;
    --mc-green-hover: #47a329;
    --mc-yellow: #ffda00;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --border-dark: #333333;
    --card-bg: #1e1e1e;

    --font-heading: 'Minecraft Seven', 'Minecraft Ten', Arial, sans-serif;
    --font-heading-lg: 'Minecraft Ten', 'Minecraft Seven', Arial, sans-serif;
    --font-body: 'Noto Sans', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==========================================================================
   GLOBAL BACKGROUND PARTICLES
   ========================================================================== */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    z-index: -1;
    pointer-events: none;
    /* Allows clicking through */
}

.bg-particles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.03);
    animation: animateBgParticles 25s linear infinite;
    bottom: -150px;
    border-radius: 2px;
}

.bg-particles li:nth-child(1) {
    left: 15%;
    width: 40px;
    height: 40px;
    animation-delay: 0s;
    animation-duration: 20s;
}

.bg-particles li:nth-child(2) {
    left: 5%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.bg-particles li:nth-child(3) {
    left: 70%;
    width: 30px;
    height: 30px;
    animation-delay: 4s;
    animation-duration: 18s;
}

.bg-particles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 25s;
}

.bg-particles li:nth-child(5) {
    left: 65%;
    width: 15px;
    height: 15px;
    animation-delay: 0s;
    animation-duration: 15s;
}

.bg-particles li:nth-child(6) {
    left: 85%;
    width: 80px;
    height: 80px;
    animation-delay: 3s;
    animation-duration: 22s;
}

.bg-particles li:nth-child(7) {
    left: 25%;
    width: 90px;
    height: 90px;
    animation-delay: 7s;
    animation-duration: 24s;
}

.bg-particles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 30s;
}

.bg-particles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.bg-particles li:nth-child(10) {
    left: 95%;
    width: 50px;
    height: 50px;
    animation-delay: 0s;
    animation-duration: 28s;
}

.bg-particles li:nth-child(11) {
    left: 35%;
    width: 45px;
    height: 45px;
    animation-delay: 4s;
    animation-duration: 14s;
}

.bg-particles li:nth-child(12) {
    left: 55%;
    width: 65px;
    height: 65px;
    animation-delay: 1s;
    animation-duration: 26s;
}

.bg-particles li:nth-child(13) {
    left: 80%;
    width: 35px;
    height: 35px;
    animation-delay: 6s;
    animation-duration: 19s;
}

.bg-particles li:nth-child(14) {
    left: 10%;
    width: 65px;
    height: 65px;
    animation-delay: 8s;
    animation-duration: 32s;
}

.bg-particles li:nth-child(15) {
    left: 60%;
    width: 55px;
    height: 55px;
    animation-delay: 3s;
    animation-duration: 24s;
}

@keyframes animateBgParticles {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-120vh) rotate(360deg);
        opacity: 0;
    }
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.navbar {
    background-color: var(--bg-header);
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--border-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    height: 100%;
}

.dropdown {
    height: 100%;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
}

.dropdown:has(.active-link) {
    border-bottom: 3px solid var(--mc-green);
}

.dropbtn {
    background: none;
    border: none;
    color: var(--text-white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.5px;
    padding: 0 20px;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropbtn:hover {
    color: var(--mc-green);
}

.nav-chevron {
    font-size: 10px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-buy-nav {
    background-color: var(--mc-green);
    color: var(--text-white);
    border: 1px solid var(--mc-green);
    padding: 12px 24px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
    text-transform: uppercase;
}

.btn-buy-nav:hover {
    background-color: var(--mc-green-hover);
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
}

.icon-btn:hover {
    color: var(--mc-green);
}

.divider {
    width: 1px;
    height: 24px;
    background-color: var(--border-dark);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
}

/* ==========================================================================
   CSS ANIMATED FLOATING BLOCKS (BACKGROUND)
   ========================================================================== */
.floating-blocks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    z-index: 0;
}

.floating-blocks li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    /* very subtle block */
    animation: animateBlocks 25s linear infinite;
    bottom: -150px;
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2), 0 0 10px rgba(255, 255, 255, 0.02);
}

.floating-blocks li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.floating-blocks li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.floating-blocks li:nth-child(3) {
    left: 70%;
    width: 40px;
    height: 40px;
    animation-delay: 4s;
}

.floating-blocks li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.floating-blocks li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.floating-blocks li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.floating-blocks li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.floating-blocks li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.floating-blocks li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.floating-blocks li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

.floating-blocks li:nth-child(11) {
    left: 15%;
    width: 45px;
    height: 45px;
    animation-delay: 4s;
    animation-duration: 14s;
}

.floating-blocks li:nth-child(12) {
    left: 55%;
    width: 85px;
    height: 85px;
    animation-delay: 1s;
    animation-duration: 16s;
}

.floating-blocks li:nth-child(13) {
    left: 90%;
    width: 35px;
    height: 35px;
    animation-delay: 6s;
    animation-duration: 19s;
}

.floating-blocks li:nth-child(14) {
    left: 5%;
    width: 65px;
    height: 65px;
    animation-delay: 8s;
    animation-duration: 21s;
}

.floating-blocks li:nth-child(15) {
    left: 60%;
    width: 55px;
    height: 55px;
    animation-delay: 3s;
    animation-duration: 24s;
}

@keyframes animateBlocks {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-800px) rotate(720deg);
        opacity: 0;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #0b0f19;
    /* Dark background similar to marketplace hero base */
}

/* Simulated Creeper/Particle background using a placeholder gradient/pattern */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121822;
    /* Add dark base */
    background-image:
        url('https://www.minecraft.net/content/dam/minecraftnet/franchise/component-library/marketplaceHeroA/Marketplace_Particles_Catalog_Left.png'),
        url('https://www.minecraft.net/content/dam/minecraftnet/franchise/component-library/marketplaceHeroA/Marketplace_Particles_Catalog_Right.png');
    background-position: left center, right center;
    background-repeat: no-repeat, no-repeat;
    background-size: contain, contain;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.marketplace-title {
    font-family: var(--font-heading-lg);
    font-size: 80px;
    color: var(--text-white);
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    /* Simulate the 3D text effect */
    -webkit-text-stroke: 1px var(--border-dark);
}

.search-container {
    width: 100%;
    max-width: 600px;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--text-white);
    border-radius: 4px;
    height: 56px;
    padding: 0 16px;
    width: 100%;
}

.search-icon {
    color: #666;
    font-size: 20px;
    margin-right: 12px;
}

.marketplace-search {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 16px;
    color: #000;
}

.filter-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

/* ==========================================================================
   SOCIAL PROOF SECTION
   ========================================================================== */
.social-proof-section {
    background-color: var(--card-bg);
    border-bottom: 2px solid var(--border-dark);
    padding: 24px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.social-proof-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    min-width: 240px;
    transition: transform 0.2s, background 0.2s;
}

.stat-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.stat-icon-wrap {
    width: 48px;
    height: 48px;
    background-color: var(--mc-green);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 4px;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--mc-green);
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   GENERAL TYPOGRAPHY
   ========================================================================== */
.mc-heading {
    font-family: var(--font-heading);
    font-size: 32px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-white);
}

.border-top {
    border-top: 1px solid var(--border-dark);
    padding-top: 40px;
}

.section-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.view-all-link {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all-link:hover {
    color: var(--mc-green);
}

.view-all-link i {
    font-size: 12px;
}

/* ==========================================================================
   CATEGORIES GRID (REPLICATING ORIGINAL BLACK PILLS)
   ========================================================================== */
.tiles-section {
    padding: 60px 0;
    background-color: var(--bg-main);
}

.category-grid-container {
    padding: 0 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.category-btn {
    background-color: #1e1e1e;
    border: 1px solid #111;
    border-bottom: 2px solid #555555;
    border-right: 2px solid #555555;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 16px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
    min-width: 250px;
    flex: 1 1 auto;
    max-width: 320px;
}

.category-btn:hover {
    background-color: #2a2a2a;
    border-bottom: 2px solid #777777;
    border-right: 2px solid #777777;
    transform: translateY(-2px);
}

.category-icon {
    color: var(--text-white);
    font-size: 20px;
    min-width: 24px;
    text-align: center;
}

.category-text {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-size: 16px;
    letter-spacing: 1px;
}

/* ==========================================================================
   CARDS GRID (MARKETPLACE ITEMS)
   ========================================================================== */
.content-section {
    padding-bottom: 80px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.mc-item-card {
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: opacity 0.2s;
}

.mc-item-card:hover {
    opacity: 0.85;
}

.card-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.card-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-type-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background-color: rgba(20, 20, 20, 0.9);
    border: 1px solid var(--mc-yellow);
    color: var(--mc-yellow);
    font-family: var(--font-heading);
    padding: 2px 6px;
    font-size: 12px;
    text-transform: uppercase;
}

.card-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px;
}

.card-title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
    line-height: 1.3;
}

.card-creator {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-white);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.creator-name {
    color: var(--text-gray);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    margin-bottom: 12px;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: bold;
}

.card-rating i {
    color: var(--mc-yellow);
    font-size: 14px;
}

.card-price {
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-gray);
    font-size: 12px;
}

.minecoin-icon {
    width: 14px;
    height: 14px;
}

.price-free {
    color: var(--mc-yellow);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
}

.btn-claim-small {
    background-color: var(--mc-green);
    color: var(--text-white);
    border: none;
    padding: 10px 0;
    font-family: var(--font-heading);
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    transition: filter 0.2s;
    width: 100%;
}

.btn-claim-small:hover {
    filter: brightness(1.1);
}

/* ==========================================================================
   SEARCH HIGHLIGHT ANIMATION
   ========================================================================== */
@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(60, 133, 39, 0.7);
        transform: scale(1.02);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(60, 133, 39, 0);
        transform: scale(1);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(60, 133, 39, 0);
        transform: scale(1);
    }
}

.highlight-search {
    animation: highlightPulse 1.5s ease-out;
    border-color: var(--mc-green) !important;
}

/* ==========================================================================
   REVIEWS SECTION
   ========================================================================== */
.reviews-section {
    padding: 60px 0;
}

.trust-badge {
    background-color: rgba(60, 133, 39, 0.1);
    color: var(--mc-green);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--mc-green);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.review-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-dark);
    border-top: 4px solid var(--mc-green);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--mc-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: white;
}

.reviewer-name {
    font-weight: bold;
    font-size: 15px;
    color: var(--text-light);
}

.review-stars {
    color: #00b67a;
    /* Trustpilot Green */
    font-size: 12px;
    margin-top: 2px;
}

.review-time {
    position: absolute;
    right: 0;
    top: 5px;
    font-size: 12px;
    color: var(--text-gray);
}

.review-title {
    font-size: 16px;
    color: var(--text-light);
    margin: 4px 0 0 0;
}

.review-text {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
    flex-grow: 1;
}

/* Responsive Reviews */
@media (max-width: 992px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
/* ==========================================================================
   MINECOINS GENERATOR SECTION
   ========================================================================== */

/* --- New Official Minecoins Replica Styles (Vertical Layout) --- */
.mc-official-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

@media (min-width: 992px) {
    .mc-official-grid {
        flex-wrap: nowrap;
    }
}

.mc-pack-card {
    display: flex;
    flex-direction: column;
    width: 160px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.mc-pack-header {
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    color: #1a1a1a;
    background-color: transparent;
}

.pack-header-popular {
    background-color: #f7b420;
    /* Yellow */
}

.pack-header-greatdeal {
    background-color: #4bffd5;
    /* Cyan */
}

.mc-pack-inner {
    background-color: #212121;
    border: 2px solid #333333;
    padding: 24px 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    transition: all 0.2s ease-in-out;
}

.mc-pack-card:hover .mc-pack-inner {
    border-color: #ffffff;
    background-color: #2b2b2b;
}

/* Hidden radio */
.pack-radio {
    display: none;
}

/* Checked state */
.mc-pack-card:has(.pack-radio:checked) .mc-pack-inner {
    border-color: #f7b420;
    box-shadow: 0 0 10px rgba(247, 180, 32, 0.2);
}

.mc-pack-img {
    height: 70px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.mc-pack-amount {
    font-family: 'Minecraft Ten', sans-serif;
    color: white;
    font-size: 28px;
    margin: 0;
    letter-spacing: 1px;
}

.mc-pack-bonus {
    color: #cccccc;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    height: 18px;
    /* Fixed height so cards align even if no bonus */
}

.mc-icon {
    width: 14px;
    height: 14px;
}

.mc-pack-divider {
    width: 80%;
    height: 1px;
    background-color: #444444;
    margin: 20px 0;
}

.mc-pack-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.mc-radio-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #999999;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-pack-card:has(.pack-radio:checked) .mc-radio-circle {
    border-color: #f7b420;
}

.mc-pack-card:has(.pack-radio:checked) .mc-radio-circle::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #f7b420;
    border-radius: 50%;
}

.mc-pack-price {
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.btn-mc-checkout {
    background-color: #f7b420;
    color: #111111;
    font-family: 'Minecraft Seven', sans-serif;
    font-size: 18px;
    padding: 16px 48px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 0 #b38217;
}

.btn-mc-checkout:hover {
    background-color: #ffd052;
}

.btn-mc-checkout:active {
    transform: translateY(4px);
    box-shadow: none;
}

@media (max-width: 900px) {
    .mc-pack-card {
        width: 140px;
    }
}

@media (max-width: 768px) {
    .mc-pack-card {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .mc-pack-card {
        width: 100%;
        max-width: 250px;
    }
}

.generator-section {
    padding: 20px 0 40px 0;
}

.generator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.coin-package {
    background-color: var(--card-bg);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.coin-package::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--mc-yellow), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.coin-package:hover {
    transform: translateY(-8px);
    border-color: var(--mc-yellow);
    box-shadow: 0 12px 25px rgba(255, 218, 0, 0.15);
}

.coin-package:hover::before {
    opacity: 1;
}

.coin-package.popular {
    border-color: var(--mc-green);
    transform: scale(1.05);
}

.coin-package.popular:hover {
    transform: scale(1.05) translateY(-8px);
    border-color: var(--mc-yellow);
}

.popular-tag {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--mc-green);
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 12px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    letter-spacing: 1px;
}

.package-icon {
    font-size: 48px;
    color: var(--mc-yellow);
    margin-bottom: 10px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 0 4px 10px rgba(255, 218, 0, 0.3);
}

.package-amount {
    font-family: 'Minecraft Ten', sans-serif;
    font-size: 32px;
    color: white;
    margin: 0;
    letter-spacing: 2px;
}

.package-name {
    font-size: 14px;
    color: var(--mc-yellow);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
}

.package-value {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}

.btn-generate {
    background-color: var(--mc-green);
    color: white;
    border: none;
    padding: 12px 24px;
    font-family: 'Minecraft Seven', sans-serif;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
    text-transform: uppercase;
}

.coin-package:hover .btn-generate {
    background-color: var(--mc-green-hover);
}

/* Responsive Generator */
@media (max-width: 900px) {
    .generator-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .coin-package.popular {
        transform: scale(1);
    }

    .coin-package.popular:hover {
        transform: scale(1) translateY(-8px);
    }
}

@media (max-width: 600px) {
    .generator-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   LIVE ACTIVITY TOASTS
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9990;
    /* Just below modal */
    pointer-events: none;
    /* Let clicks pass through */
}

.live-toast {
    background-color: var(--card-bg);
    border: 1px solid var(--border-dark);
    border-left: 4px solid var(--mc-green);
    border-radius: 4px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 250px;
    max-width: 320px;
}

.live-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    font-size: 20px;
}

.toast-content p {
    margin: 0;
    line-height: 1.3;
}

.toast-title {
    font-size: 13px;
    color: var(--text-light);
}

.toast-title strong {
    color: var(--mc-yellow);
}

.toast-item {
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.toast-time {
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 2px !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-dark);
    padding: 60px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo img {
    height: 48px;
}

.footer-text {
    color: var(--text-gray);
    font-size: 14px;
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
        /* Hide main links on tablet/mobile */
    }

    .menu-toggle {
        display: block;
        /* Show hamburger */
    }

    .btn-buy-nav i {
        display: none;
        /* Hide chevron on smaller screens saving space */
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .sub-nav-container {
        padding: 0 20px;
    }

    .categories-carousel {
        padding: 0 20px;
    }

    .marketplace-title {
        font-size: 48px;
    }

    .mc-heading {
        font-size: 24px;
    }

    .btn-buy-nav {
        display: none;
        /* Hide buy button on mobile */
    }
}

/* ==========================================================================
   CLAIM REWARD MODAL 
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    /* Flex when open */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.claim-modal {
    background-color: var(--card-bg);
    border: 2px solid var(--border-dark);
    border-radius: 8px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .claim-modal {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--text-white);
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--border-dark);
    text-align: center;
}

.modal-header .mc-heading {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--mc-yellow);
}

.reward-name-display {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
}

.modal-body {
    padding: 30px;
    display: flex;
    /* overridden by inline styles */
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.modal-instruction {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.mc-input {
    width: 100%;
    background-color: var(--bg-main);
    border: 2px solid var(--border-dark);
    color: var(--text-white);
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    border-radius: 4px;
    margin-bottom: 24px;
    outline: none;
    transition: border-color 0.2s;
}

.mc-input:focus {
    border-color: var(--mc-green);
}

.btn-primary {
    background-color: var(--mc-green);
    color: var(--text-white);
    border: 1px solid var(--mc-green);
    padding: 14px 24px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-transform: uppercase;
}

.w-100 {
    width: 100%;
}

.mt-20 {
    margin-top: 20px;
}

.btn-primary:hover {
    background-color: var(--mc-green-hover);
}

/* Spinner Animation */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-dark);
    border-top: 4px solid var(--mc-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.success-icon {
    font-size: 60px;
    color: var(--mc-green);
    margin-bottom: 16px;
}

/* --- MARKETPLACE PASS PROMO SECTION --- */
.marketplace-pass-section {
    background-color: transparent;
    border-top: 1px solid var(--border-dark);
}

.pass-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 60px 20px;
}

.pass-image-wrap {
    flex: 1;
    max-width: 50%;
}

.pass-image-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.pass-info-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pass-heading {
    font-family: 'Minecraft Ten', sans-serif;
    font-size: 38px;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.pass-desc {
    font-family: 'Inter', sans-serif;
    color: white;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 480px;
}

.pass-btn-claim {
    background-color: #f7b420;
    color: #111111;
    font-family: 'Minecraft Seven', sans-serif;
    font-size: 18px;
    padding: 16px 48px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 0 #b38217;
    margin-bottom: 15px;
}

.pass-btn-claim:hover {
    background-color: #ffd052;
}

.pass-btn-claim:active {
    transform: translateY(4px);
    box-shadow: none;
}

.pass-subtext {
    font-size: 13px;
    color: #888888;
}

@media (max-width: 900px) {
    .pass-container {
        flex-direction: column;
        text-align: center;
    }

    .pass-image-wrap {
        max-width: 100%;
        margin-bottom: 30px;
    }
}