* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #1a1a1a;
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 60px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.navbar-left, .navbar-right {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 30px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #e0e0e0;
}

.nav-item {
    color: #fff;
    text-decoration: none;
    margin: 0 18px;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #fff;
    bottom: -4px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

.nav-item:hover {
    color: #e0e0e0;
}

.jeton-count {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    margin-right: 10px;
}

.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-left: 18px;
    border: 1.5px solid #fff;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.15);
    border-color: #e0e0e0;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 80px auto 48px;
    padding: 0 24px;
}

/* Headings */
h1 {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

h2 {
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
}

p {
    font-size: 18px;
    color: #4a4a4a;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 24px;
}

/* Market Section */
.market-section {
    padding: 60px 0;
    text-align: center;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Exactly 4 columns */
    gap: 24px;
    padding: 24px 0;
}

.market-card {
    background-color: #fff;
    border: none;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.market-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.market-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

.market-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.market-card p {
    font-size: 15px;
    color: #4a4a4a;
    margin-bottom: 12px;
}

/* Buttons */
.btn {
    background: linear-gradient(90deg, #1a1a1a, #333);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background: linear-gradient(90deg, #333, #1a1a1a);
    transform: translateY(-4px);
}

.market-btn {
    font-size: 15px;
    padding: 10px 20px;
}

.market-main-btn {
    font-size: 16px;
    padding: 14px 36px;
    margin-top: 24px;
}

/* Purchase Confirmation Message */
.purchase-message {
    max-width: 600px;
    margin: 20px auto;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
}

.purchase-message.success {
    background-color: #e6f3e6;
    color: #2e7d32;
}

.purchase-message.error {
    background-color: #ffe6e6;
    color: #d32f2f;
}

/* Modal for Purchase Confirmation (Optional) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.modal-content p {
    font-size: 15px;
    color: #4a4a4a;
    margin-bottom: 20px;
}

.modal-content .btn {
    padding: 10px 20px;
}

/* Footer */
footer {
    background: #0a0a0a;
    color: #fff;
    text-align: center;
    padding: 32px;
    margin-top: 60px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.social-links {
    margin-top: 16px;
}

.social-links a {
    color: #fff;
    font-size: 20px;
    margin: 0 12px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .market-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for medium screens */
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }

    .logo {
        font-size: 24px;
    }

    .nav-item {
        font-size: 14px;
        margin: 0 10px;
    }

    .jeton-count {
        font-size: 14px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    .market-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for small screens */
    }

    .market-card img {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .market-grid {
        grid-template-columns: 1fr; /* 1 column for very small screens */
    }
}