/*
 * @project     ELONPEPE Website
 * @author      Your Name/Company
 * @description Main stylesheet for the ELONPEPE project.
 * @version     1.5.1
 */

/* ============================================= */
/* ============== CSS VARIABLES ================ */
/* ============================================= */
:root {
    --primary-color: #f7b733;
    --secondary-color: #33374b;
    --background-color: #0c0c1e;
    --header-bg-color: #212121;
    --card-bg-color: rgba(20, 20, 40, 0.75);
    --border-color: rgba(247, 183, 51, 0.3);
    --text-color: #ffffff;
    --text-muted-color: #a0a0b0;
    --font-family: 'Poppins', sans-serif;
    --success-color: #2ecc71;
}

/* ============================================= */
/* ============= BASE & RESET STYLES =========== */
/* ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    padding-top: 80px;
}

/* ============================================= */
/* ============= UTILITY CLASSES =============== */
/* ============================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    text-transform: uppercase;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(90deg, #f7b733, #fc4a1a);
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(252, 74, 26, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 74, 26, 0.5);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-muted-color);
}

.btn-secondary:hover {
    background-color: #444961;
    color: var(--text-color);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* ================================================= */
/* ================ HEADER & NAV =================== */
/* ================================================= */
.main-header {
    background-color: var(--header-bg-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    border-top: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid var(--primary-color);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    font-family: var(--font-family);
    text-decoration: none;
    color: var(--text-color);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.logo .logo-highlight {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-whitepaper {
    position: relative;
    color: var(--primary-color);
    padding: 12px 40px;
}

.btn-whitepaper::before,
.btn-whitepaper::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--primary-color);
    border-style: solid;
    transition: all 0.3s ease;
}

.btn-whitepaper::before {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px;
}

.btn-whitepaper::after {
    bottom: 0;
    right: 0;
    border-width: 0 3px 3px 0;
}

.btn-whitepaper:hover::before {
    transform: translate(-5px, -5px);
}

.btn-whitepaper:hover::after {
    transform: translate(5px, 5px);
}

.btn-buy-now {
    background-color: #f0e6d2;
    color: #4a3f2a;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
}

.btn-buy-now:hover {
    background-color: #fff;
    transform: scale(1.05);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 10px;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: radial-gradient(circle, #f7d794 50%, var(--primary-color) 80%);
}

.social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(247, 183, 51, 0.5);
}

.social-link img {
    width: 20px;
    height: auto;
}

/* ============================================= */
/* ================ HERO SECTION =============== */
/* ============================================= */
.hero-section {
    position: relative;
    min-height: calc(100vh - 80px);
    padding-top: 50px;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Opacity was correctly removed here */
    z-index: -1;
}

/* Top Logo - Below header, centered, above content */
.top-logo {
    position: absolute;
    top: 90px;
    left: 44%;
    transform: translateX(-50%);
    z-index: 50;
    text-align: center;
}

.top-logo img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(247, 183, 51, 0.5));
}

/* Responsive */
@media (max-width: 768px) {
    .top-logo img {
        max-width: 175px;
    }
}

@media (max-width: 480px) {
    .top-logo img {
        max-width: 175px;
    }
}

/* ============================================= */
/* ============== HERO CONTENT ================= */
/* ============================================= */
.hero-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    position: relative;
    /* Added for logo center positioning */
}

.hero-illustration {
    position: relative;
    /* Added for logo overlay positioning */
}

.hero-illustration img {
    max-width: 100%;
    animation: floatAnimation 4s ease-in-out infinite;
}

/* Hero Logo Center - Positioned between astronaut and presale card */
.hero-logo-center {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    text-align: center;
}

.hero-logo-center img {
    max-width: 90px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(247, 183, 51, 0.5));
    display: block;
    margin: 0 auto;
    animation: floatAnimation 3s ease-in-out infinite;
}

/* Responsive adjustments for logo */
@media (max-width: 768px) {
    .hero-logo-center {
        top: 8%;
    }

    .hero-logo-center img {
        max-width: 70px;
    }
}

@media (max-width: 480px) {
    .hero-logo-center {
        top: 5%;
    }

    .hero-logo-center img {
        max-width: 55px;
    }
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

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

/* ============================================= */
/* ================ PRESALE BOX ================ */
/* ============================================= */
.presale-box {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.presale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.presale-header h3 {
    font-size: 20px;
    margin: 0;
}

.status-live {
    background-color: var(--success-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.presale-description {
    color: var(--text-muted-color);
    font-size: 14px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #f7b733, #fc4a1a);
    border-radius: 4px;
}

.sale-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
}

.detail-item .label {
    color: var(--text-muted-color);
}

.detail-item .value {
    color: var(--text-color);
    font-weight: 600;
}

.countdown-timer p {
    text-align: center;
    color: var(--text-muted-color);
    margin-bottom: 10px;
}

.timer {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.time-block .time-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.time-block .time-label {
    font-size: 12px;
    color: var(--text-muted-color);
    text-transform: uppercase;
}

.input-group {
    display: flex;
    gap: 15px;
}

.input-wrapper {
    width: 100%;
}

.input-wrapper label {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
    color: var(--text-muted-color);
}

.input-wrapper input {
    width: 100%;
    padding: 12px;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 16px;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

/* ============================================= */
/* =========== TOKEN PRICE DISPLAY ============= */
/* ============================================= */
/**
 * Token price display in the presale card.
 * Shows the current price of 1 EPEPE token from database settings.
 */
.token-price-display {
    text-align: center;
    padding: 20px;
    background-color: rgba(247, 183, 51, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin: 10px 0;
    width: 100%;
}

.token-price-display .price-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.token-price-display .price-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(247, 183, 51, 0.3);
    text-align: center;
}

/* ============================================= */
/* ============ DEGEN'S HOME SECTION =========== */
/* ============================================= */
/* Styles for the section with text on the left and image on the right. */

.degen-home-section {
    position: relative;
    padding: 100px 0;
    background-image: url('../images/bg-about.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/*
 * The main grid for the section.
*/
.degen-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/*
 * Container for the title and paragraph on the left.
*/
.degen-home-text {
    text-align: left;
    /* Ensures text is aligned to the left */
}

.degen-home-text .section-title {
    /* Başlık boyutu gözle görülür şekilde artırıldı */
    font-size: 56px;
    margin-bottom: 25px;
    text-shadow: none;
}

.degen-home-text .section-subtitle {
    /* Paragraf metni daha okunaklı olacak şekilde büyütüldü */
    font-size: 20px;
    margin: 0;
    max-width: 100%;
    line-height: 1.8;
    color: #c0c0d0;
    /* Rengi biraz daha açarak okunabilirliği artırdım */
}

/*
 * Container for the GIF on the right.
*/
.degen-home-image img {
    width: 100%;
    display: block;
    border-radius: 12px;
    /* Subtle rounded corners from reference */

    /* 
    * This rule makes the image 15% larger than its container, 
    * creating the desired "big" and impactful look without any border or effects.
    */
    transform: scale(1.4);
}

/* ============================================= */
/* ================ MARQUEE SECTION ============ */
/* ============================================= */
/* Styles for the infinitely scrolling banner with torn-paper effect. */

.marquee-section {
    /* The main background is now the solid primary yellow color */
    background-color: var(--primary-color);
    padding: 40px 0;
    position: relative;
    /* Essential for positioning the pseudo-elements */
    overflow: hidden;
    /* Ensures pseudo-elements don't spill out */
}

/* 
 * Creates the TOP torn-paper edge using the provided image.
*/
.marquee-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 25px;
    /* Height of the torn paper graphic */
}

/* 
 * Creates the BOTTOM torn-paper edge by flipping the same image.
*/
.marquee-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25px;
    /* Height of the torn paper graphic */
    transform: scaleY(-1);
    /* Flips the image vertically */
}

.marquee-wrapper {
    overflow: hidden;
    width: 100%;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 60px;
    /* Increased gap for the larger images */
    width: fit-content;
    animation: scrollAnimation 35s linear infinite;
}

@keyframes scrollAnimation {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 
 * Style for the 'degen-safe.webp' image, now much larger.
*/
.marquee-content .marquee-text-image {
    height: 65px;
    /* Significantly increased height */
    width: auto;
}

/* 
 * Style for the coin image, also much larger.
*/
.marquee-content .marquee-coin {
    height: 85px;
    /* Significantly increased height */
    width: auto;
}

/* ============================================= */
/* ================ FEATURES SECTION =========== */
/* ============================================= */
/* Styles for the three-column features showcase. */

.features-section {
    padding: 100px 0;
    background-image: url('../images/bg-features.webp');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* A dark overlay to improve text readability over the background image */
.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 12, 30, 0.7);
    /* Dark blueish overlay */
    z-index: 1;
}

/* Ensure all content is above the overlay */
.features-section .container {
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    /* This creates three columns: 1 fraction, auto-sized, 1 fraction */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 60px;
}

.features-main-image {
    text-align: center;
}

.features-main-image img {
    max-width: 400px;
    width: 100%;
    /* A subtle filter to make the GIF pop */
    filter: drop-shadow(0 0 20px rgba(247, 183, 51, 0.3));
    transform: scale(1);
}

.features-column {
    display: flex;
    flex-direction: column;
    gap: 50px;
    /* Vertical space between feature items */
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Specific alignment for the left column text */
.feature-item.align-right .feature-text {
    text-align: right;
}

.feature-icon {
    background-color: rgba(247, 183, 51, 0.1);
    /* Faint yellow background */
    border: 1px solid rgba(247, 183, 51, 0.2);
    border-radius: 50%;
    padding: 12px;
    /* Flex properties to ensure the image is perfectly centered */
    display: flex;
    justify-content: center;
    align-items: center;
    /* A fixed size for the icon container */
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.feature-icon img {
    width: 40px;
    height: 40px;
}

.feature-text h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.feature-text p {
    font-size: 16px;
    color: var(--text-muted-color);
    line-height: 1.6;
}

/* ============================================= */
/* ============== HOW TO BUY SECTION =========== */
/* ============================================= */
/* Styles for the three-step guide on purchasing the token. */

.how-to-buy-section {
    padding: 100px 0;

    background-image: url('../images/bg-how-to-buy.webp');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Tekrarlamayı engelle */
}

.how-to-buy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.how-to-buy-card {
    background-color: var(--card-bg-color);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    /* Hover efektleri ve transition kaldırıldı */
}

.how-to-buy-card .card-image {
    max-width: 150px;
    height: auto;
    margin: 0 auto 30px auto;
}

.how-to-buy-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.how-to-buy-card p {
    font-size: 16px;
    color: var(--text-muted-color);
    line-height: 1.7;
}

/* ============================================= */
/* =========== COMMUNITY MARQUEE SECTION ======= */
/* ============================================= */
/* Styles for the large, black and white scrolling banner. */

.community-marquee-section {
    padding: 30px 0;
    background-color: #000000;
    /* Solid black background */
    overflow: hidden;
}

/* 
 * A modifier class to adjust animation speed for this specific marquee
 * without affecting the first one.
*/
.marquee-content.slow-scroll {
    animation-duration: 45s;
    /* Slower scroll for larger content */
}

/* 
 * Style for the large, white "Join our community" text.
*/
.community-text {
    font-size: 44px;
    /* Significantly larger font size */
    font-weight: 800;
    color: #ffffff;
    /* Solid white color */
    text-transform: uppercase;
    white-space: nowrap;
}

/* 
 * Style for the large coin image in this section.
*/
.community-coin {
    height: 100px;
    /* Significantly larger coin size */
    width: auto;
}


/* = ============================================ */
/* ============= TOKENOMICS SECTION ============ */
/* ============================================= */
/* THE FINAL, CORRECT, AND SIMPLIFIED CODE. NO MORE ROTATING CARDS. */

.tokenomics-section {
    padding: 100px 0;
    background-image: url('../images/bg-tokenomics.webp');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.tokenomics-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
}

.tokenomics-title-area .section-title {
    text-align: left;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0 #000;
}

.token-address {
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: var(--text-muted-color);
}

.copy-btn {
    width: 20px;
    height: 20px;
    background-color: transparent;
    border: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f7b733'%3E%3Cpath d='M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
}

.total-supply {
    text-align: right;
}

.total-supply span {
    font-size: 24px;
    color: var(--text-color);
}

.total-supply h3 {
    font-size: 64px;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 3px 3px 0 #000;
}

.tokenomics-graphic-area {
    position: relative;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.central-coin {
    width: 250px;
    height: auto;
    position: relative;
    z-index: 10;
}

.orbit-path {
    position: absolute;
    width: 1100px;
    /* Increased to 1100px */
    height: 550px;
    /* Increased to 550px */
    border: 3px solid rgba(247, 183, 51, 0.5);
    border-radius: 50%;
}

.token-positioner {
    position: absolute;
    width: 180px;
    /* Width of the card */
    height: 70px;
    /* Height of the card */

    /* The animation moves this container along the ellipse */
    animation: move-on-ellipse 25s linear infinite;
}

/* 
* The keyframe that defines the elliptical path.
* It uses trigonometry (cos for x, sin for y) to create a perfect ellipse.
* The scale and z-index create the 3D illusion of passing in front/behind the coin.
*/
@keyframes move-on-ellipse {

    /* Values are adjusted for the new 1100px/550px orbit */
    0% {
        transform: translate(550px, 0px) scale(1);
        z-index: 20;
    }

    /* Right */
    12.5% {
        transform: translate(389px, -194px) scale(0.95);
        z-index: 20;
    }

    25% {
        transform: translate(0px, -275px) scale(0.9);
        z-index: 1;
    }

    /* Top */
    37.5% {
        transform: translate(-389px, -194px) scale(0.95);
        z-index: 1;
    }

    50% {
        transform: translate(-550px, 0px) scale(1);
        z-index: 1;
    }

    /* Left */
    62.5% {
        transform: translate(-389px, 194px) scale(1.05);
        z-index: 1;
    }

    75% {
        transform: translate(0px, 275px) scale(1.1);
        z-index: 20;
    }

    /* Bottom */
    87.5% {
        transform: translate(389px, 194px) scale(1.05);
        z-index: 20;
    }

    100% {
        transform: translate(550px, 0px) scale(1);
        z-index: 20;
    }

    /* Back to Right */
}

/* Each item starts at a different point in the animation cycle */
.item-1 {
    animation-delay: 0s;
}

.item-2 {
    animation-delay: -5s;
}

.item-3 {
    animation-delay: -10s;
}

.item-4 {
    animation-delay: -15s;
}

.item-5 {
    animation-delay: -20s;
}


.token-label {
    /* NO ANIMATION, NO TRANSFORM. The card is completely stable. */
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    gap: 15px;
}

.token-label .percentage {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
}

.token-label .label {
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

/* ============================================= */
/* ================ ROADMAP SECTION ============ */
/* ============================================= */
/* Styles for the vertical timeline roadmap. */

.roadmap-section {
    padding: 100px 0;
    position: relative;
    background-image:
        url('../images/bg-ready.webp');
    background-size: cover;
    background-position: center;
}

.roadmap-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 60px;
}

/* The central vertical line of the timeline */
.roadmap-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.roadmap-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

/* Position items on the left side */
.roadmap-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

/* Position items on the right side */
.roadmap-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.roadmap-node {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px;
    /* Aligns node to the central line */
    background-color: var(--secondary-color);
    border: 4px solid var(--secondary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Lock Icon using background SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM9 8V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9z'/%3E%3C/svg%3E");
    background-size: 55%;
    background-position: center;
    background-repeat: no-repeat;
}

/* Adjust node position for items on the right side */
.roadmap-item:nth-child(even) .roadmap-node {
    left: -25px;
}

.roadmap-content {
    padding: 20px 30px;
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    position: relative;
    border-radius: 8px;
}

.roadmap-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-muted-color);
    margin-bottom: 15px;
}

.roadmap-content ul {
    list-style: none;
    padding: 0;
}

.roadmap-content ul li {
    padding: 5px 0;
    color: var(--text-muted-color);
    font-size: 16px;
}

/* ================== ACTIVE STATE STYLES ================== */

.roadmap-item.active .roadmap-node {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    /* Unlocked Icon for active phase */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M9 8V6c0-1.66 1.34-3 3-3s3 1.34 3 3h-2c0-.55-.45-1-1-1s-1 .45-1 1v2H9zm9 2V10c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8h-2v8H6V10h12v0zM12 17c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z'/%3E%3C/svg%3E");
}

.roadmap-item.active .roadmap-content {
    border-color: var(--primary-color);
}

.roadmap-item.active .roadmap-content h3 {
    color: var(--primary-color);
}

.roadmap-item.active .roadmap-content ul li {
    color: var(--text-color);
}

/* ============================================= */
/* ================== FAQ SECTION ============== */
/* ============================================= */
/* Styles for the Frequently Asked Questions (FAQ) accordion. */

.faq-section {
    padding: 100px 0;
    position: relative;
    background-image:
        linear-gradient(rgba(12, 12, 30, 0.75), rgba(12, 12, 30, 0.75)),
        url('../images/bg-faqs.webp');
    background-size: cover;
    background-position: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 60px;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.faq-item {
    background-color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    overflow: hidden;
    /* Important for the answer animation */
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.faq-question h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

/* Arrow icon for the accordion */
.faq-question::after {
    content: '';
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-left: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    /* Initially hidden */
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
    padding: 0 25px 0 25px;
    /* Padding will be applied when open */
    color: var(--text-muted-color);
    line-height: 1.7;
    font-size: 16px;
}

/* ================== ACTIVE STATE STYLES ================== */

/* When the item is active, the arrow points up */
.faq-item.active .faq-question::after {
    transform: rotate(135deg);
}

/* When the item is active, the answer slides open */
.faq-item.active .faq-answer {
    max-height: 300px;
    /* Adjust if your answers are very long */
    padding-bottom: 25px;
}


/* ============================================= */
/* ================ FOOTER SECTION ============= */
/* ============================================= */
/* Styles for the main site footer. */

.main-footer {
    background-color: #111119;
    /* A very dark, almost black color */
    padding: 60px 0;
    text-align: center;
    position: relative;
    border-top: 1px solid var(--border-color);
}

/* Wavy line separator using an SVG */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    /* Height of the wavy line */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23111119' fill-opacity='1' d='M0,192L48,176C96,160,192,128,288,128C384,128,480,160,576,170.7C672,181,768,171,864,149.3C960,128,1056,96,1152,85.3C1248,75,1344,85,1392,90.7L1440,96L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    transform: translateY(-98%);
}

.footer-logo {
    font-family: var(--font-family);
    text-decoration: none;
    color: var(--text-color);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.footer-logo .logo-highlight {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-muted-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

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

/* Underline effect on hover */
.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.footer-links a:hover::after {
    transform: scaleX(1);
}

.disclaimer {
    max-width: 650px;
    margin: 0 auto 20px auto;
    color: #888;
    font-size: 14px;
    line-height: 1.6;
}

.copyright {
    color: #666;
    font-size: 14px;
}

/* ============================================= */
/* =========== LEGAL PAGES STYLES ============== */
/* ============================================= */
/* Shared styles for pages like Terms, Privacy, etc. */

.legal-page-content {
    background-color: var(--background-color);
    color: var(--text-muted-color);
    padding: 80px 0;
}

.legal-page-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.legal-page-content h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.legal-page-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.legal-page-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-page-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.legal-page-content li {
    margin-bottom: 10px;
}

/*
 * @file        style.css
 * @description Added styles for the new animated user menu.
 */

/* ============================================= */
/* ======== AUTH & USER MENU STYLES V2 ========= */
/* ============================================= */

/**
 * @section user-menu-container
 * @description A container for the logged-in user's welcome message and logout link.
 * It inherits the .nav-btn and .btn-whitepaper styles for the animated border effect.
 */
.user-menu-container {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Space between the welcome text and the logout link */
    padding: 12px 25px !important;
    /* Overrides default padding to fit content better */
    cursor: default;
    /* The container itself is not a clickable link */
}

/**
 * @element span
 * @within .user-menu-container
 * @description Styles the 'Welcome, [username]' text.
 */
.user-menu-container span {
    color: var(--text-muted-color);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    /* Prevents the text from wrapping on smaller screens */
}

/**
 * @element a.user-menu-logout
 * @within .user-menu-container
 * @description Styles the 'Logout' link within the user menu.
 */
.user-menu-container .user-menu-logout {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.user-menu-container .user-menu-logout:hover {
    color: #fff;
    /* A brighter color on hover */
}

/**
 * @element a.user-menu-admin-link
 * @within .user-menu-container
 * @description Styles the 'Admin Panel' link.
 */
.user-menu-container .user-menu-admin-link {
    color: #fff;
    /* Bright white to stand out */
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    padding-left: 20px;
    border-left: 1px solid var(--border-color);
    /* Separator line */
}

.user-menu-container .user-menu-admin-link:hover {
    color: var(--primary-color);
}

/*
 * =======================================================
 *  USER DASHBOARD & ADMIN PANEL STYLES (CORRECTED THEME)
 * =======================================================
 * These styles use the MAIN SITE's theme variables for full consistency.
 */

/* Main Layout for Panels */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Override body styles for panel pages to match the main site's dark theme */
body.dashboard-page {
    padding-top: 0;
    background-color: var(--background-color);
    /* USE MAIN SITE BG */
    color: var(--text-color);
    /* USE MAIN SITE TEXT COLOR */
    font-size: 14px;
}

/* Sidebar for Panels */
.admin-layout .sidebar {
    width: 260px;
    background-color: #1a1c2e;
    /* A slightly different dark shade for contrast */
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.admin-layout .sidebar-logo {
    padding: 20px 25px;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
}

.admin-layout .sidebar-logo a {
    color: var(--text-color);
    text-decoration: none;
}

.admin-layout .sidebar-logo .logo-highlight {
    color: var(--primary-color);
}

.admin-layout .sidebar-nav {
    padding: 20px 15px;
    flex-grow: 1;
}

.admin-layout .sidebar-nav ul {
    list-style: none;
}

.admin-layout .sidebar-nav ul li {
    margin-bottom: 5px;
}

.admin-layout .sidebar-nav ul li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--text-muted-color);
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.admin-layout .sidebar-nav ul li a:hover {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.admin-layout .sidebar-nav ul li.active a {
    background: linear-gradient(90deg, #f7b733, #fc4a1a);
    /* Gradient from main theme */
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(252, 74, 26, 0.2);
}

.admin-layout .sidebar-nav ul li a svg {
    stroke-width: 2;
}

/* Main Content for Panels */
.admin-layout .main-content {
    flex-grow: 1;
    padding: 40px;
}

.admin-layout .content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-layout .content-header h1 {
    font-size: 32px;
    font-weight: 700;
}

.admin-layout .content-body {
    background-color: transparent;
    border: none;
    padding: 0;
}

/* Container for Tables and Forms */
.table-container,
.form-section {
    background-color: var(--card-bg-color);
    padding: 30px 40px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

/* Form Styles for Panels */
.form-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-muted-color);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="datetime-local"] {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input[readonly] {
    background-color: #2a2d37;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(247, 183, 51, 0.2);
}

.form-group small {
    display: block;
    margin-top: 10px;
    color: var(--text-muted-color);
    font-size: 13px;
    line-height: 1.5;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 25px;
}

.form-row:last-of-type {
    margin-bottom: 0;
}

.form-row .form-group {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Table Styles for Dashboard */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table thead th {
    font-weight: 600;
    color: var(--text-muted-color);
    text-transform: uppercase;
    font-size: 12px;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background-color: var(--secondary-color);
    /* Use a subtle hover from main theme */
}

/* Status Badge & Link Styles for Tables */
.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
    display: inline-block;
}

.status-completed {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
}

.status-pending {
    background-color: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.tx-link {
    font-family: monospace;
    color: var(--primary-color);
    text-decoration: none;
}

.tx-link:hover {
    text-decoration: underline;
}

/* Alert Messages for Panels */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid #EF4444;
}

/*
 * =======================================================
 *  RESPONSIVE DESIGN MEDIA QUERIES
 * =======================================================
 * These rules adapt the layout for tablets and mobile devices.
 */


/*
 * =============================================
 *  TABLET VIEW (e.g., iPads, medium screens)
 *  Applies to screens smaller than 1024px
 * =============================================
 */
@media (max-width: 1024px) {

    /* --- Main Site Responsive --- */
    .hero-grid {
        /* Stack the illustration and presale box vertically */
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-illustration {
        /* Center the illustration */
        margin: 0 auto;
        max-width: 500px;
    }

    .presale-box {
        max-width: 550px;
        margin: 0 auto;
    }

    .degen-home-grid,
    .features-grid,
    .how-to-buy-grid,
    .faq-grid {
        /* Switch to a single column layout for grid-based sections */
        grid-template-columns: 1fr;
    }

    .features-grid {
        /* Increase gap for stacked feature items */
        gap: 50px;
    }

    .feature-item.align-right .feature-text {
        /* Reset text alignment for stacked items */
        text-align: left;
    }

    .tokenomics-header {
        /* Stack header items on smaller screens */
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .total-supply {
        text-align: center;
    }

    .tokenomics-graphic-area,
    .orbit-path {
        /* Scale down the tokenomics animation for smaller screens */
        transform: scale(0.8);
    }

    /* --- Dashboard/Panel Responsive --- */
    .admin-layout .main-content {
        padding: 20px;
    }

    .admin-layout .content-header h1 {
        font-size: 28px;
    }
}


/*
 * =============================================
 *  MOBILE VIEW (e.g., iPhones, Android phones)
 *  Applies to screens smaller than 768px
 * =============================================
 */
@media (max-width: 768px) {
    body {
        /* Reset top padding as the mobile header will be smaller or different */
        padding-top: 70px;
    }

    /* --- Mobile Navigation --- */
    /* This section would typically require JavaScript to toggle a mobile menu. */
    /* For now, we'll simplify the existing header. */
    .main-header {
        height: 70px;
    }

    .main-nav {
        /* Prevent wrapping to keep icons and logo on the same line */
        flex-wrap: nowrap;
        /* Ensure space is distributed evenly */
        justify-content: space-between;
        gap: 5px;
    }

    /* Reduce logo size to save horizontal space */
    .logo a {
        font-size: 18px;
    }

    .nav-actions {
        gap: 8px;
        /* Reduce gap between button and icons */
        flex-wrap: nowrap;
        /* Ensure actions don't wrap */
    }

    .nav-btn,
    .user-menu-container {
        padding: 8px 12px !important;
        font-size: 12px;
        white-space: nowrap;
        /* Prevent text wrapping inside buttons */
    }

    .btn-whitepaper {
        /* Hide the decorative borders on mobile to save space */
        border: 1px solid var(--primary-color);
        border-radius: 6px;
        padding: 8px 15px !important;
    }

    .btn-whitepaper::before,
    .btn-whitepaper::after {
        display: none;
    }

    .logo a {
        font-size: 22px;
    }

    /* --- Main Site Sections on Mobile --- */
    .hero-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .section-title {
        /* Reduce title sizes on mobile */
        font-size: 36px !important;
    }

    .degen-home-text .section-subtitle {
        font-size: 16px;
    }

    .how-to-buy-grid {
        gap: 25px;
    }

    .tokenomics-graphic-area,
    .orbit-path {
        /* Further scale down the tokenomics animation */
        transform: scale(0.6);
        margin-top: -50px;
        margin-bottom: -50px;
    }

    /* Resize Social Icons for Mobile to fit strictly on one line */
    .social-links {
        gap: 8px;
        /* Tighter spacing */
        margin-left: 5px;
    }

    .social-link {
        width: 32px;
        /* Smaller container dimensions */
        height: 32px;
        flex-shrink: 0;
        /* Prevent flexbox from crushing the icons */
    }

    .social-link img {
        width: 16px;
        /* Smaller icon size */
    }

    /*
     * =============================================
     *  NEW: Tokenomics Section Responsive Fix
     * =============================================
     */
    .tokenomics-header {
        /* Stack the title area and total supply vertically on mobile */
        flex-direction: column;
        align-items: center;
        /* Center align items */
        gap: 30px;
    }

    .tokenomics-title-area {
        /* Ensure the title area is also centered */
        text-align: center;
        display: flex;
        flex-direction: column;
        /* Stack the h2 and the address */
        align-items: center;
        gap: 15px;
    }

    .tokenomics-title-area .section-title {
        /* Reset left alignment for centered view */
        text-align: center;
    }

    .token-address {
        /* Adjust font size for smaller screens */
        font-size: 14px;
        padding: 8px 15px;
    }


    .total-supply h3 {
        font-size: 48px;
    }

    /* Roadmap adjustments */
    .roadmap-timeline::after {
        left: 25px;
        /* Move the timeline line to the left */
    }

    .roadmap-item,
    .roadmap-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 70px;
        padding-right: 15px;
        text-align: left;
        /* Align all text to the left */
    }

    .roadmap-node,
    .roadmap-item:nth-child(even) .roadmap-node {
        left: 0;
        /* Align all nodes to the left line */
    }

    /* --- Dashboard/Panel on Mobile --- */
    .admin-layout {
        /* Stack sidebar and content vertically */
        flex-direction: column;
    }

    .admin-layout .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .admin-layout .main-content {
        padding: 20px 15px;
        /* Reduce padding further */
    }

    .admin-layout .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .form-section,
    .table-container {
        padding: 20px;
    }
}