:root {
    --primary: #6b21a8;
    --secondary: #a78bfa;
    --accent: #22d3ee;
    --neutral: #f9fafb;
    --dark: #1f2937;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #6b21a8, #a78bfa, #22d3ee, #6b21a8);
    --mesh-gradient: radial-gradient(circle at 0% 0%, rgba(107, 33, 168, 0.5), transparent),
                      radial-gradient(circle at 100% 0%, rgba(167, 139, 250, 0.5), transparent),
                      radial-gradient(circle at 50% 100%, rgba(34, 211, 238, 0.5), transparent),
                      radial-gradient(circle at 0% 100%, rgba(107, 33, 168, 0.5), transparent),
                      radial-gradient(circle at 100% 100%, rgba(167, 139, 250, 0.5), transparent);
    --ethereum: #627eea;
    --bsc: #f0b90b;
    --polygon: #8247e5;
    --avalanche: #e84142;
    --arbitrum: #2a374b;
    --optimism: #ff0420;
    --base: #0052ff;
    --tron: #ff060a;
    --ripple: #00aae4;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gradient), var(--mesh-gradient), url('https://w0.peakpx.com/wallpaper/919/48/HD-wallpaper-coding-developer-programming.jpg') no-repeat center center fixed;
    background-blend-mode: overlay;
    background-size: cover, cover, cover;
    min-height: 100vh;
    color: var(--dark);
    animation: gradient-bg 15s ease infinite, mesh-bg 30s ease infinite;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradient-bg {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

@keyframes mesh-bg {
    0% {background-position: 0% 0%, 100% 0%, 50% 100%, 0% 100%, 100% 100%;}
    50% {background-position: 50% 50%, 0% 50%, 100% 50%, 50% 0%, 50% 100%;}
    100% {background-position: 0% 0%, 100% 0%, 50% 100%, 0% 100%, 100% 100%;}
}

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

.header-section {
    text-align: center;
    padding: 40px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-title {
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 0.8rem;
    font-weight: 400;
    color: #d1d5db;
}

.version-badge {
    display: inline-block;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--secondary);
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 8px;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 40px;
}

.card-header {
    background: var(--gradient);
    color: white;
    padding: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.card-body {
    padding: 30px;
}

.nav-tabs {
    border-bottom: none;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.nav-tabs .nav-item {
    margin-bottom: 0;
}

.nav-tabs .nav-link {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 24px;
    color: #d1d5db;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background: rgba(167, 139, 250, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.nav-tabs .nav-link.active {
    background: var(--gradient);
    color: white;
    border: 1px solid var(--secondary);
    box-shadow: 0 4px 12px rgba(107, 33, 168, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .nav-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-tabs .nav-link {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.network-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.network-item:hover {
    transform: translateY(-4px);
    background: rgba(167, 139, 250, 0.2);
    box-shadow: var(--shadow);
}

.network-item.active {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 33, 168, 0.3);
}

.network-item.ethereum.active { background: linear-gradient(135deg, var(--ethereum), var(--secondary)); }
.network-item.bsc.active { background: linear-gradient(135deg, var(--bsc), var(--secondary)); }
.network-item.polygon.active { background: linear-gradient(135deg, var(--polygon), var(--secondary)); }
.network-item.avalanche.active { background: linear-gradient(135deg, var(--avalanche), var(--secondary)); }
.network-item.arbitrum.active { background: linear-gradient(135deg, var(--arbitrum), var(--secondary)); }
.network-item.optimism.active { background: linear-gradient(135deg, var(--optimism), var(--secondary)); }
.network-item.base.active { background: linear-gradient(135deg, var(--base), var(--secondary)); }
.network-item.tron.active { background: linear-gradient(135deg, var(--tron), var(--secondary)); }
.network-item.ripple.active { background: linear-gradient(135deg, var(--ripple), var(--secondary)); }

.network-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.network-item.active .network-icon {
    color: white;
}

.network-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.network-symbol {
    font-size: 0.85rem;
    opacity: 0.8;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.95rem;
    color: var(--dark);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.3);
    outline: none;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5b1896, #8b5cf6, #06b6d4);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(107, 33, 168, 0.3);
}

.btn-primary:disabled {
    background: rgba(107, 33, 168, 0.5);
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--dark);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(167, 139, 250, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.wallet-card, .result-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.wallet-card:hover, .result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    background: rgba(167, 139, 250, 0.1);
}

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

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

.wallet-number {
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.wallet-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-details p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

.wallet-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 33, 168, 0.3);
}

.wallet-field {
    margin-bottom: 12px;
}

.wallet-field label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.field-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-value {
    flex: 1;
    font-size: 0.9rem;
    color: var(--dark);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.field-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.field-btn:hover {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 33, 168, 0.3);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow);
    position: relative;
}

.modal-content h3 {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #d1d5db;
}

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

.qr-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    background: white;
    padding: 10px;
    border-radius: 8px;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.progress-bar {
    height: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    width: 0;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #d1d5db;
    text-align: center;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.stat-icon {
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
}

.stat-label {
    font-size: 0.9rem;
    color: #d1d5db;
}

.empty-state {
    text-align: center;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.empty-state i {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
}

.empty-state p {
    font-size: 0.9rem;
    color: #d1d5db;
}

.dropdown-menu {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
    position: absolute;
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    font-size: 0.9rem;
    padding: 8px 16px;
    color: var(--dark);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(167, 139, 250, 0.2);
    color: white;
}

.footer {
    text-align: center;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-top: 40px;
}

.footer p {
    font-size: 0.9rem;
    color: #d1d5db;
    margin: 0;
}

.footer a {
    color: var(--secondary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.admin-link {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--gradient);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 100;
    transition: all 0.3s ease;
}

.admin-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(107, 33, 168, 0.3);
}

@media (max-width: 768px) {
    .container-custom {
        padding: 10px;
    }
    
    .header-section {
        padding: 20px 0;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .network-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .wallet-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .wallet-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .admin-link {
        bottom: 10px;
        left: 10px;
        right: 10px;
        text-align: center;
    }
}

#adminLoginModal {
    z-index: 2000;
}

#adminLoginModal .modal-content {
    background: rgba(255, 255, 255, 0.95);
}