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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.title-section {
    flex: 1;
}

.github-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.github-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.github-link svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .github-link {
        align-self: flex-end;
        margin-top: -1rem;
    }
}

.header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.header p {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
}

.main-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.input-section {
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wallet-input {
    flex: 1;
    padding: 1rem;
    border: 3px solid #e1e5e9;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    transition: border-color 0.3s ease;
}

.wallet-input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 3px solid #e1e5e9;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.loading {
    display: none;
    text-align: center;
    padding: 3rem 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.results {
    display: none;
}

.service-card {
    background: #f8f9fa;
    border-radius: 5px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 6px solid #667eea;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.service-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
}

.service-name img {
    border-radius: 4px;
    object-fit: contain;
}

.service-name img:not([src]), .service-name img[src=""] {
    display: none;
}

.service-name a:hover {
    color: #667eea !important;
    transition: all 0.2s ease;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 700;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

.reward-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 1rem;
}

.reward-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    border: 2px solid #e1e5e9;
}

/* Token icon styling */
.token-icon {
    transition: transform 0.2s ease;
}

.token-icon:hover {
    transform: scale(1.05);
}

.token-symbol-fallback {
    transition: transform 0.2s ease;
}

.token-symbol-fallback:hover {
    transform: scale(1.05);
}

.detail-label {
    min-height: 32px; /* Ensure consistent height for labels with icons */
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.3rem;
}

.detail-value {
    font-weight: 700;
    color: #333;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    font-weight: 600;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.footer {
    text-align: center;
    color: white;
    opacity: 0.8;
    margin-top: 2rem;
}

.footer a {
    color: white;
    text-decoration: none;
}

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

.provider-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.supported-services {
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.supported-services h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    max-width: 100%;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.service-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: inherit;
    text-decoration: none;
}

.service-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    background: white;
    border: 1px solid #e9ecef;
}

.service-icon.placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.service-name-item {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    color: #333;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .container {
        padding: 1rem;
    }

    .reward-details {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .service-item {
        padding: 0.75rem;
    }
    
    .service-icon {
        width: 28px;
        height: 28px;
    }
    
    .service-name-item {
        font-size: 0.8rem;
    }
}
