@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Base Colors */
:root {
    --primary-color: rgb(39, 178, 135);
    --secondary-color: rgb(29, 133, 101);
    --text-color: #e5e7eb;
    --background-color: #111827;
    --card-background: #1f2937;
    --border-color: #374151;
    --hover-color: rgb(49, 198, 155);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-width: 320px;
}

/* Header Styles */
header {
    padding: 1rem 2rem;
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 2rem;
}

.logo-img {
    height: 45px;
    width: auto;
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 1000px;
    padding: 1rem 1rem 4rem;
    text-align: center;
    background: linear-gradient(90deg, 
        #36196c 0%, 
        #341a64 50%, 
        #004242 100%
    );
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 85%,
        95% 90%,
        85% 95%,
        50% 100%,
        15% 95%,
        5% 90%,
        0 85%
    );
    margin-bottom: 4rem;
    width: 100%;
    left: 0;
    right: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.3) 1.5px, transparent 0),
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.2) 2px, transparent 0);
    background-size: 25px 25px, 50px 50px;
    background-position: 0 0, 12.5px 12.5px;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 85%,
        95% 90%,
        85% 95%,
        50% 100%,
        15% 95%,
        5% 90%,
        0 85%
    );
}

.cube-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
    perspective: 1000px;
}

.cube {
    position: absolute;
    width: 30px;
    height: 30px;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
    filter: blur(0.5px);
    opacity: 0.5;
    object-fit: contain;
    will-change: transform;
}

.cube::before,
.cube::after,
.cube .front,
.cube .back,
.cube .left,
.cube .right {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
}

.cube .front { transform: translateZ(10px); }
.cube .back { transform: translateZ(-10px) rotateY(180deg); }
.cube .right { transform: rotateY(90deg) translateZ(10px); }
.cube .left { transform: rotateY(-90deg) translateZ(10px); }
.cube::before { transform: rotateX(90deg) translateZ(10px); }
.cube::after { transform: rotateX(-90deg) translateZ(10px); }

/* Position cubes in a grid-like pattern with different initial rotations */
.cube:nth-child(1) { top: 5%; left: 5%; animation-delay: 0s; transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
.cube:nth-child(2) { top: 15%; left: 90%; animation-delay: 0.5s; transform: rotateX(90deg) rotateY(90deg) rotateZ(90deg); }
.cube:nth-child(3) { top: 25%; left: 10%; animation-delay: 1s; transform: rotateX(180deg) rotateY(180deg) rotateZ(180deg); }
.cube:nth-child(4) { top: 35%; left: 85%; animation-delay: 1.5s; transform: rotateX(270deg) rotateY(270deg) rotateZ(270deg); }
.cube:nth-child(5) { top: 45%; left: 15%; animation-delay: 2s; transform: rotateX(45deg) rotateY(45deg) rotateZ(45deg); }
.cube:nth-child(6) { top: 55%; left: 95%; animation-delay: 2.5s; transform: rotateX(135deg) rotateY(135deg) rotateZ(135deg); }
.cube:nth-child(7) { top: 65%; left: 5%; animation-delay: 3s; transform: rotateX(225deg) rotateY(225deg) rotateZ(225deg); }
.cube:nth-child(8) { top: 75%; left: 80%; animation-delay: 3.5s; transform: rotateX(315deg) rotateY(315deg) rotateZ(315deg); }
.cube:nth-child(9) { top: 85%; left: 20%; animation-delay: 4s; transform: rotateX(60deg) rotateY(60deg) rotateZ(60deg); }
.cube:nth-child(10) { top: 95%; left: 70%; animation-delay: 4.5s; transform: rotateX(120deg) rotateY(120deg) rotateZ(120deg); }
.cube:nth-child(11) { top: 20%; left: 30%; animation-delay: 5s; transform: rotateX(240deg) rotateY(240deg) rotateZ(240deg); }
.cube:nth-child(12) { top: 30%; left: 60%; animation-delay: 5.5s; transform: rotateX(300deg) rotateY(300deg) rotateZ(300deg); }
.cube:nth-child(13) { top: 40%; left: 40%; animation-delay: 6s; transform: rotateX(150deg) rotateY(150deg) rotateZ(150deg); }
.cube:nth-child(14) { top: 50%; left: 70%; animation-delay: 6.5s; transform: rotateX(210deg) rotateY(210deg) rotateZ(210deg); }
.cube:nth-child(15) { top: 60%; left: 30%; animation-delay: 7s; transform: rotateX(330deg) rotateY(330deg) rotateZ(330deg); }
.cube:nth-child(16) { top: 70%; left: 50%; animation-delay: 7.5s; transform: rotateX(30deg) rotateY(30deg) rotateZ(30deg); }
.cube:nth-child(17) { top: 80%; left: 40%; animation-delay: 8s; transform: rotateX(120deg) rotateY(120deg) rotateZ(120deg); }
.cube:nth-child(18) { top: 90%; left: 60%; animation-delay: 8.5s; transform: rotateX(270deg) rotateY(270deg) rotateZ(270deg); }

@keyframes float {
    0% {
        transform: translateY(0) rotateX(45deg) rotateY(45deg) rotateZ(45deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-20px) rotateX(225deg) rotateY(225deg) rotateZ(225deg);
        opacity: 0.6;
    }
    100% {
        transform: translateY(0) rotateX(405deg) rotateY(405deg) rotateZ(405deg);
        opacity: 0.4;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

.hero-title {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(4rem, 10vw, 12rem);
    font-weight: 800;
    color: #27b287;
    letter-spacing: -0.05em;
    line-height: 1;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(90deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.hero-description {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.hero-description p {
    margin-bottom: 1.5rem;
}

.brand-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.animated-icon {
    height: 1.2em;
    width: auto;
    animation: float 3s ease-in-out infinite;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: rgba(39, 178, 135, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(39, 178, 135, 0.2);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.btn:hover {
    background-color: rgba(39, 178, 135, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Funding Section */
.funding {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--card-background);
}

.funding-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.funding-options a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.funding-options a:hover {
    color: var(--hover-color);
}

/* Footer */
footer {
    padding: 4rem 2rem 2rem;
    background-color: var(--card-background);
    color: var(--text-color);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    text-align: left;
}

.footer-section h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section a {
    display: block;
    color: var(--text-color);
    opacity: 0.8;
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-contact {
    margin-bottom: 1.5rem;
}

.footer-contact a {
    display: block;
    color: var(--text-color);
    opacity: 0.8;
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-background);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: var(--background-color);
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
    opacity: 0.7;
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero {
        min-height: 500px;
        padding: 7rem 1rem 3rem;
    }

    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.75rem 1rem;
    }

    .logo-img {
        height: 40px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--background-color);
        flex-direction: column;
        padding: 80px 2rem;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    }

    .nav-links a {
        margin: 1rem 0;
        font-size: 1.2rem;
        padding: 0.5rem 0;
    }

    .hero {
        min-height: 450px;
        padding: 6rem 1rem 2rem;
        margin-bottom: 3rem;
    }

    .hero h1 {
        font-size: clamp(3.5rem, 8vw, 4.5rem);
    }

    .hero-description {
        font-size: clamp(1.1rem, 2vw, 1.3rem);
    }

    .brand-name {
        font-size: 2.8rem;
    }

    .cta-buttons {
        gap: 0.75rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        min-height: 44px; /* iOS minimum touch target size */
        min-width: 44px;
    }

    .hero-content {
        padding: 1rem;
    }

    .about-intro {
        padding-top: 3rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.5rem 1rem;
    }

    .logo-img {
        height: 35px;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .hero {
        min-height: 400px;
        padding: 5rem 1rem 2rem;
    }

    .hero h1 {
        font-size: clamp(3rem, 7vw, 3.5rem);
    }

    .hero-description {
        font-size: clamp(1rem, 2vw, 1.2rem);
    }

    .brand-name {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
        min-height: 44px; /* iOS minimum touch target size */
        min-width: 44px;
    }

    .hero-content {
        padding: 0.5rem;
    }
}

/* About Intro Section */
.about-intro {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--card-background) 0%, var(--background-color) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-intro-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-intro h2 {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    background: linear-gradient(90deg, var(--text-color) 0%, var(--hover-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.about-intro p {
    font-size: 1.4rem;
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.8;
}

/* About Section */
.about-section {
    padding: 6rem 2rem;
    background-color: var(--background-color);
    position: relative;
}

.about-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background-color: var(--card-background);
    padding: 3rem 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(39, 178, 135, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about-card:hover::before {
    opacity: 1;
}

.about-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    transition: transform 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    filter: drop-shadow(0 2px 4px rgba(39, 178, 135, 0.3));
}

.about-card:hover .about-icon {
    transform: scale(1.1);
}

.about-card h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
}

.about-card h3::after {
    display: none;
}

.about-card p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Tokenomics Section */
.tokenomics-section {
    padding: 6rem 2rem;
    background-color: var(--card-background);
    position: relative;
    overflow: hidden;
}

.tokenomics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(39, 178, 135, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(39, 178, 135, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.tokenomics-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.section-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.tokenomics-section h2 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 4rem;
    font-size: 3rem;
    background: linear-gradient(90deg, var(--text-color) 0%, var(--hover-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0;
}

.tokenomics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.tokenomics-card {
    background-color: var(--background-color);
    padding: 2.5rem 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 220px;
    min-width: 250px;
}

.tokenomics-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(39, 178, 135, 0.1) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
}

@keyframes floatCard {
    0% {
        transform: perspective(1000px) translateZ(0) translateY(0);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: perspective(1000px) translateZ(20px) translateY(-10px);
        box-shadow: 0 25px 35px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: perspective(1000px) translateZ(0) translateY(0);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
}

.tokenomics-card:hover {
    animation: floatCard 3s ease-in-out infinite;
}

.tokenomics-card:hover::before {
    opacity: 1;
}

.tokenomics-card:hover .card-icon {
    transform: translateY(-5px);
    filter: drop-shadow(0 10px 15px rgba(39, 178, 135, 0.3));
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Add new hover effect for text */
.tokenomics-card:hover h3 {
    background: linear-gradient(90deg, var(--primary-color), var(--hover-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(-2px);
}

.tokenomics-card h3 {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
    .tokenomics-card,
    .tokenomics-card:hover {
        animation: none;
        transform: none;
        transition: none;
    }
    
    .card-icon,
    .tokenomics-card:hover .card-icon,
    .tokenomics-card:hover h3 {
        transform: none;
        transition: none;
    }
}

.tokenomics-card p {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: normal;
    width: 100%;
    margin-top: auto;
}

@media (max-width: 1200px) {
    .tokenomics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .tokenomics-card {
        min-width: 280px;
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .tokenomics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tokenomics-card {
        padding: 2rem;
        min-width: 100%;
        min-height: 200px;
    }

    .tokenomics-card p {
        font-size: 0.95rem;
    }
}

/* Roadmap Section */
.roadmap-section {
    padding: 6rem 2rem;
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
}

.roadmap-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(39, 178, 135, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(39, 178, 135, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.roadmap-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.section-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.roadmap-section h2,
.tokenomics-section h2 {
    text-align: center;
    color: var(--text-color);
    font-size: 3rem;
    background: linear-gradient(90deg, var(--text-color) 0%, var(--hover-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0;
}

.roadmap-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    margin-top: 4rem;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 100%);
    z-index: 0;
}

.roadmap-phase {
    position: relative;
    z-index: 1;
}

.phase-content {
    background-color: var(--card-background);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.phase-content::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 100%);
    border-radius: 50%;
    transform: translateY(-50%);
    border: 2px solid var(--background-color);
}

.phase-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.phase-content:hover::before {
    opacity: 1;
}

.phase-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: bold;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(39, 178, 135, 0.3);
}

.phase-content h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

.phase-content h3::after {
    display: none;
}

.phase-content p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.phase-link {
    display: none;
}

@media (max-width: 1024px) {
    .roadmap-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .roadmap-timeline {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 2rem;
    }

    .roadmap-timeline::before {
        display: none;
    }

    .roadmap-phase {
        position: relative;
        padding-left: 2.5rem;
    }

    .roadmap-phase::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: -3rem;
        width: 2px;
        background: linear-gradient(to bottom, 
            var(--primary-color) 0%, 
            var(--secondary-color) 100%);
    }

    .roadmap-phase:last-child::before {
        bottom: 0;
    }

    .phase-content {
        position: relative;
        padding: 1.5rem;
        margin-left: 1rem;
        background-color: var(--card-background);
        border-radius: 1rem;
        border: 1px solid var(--border-color);
    }

    .phase-content::before {
        content: '';
        position: absolute;
        left: -1.5rem;
        top: 50%;
        width: 1rem;
        height: 1rem;
        background: linear-gradient(135deg, 
            var(--primary-color) 0%, 
            var(--secondary-color) 100%);
        border-radius: 50%;
        transform: translateY(-50%);
        border: 2px solid var(--background-color);
    }

    .phase-number {
        margin-bottom: 1rem;
    }

    .phase-content h3 {
        margin-bottom: 0.5rem;
    }

    .phase-content p {
        margin-bottom: 1rem;
    }
}

@media (max-width: 487px) {
    .roadmap-timeline {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
        position: relative;
    }

    .roadmap-timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 2px;
        background: linear-gradient(to bottom, 
            var(--primary-color) 0%, 
            var(--secondary-color) 100%);
        transform: translateX(-50%);
    }

    .roadmap-phase {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .phase-content {
        width: 90%;
        background-color: var(--card-background);
        padding: 1.5rem;
        border-radius: 1rem;
        border: 1px solid var(--border-color);
        position: relative;
        margin: 0;
    }

    .phase-content::before {
        content: '';
        position: absolute;
        left: -1.5rem;
        top: 50%;
        width: 1rem;
        height: 1rem;
        background: linear-gradient(135deg, 
            var(--primary-color) 0%, 
            var(--secondary-color) 100%);
        border-radius: 50%;
        transform: translateY(-50%);
        border: 2px solid var(--background-color);
    }

    .phase-number {
        margin-bottom: 1rem;
    }

    .phase-content h3 {
        margin-bottom: 0.5rem;
    }

    .phase-content p {
        margin-bottom: 1rem;
    }
}

/* Join Section */
.join-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--card-background) 0%, var(--background-color) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.join-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.join-section h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.join-section p {
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 2rem;
    font-size: 1.25rem;
}

.join-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.join-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-width: 200px;
    text-align: center;
}

/* Media Queries */
@media (max-width: 768px) {
    .about-intro h2,
    .tokenomics-section h2,
    .roadmap-section h2,
    .join-section h2 {
        font-size: 2rem;
    }

    .about-intro p,
    .join-section p {
        font-size: 1.1rem;
    }

    .join-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .join-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-section a:hover {
        transform: none;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1000;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Mobile Navigation */
    .mobile-nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 250px;
        height: auto;
        background: var(--card-background);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 999;
        transition: right 0.3s ease;
        padding: 1rem 0;
    }
    
    .mobile-nav.active {
        right: 1rem;
    }
    
    .mobile-nav a {
        display: block;
        padding: 12px 20px;
        color: var(--text-color);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.2s ease;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-nav a:last-child {
        border-bottom: none;
    }
    
    .mobile-nav a:hover {
        background: rgba(39, 178, 135, 0.1);
        color: #27b287;
    }
}

/* Support Widget Styles */
.support-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.support-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(110, 142, 251, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.support-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(110, 142, 251, 0.4);
    background: linear-gradient(135deg, #a777e3, #6e8efb);
}

.support-content {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.support-widget.active .support-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    background: radial-gradient(circle at 20% 20%, rgba(39, 178, 135, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(39, 178, 135, 0.1) 0%, transparent 50%);
    background-color: var(--card-background);
}

.support-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: white;
}

.support-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.close-support {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close-support:hover {
    opacity: 1;
}

.support-emails {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
}

.email-item:hover {
    background: rgba(110, 142, 251, 0.1);
    transform: translateX(5px);
    border-color: #6e8efb;
}

.email-item span {
    color: white;
    font-size: 0.9rem;
}

.copy-btn {
    background: none;
    border: none;
    color: #6e8efb;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.copy-btn:hover {
    transform: scale(1.1);
    color: #a777e3;
}

.copy-btn::after {
    content: 'Copied!';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(110, 142, 251, 0.3);
}

.copy-btn.copied::after {
    opacity: 1;
    animation: fadeOut 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    70% { opacity: 1; transform: translateX(-50%) translateY(-5px); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .support-widget {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .support-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .support-content {
        width: 280px;
        bottom: 70px;
    }
}

@media (max-width: 480px) {
    .support-content {
        width: 260px;
        padding: 1rem;
    }

    .email-item {
        padding: 0.6rem 0.8rem;
    }
}

@media (max-width: 768px) {
    .section-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .section-icon {
        width: 28px;
        height: 28px;
    }
}

/* Staking Section */
.staking-section {
    padding: 6rem 2rem;
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
}

.staking-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(39, 178, 135, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(39, 178, 135, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.staking-section h2 {
    text-align: center;
    color: var(--text-color);
    font-size: 3rem;
    background: linear-gradient(90deg, var(--text-color) 0%, var(--hover-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .staking-section h2 {
        font-size: 2.2rem;
    }
}

/* Staking Modal Styles */
.staking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.staking-modal.active {
    display: flex;
    opacity: 1;
}

.staking-modal .modal-content {
    background-color: var(--card-background);
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

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

.staking-modal .modal-header h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0;
}

.wallet-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--background-color);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.wallet-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.reset-btn {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.reset-btn:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.mobile-wallet-help {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 193, 7, 0.1);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.mobile-wallet-help h4 {
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.mobile-wallet-help p {
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.mobile-wallet-help ol {
    color: var(--text-color);
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.mobile-wallet-help li {
    margin-bottom: 0.25rem;
}

.mobile-wallet-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mobile-wallet-buttons .btn {
    flex: 1;
    min-width: 120px;
}

/* Enhanced Staking Modal Styles */
.staking-modal .modal-content {
    max-width: 600px;
    padding: 2.5rem;
}

.wallet-connection-status {
    background: rgba(39, 178, 135, 0.1);
    border: 1px solid rgba(39, 178, 135, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.connection-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.connection-label {
    color: var(--text-color);
    font-weight: 500;
}

.wallet-address {
    color: #27b287;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
}

.connection-status-btn {
    background: #27b287;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: auto;
}

.balance-info {
    background: rgba(110, 142, 251, 0.05);
    border: 1px solid rgba(110, 142, 251, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.balance-row:last-child {
    margin-bottom: 0;
}

.balance-label {
    color: var(--text-color);
    font-weight: 500;
}

.balance-value {
    color: #6e8efb;
    font-weight: 600;
    font-size: 1.1rem;
}

.token-symbol {
    color: var(--text-color);
    font-weight: 500;
    margin-left: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-color);
    color: var(--text-color);
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: #6e8efb;
    box-shadow: 0 0 0 2px rgba(110, 142, 251, 0.2);
}

.form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.btn.primary {
    background: linear-gradient(135deg, #27b287, #2dd4aa);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn.primary:hover {
    background: linear-gradient(135deg, #1e8a6a, #25b894);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 178, 135, 0.3);
}

.btn.secondary {
    background: rgba(110, 142, 251, 0.1);
    color: #6e8efb;
    border: 1px solid rgba(110, 142, 251, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn.secondary:hover {
    background: rgba(110, 142, 251, 0.2);
    border-color: #6e8efb;
    transform: translateY(-2px);
}

.btn.success {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn.success:hover {
    background: linear-gradient(135deg, #5a7df0, #8e5fd8);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(110, 142, 251, 0.3);
}

.success-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.success-icon i {
    font-size: 3rem;
    color: #27b287;
}

.success-message {
    text-align: center;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Mobile connect button styling - same as regular connect button */
.mobile-connect-btn {
    /* Same styling as regular .btn - no special styling */
}

/* Install wallet button styling - same as regular connect button */
.install-wallet-btn {
    /* Same styling as regular .btn - no special styling */
}

#wallet-status-text {
    color: var(--text-color);
    font-size: 0.9rem;
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
}

.stake-form .form-group {
    margin-bottom: 1.5rem;
}

.stake-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.stake-form input {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 1rem;
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn.outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn.outline:hover {
    background: rgba(39, 178, 135, 0.1);
}

.balance-info {
    background-color: var(--background-color);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.balance-info p {
    color: var(--text-color);
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.transaction-status, .transaction-success {
    text-align: center;
    padding: 2rem;
    display: none;
}

.transaction-status p, .transaction-success p {
    color: var(--text-color);
    margin-top: 1rem;
    font-size: 1.1rem;
}

.transaction-success i {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.loader {
    border: 4px solid var(--background-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .staking-modal .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        min-height: 44px; /* iOS minimum touch target size */
        min-width: 44px;
    }
}

@media (max-width: 480px) {
    .staking-modal .modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 1rem;
    }

    .wallet-status {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Whitepaper Modal Styles */
.whitepaper-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whitepaper-modal.active {
    display: flex;
    opacity: 1;
}

.whitepaper-modal .modal-content {
    background-color: var(--card-background);
    border-radius: 1rem;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    position: relative;
}

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

.whitepaper-modal .modal-header h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0;
}

.whitepaper-modal .close-modal {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.whitepaper-modal .close-modal:hover {
    color: var(--primary-color);
}

.whitepaper-modal .modal-body {
    height: calc(100% - 4rem);
    position: relative;
}

.whitepaper-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0.5rem;
    background-color: white;
}

.whitepaper-modal .modal-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 1rem;
    z-index: 1;
}

.whitepaper-modal .download-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.whitepaper-modal .download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.whitepaper-modal .download-btn i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .whitepaper-modal .modal-content {
        width: 95%;
        height: 90vh;
        padding: 1.5rem;
    }

    .whitepaper-modal .modal-actions {
        top: 0.5rem;
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .whitepaper-modal .modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 1rem;
    }

    .whitepaper-modal .modal-header {
        margin-bottom: 1rem;
    }

    .whitepaper-modal .modal-body {
        height: calc(100% - 3rem);
    }
}

/* Wallet selector */
.wallet-selector {
    display: flex;
    gap: 0.75rem;
    margin: 0 0 1rem 0;
}

.wallet-option {
    flex: 1;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background: var(--background-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wallet-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.wallet-option.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(39, 178, 135, 0.2) inset;
    background: linear-gradient(135deg, rgba(39, 178, 135, 0.08), rgba(39, 178, 135, 0.03));
}

@media (max-width: 480px) {
    .wallet-selector {
        flex-direction: column;
    }
}

/* Wallet info section */
.wallet-info {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    text-align: center;
}

.wallet-info p {
    color: var(--text-color);
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.wallet-info i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* Wallet list selector */
.wallet-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.wallet-row {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0.9rem 1rem; border-radius: 10px;
  background: var(--background-color); border: 1px solid var(--border-color);
  color: var(--text-color); cursor: pointer; transition: all .2s ease;
}
.wallet-row:hover { transform: translateY(-1px); border-color: var(--primary-color); }
.wallet-row:active { transform: translateY(0); }
.wallet-row-left { display: flex; align-items: center; gap: 0.6rem; }
.wallet-row-name { font-weight: 600; }
.wallet-row-right { display: flex; align-items: center; gap: 0.5rem; }
.wallet-row-action { opacity: .9; font-size: .9rem; }

@media (max-width: 768px) { .wallet-list { gap: 0.6rem; } }

/* Hide old DnD selector if still present */
.wallet-dnd { display: none !important; }

/* Reown AppKit Modal Customization */
.reown-modal {
    --reown-accent-color: #6e8efb; /* Blue accent */
    --reown-background-color: #ffffff;
    --reown-text-color: #333333;
    --reown-border-radius: 16px;
    --reown-box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    --reown-wallet-button-bg: #f5f5f5;
    --reown-wallet-button-hover-bg: #eeeeee;
    --reown-font-family: 'Poppins', sans-serif;
}

/* WalletConnect Modal Customization */
.w3m-modal {
    --w3m-accent-color: #6e8efb;
    --w3m-background-color: #ffffff;
    --w3m-text-color: #333333;
    --w3m-border-radius: 16px;
    --w3m-box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
}

/* Wallet Selection Modal - Modern Dark Theme */
.wallet-selection-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
}

.wallet-selection-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-selection-modal .modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 24px;
    padding: 0;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    animation: slideIn 0.4s ease-out;
    border: 1px solid rgba(110, 142, 251, 0.2);
}

.wallet-selection-modal .modal-header {
    background: linear-gradient(135deg, #27b287, #2dd4aa);
    color: white;
    padding: 25px;
    border-radius: 24px 24px 0 0;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(39, 178, 135, 0.3);
}

.wallet-selection-modal .modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.wallet-selection-modal .close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.wallet-selection-modal .close-modal:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

.wallet-selection-modal .modal-body {
    padding: 35px;
    color: white;
}

.wallet-options {
    display: grid;
    gap: 20px;
}

.wallet-option {
    display: flex;
    align-items: center;
    padding: 25px;
    border: 2px solid rgba(39, 178, 135, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, rgba(39, 178, 135, 0.05), rgba(39, 178, 135, 0.1));
    backdrop-filter: blur(10px);
}

.wallet-option:hover {
    border-color: #27b287;
    background: linear-gradient(135deg, rgba(39, 178, 135, 0.15), rgba(39, 178, 135, 0.25));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(39, 178, 135, 0.3);
}

.wallet-option img,
.wallet-option svg {
    width: 50px;
    height: 50px;
    margin-right: 20px;
    border-radius: 12px;
}

/* Single Trust Wallet styling */
.wallet-option[data-wallet="trustwallet"] {
    border-color: #27b287;
    background: linear-gradient(135deg, rgba(39, 178, 135, 0.1), rgba(39, 178, 135, 0.2));
    box-shadow: 0 8px 25px rgba(39, 178, 135, 0.2);
}

.wallet-option[data-wallet="trustwallet"]:hover {
    border-color: #27b287;
    background: linear-gradient(135deg, rgba(39, 178, 135, 0.2), rgba(39, 178, 135, 0.3));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 50px rgba(39, 178, 135, 0.4);
}

/* Ensure wallet option text is white for better visibility */
.wallet-option h3,
.wallet-option p {
    color: white !important;
}

/* Slide in animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Spinning loader animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom alert slide-in animation */
@keyframes alertSlideIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Custom alert button hover effect */
.custom-alert button:hover {
    background: linear-gradient(135deg, #5a7df0, #8e5fd8) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(110, 142, 251, 0.3);
}



/* Header layout adjustments */
header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-left: 2rem;
    flex: 1;
    justify-content: center;
}

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

.nav-links a:hover {
    color: #6e8efb;
}

/* Header Connect Button */
.header-connect-section {
    margin-left: auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-connect-btn {
    background: #27b287;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.header-connect-btn:hover {
    background: #1e8a6a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 178, 135, 0.3);
}

.header-connect-btn:disabled {
    background: #1e8a6a;
    color: white;
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* Connected state styling */
.header-connect-btn.connected {
    background: #2dd4aa;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-connect-btn.connected:hover {
    background: #25b894;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 212, 170, 0.3);
}

.header-connect-btn.connected .wallet-icon {
    width: 16px;
    height: 16px;
    color: white;
}

.header-connect-btn.connected .dropdown-arrow {
    width: 12px;
    height: 12px;
    color: white;
    transition: transform 0.2s ease;
}

.header-connect-btn.connected:hover .dropdown-arrow {
    transform: translateY(1px);
}



/* Dropdown Menu */
.header-connect-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.header-connect-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-connect-dropdown-item {
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.header-connect-dropdown-item:last-child {
    border-bottom: none;
}

.header-connect-dropdown-item:hover {
    background-color: var(--border-color);
}

.header-connect-dropdown-item.disconnect {
    color: #e74c3c;
}

.header-connect-dropdown-item.disconnect:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

/* Staking item styling */
.header-connect-dropdown-item.staking {
    color: #27b287;
}

.header-connect-dropdown-item.staking:hover {
    background-color: rgba(39, 178, 135, 0.1);
}

.wallet-option h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.wallet-option p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Connect button styling */
#connect-wallet-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#connect-wallet-btn:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

#connect-wallet-btn:disabled {
    background: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}