
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background-color: #0d0d0d;
    color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
}

.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.crypto-icon {
    position: absolute;
    font-size: 100px;
    font-weight: bold;
    opacity: 0.2;
    filter: blur(80px);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -40px) rotate(90deg); }
    50% { transform: translate(-25px, 35px) rotate(180deg); }
    75% { transform: translate(35px, 30px) rotate(270deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-35px, 25px) rotate(120deg); }
    50% { transform: translate(40px, -30px) rotate(240deg); }
    75% { transform: translate(-20px, -35px) rotate(360deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(25px, 40px) rotate(80deg); }
    50% { transform: translate(-30px, -25px) rotate(160deg); }
    75% { transform: translate(40px, -40px) rotate(240deg); }
}

nav {
    border-bottom: 1px solid #2a2a2a;
    padding: 12px 16px;
    background-color: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.logo-icon {
    width: 36px;
    height: 36px;
    /*background: linear-gradient(135deg, #FF37C7 0%, #FF37C7 100%);*/
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-menu a.active {
    color: #ffffff;
}

.nav-menu a:not(.active) {
    color: #a0a0a0;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-buy {
    padding: 8px 16px;
    font-size: 14px;
    color: #d0d0d0;
    background: transparent;
    border: 1px solid #404040;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-buy:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #505050;
}
.btn-buy.hidden{
    visibility: hidden;
}

.btn-connect {
    padding: 8px 16px;
    font-size: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #FF37C7 0%, #FF37C7 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-connect:hover {
    box-shadow: 0 8px 24px rgba(255, 55, 199, 0.3);
}

main {
    max-width: 448px;
    margin: 64px auto 32px;
    padding: 0 16px;
}

.swap-card {
    background-color: #1c1c1c;
    border: 1px solid #2a2a2a;
    border-radius: 24px;
    padding: 16px;
}

.swap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.swap-title {
    font-size: 14px;
    color: #808080;
    font-weight: 500;
}

.input-group {
    margin-bottom: 4px;
}

.input-field {
    background-color: #131313;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 16px;
    transition: all 0.2s ease;
}

.input-field:hover {
    border-color: #3a3a3a;
}

.input-field:focus-within {
    border-color: #404040;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.input-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.input-row input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 32px;
    font-weight: 500;
    outline: none;
    flex: 1;
    font-family: inherit;
    min-width: 0;
}

.input-row input::placeholder {
    color: #4a4a4a;
}

.token-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #1c1c1c;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 8px 12px;
    color: #ffffff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    flex-shrink: 0;
    white-space: nowrap;
}

.token-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #3a3a3a;
}

.token-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.token-icon.eth {
    padding: 4px;
}

.token-icon.usdc {
    background: linear-gradient(135deg, #2775ca 0%, #2775ca 100%);
}

.token-icon.usdt {
    background: linear-gradient(135deg, #26a17b 0%, #26a17b 100%);
}

.token-icon.dai {
    background: linear-gradient(135deg, #f5ac37 0%, #f5ac37 100%);
}

.token-icon.wbtc {
    background: linear-gradient(135deg, #f09242 0%, #f09242 100%);
}

.chevron {
    width: 16px;
    height: 16px;
    color: #808080;
    flex-shrink: 0;
}

.input-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #808080;
}

.swap-arrow-container {
    display: flex;
    justify-content: center;
    margin: -8px 0;
    position: relative;
    z-index: 10;
}

.btn-arrow {
    background-color: #1c1c1c;
    border: 4px solid #131313;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-arrow:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-arrow svg {
    width: 16px;
    height: 16px;
    color: #808080;
}

.btn-connect-large {
    width: 100%;
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #FF37C7 0%, #FF37C7 100%);
    color: #ffffff;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 24px rgba(255, 55, 199, 0.2);
}

.btn-connect-large:hover {
    box-shadow: 0 12px 32px rgba(255, 55, 199, 0.3);
}

.btn-connect-large:active {
    transform: scale(0.98);
}

.info-box {
    margin-top: 16px;
    padding: 12px;
    background-color: #131313;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
}

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

.info-label {
    color: #808080;
}

.info-value {
    color: #d0d0d0;
}

.disclaimer {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: #808080;
    line-height: 1.6;
}

.disclaimer a {
    color: #a0a0a0;
    text-decoration: underline;
    transition: color 0.2s ease;
    cursor: pointer;
}

.disclaimer a:hover {
    color: #ffffff;
}

.stats-section {
    max-width: 1280px;
    margin: 80px auto;
    padding: 0 16px;
}

.stats-container {
    background-color: #1c1c1c;
    border: 1px solid #2a2a2a;
    border-radius: 24px;
    padding: 48px 32px;
}

@media (max-width: 768px) {
    .stats-container {
        padding: 32px 20px;
    }
}

.stats-header {
    text-align: center;
    margin-bottom: 40px;
}

.stats-header h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .stats-header h2 {
        font-size: 28px;
    }
}

.stats-header p {
    color: #a0a0a0;
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 24px;
}

@media (max-width: 768px) {
    .stats-header p {
        font-size: 14px;
    }
}

.stats-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.stats-link:hover {
    opacity: 0.8;
}

.stats-link svg {
    width: 20px;
    height: 20px;
}

.protocol-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: #a0a0a0;
    font-size: 14px;
    font-weight: 500;
}

.green-dot {
    width: 8px;
    height: 8px;
    background-color: #00D962;
    border-radius: 50%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.stat-card {
    background-color: #131313;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 24px 20px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: #3a3a3a;
    background-color: rgba(255, 255, 255, 0.02);
}

.stat-label {
    font-size: 13px;
    color: #808080;
    margin-bottom: 12px;
    font-weight: 500;
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.stat-value.green {
    color: #00D962;
}

@media (max-width: 768px) {
    .stat-value {
        font-size: 28px;
    }
}

.features-section {
    max-width: 1280px;
    margin: 80px auto;
    padding: 0 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.feature-card {
    border-radius: 24px;
    padding: 40px 32px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-card.purple {
    background: linear-gradient(135deg, #3D1F5C 0%, #2A1340 100%);
}

.feature-card.teal {
    background: linear-gradient(135deg, #0D4D4D 0%, #083838 100%);
}

.feature-card.red {
    background: linear-gradient(135deg, #4D1A1A 0%, #3D0F0F 100%);
}

@media (max-width: 768px) {
    .feature-card {
        padding: 32px 24px;
    }
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.feature-badge svg {
    width: 16px;
    height: 16px;
}

.feature-badge.purple {
    color: #C084FC;
}

.feature-badge.teal {
    color: #2DD4BF;
}

.feature-badge.red {
    color: #FB923C;
}

.feature-card h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .feature-card h3 {
        font-size: 26px;
    }
}

.feature-card.purple h3 {
    color: #E9D5FF;
}

.feature-card.teal h3 {
    color: #99F6E4;
}

.feature-card.red h3 {
    color: #FED7AA;
}

.feature-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .feature-card p {
        font-size: 14px;
    }
}

.feature-card.purple p {
    color: #D8B4FE;
}

.feature-card.teal p {
    color: #5EEAD4;
}

.feature-card.red p {
    color: #FDBA74;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.feature-link:hover {
    gap: 12px;
}

.feature-link svg {
    width: 18px;
    height: 18px;
}

.feature-link.purple {
    color: #C084FC;
}

.feature-link.teal {
    color: #2DD4BF;
}

.feature-link.red {
    color: #FB923C;
}

.explore-section {
    max-width: 480px;
    margin: 80px auto;
    padding: 0 16px;
}

.explore-container {
    background-color: #1c1c1c;
    border: 1px solid #2a2a2a;
    border-radius: 24px;
    padding: 48px 32px;
}

@media (max-width: 768px) {
    .explore-container {
        padding: 40px 24px;
    }
}

.explore-header {
    margin-bottom: 32px;
}

.explore-header h2 {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .explore-header h2 {
        font-size: 24px;
    }
}

.explore-divider {
    height: 1px;
    background-color: #2a2a2a;
    margin-bottom: 32px;
}

.explore-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.explore-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 0;
    border-bottom: 1px solid #2a2a2a;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.explore-item:last-child {
    border-bottom: none;
}

.explore-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
    padding-left: 12px;
    padding-right: 12px;
    margin: 0 -12px;
}

.explore-item-left {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.explore-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.explore-icon svg {
    width: 24px;
    height: 24px;
}

.explore-content {
    flex: 1;
}

.explore-title {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .explore-title {
        font-size: 16px;
    }
}

.explore-description {
    font-size: 14px;
    line-height: 1.5;
    color: #a0a0a0;
}

@media (max-width: 768px) {
    .explore-description {
        font-size: 13px;
    }
}

.explore-arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #808080;
    margin-left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.explore-item:hover .explore-arrow {
    color: #ffffff;
    transform: translateX(4px);
}

.explore-arrow svg {
    width: 20px;
    height: 20px;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background-color: #1c1c1c;
    border: 1px solid #2a2a2a;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.btn-close {
    background: transparent;
    border: none;
    color: #808080;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.btn-close svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.wallet-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background-color: #131313;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    width: 100%;
    text-align: left;
}

.wallet-option:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #3a3a3a;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wallet-icon.metamask {
    background: linear-gradient(135deg, #f6851b 0%, #e2761b 100%);
}

.wallet-icon.trustwallet {
    background: linear-gradient(135deg, #3375bb 0%, #2d5fa8 100%);
}

.wallet-icon svg {
    width: 24px;
    height: 24px;
}

.wallet-name {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

.modal-search {
    padding: 16px 20px;
    border-bottom: 1px solid #2a2a2a;
}

.search-input {
    width: 100%;
    background-color: #131313;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.search-input:focus {
    border-color: #404040;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.search-input::placeholder {
    color: #808080;
}

.token-list {
    padding: 8px;
}

.token-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    color: inherit;
    font-family: inherit;
}

.token-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.token-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.token-item-info {
    flex: 1;
}

.token-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 2px;
}

.token-item-symbol {
    font-size: 12px;
    color: #808080;
}

.token-item-balance {
    font-size: 14px;
    color: #d0d0d0;
    font-weight: 500;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #2a2a2a;
    text-align: center;
}

.modal-footer p {
    font-size: 12px;
    color: #808080;
}

/* Footer Section */
footer {
    background-color: #0d0d0d;
    border-top: 1px solid #2a2a2a;
    margin-top: 80px;
    padding: 48px 16px 32px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 64px;
    }
}

.footer-column h3 {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-column ul li a:hover {
    color: #ffffff;
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    margin-bottom: 16px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #1c1c1c;
    border: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #3a3a3a;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.footer-divider {
    height: 1px;
    background-color: #2a2a2a;
    margin-bottom: 24px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-copyright {
    font-size: 13px;
    color: #808080;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 13px;
    color: #808080;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}
