body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 40px;
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
    color: #ffffff;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.app-logo {
    height: 50px;
    width: auto;
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #F0B90B;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.dapp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.dapp-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(240, 185, 11, 0.2);
    text-align: center;
}

.dapp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(240, 185, 11, 0.3);
    border-color: #F0B90B;
}

.dapp-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: #F0B90B;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    margin: 15px 0;
    font-size: 1.4em;
    color: #ffffff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #F0B90B;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(240, 185, 11, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #F0B90B;
    box-shadow: 0 0 8px rgba(240, 185, 11, 0.3);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-connect,
.btn-submit,
.btn-disconnect,
.btn-cancel,
.btn-open-dapp {
    display: inline-block;
    padding: 12px 24px;
    background: #F0B90B;
    color: #1a1a1a;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
    text-decoration: none;
}

.btn-connect:hover,
.btn-submit:hover,
.btn-disconnect:hover,
.btn-cancel:hover,
.btn-open-dapp:hover {
    background: #e0a80a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.4);
}

.btn-disconnect {
    background: #ff4444;
}

.btn-disconnect:hover {
    background: #cc3333;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
}

.btn-cancel {
    background: #666666;
}

.btn-cancel:hover {
    background: #555555;
    box-shadow: 0 4px 12px rgba(102, 102, 102, 0.4);
}

.wallet-status {
    margin: 20px 0;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.wallet-status.connected {
    background: rgba(240, 185, 11, 0.1);
    color: #F0B90B;
}

.wallet-status.error {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
}

.wallet-status.success {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
}

.wallet-popup,
.dapp-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #2c2c2c;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.popup-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}

.popup-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup-right {
    padding-left: 20px;
}

.popup-logo {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: #F0B90B;
}

.social-links {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.social-icon {
    font-size: 24px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: #F0B90B;
    transform: scale(1.1);
}

.popup-right h2 {
    margin-bottom: 15px;
    color: #F0B90B;
}

.popup-right p {
    margin-bottom: 10px;
    color: #ffffff;
    line-height: 1.5;
}

/* Mobile layout */
@media (max-width: 768px) {
    body {
        padding: 20px;
    }

    header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 10px;
    }

    .app-logo {
        height: 40px;
    }

    .navbar {
        width: 100%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0, 0, 0, 0.8);
        padding: 15px;
        border-radius: 8px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links li a {
        font-size: 1em;
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
    }

    .container {
        padding: 15px;
        border-radius: 8px;
    }

    .dapp-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .dapp-card {
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .dapp-card:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
    }

    .dapp-logo {
        /*height: 120px;*/
        margin-bottom: 10px;
    }

    h1 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    h2 {
        font-size: 1.1em;
    }

    .popup-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .popup-left,
    .popup-right {
        padding-left: 0;
        text-align: center;
    }

    .popup-logo {
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    .btn-open-dapp {
        margin-top: 10px;
    }

    .popup-content {
        padding: 20px;
        max-height: 90vh;
    }
}