* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d4ff;
    --secondary-color: #9d00ff;
    --accent-color: #ff00e5;
    --dark-bg: #0a0a1a;
    --card-bg: rgba(20, 20, 40, 0.8);
    --text-light: #ffffff;
    --text-muted: #b0b0c8;
    --gradient-1: linear-gradient(135deg, #00d4ff 0%, #9d00ff 100%);
    --gradient-2: linear-gradient(135deg, #ff00e5 0%, #00d4ff 100%);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Canvas de Partículas */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Header */
.header {
    position: relative;
    z-index: 1000;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
}

.logo h1 {
    font-size: 1.8rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    font-weight: 800;
}

.tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    letter-spacing: 1px;
}

/* Navigation */
.nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--primary-color);
}

.nav a:hover::after {
    width: 100%;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    z-index: 1;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-button {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    background: var(--gradient-1);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
}

/* Provision Progress Bar */
.provision-container {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: rgba(20, 20, 40, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.provision-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.provision-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.provision-values {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
}

.provision-current {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.provision-target {
    color: var(--text-muted);
}

.provision-bar {
    width: 100%;
    height: 40px;
    background: linear-gradient(
        135deg,
        #4a4a4a 25%,
        #5a5a5a 25%,
        #5a5a5a 50%,
        #4a4a4a 50%,
        #4a4a4a 75%,
        #5a5a5a 75%,
        #5a5a5a
    );
    background-size: 40px 40px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: bar-stripes 1s linear infinite;
}

.provision-progress {
    height: 100%;
    background: linear-gradient(
        135deg,
        #00ff9d 25%,
        #00d47f 25%,
        #00d47f 50%,
        #00ff9d 50%,
        #00ff9d 75%,
        #00d47f 75%,
        #00d47f
    );
    background-size: 40px 40px;
    border-radius: 20px;
    transition: width 1s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 0%;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.5);
    animation: progress-stripes 1s linear infinite;
}

.provision-percentage {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 10;
}

@keyframes bar-stripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 0;
    }
}

@keyframes progress-stripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 0;
    }
}

/* Dashboard Section */
.dashboard {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.stat-card canvas {
    width: 100% !important;
    height: 150px !important;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    z-index: 2001;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    padding: 3rem;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-body {
    color: var(--text-light);
    line-height: 1.8;
}

.modal-body p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.modal-body ul {
    list-style: none;
    padding: 0;
}

.modal-body li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
}

.modal-body li:last-child {
    border-bottom: none;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: block;
    padding: 1rem;
    text-align: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.social-link:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

/* Contract Cards */
.contracts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contract-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contract-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.contract-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.contract-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.contract-symbol {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.contract-badge {
    background: rgba(255, 165, 0, 0.2);
    color: #ffb347;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.contract-address-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contract-address {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #fff;
    word-break: break-all;
    background: transparent;
    border: none;
    padding: 0;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.copy-btn:hover {
    background: rgba(0, 212, 255, 0.3);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn.copied {
    background: rgba(0, 255, 157, 0.3);
    border-color: #00ff9d;
    color: #00ff9d;
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

/* Chart Tooltip */
.chart-tooltip {
    position: fixed;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 212, 255, 0.6);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.5);
    animation: tooltipFadeIn 0.2s ease;
    min-width: 120px;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chart-tooltip strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.chart-tooltip span {
    color: #ffffff;
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(0, 212, 255, 0.2);
    margin-top: 4rem;
}

.footer p {
    color: var(--text-muted);
    margin: 0.5rem 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .modal-content {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav a {
        display: block;
        padding: 0.8rem;
        background: rgba(0, 212, 255, 0.1);
        border-radius: 8px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modal-content {
        padding: 2rem;
        width: 95%;
        max-width: 95%;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .provision-container {
        padding: 1rem;
        margin: 1.5rem auto;
    }

    .provision-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .provision-values {
        font-size: 1rem;
    }

    .provision-current {
        font-size: 1.1rem;
    }

    .provision-bar {
        height: 30px;
    }

    .provision-percentage {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .contract-card {
        padding: 1rem;
    }

    .contract-address {
        font-size: 0.75rem;
    }

    .copy-btn .copy-text {
        display: none;
    }

    .copy-btn {
        padding: 0.5rem;
    }

    .contract-address-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
    }

    .copy-btn .copy-text {
        display: inline;
    }
}

/* Expand Button and Expandable Content */
.expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(0, 212, 255, 0.15);
    border: 2px solid rgba(0, 212, 255, 0.3);
    color: var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
}

.expand-btn:hover {
    background: rgba(0, 212, 255, 0.25);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.expand-btn .expand-icon {
    transition: transform 0.3s ease;
}

.expandable-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

.expandable-content[style*="display: block"] {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 2000px;
    }
}

