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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%);
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.nav-menu {
    display: none;
}

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

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #1f2937;
}

.dropdown-arrow {
    font-size: 12px;
    margin-left: 4px;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: #374151;
    transition: all 0.3s ease;
}

/* Main Content */
.main {
    padding: 60px 0;
    min-height: calc(100vh - 70px);
}

.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    font-size: 48px;
    font-weight: 400;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.create-link {
    color: #06d6a0;
    text-decoration: underline;
    font-weight: 500;
}

.create-link:hover {
    color: #05c3dd;
}

/* Wallet Options */
.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wallet-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.wallet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.wallet-card-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.enkrypt-icon {
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
}

.mew-icon {
    background: linear-gradient(135deg, #05c3dd 0%, #0891b2 100%);
}

.browser-icon {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
}

.mobile-icon {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.hardware-icon {
    background: linear-gradient(135deg, #374151 0%, #1F2937 100%);
}

.software-icon {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.wallet-info {
    flex: 1;
}

.wallet-name {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.wallet-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

.browser-wallets {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.browser-wallet-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
}

.official-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #06d6a0 0%, #059669 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.not-recommended-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-bubble {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 60px 0 40px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 16px;
}

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

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

.footer-column a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #06d6a0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 40px;
    border-top: 1px solid #374151;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left p {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    font-size: 14px;
    color: white;
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: #374151;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #06d6a0;
    color: white;
    transform: translateY(-2px);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: #6b7280;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.modal-content {
    padding: 24px;
}

.loading-spinner {
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

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

.loading-spinner p {
    color: #6b7280;
    font-size: 16px;
}

/* Success/Error States */
.connection-result {
    text-align: center;
    padding: 40px 20px;
}

.result-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.error-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.result-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.result-message {
    color: #6b7280;
    margin-bottom: 24px;
}

.result-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.result-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.error-button {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.error-button:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Responsive Design */
@media (min-width: 768px) {
    .nav-menu {
        display: block;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .container {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .wallet-card {
        padding: 20px;
    }
    
    .wallet-card-content {
        gap: 12px;
    }
    
    .wallet-icon {
        width: 48px;
        height: 48px;
    }
    
    .wallet-name {
        font-size: 18px;
    }
    
    .official-badge,
    .not-recommended-badge {
        position: absolute;
        top: 12px;
        right: 12px;
        font-size: 10px;
        padding: 4px 8px;
        border-radius: 12px;
    }
    
    .chat-bubble {
        position: static;
        margin-top: 12px;
        align-self: flex-start;
    }
    
    .wallet-card-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-right {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 40px 0;
    }
    
    .hero {
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .modal {
        margin: 20px;
        max-width: none;
        width: auto;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}