:root {
    --primary-color: #0054ff;
    --background-color: #FFFFFF;
    --text-color: #212121;
    --card-bg: #F8F9FA;
    --light-bg: #F8F9FA;
    --yellow-bg: #FFDE59;
    --dark-bg: #212121;
    --light-text: #FFFFFF;
    --border-radius: 16px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    background-color: rgb(0, 0, 0);
    background-image: none;
    color: var(--text-color);
    min-height: 100vh;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    overflow-x: hidden;
}

/* Navbar styles */
.navbar {
    background-color: rgb(0, 0, 0);
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); */
    padding: 1rem 2rem;
    margin-top: 0;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    margin-top: 2px;
    width: 150px;
    height: auto;
}

.nav-links {
    display: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.connect-wallet {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgb(30, 30, 30);
    color: rgb(126, 126, 126);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    font-size: 12px;
}

.connect-wallet:hover {
    scale: 1.2;
    background: #c6c6c6;
    color: rgb(28, 28, 28);
    transition: all 0.3s ease-in-out;
}

.pricing-header h1 {
    color: rgb(211, 211, 211);
    font-family: 'Press Start 2P', cursive;
    font-size: 3rem !important;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Hero section styles */
.hero {
    text-align: center;
    padding-top: 8rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.social-icon {
    background: var(--card-bg);
    padding: 0.75rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icon img {
    width: 24px;
    height: 24px;
}

/* Stats section styles */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    min-width: 250px;
    backdrop-filter: blur(10px);
}

.stat-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: rgba(255, 255, 255, 0.6);
}

.stat-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-emoji {
    font-size: 2.5rem;
}

.stat-text {
    text-align: left;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-top: -100px;
    }

    .stats-container {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        width: 100%;
        max-width: 300px;
        min-width: 200px;
    }

    .stat-emoji {
        font-size: 2rem;
    }
}

@font-face {
    font-family: 'Integral CF';
    src: url('assets/Fontspring-DEMO-integralcf-extrabold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

/* Update the relevant text elements to use the new font */
.hero-title,
.stat-card h2 {
    font-family: 'Integral CF', sans-serif;
}

.price {
    font-family: 'Press Start 2P', cursive !important;
    font-size: 2.5rem !important;
}

/* Mobile menu icon styling */
.mobile-menu-icon {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* Media query for mobile responsiveness */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #1a1a1a;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s;
        z-index: 100;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 15px 0;
        color: white;
    }

    .mobile-menu-icon {
        display: block;
        z-index: 101;
        order: 3;
    }

    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }

    .logo {
        order: 1;
    }

    .connect-wallet {
        order: 2;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        margin-right: 10px;
    }

    .connect-wallet:hover {
        scale: 1.1;
    }

    .tier-details {
        z-index: 200;
    }

    .close-btn {
        z-index: 201;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: #121212;
    margin: auto;
    padding: 3rem;
    border: 1px solid #333;
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-align: center;
    color: white;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: #888;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: white;
}

.modal-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: white;
    line-height: 1.5;
}

.modal-body p {
    margin-bottom: 1.5rem;
    color: #b0b0b0;
    line-height: 1.6;
}

.contact-info {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #333;
}

.contact-info p {
    font-family: 'Press Start 2P';
    text-decoration: none !important;
    color: white !important;
    font-size: 0.8rem;
}

.email {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.1rem;
    word-break: break-all;
    margin-bottom: 0 !important;
}

.modal-text {
    font-size: 0.8rem !important;
    font-style: italic;
    opacity: 0.7;
}

/* Footer styles */
.footer {
    margin-top: 6rem;
    padding: 2rem 0;
    text-align: center;
    background-color: black;
    backdrop-filter: none;
    border-top: 1px solid black;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.copyright {
    color: #757575;
    font-size: 0.7rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Update responsive design for footer */
@media (max-width: 768px) {
    .footer {
        margin-top: 4rem;
        padding: 1.5rem 0;
    }

    .footer-links {
        flex-direction: row;
        gap: 1rem;
    }
}

/* Pricing Section Styles */
.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
    overflow-x: hidden;
}

.pricing-header h1 {
    font-size: 1.5rem !important;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
}

.subscription-toggle {
    display: inline-flex;
    background-color: #E8EAED;
    border-radius: 30px;
    padding: 0.25rem;
    margin: 1rem auto;
}

.toggle-btn {
    background: none;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.toggle-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pricing-card {
    position: relative;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    overflow: visible;
    cursor: pointer;
}

.pricing-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

/* Permanent active/hover state for cards */
.pricing-card.active {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

.pricing-card.active .hover-preview {
    opacity: 1 !important;
}

.pricing-card.active .hover-preview .emoji {
    position: absolute;
    right: 20px;
    transform: scale(1.2);
    bottom: calc(100% - 60px) !important;
}

/* Reset active card to normal when hovering other cards */
.pricing-card.active.hover-disabled {
    transform: translateY(0) rotate(0);
    box-shadow: none;
}

.pricing-card.active.hover-disabled .hover-preview {
    opacity: 0;
}

.pricing-card.active.hover-disabled .hover-preview .emoji {
    transform: scale(0.8);
    bottom: -50px;
}

.pricing-card.featured {
    background-color: rgb(44, 43, 43);
    color: var(--light-text);
}

.pricing-card:nth-child(2) {
    background-color: #F1F3F4;
    border: 1px solid #E8EAED;
}

.pricing-card:first-child {
    border: 1px solid #E8EAED;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tier-name {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: rgba(188, 213, 255, 0.2);
    border-radius: 30px;
    font-weight: 800;
}

.expand-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.expand-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.price {
    font-size: 4rem;
    font-weight: 700;
    margin: 1rem 0;
}

.description {
    margin-bottom: 2rem;
    flex-grow: 1;
    font-size: 1rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    align-self: flex-end;
    transition: background-color var(--transition-speed) ease;
}

.action-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Updated hover preview styles */
.hover-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    pointer-events: none;
    z-index: 20;
    font-size: 5rem;
}

.pricing-card:hover .hover-preview {
    opacity: 1;
}

/* Updated emoji hover animation to top right */
.hover-preview .emoji {
    position: absolute;
    bottom: -50px;
    right: 20px;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 30;
}

.pricing-card:hover .hover-preview .emoji {
    transform: scale(1.2);
    bottom: calc(100% - 60px);
}

.character-mascot {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background-image: url('assets/character.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Tier Details Styles */
.tier-details {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 100;
    display: none;
    overflow-y: auto;
}

.tier-details.active {
    display: block;
    animation: slideIn var(--transition-speed) ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #E8EAED;
}

.details-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.details-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.details-content h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.features-list {
    list-style: none;
    margin-bottom: 3rem;
}

.features-list li {
    position: relative;
    padding: 1rem 0 1rem 3rem;
    border-bottom: 1px solid #E8EAED;
}

.features-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.bonus-features {
    background-color: #F8F9FA;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.bonus-features h4 {
    margin-bottom: 1.5rem;
    color: #757575;
}

.bonus-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #E8EAED;
    border-radius: 4px;
    margin-right: 1rem;
}

.cta-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.cta-button:hover {
    background-color: #3367D6;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card:last-child {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }

    .pricing-header h1 {
        font-size: 1.5rem !important;
        line-height: 1.4;
        padding: 0 0.5rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
    }

    .pricing-card {
        max-width: 100%;
        width: 100%;
        min-height: 250px;
        margin-bottom: 1rem;
        padding: 1.5rem;
    }

    .pricing-card:last-child {
        grid-column: span 1;
        max-width: 100%;
        margin: 0 0 1rem 0;
    }

    .navbar {
        padding: 1rem;
        width: 100%;
    }

    .price {
        font-size: 2.5rem;
    }

    .description {
        font-size: 0.9rem;
    }

    .tier-name {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hover-preview {
        font-size: 4rem;
    }

    .pricing-container {
        padding: 2rem 1rem;
        width: 100%;
        max-width: 100%;
    }

    .modal-content {
        width: 95%;
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .modal-title {
        font-size: 1rem;
    }

    .email {
        font-size: 0.9rem;
    }

    .footer-content {
        padding: 0 1rem;
    }
}

/* Fix for small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }

    .pricing-header h1 {
        font-size: 1.2rem !important;
        line-height: 1.3;
    }

    .pricing-card {
        padding: 1.25rem;
    }

    .price {
        font-size: 2rem;
    }

    .tier-name {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .description {
        font-size: 0.85rem;
    }

    .hover-preview {
        font-size: 3rem;
    }

    .navbar {
        padding: 0.75rem;
    }

    .logo img {
        width: 120px;
    }

    .connect-wallet {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }

    .action-btn {
        width: 40px;
        height: 40px;
    }

    .modal-content {
        padding: 1.5rem 1rem;
    }

    .modal-title {
        font-size: 0.9rem;
    }
}

/* Hide mobile menu icon when popup is active */
.tier-details.active~.container .mobile-menu-icon {
    display: none !important;
}

/* Alternative approach using JavaScript */
@media screen and (max-width: 768px) {
    /* Existing mobile styles... */

    /* Ensure popup has higher z-index */
    .tier-details {
        z-index: 200;
    }

    .close-btn {
        z-index: 201;
    }
}